/* Dalam file detail-paket.css */

/* Definisikan variabel atau impor font jika diperlukan */
/* Asumsi variabel global (seperti --primary, --text-dark) diimpor dari mobile.css/desktop.css */

/* --- 1. NAVBAR OVERRIDES FOR DETAIL PAGE (Disesuaikan untuk Mobile) --- */

.nav-container {
    padding: 10px 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tombol Back Mobile (Asumsi hidden di desktop) */
.back-btn {
    font-size: 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    display: none; /* Default hidden di desktop */
}

/* Social Icons for Mobile Menu (di bawah nav-menu) */
.mobile-social-menu {
    display: none;
    padding: 15px 0;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #eee;
}

/* Tampilkan Social Icons di Mobile saat menu aktif (Asumsi ada JS yang mengontrol .active) */
.nav-menu.active + .mobile-social-menu {
    display: flex; 
}

.breadcrumb {
    margin: 0 0 10px 0;
}


/* --- 2. DETAIL SECTION (Kolom Gambar & Tabs) --- */

#detail-section {
    padding-top: 100px; /* Jarak dari fixed navbar */
}

.detail-grid {
    display: grid;
    /* Default Desktop: Dua kolom */
    grid-template-columns: 1fr 1.5fr; 
    gap: 30px;
}

.image-column {
    position: sticky;
    top: 100px; /* Agar kolom gambar ikut scroll setelah navbar */
}



.summary-info {
    padding: 15px 0;
}

.summary-info h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary);
}

.summary-info .price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 10px;
}

.info-column {
    padding-bottom: 50px; 
}

/* --- 2a. Tab Buttons & Logic (Default/Desktop) --- */

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    /* Di desktop, biarkan wrapping agar tab tidak terlalu lebar */
    flex-wrap: wrap; 
    overflow-x: visible; 
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary);
}

.tab-button.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
    line-height: 1.6;
}

.tab-pane.active {
    display: block;
}

/* --- SOLUSI LIST STYLE (Menghilangkan Bullet Point) --- */
/* Karena konten dari DB sering memiliki bullet point ganda (tag HTML dan karakter manual) */
.tab-pane.car ul {
    list-style: none !important; Sembunyikan bullet standar
}

.tab-pane.car ul li::before {
    content: "\f00c"; /*Kode icon Check FontAwesome*/
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    margin-right: 10px;
}

.tab-pane ul {
    list-style-type: disc !important; /* Memunculkan titik */
    margin-left: 20px !important;
    padding-left: 20px !important;
    margin-bottom: 15px;
}

.tab-pane ol {
    list-style-type: decimal !important; /* Memunculkan angka jika menggunakan list angka */
    margin-left: 20px !important;
    padding-left: 10px !important;
    margin-bottom: 15px;
}

.tab-pane li {
    /* Tambahkan jarak antar baris */
    margin-bottom: 5px; 
    padding-left: 10px;
    display: list-item !important; Memastikan elemen dianggap sebagai item daftar
    line-height: 1.6;
}

.tab-pane li p {
    display: inline; /* Agar tidak membuat baris baru yang aneh di dalam bullet */
}

/* --- 3. WHATSAPP SECTION --- */
.whatsapp-section {
    padding: 40px 0;
}

.text-center {
    text-align: center;
    margin-bottom: 30px;
}

.whatsapp-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Stacked */
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #25d366; /* WA Green */
    color: white;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
}

.whatsapp-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}


/* --- 4. MEDIA QUERY (Mobile View: FIX SCROLL HORIZONTAL) --- */

@media (max-width: 425px) {
    .breadcrumb {
        font-size: 12px;
    }

    .image-column {
        width: 90%;
    }
    .summary-info {
        padding-right: 80px;
    }
    #package-name {
        font-size: 15px;
    }

    /* 4a. Kolom Detail (Menjadi Tumpukan) */
    .detail-grid {
        display: grid;
        margin: auto;
        grid-template-columns: 1fr; /* Mobile: Stacked */
        gap: 20px;
    }

    .image-column {
        position: static; /* Hilangkan sticky di mobile */
        top: auto; 
    }
    
    /* 4b. SOLUSI SCROLL HORIZONTAL UNTUK TAB BUTTONS */
    .tab-buttons {
        /* Kunci untuk mengaktifkan scroll horizontal */
        overflow-x: auto; 
        
        /* Menggunakan flexbox untuk penataan horizontal */
        display: flex; 
        
        /* Mencegah tombol melompat ke baris baru */
        flex-wrap: nowrap; 
        
        /* Opsional: Menyembunyikan scrollbar di browser WebKit (Chrome/Safari) */
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; /* Firefox */

        /* Kunci untuk membuat scroll full-width jika container utamanya memiliki padding (misal: .container) */
        width: 75%;
        padding: 0 20px; 
        margin-left: -20px; 
        margin-right: -20px;
    }

    /* Menyembunyikan scrollbar di Chrome, Safari, dan Opera */
    .tab-buttons::-webkit-scrollbar {
        display: none; 
    }

    .tab-buttons .tab-button {
        /* Penting: mencegah tombol mengecil (shrink) dan melebar (grow) */
        flex-shrink: 0; 
        flex-grow: 0;
        
        padding: 8px 12px;
        font-size: 0.9rem; 
        white-space: nowrap; /* Memastikan teks tombol tidak pecah */
        
        /* Style tombol mobile agar terlihat seperti chip/tag */
        border: 1px solid #ddd;
        border-radius: 20px;
        transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }
    
    .tab-buttons .tab-button.active {
        /* Style aktif di mobile */
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
        border-bottom: 1px solid var(--primary); /* Ganti border-bottom dari default */
    }
    
    .tab-content {
        padding: 10px;
        width: 350px;
        overflow-x: auto;
        font-size: 11px;
         white-space: nowrap;
    }
}