/* =========================================
   1. CẤU HÌNH CƠ BẢN (VARIABLES & RESET)
   ========================================= */
:root {
    --color-primary: #3b82f6; /* Xanh lá */
    --color-secondary: #3b82f6; /* Xanh dương */
    --color-text-main: #1f2937; /* Đen xám */
    --color-text-muted: #6b7280; /* Xám nhạt */
    --color-bg-light: #ffffff;
    --color-bg-gray: #f9fafb;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --container-width: 1280px;
}

/* Wrapper chính để đẩy nội dung xuống khỏi Menu Fixed */
.page-content-wrapper {
    padding-top: 100px;
}

/* Container chung */
.dest-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   2. XỬ LÝ NAV MENU CỦA MASTER LAYOUT
   ========================================= */
/* Ép menu hiện chữ đen và nền trắng */
.vjtraveling-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    border: 1px solid #f3f4f6 !important;
}
.vjtraveling-link, 
.vjtraveling-logo span, 
.navbar-toggler i {
    color: var(--color-text-main) !important;
    font-weight: 600 !important;
}
.vjtraveling-link:hover {
    color: var(--color-primary) !important;
}
/* Dropdown */
.vjtraveling-dropdown-menu {
    background: #fff !important;
    border: 1px solid #eee !important;
}
.vjtraveling-dropdown-item {
    color: #333 !important;
}

/* =========================================
   3. HEADER SECTION (SPLIT SCREEN)
   ========================================= */
