/* Tour page layout (tour-detail.php): page header, gallery, What's Included. Loaded after the page's own styles. */

/* No image hero any more: the white card starts under the navbar */
.main-content { padding-top: 110px; }
.floating-card-section { margin-top: 0; }
.floating-card { padding-top: 34px; }

/* ---------- Page header ---------- */
.tour-head { margin-bottom: 22px; }
.tour-head-back { display: none; }
.tour-head-crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    font-size: 13px; color: var(--text-light); margin-bottom: 14px;
}
.tour-head-crumbs a { color: var(--text-muted); text-decoration: none; }
.tour-head-crumbs a:hover { color: var(--gold-dark); text-decoration: underline; }
.tour-head-crumbs i { font-size: 9px; color: var(--gold-light); }
.tour-head-crumbs span { color: var(--text-light); }
.tour-head-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 600;
    color: var(--text-dark); margin: 0 0 14px; letter-spacing: -0.3px;
}
/* Quick facts under the title: small cells, icon over text, thin dividers (same look on desktop and mobile) */
.tour-facts {
    list-style: none; margin: 4px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: stretch;
}
.tour-facts li {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    min-width: 92px; padding: 4px 18px; text-align: center;
    font-size: 12.5px; line-height: 1.35; color: var(--text-muted);
}
.tour-facts li:first-child { padding-left: 0; min-width: 0; }
.tour-facts li + li { border-left: 1px solid var(--border-medium); }
.tour-facts i { color: var(--gold-primary); font-size: 16px; }
.tour-facts strong { color: var(--text-dark); font-weight: 700; }

/* ---------- Gallery (heading row removed) ---------- */
.tour-gallery-section { margin-bottom: 44px; }

