/* =========================================
   1. GENERAL & RESET
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.top_bar {
    /* (BARU) Atur warna default ke transparan */
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* (BARU) Saat di-scroll, ganti ke putih buram */
.top_bar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* (BARU) Atur warna teks link menu awal (putih) */
#main_menu a {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* (BARU) Atur warna teks link menu saat di-scroll (gelap) */
.top_bar.scrolled #main_menu a {
    color: #374151; /* text-gray-700 */
    text-shadow: none;
}

/* (BARU) Atur ikon menu mobile awal (putih) */
#mobile_nav_icon {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* (BARU) Atur ikon menu mobile saat di-scroll (gelap) */
.top_bar.scrolled #mobile_nav_icon {
    color: #374151; /* text-gray-700 */
    text-shadow: none;
}


/* Mobile Menu Wrapper */
@media (max-width: 1024px) {
    #menu_wrapper {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        z-index: 50;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
    }

    #menu_wrapper.nav-open {
        transform: translateX(0) !important;
    }
    
    /* (BARU) Teks menu di mobile selalu gelap */
    #main_menu a {
        color: #374151;
        text-shadow: none;
    }
}

/* =========================================
   3. CRUISE TABS
   ========================================= */
.cruise-tab {
    transition: all 0.3s ease;
}

.cruise-tab.active-cruise {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.cruise-tab:hover:not(.active-cruise) {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

/* =========================================
   4. DURATION TABS
   ========================================= */
.tab-btn {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active-duration {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: #2563eb;
}

/* =========================================
   5. INNER TABS
   ========================================= */
.inner-tab {
    position: relative;
    color: #6b7280;
    font-weight: 600;
}

.inner-tab::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.inner-tab.active-inner {
    color: #2563eb;
}

.inner-tab.active-inner::after {
    width: 100%;
}

/* =========================================
   6. BUCKET BUTTON (POP ANIMATION)
   ========================================= */
@keyframes popScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.pop-anim {
    animation: popScale 0.3s ease;
}

/* =========================================
   7. MODAL
   ========================================= */
#bucket-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out forwards;
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* =========================================
   8. SLIDER
   ========================================= */
.detail-slider {
    position: relative;
    overflow: hidden;
}

/* =========================================
   9. CUSTOM BACKGROUND IMAGE
   ========================================= */
.body-bg-image {
    background-image: url('https://laoratravel.com/upload/lr61.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.body-bg-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay transparan */
    z-index: -1;
    pointer-events: none;
}
/* PERBAIKAN: Kurung kurawal '}' ekstra dihapus dari sini */

/* =========================================
   10. SMALL MOBILE FONT ADJUSTMENT
   ========================================= */
@media (max-width: 400px) {
    html {
        font-size: 90%; 
    }
    header h1[data-translate="main_title"] {
        font-size: 2.25rem; 
    }
    .cruise-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    #view-bucket-btn button {
        width: 3.5rem;
        height: 3.5rem;
    }
    #view-bucket-btn .fa-shopping-bag {
        font-size: 1.25rem;
    }
    #bucket-count {
        width: 1.25rem; /* Ukuran badge dikecilkan */
        height: 1.25rem;
        font-size: 0.65rem;
        top: 0; /* Posisi badge disesuaikan */
        right: 0;
    }
}

/* =========================================
   11. STYLING UNTUK TAB SPESIFIKASI
   ========================================= */
.spec-header {
    font-size: 1.75rem; /* text-2xl */
    font-weight: 800; /* font-extrabold */
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    
    background: linear-gradient(to right, #D4AF37, #F0E68C, #D4AF37);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    border-bottom: 2px solid #D4AF37;
}

#content-spec ul {
    list-style: none;
    padding: 0;
}

/* =========================================
   12. (BARU) GALERI GAMBAR RINCIAN
   ========================================= */
.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem; 
    overflow: hidden;
    background-color: #f3f4f6; 
}
.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 gambar per baris */
    gap: 0.5rem;
    margin-top: 1rem;
}
.gallery-thumbnail {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem; /* rounded-lg */
    border: 3px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.gallery-thumbnail:hover {
    opacity: 1;
    border-color: #93c5fd; /* blue-300 */
}
.gallery-thumbnail.active {
    opacity: 1;
    border-color: #2563eb; /* blue-600 */
}

/* Styling Ikon Sosial di Footer */
.social-icons a {
    font-size: 1.25rem; /* fa-lg */
    color: #9ca3af; /* text-gray-400 */
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #ffffff; /* text-white */
}
/* =========================================
   12. (BARU) MODERN GALLERY STYLING
   ========================================= */

/* Container Utama Galeri */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Area Gambar Utama (Hero) */
.main-image-wrapper {
    position: relative;
    width: 100%;
    /* Rasio aspek cinematic 16:10 agar terlihat luas */
    aspect-ratio: 16 / 10; 
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    background-color: #e5e7eb; /* gray-200 placeholder */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Slide Gambar Utama */
.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-out;
    transform: scale(1.05); /* Sedikit zoom effect saat tidak aktif */
    z-index: 1;
}

.gallery-slide.active-slide {
    opacity: 1;
    transform: scale(1); /* Normal scale saat aktif */
    z-index: 10;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tombol Navigasi (Arrows) dengan efek Glassmorphism */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0; /* Hidden by default, show on hover wrapper */
}

.main-image-wrapper:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937; /* gray-800 */
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.nav-prev { left: 1rem; }
.nav-next { right: 1rem; }

/* Area Thumbnails (Gambar Kecil) */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 Kolom fix */
    gap: 0.75rem;
    width: 100%;
}

.gallery-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 70%; /* Aspect ratio kotak persegi panjang */
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.9); /* Efek mati saat tidak aktif */
    transition: all 0.3s ease;
}

/* State Hover pada Thumbnail */
.gallery-thumbnail:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* State Aktif pada Thumbnail */
.gallery-thumbnail.active-thumb {
    border-color: #2563eb; /* blue-600 */
    box-shadow: 0 0 0 2px #bfdbfe; /* ring effect */
}

.gallery-thumbnail.active-thumb img {
    filter: grayscale(0%) brightness(1);
}

/* Responsif Mobile */
@media (max-width: 640px) {
    .main-image-wrapper {
        aspect-ratio: 4 / 3; /* Lebih tinggi di HP */
    }
    .thumbnail-grid {
        gap: 0.5rem;
    }
    .gallery-nav-btn {
        opacity: 1; /* Selalu muncul di HP */
        width: 2.5rem;
        height: 2.5rem;
    }
}