.dest-header-wrapper {
    position: relative;
    background-color: var(--color-bg-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Breadcrumb */
.dest-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
}
.dest-breadcrumb a { color: var(--color-text-muted); text-decoration: none; font-weight: 500; }
.dest-breadcrumb a:hover { color: var(--color-primary); }
.dest-breadcrumb span.divider { color: #d1d5db; }
.dest-breadcrumb span.active { color: var(--color-primary); text-transform: uppercase; }

/* Nội dung Header */
.dest-header-content {
    padding: 3rem 1rem;
    z-index: 10;
}
.dest-title {
    font-family: var(--font-serif);
    font-weight: 800;
    color: #111827;
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.dest-subtitle {
    font-family: var(--font-sans);
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Nút Video */
.video-btn-wrap {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: #eff6ff;
    padding: 4px 20px 4px 4px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.video-btn-wrap:hover { background-color: #dbeafe; }
.video-btn-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.video-btn-text h4 { margin: 0; font-size: 0.875rem; font-weight: 700; color: #111827; }
.video-btn-text span { font-size: 0.75rem; color: #6b7280; text-transform: uppercase; }

/* Ảnh Header (Bên phải) */
.dest-header-image {
    width: 100%;
    height: 300px;
    position: relative;
}
.dest-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Desktop Header */
@media (min-width: 1024px) {
    .dest-header-wrapper {
        flex-direction: row; /* Chia đôi màn hình */
        min-height: 600px;
    }
    .dest-header-content {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: max(2rem, calc((100% - var(--container-width)) / 2 + 1rem)); /* Canh lề trái theo container */
        padding-right: 3rem;
    }
    .dest-header-image {
        width: 50%;
        height: auto;
        position: absolute;
        top: 0; right: 0; bottom: 0;
    }
    .dest-title { font-size: 3.75rem; }
    /* Gradient mờ chuyển tiếp ảnh */
    .dest-header-image::before {
        content: '';
        position: absolute;
        top: 0; bottom: 0; left: 0;
        width: 100px;
        background: linear-gradient(to right, #fff, transparent);
        z-index: 2;
    }
}

/* =========================================
   4. PHẦN NỘI DUNG CHÍNH (BODY)
   ========================================= */
.section-wrapper { margin-bottom: 4rem; }

/* Tiêu đề Section */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}
.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background-color: var(--color-primary);
    border-radius: 99px;
    margin-right: 12px;
}

/* Description Text */
.desc-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4b5563;
}
.desc-content p { margin-bottom: 1rem; }

/* =========================================
   5. INFORMATION GRID (THÔNG TIN)
   ========================================= */
.info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* 3 Cột trên cùng */
.info-stats {
    display: grid;
    grid-template-columns: 1fr;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.info-stat-item {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.info-stat-item:last-child { border-bottom: none; }

.stat-label { font-size: 0.75rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { margin-top: 0.25rem; font-size: 1.5rem; font-weight: 700; color: #111827; }

@media (min-width: 768px) {
    .info-stats { grid-template-columns: repeat(3, 1fr); }
    .info-stat-item { border-bottom: none; border-right: 1px solid #e5e7eb; }
    .info-stat-item:last-child { border-right: none; }
}

/* Danh sách chi tiết dưới */
.info-detail-row {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.info-detail-row:last-child { border-bottom: none; }
.info-detail-row:hover { background-color: #f9fafb; }

.detail-label { display: flex; align-items: center; font-weight: 600; color: #111827; font-size: 0.875rem; }
.detail-label i { color: var(--color-primary); margin-right: 0.5rem; font-size: 1.25rem; }
.detail-content { font-size: 0.875rem; color: #4b5563; line-height: 1.6; }

@media (min-width: 640px) {
    .info-detail-row { grid-template-columns: 1fr 2fr; }
}

/* =========================================
   6. PACKAGES (HORIZONTAL SCROLL)
   ========================================= */
.pkg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.scroll-controls button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}
.scroll-controls button:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pkg-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
    /* Ẩn thanh cuộn */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.pkg-scroll-container::-webkit-scrollbar { display: none; }

.pkg-card {
    flex: 0 0 300px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

.pkg-img { position: relative; height: 12rem; overflow: hidden; }
.pkg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pkg-card:hover .pkg-img img { transform: scale(1.1); }
.wishlist-btn {
    position: absolute; top: 0.75rem; right: 0.75rem;
    width: 32px; height: 32px; background: rgba(255,255,255,0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #9ca3af; transition: 0.2s;
}
.wishlist-btn:hover { color: #ef4444; }

.pkg-body { padding: 1rem; }
.pkg-price { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.price-curr { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.price-old { font-size: 0.875rem; text-decoration: line-through; color: #9ca3af; }

.pkg-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; height: 3rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pkg-title a { color: #111827; text-decoration: none; }
.pkg-title a:hover { color: var(--color-primary); }

.pkg-rating { display: flex; align-items: center; font-size: 0.75rem; margin-bottom: 0.75rem; }
.stars { color: #fbbf24; margin-right: 0.5rem; }
.review-count { color: #9ca3af; }

.pkg-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: #6b7280; border-top: 1px solid #f3f4f6; padding-top: 0.75rem; }
.pkg-meta span { display: flex; align-items: center; gap: 4px; }
.pkg-meta i { color: var(--color-primary); }


/* =========================================
   7. GALLERY & MAP (GRID)
   ========================================= */
/* =========================================
   GALLERY GRID (CẬP NHẬT)
   ========================================= */
.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .media-grid { grid-template-columns: 1fr 1fr; }
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 150px 150px; /* Tổng chiều cao 310px (tính cả gap) */
    gap: 0.5rem;
    height: 310px; 
}

.gallery-item {
    position: relative;
    background: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

/* Ảnh đầu tiên (index 0) chiếm 2 hàng bên trái */
.gallery-item.large {
    grid-row: span 2; 
}

.gallery-item img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    /* QUAN TRỌNG: Thêm transition cho opacity để tạo hiệu ứng Fade */
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 1;
}

/* Hiệu ứng zoom nhẹ khi hover */
.gallery-item:hover img { 
    transform: scale(1.05); 
}


.map-box {
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    height: 310px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.map-frame {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: none; }

/* Responsive Mobile Adjustments */
@media (max-width: 991px) {
    .page-content-wrapper { padding-top: 80px; }
}