/* ---------- What's Included ---------- */
.incl-box {
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-medium); border-radius: 18px;
    background: #fff; overflow: hidden;
}
.incl-col { padding: 26px 28px; }
.incl-col + .incl-col { border-left: 1px solid var(--border-soft); background: #fcfbf9; }
.incl-head {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dark);
    margin: 0 0 16px;
}
.incl-dot {
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.incl-dot.yes { background: #e7f6ee; color: #12805c; }
.incl-dot.no { background: #f3f1ee; color: #8a8a8a; }
.incl-list { list-style: none; margin: 0; padding: 0; }
.incl-list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0; font-size: 15px; line-height: 1.55; color: var(--text-muted);
}
.incl-list li + li { border-top: 1px dashed rgba(0, 0, 0, 0.07); }
.incl-list i { margin-top: 5px; font-size: 12px; width: 14px; flex-shrink: 0; }
.incl-list i.yes { color: #12805c; }
.incl-list i.no { color: #b0aaa2; }

@media (max-width: 768px) {
    .main-content { padding-top: 84px; }
    .floating-card { padding-top: 22px; }
    .incl-box { grid-template-columns: 1fr; }
    .incl-col + .incl-col { border-left: 0; border-top: 1px solid var(--border-soft); }
    .incl-col { padding: 20px; }
}

/* Mobile gallery: one large photo, the other four in a row underneath */
@media (max-width: 768px) {
    .tour-gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 6px !important;
    }
    .tour-gallery-item:first-child { grid-column: 1 / -1 !important; grid-row: auto !important; aspect-ratio: 16 / 10; }
    .tour-gallery-item:not(:first-child) { aspect-ratio: 1 / 1; border-radius: 10px; }
    .tour-gallery-item.gallery-more { display: block !important; }
    .tour-gallery-item.gallery-more::before { font-size: 18px; }
}

/* Season headings in the price table were light gold on a light background */
.evp-table thead th, .evp-shead { color: var(--gold-dark) !important; }

/* Mobile booking bar: hidden on desktop */
.m-book-bar { display: none; }

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    body { padding-bottom: 76px; }                 /* room for the booking bar */
    .floating-card-section { padding: 0 10px; }
    .floating-card { padding: 18px 16px 24px !important; border-radius: 18px !important; }

    /* Header: one "back to section" link instead of the full trail */
    .tour-head-crumbs { display: none; }
    .tour-head-back {
        display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
        font-size: 13px; color: var(--gold-dark); text-decoration: none;
    }
    .tour-head-back i { font-size: 10px; }
    .tour-head-title { font-size: 27px; line-height: 1.18; margin-bottom: 0; }
    .tour-head { margin-bottom: 16px; }

    /* Gallery tighter */
    .tour-gallery-section { margin-bottom: 26px; }
    .tour-gallery-view-all { margin-top: 12px !important; }
    .tour-gallery-view-all button { padding: 9px 18px !important; font-size: 13px !important; }

    /* Facts: equal cells across the screen, scroll sideways if there are many */
    .tour-facts {
        margin: 14px 0 0; padding: 10px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
    }
    .tour-facts::-webkit-scrollbar { display: none; }
    .tour-facts .fact-type { display: none; }   /* already shown in the back link above */
    .tour-facts li { flex: 1 0 auto; min-width: 78px; padding: 0 8px; font-size: 11.5px; }
    .tour-facts li:first-child { padding-left: 8px; }
    .tour-facts li span { max-width: 110px; }
    .tour-facts i { font-size: 15px; }

    /* Sections */
    .content-section { margin-bottom: 38px !important; }
    .section-title { font-size: 24px !important; margin-bottom: 18px !important; }

    /* Facilities: three small tiles per row */
    .facilities-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .facility-card { padding: 14px 6px !important; border-radius: 12px !important; }
    .facility-icon { font-size: 20px !important; margin-bottom: 6px !important; height: auto !important; width: auto !important; }
    .facility-name { font-size: 11.5px !important; line-height: 1.3; }

    /* Policies: compact rows */
    .policies-grid { gap: 10px !important; }
    .policies-grid { grid-template-columns: 1fr !important; }
    .policy-card {
        display: grid !important; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start;
        padding: 14px 16px !important; min-height: 0 !important;
    }
    .policy-icon { grid-row: span 2; font-size: 20px !important; margin: 2px 0 0 !important; width: 40px !important; height: 40px !important;
        display: flex !important; align-items: center; justify-content: center; border-radius: 10px; background: var(--cream-warm); }
    .policy-title { margin: 0 0 4px !important; font-size: 17px !important; }
    .policy-text { font-size: 13.5px !important; line-height: 1.55 !important; }

    .review-form { padding: 20px !important; }
    .review-form h3 { font-size: 19px !important; margin-bottom: 10px !important; }

    /* Sticky booking bar */
    .m-book-bar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid var(--border-medium);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    }
    .m-book-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.2; }
    .m-book-price s { font-size: 12px; color: var(--text-light); }
    .m-book-price strong { font-size: 20px; color: var(--text-dark); }
    .m-book-price span { font-size: 12px; color: var(--text-muted); }
    .m-book-btn {
        flex-shrink: 0; padding: 12px 24px; border-radius: 12px;
        background: var(--gradient-gold); color: #fff; font-weight: 700; font-size: 14px;
        letter-spacing: .5px; text-decoration: none; box-shadow: 0 6px 16px rgba(184, 150, 46, 0.35);
    }
    /* keep the WhatsApp button above the bar */
    .whatsapp-float { bottom: 86px !important; right: 12px !important; width: 48px !important; height: 48px !important; }
    .whatsapp-float i { font-size: 24px !important; }
    .m-book-bar.is-hidden { transform: translateY(110%); }
    .m-book-bar { transition: transform .25s ease; }
}

/* ---------- Share this tour ---------- */
.tour-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tour-share { position: relative; flex-shrink: 0; margin-top: 6px; }
.tour-share-btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 9px 16px; border-radius: 999px; font: 600 13px 'Montserrat', sans-serif;
    color: var(--gold-dark); background: #fff; border: 1px solid var(--border-medium);
    transition: background .2s, border-color .2s;
}
.tour-share-btn:hover { background: var(--cream-warm); border-color: var(--gold-primary); }
.tour-share-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 230px;
    background: #fff; border: 1px solid var(--border-medium); border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12); padding: 8px;
}
.tour-share-title { font-size: 12px; color: var(--text-light); padding: 6px 10px 8px; }
.tour-share-menu a, .tour-share-menu button {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 10px; border-radius: 9px; border: 0; background: none; cursor: pointer;
    font: 500 14px 'Montserrat', sans-serif; color: var(--text-dark); text-decoration: none;
}
.tour-share-menu a:hover, .tour-share-menu button:hover { background: var(--cream-warm); }
.tour-share-menu i { width: 18px; text-align: center; font-size: 16px; }
.tour-share-menu .only-mobile { display: none; }

