
/* ==========================================
   TOUR DETAIL PAGE STYLES
   ========================================== */
.tour-detail-header {
    background: #f8f9fa;
    padding: 20px 0 30px 0;
    border-bottom: 1px solid #eee;
}
.tour-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.breadcrumb-nav {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}
.breadcrumb-nav a { color: #0056b3; text-decoration: none; }
.breadcrumb-nav i { font-size: 10px; margin: 0 6px; color: #aaa; }

.tour-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.badge-code { background: #222; color: #fff; font-size: 11px; padding: 3px 8px; font-weight: bold; border-radius: 3px; }
.badge-cat { background: #e0f2fe; color: #0369a1; font-size: 11px; padding: 3px 8px; font-weight: bold; border-radius: 3px; }
.badge-popular { background: #fee2e2; color: #dc2626; font-size: 11px; padding: 3px 8px; font-weight: bold; border-radius: 3px; }

.tour-main-title {
    font-size: 26px;
    color: #111;
    margin: 0 0 5px 0;
    line-height: 1.4;
}
.tour-sub-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

/* Gallery Layout */
.tour-gallery-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 12px;
}
.main-gallery-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
}
.sub-gallery-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-gallery-list img {
    width: 100%;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}
.sub-gallery-list img:hover, .sub-gallery-list img.thumb-active {
    opacity: 1;
    border: 2px solid #d97706;
}

/* Body & Sidebar Flex Wrapper */
.detail-layout-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}
.detail-left-content { flex: 1; }
.detail-right-sidebar { width: 320px; }

/* Specs Grid */
.tour-specs-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.spec-item { display: flex; align-items: center; gap: 12px; }
.spec-item i { font-size: 22px; color: #d97706; }
.spec-item small { display: block; font-size: 11px; color: #6b7280; }
.spec-item strong { font-size: 14px; color: #1f2937; }

/* Detail Tabs */
.detail-tabs-header {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
}
.d-tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    color: #4b5563;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}
.d-tab-btn.active {
    color: #d97706;
    border-bottom-color: #d97706;
}
.d-tab-panel { display: none; }
.d-tab-panel.active { display: block; }

.d-section-title { font-size: 18px; margin-bottom: 15px; border-left: 4px solid #d97706; padding-left: 10px; }

/* Timeline */
.timeline-wrapper { position: relative; padding-left: 20px; border-left: 2px dashed #cbd5e1; }
.timeline-item { position: relative; margin-bottom: 20px; padding-left: 20px; }
.time-badge {
    position: absolute;
    left: -33px;
    top: 0;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.timeline-content h4 { margin: 0 0 5px 0; font-size: 15px; }
.timeline-content p { margin: 0; font-size: 13px; color: #4b5563; }

/* Tables & Inclusions */
.price-detail-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.price-detail-table th, .price-detail-table td { border: 1px solid #e5e7eb; padding: 10px 15px; text-align: left; font-size: 14px; }
.price-detail-table th { background: #f9fafb; }
.price-highlight { color: #dc2626; font-size: 16px; }

.inclusions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.inc-box { padding: 15px; border-radius: 8px; }
.inc-box.yes { background: #f0fdf4; border: 1px solid #bbf7d0; }
.inc-box.no { background: #fef2f2; border: 1px solid #fecaca; }
.inc-box h4 { margin-top: 0; font-size: 14px; }
.inc-box ul { margin: 0; padding-left: 20px; font-size: 13px; color: #374151; }

/* Sticky Booking Card */
.sticky-booking-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.card-price-header { text-align: center; border-bottom: 1px solid #f3f4f6; padding-bottom: 15px; margin-bottom: 15px; }
.p-from { font-size: 12px; color: #6b7280; }
.big-price { font-size: 32px; font-weight: bold; color: #dc2626; }
.price-note { font-size: 11px; color: #9ca3af; }

.booking-actions { display: flex; flex-direction: column; gap: 10px; }
.booking-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}
.btn-book-line { background: #06c755; color: #fff; }
.btn-book-whatsapp { background: #25d366; color: #fff; }
.btn-book-email { background: #1f2937; color: #fff; }

.trust-badge-box { margin-top: 15px; font-size: 12px; color: #4b5563; display: flex; flex-direction: column; gap: 6px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-gallery-grid { grid-template-columns: 1fr; }
    .sub-gallery-list { flex-direction: row; }
    .sub-gallery-list img { height: 60px; }
    .detail-layout-wrapper { flex-direction: column; }
    .detail-right-sidebar { width: 100%; }
}    
/* ==========================================
   FIX TABS ON MOBILE VIEW (Horizontal Scroll)
   ========================================== */
@media (max-width: 768px) {
    .detail-tabs-header {
        display: flex !important;
        flex-wrap: nowrap !important; /* ហាមដាច់ខាតមិនឲ្យធ្លាក់បន្ទាត់ */
        overflow-x: auto !important;   /* បើអក្សរលើស ឲ្យ Scroll ទៅឆ្វេងស្ដាំ */
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch; /* ឲ្យ Scroll លើ iOS លូន Smooth */
        gap: 5px !important;
        padding-bottom: 5px;
        border-bottom: 2px solid #e5e7eb;
    }

    /* លាក់ Thanh Scrollbar ដើម្បីឲ្យមើលទៅ clean ស្អាត */
    .detail-tabs-header::-webkit-scrollbar {
        display: none;
    }

    .d-tab-btn {
        flex: 0 0 auto !important; /* មិនឲ្យប្រអប់Button រក្សាទំហំដើម មិនបង្រួម */
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap !important; /* បង្ខំអក្សរឲ្យនៅជួរតែមួយ */
    }
}  
/* ==========================================
   TABS LAYOUT (3 TABS EVENLY DISTRIBUTED)
   ========================================== */
.tour-detail-body .detail-left-content .detail-tabs-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ចែក Tab ទាំង ៣ ស្មើគ្នា ១០០% */
    gap: 10px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
}





/* ==========================================
   STANDALONE IMPORTANT NOTES BLOCK
   ========================================== */
.tour-important-notes-block {
    margin-top: 40px;
    background: #fffbe0; /* ពណ៌លឿងស្រាល បង្ហាញពីការប្រុងប្រយ័ត្ន Premium */
    border: 1px solid #fef08a;
    border-left: 5px solid #d97706; /* ខ្សែបន្ទាត់លឿងទុំខាងឆ្វេង */
    border-radius: 8px;
    padding: 20px;
}

.notes-block-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-block-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-item p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

/* ==========================================
   FEATURED COLUMN BLOCK STYLING
   ========================================== */
.tour-detail-body .tour-column-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Badge COLUMN តូចពណ៌ខៀវស្រាល */
.tour-detail-body .tour-column-card .column-badge {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6; /* ពណ៌ខៀវ Modern */
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* ចំណងជើង Column */
.tour-detail-body .tour-column-card .column-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

/* អត្ថបទរៀបរាប់ */
.tour-detail-body .tour-column-card .column-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
    margin: 0 0 24px 0;
}

/* Grid រូបភាព ២ ជួរឈរ */
.tour-detail-body .tour-column-card .column-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tour-detail-body .tour-column-card .column-img-item {
    display: flex;
    flex-direction: column;
}

.tour-detail-body .tour-column-card .column-img-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Description រូបភាព (Caption) */
.tour-detail-body .tour-column-card .column-img-item .img-caption {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    text-align: left;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .tour-detail-body .tour-column-card {
        padding: 20px 16px;
    }

    .tour-detail-body .tour-column-card .column-title {
        font-size: 17px;
    }

    /* លើទូរស័ព្ទ បើចង់ឱ្យរូបភាពនៅតែ ២ ជួរដដែល ឬធ្លាក់មក ១ ជួរ */
    .tour-detail-body .tour-column-card .column-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* រក្សា ២ រូបទន្ទឹមគ្នា ឬដូរជា 1fr បើចង់ឱ្យធំ */
        gap: 10px;
    }

    .tour-detail-body .tour-column-card .column-img-item img {
        height: 120px; /* កាត់កម្ពស់តូចបន្តិចលើ Mobile */
    }
}
.detail-left-content .tour-column-card .column-img-item img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-left-content .tour-column-card .column-img-item img:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* ==========================================
   MOBILE TOP STICKY BAR (SCOPED)
   ========================================== */

/* ១. លាក់ចោលលើ Desktop (Screen ធំ) */
.mobile-top-booking-bar {
    display: none;
}

/* ២. បង្ហាញ និង ធ្វើ Sticky តែលើ Mobile (Screen តូចជាង 768px) */
/* ==========================================
   MOBILE TOP FIXED BAR (FIXED ជាប់រហូត)
   ========================================== */

/* លាក់លើ Desktop */
.mobile-top-booking-bar {
    display: none;
}

/* ==========================================
   MOBILE TOP STICKY BAR (នៅទីតាំងដើម + Sticky)
   ========================================== */

/* លាក់លើ Desktop */
.mobile-top-booking-bar {
    display: none;
}

/* ==========================================
   PREMIUM BOTTOM FIXED ACTION BAR (DESKTOP & MOBILE)
   ========================================== */

/* 1. Base Structure (ដើរទាំង Desktop & Mobile) */
.mobile-bottom-booking-bar {
    display: block;
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    
    /* Glassmorphism Luxury Effect */
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* 2. Desktop View Design (កុំព្យូទ័រ - មើលទៅ Floating ស្អាតចម្ងាយសមរម្យ) */
@media (min-width: 769px) {
    .mobile-bottom-booking-bar {
        padding: 12px 24px;
    }

    .mobile-bottom-booking-bar .m-bottom-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1140px; /* តម្រូវតាម Container ធំ */
        margin: 0 auto;
    }

    .mobile-bottom-booking-bar .m-bottom-price {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-bottom-booking-bar .m-label {
        font-size: 13px;
        color: #64748b;
        font-weight: 600;
    }

    .mobile-bottom-booking-bar .m-price-wrapper {
        display: flex;
        align-items: baseline;
        gap: 2px;
    }

    .mobile-bottom-booking-bar .m-price {
        font-size: 24px;
        font-weight: 800;
        color: #d97706; /* Gold Amber */
    }

    .mobile-bottom-booking-bar .m-unit {
        font-size: 14px;
        font-weight: 700;
        color: #d97706;
    }

    .mobile-bottom-booking-bar .m-bottom-btns {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-bottom-booking-bar .m-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 24px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .mobile-bottom-booking-bar .m-btn-line {
        background: #06c755;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(6, 199, 85, 0.2);
    }

    .mobile-bottom-booking-bar .m-btn-book {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    }

    .mobile-bottom-booking-bar .m-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    body {
        padding-bottom: 75px !important;
    }
}

/* 3. Mobile View Design (ទូរស័ព្ទ) */
@media (max-width: 768px) {
    .mobile-bottom-booking-bar {
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-booking-bar .m-bottom-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-bottom-booking-bar .m-bottom-price {
        display: flex;
        flex-direction: column;
    }

    .mobile-bottom-booking-bar .m-label {
        font-size: 10px;
        color: #64748b;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 2px;
    }

    .mobile-bottom-booking-bar .m-price {
        font-size: 20px;
        font-weight: 800;
        color: #d97706;
        line-height: 1;
    }

    .mobile-bottom-booking-bar .m-unit {
        font-size: 12px;
        font-weight: 700;
        color: #d97706;
    }

    .mobile-bottom-booking-bar .m-bottom-btns {
        display: flex;
        gap: 8px;
    }

    .mobile-bottom-booking-bar .m-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 9px 15px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-bottom-booking-bar .m-btn-line {
        background: #06c755;
        color: #ffffff;
    }

    .mobile-bottom-booking-bar .m-btn-book {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        color: #ffffff;
    }

    body {
        padding-bottom: 65px !important;
    }
}
/* FAQ Container Style */
.tour-faq-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.faq-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.faq-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.faq-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Accordion Item Styling */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.active {
    border-color: #0284c7;
}

.faq-question {
    width: 100%;
    background: #f8fafc;
    border: none;
    outline: none;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.q-icon {
    font-weight: 800;
    font-size: 16px;
    color: #0284c7;
    margin-right: 12px;
    flex-shrink: 0;
}

.q-text {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    flex-grow: 1;
}

.faq-arrow {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #0284c7;
}

/* ផ្នែក Answer CONTAINER (ត្រូវទុកតែ overflow និង transition ប៉ុណ្ណោះ ហាមដាក់ padding ទីនេះ) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #ffffff;
}

/* ពេល Active គ្រាន់តែថែម Border លើខាងលើ ហាមដាក់ Padding ទីនេះដាច់ខាត */
.faq-item.active .faq-answer {
    border-top: 1px solid #f1f5f9;
}

/* យក Padding ទាំងអស់មកដាក់ក្នុង .a-content វិញ ដើម្បីកុំឱ្យបំបែកការគណនា scrollHeight */
.a-content {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    margin-top: -10px; 
}

.a-icon {
    font-weight: 800;
    font-size: 16px;
    color: #e11d48;
    flex-shrink: 0;
    margin-top: 2px;
}

.a-content p {
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}