@media (max-width: 768px) {
    .tour-head-row { gap: 10px; }
    .tour-share { margin-top: 2px; }
    .tour-share-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .tour-share-btn span { display: none; }
    .tour-share-menu .only-mobile { display: flex; }
}

/* ---------- White page, no outer box ---------- */
body { background: #fff !important; }
.main-content { background: #fff !important; }
.floating-card-section { padding: 0 !important; }
.floating-card {
    max-width: 1240px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    padding: 28px 32px 10px !important;
}
@media (max-width: 768px) {
    .floating-card-section { padding: 0 !important; }
    .floating-card { padding: 16px 16px 10px !important; }
}

/* ---------- Itinerary timeline ---------- */
.itin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.itin-toggle-all {
    margin-top: 8px; padding: 7px 14px; border-radius: 999px; cursor: pointer; flex-shrink: 0;
    font: 600 12.5px 'Montserrat', sans-serif; color: var(--gold-dark);
    background: #fff; border: 1px solid var(--border-medium);
}
.itin-toggle-all:hover { background: var(--cream-warm); }
.itin { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.itin-day { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding-bottom: 12px; }
.itin-day::before {                         /* the line linking the days */
    content: ""; position: absolute; left: 16px; top: 40px; bottom: 0;
    border-left: 2px dashed var(--gold-light);
}
.itin-day.is-last { padding-bottom: 0; }
.itin-day.is-last::before { display: none; }
.itin-dot {
    width: 34px; height: 34px; margin-top: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--gold-primary); color: var(--gold-dark);
    font: 700 14px 'Montserrat', sans-serif; position: relative; z-index: 1; transition: background .2s, color .2s;
}
.itin-day.is-open .itin-dot, .itin-day.is-last .itin-dot { background: var(--gold-primary); color: #fff; }
.itin-day.is-last .itin-dot { font-size: 12px; }
.itin-body {
    min-width: 0; background: #fff; border: 1px solid var(--border-medium, #eadfc6); border-radius: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.itin-day.is-open .itin-body { border-color: var(--gold-primary); box-shadow: 0 8px 24px rgba(60, 45, 10, .07); }
.itin-h { margin: 0; }
.itin-btn {
    width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label chev" "title chev";
    align-items: center; column-gap: 12px; padding: 13px 18px; border: 0; background: none; cursor: pointer;
    text-align: left; color: inherit; font: inherit; border-radius: 14px;
}
.itin-btn:disabled { cursor: default; }
.itin-btn:focus-visible { outline: 2px solid var(--gold-primary); outline-offset: 2px; }
.itin-label {
    grid-area: label; font: 700 11.5px 'Montserrat', sans-serif; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--gold-primary);
}
.itin-title {
    grid-area: title; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.25;
    color: var(--text-dark); margin-top: 2px;
}
.itin-chev {
    grid-area: chev; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--cream-warm, #f7f1e3); color: var(--gold-dark); font-size: 12px; transition: transform .25s;
}
.itin-day.is-open .itin-chev { transform: rotate(180deg); }
/* opening and closing: the panel grows from 0 to its full height */
.itin-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.itin-day.is-open .itin-panel { grid-template-rows: 1fr; }
.itin-panel-in { overflow: hidden; }
.itin-desc { padding: 0 18px 16px; font-size: 15px; line-height: 1.75; color: var(--text-muted); }

@media (max-width: 768px) {
    .itin-day { grid-template-columns: 28px 1fr; column-gap: 12px; padding-bottom: 10px; }
    .itin-day::before { left: 13px; top: 38px; }
    .itin-dot { width: 28px; height: 28px; margin-top: 12px; font-size: 12.5px; }
    .itin-btn { padding: 12px 14px; }
    .itin-title { font-size: 18.5px; }
    .itin-desc { padding: 0 14px 14px; font-size: 14.5px; }
    .itin-toggle-all { margin-top: 4px; padding: 6px 12px; font-size: 12px; }
}

/* ---------- Not included in red ---------- */
.incl-dot.no { background: #fdecec; color: #d64545; }
.incl-list i.no { color: #d64545; }

/* ---------- "View all photos" on the last gallery tile ---------- */
.tour-gallery-item { position: relative; }
.gallery-all-pill {
    position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark); font: 600 13px 'Montserrat', sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    pointer-events: none;   /* the tile itself opens the lightbox */
}
.gallery-all-pill i { color: var(--gold-primary); }
.tour-gallery-item.gallery-more::before { padding-bottom: 34px; }   /* keep "+4" above the pill */

/* ---------- Tour Policies: open / close rows ---------- */
.policy-list { border-top: 1px solid var(--border-soft); }
.policy-group { border-bottom: 1px solid var(--border-soft); }
.policy-group summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 2px; font: 700 15px 'Montserrat', sans-serif; color: var(--text-dark);
}
.policy-group summary::-webkit-details-marker { display: none; }
.policy-group summary span { display: inline-flex; align-items: center; gap: 10px; }
.policy-group summary span i { color: var(--gold-primary); font-size: 15px; width: 18px; text-align: center; }
.policy-chev { font-size: 12px; color: var(--text-light); transition: transform .2s; }
.policy-group[open] .policy-chev { transform: rotate(180deg); }
.policy-group summary:hover { color: var(--gold-dark); }
.policy-group ul { list-style: none; margin: 0; padding: 0 0 14px 30px; }
.policy-group li {
    position: relative; padding: 0 0 7px 16px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted);
}
.policy-group li::before {
    content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-primary);
}

@media (max-width: 768px) {
    .gallery-all-pill { display: none; }             /* small tiles: "+4" is enough */
    .tour-gallery-item.gallery-more::before { padding-bottom: 0; }
}

/* ---------- Book Now: choose card payment or booking request ---------- */
.book-choice { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.book-choice[hidden] { display: none; }
.book-choice-backdrop { position: absolute; inset: 0; background: rgba(20, 17, 12, .55); }
.book-choice-box {
    position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 18px; padding: 26px 22px 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25); font-family: 'Montserrat', sans-serif;
}
.book-choice-box h3 { font: 600 26px/1.2 'Cormorant Garamond', Georgia, serif; color: #1a1a1a; margin: 0 0 6px; padding-right: 36px; }
.book-choice-sub { font-size: 13px; color: #6b6b6b; margin: 0 0 18px; }
.book-choice-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e8e1d2; background: #fff; color: #555; cursor: pointer; }
.book-choice-opt {
    display: grid; grid-template-columns: 46px 1fr 14px; gap: 14px; align-items: center; width: 100%; text-align: left;
    padding: 16px; margin-top: 10px; border: 1.5px solid #e8e1d2; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s;
}
.book-choice-opt:hover, .book-choice-opt:focus-visible { border-color: #C6A43B; background: #fffaf0; outline: none; }
.book-choice-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #C6A43B; color: #fff; font-size: 18px; }
.book-choice-icon-alt { background: #1fae5b; }
.book-choice-text strong { display: block; font-size: 15px; color: #1a1a1a; margin-bottom: 3px; }
.book-choice-text small { display: block; font-size: 12.5px; line-height: 1.5; color: #6b6b6b; }
.book-choice-text small span { color: #8B6B2D; font-weight: 600; }
.book-choice-arrow { color: #b8932f; font-size: 12px; }
@media (max-width: 768px) {
    .book-choice { align-items: flex-end; padding: 0; }
    .book-choice-box { max-width: none; border-radius: 20px 20px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
    .book-choice-opt { padding: 14px; }
}
.book-choice-open .whatsapp-float { display: none !important; }
.btn-send-request[hidden] { display: none !important; }

/* ---------- "You may also like" under the tour (includes/related-tours.php, cards from css/tour-card.css) ---------- */
.related-tours { max-width: 1200px; margin: 10px auto 70px; padding: 0 24px; font-family: 'Montserrat', sans-serif; }
.related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.related-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #C6A43B; margin-bottom: 6px; }
.related-head h2 { margin: 0; font: 600 36px/1.15 'Cormorant Garamond', Georgia, serif; color: #1a1a1a; }
.related-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #8B6B2D; text-decoration: none; white-space: nowrap; }
.related-more:hover { text-decoration: underline; }
.related-tours .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) {
    .related-tours .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .related-tours { padding: 0 16px; margin-bottom: 110px; }   /* room above the mobile booking bar */
    .related-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
    .related-head h2 { font-size: 30px; }
    /* one row you can swipe, the next card peeking in */
    .related-tours .related-grid {
        display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%;
        gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
        scrollbar-width: none; scroll-padding-left: 16px;
    }
    .related-tours .related-grid::-webkit-scrollbar { display: none; }
    .related-tours .related-grid > .tc { scroll-snap-align: start; }
}
