/* ============================================
   TREK DETAIL — Experiences layout, tightened
   ============================================ */

.page-trek-detail.page-cultural-heritage {
    --td-gold: var(--ch-brass-light);
}

body.page-trek-detail.page-cultural-heritage.td-lux {
    background: var(--ch-navy) !important;
    color: var(--ch-text);
}

.page-trek-detail.td-lux .hq-trek-page {
    display: none !important;
}

.page-trek-detail.td-lux .td-page {
    max-width: none;
    padding: 0;
    margin: 0;
}

.page-trek-detail.page-cultural-heritage .ch-hero {
    min-height: 0;
    height: auto;
    padding-bottom: 0.85rem;
}

.page-trek-detail .ch-hero-inner {
    padding-bottom: 0.35rem;
}

.page-trek-detail .ch-hero-label {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    margin-bottom: 0.45rem;
}

.page-trek-detail .ch-hero-title {
    font-size: clamp(1.7rem, 3.8vw, 2.55rem);
    margin-bottom: 0.7rem;
    line-height: 1.12;
}

.page-trek-detail .ch-hero-tagline {
    font-size: clamp(0.82rem, 1.25vw, 0.95rem);
    margin-bottom: 1.1rem;
    line-height: 1.5;
}

.page-trek-detail .ch-hero-cta,
.page-trek-detail .ch-hero-cta-ghost {
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0.7rem 1.25rem;
}

@media (max-width: 768px) {
    .page-trek-detail.page-cultural-heritage .ch-hero {
        padding-bottom: 0.85rem;
    }

    .page-trek-detail .ch-hero-inner {
        padding-bottom: 0.35rem;
        padding-top: calc(var(--nav-bar-height, 64px) + env(safe-area-inset-top, 0px) + 0.85rem);
    }

    .page-trek-detail .ch-hero-label {
        font-size: 0.52rem;
        margin-bottom: 0.3rem;
    }

    .page-trek-detail .ch-hero-title {
        font-size: clamp(1.2rem, 5vw, 1.55rem);
        margin-bottom: 0.4rem;
        max-width: 18ch;
    }

    .page-trek-detail .ch-hero-tagline {
        font-size: 0.72rem;
        margin-bottom: 0.7rem;
        line-height: 1.4;
    }

    .page-trek-detail .ch-hero-cta,
    .page-trek-detail .ch-hero-cta-ghost {
        font-size: 0.55rem;
        padding: 0.45rem 0.7rem;
        letter-spacing: 0.05em;
    }
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem 0.55rem;
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g2,
.page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-photo {
    aspect-ratio: 16 / 10;
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

.page-trek-detail .td-ch-polaroids .ch-polaroid-caption {
    font-size: 0.78rem;
}

.page-trek-detail .td-ch-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0;
}

.page-trek-detail .td-ch-days .ch-tour-card {
    padding: 0.95rem 1rem 1.05rem;
}

.page-trek-detail .td-ch-days .ch-tour-card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    font-style: normal;
    color: #f3eee6;
}

.page-trek-detail .td-ch-days .ch-tour-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(243, 238, 230, 0.78);
}

.page-trek-detail .td-day-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.page-trek-detail .td-day-card:hover,
.page-trek-detail .td-day-card:focus-visible {
    border-color: rgba(197, 160, 89, 0.55);
    transform: translateY(-2px);
    outline: none;
}

.page-trek-detail .td-day-card-cta {
    margin-top: auto;
    padding-top: 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--td-gold, #c5a059);
}

.page-trek-detail .td-day-card-cta i {
    margin-left: 0.35rem;
    font-size: 0.65rem;
}

.page-trek-detail .td-day-detail {
    padding: 1.35rem 1.4rem 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.35);
    background: linear-gradient(180deg, rgba(32, 28, 22, 0.72) 0%, rgba(12, 11, 10, 0.55) 100%);
    border-radius: 10px;
}

.page-trek-detail .td-day-detail[hidden],
.page-trek-detail .td-ch-days[hidden] {
    display: none !important;
}

.page-trek-detail .td-day-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0;
    background: none;
    border: 0;
    color: var(--td-gold, #c5a059);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.page-trek-detail .td-day-detail-back:hover,
.page-trek-detail .td-day-detail-back:focus-visible {
    color: #fff;
    outline: none;
}

.page-trek-detail .td-day-detail h3 {
    font-family: var(--td-serif, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 600;
    font-style: normal;
    color: #f3eee6;
    margin: 0.2rem 0 0.85rem;
}

.page-trek-detail .td-day-detail .ch-tour-time {
    color: var(--td-gold, #c5a059);
}

.page-trek-detail .td-day-detail-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(243, 238, 230, 0.86);
}

.page-trek-detail .td-day-detail-body p {
    margin: 0 0 0.85rem;
}

.page-trek-detail .td-day-detail-fact {
    font-size: 0.88rem !important;
    color: rgba(243, 238, 230, 0.9) !important;
}

.page-trek-detail .td-day-detail-fact strong {
    color: rgba(243, 238, 230, 0.7);
    font-weight: 600;
}

.page-trek-detail .td-ch-map-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(30, 70, 130, 0.14), transparent 60%),
        var(--ch-navy);
}

.page-trek-detail .td-ch-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.8fr);
    gap: 0.9rem;
    align-items: stretch;
}

.page-trek-detail .td-ch-map-layout.td-ch-map-solo {
    grid-template-columns: 1fr;
}

.page-trek-detail .td-ch-map-frame {
    border: 1px solid rgba(110, 160, 220, 0.28);
    background: rgba(8, 18, 36, 0.7);
    overflow: hidden;
    min-height: 420px;
}

.page-trek-detail .td-ch-map-frame .td-map,
.page-trek-detail .td-ch-map-frame #tdLuxMap {
    height: 420px;
    width: 100%;
}

.page-trek-detail .td-map .leaflet-tile-pane,
.page-trek-detail .td-map .td-map-tiles,
.page-trek-detail.page-cultural-heritage .td-map .leaflet-tile-pane,
.page-trek-detail.page-cultural-heritage .td-map .td-map-tiles {
    filter: none !important;
}

.page-trek-detail .td-ch-map-frame .leaflet-container {
    background: #e8eef4;
    font-family: inherit;
    height: 100%;
}

.page-trek-detail .td-ch-map-frame .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.86) !important;
    color: #5a6a7c !important;
    font-size: 0.62rem;
}

.page-trek-detail .td-ch-map-frame .leaflet-control-attribution a {
    color: #1a4a8c !important;
}

.page-trek-detail .td-ch-map-frame .leaflet-control-zoom a {
    background: #ffffff !important;
    color: #1a4a8c !important;
    border-color: #c5d0de !important;
}

.page-trek-detail .td-ch-map-frame .leaflet-control-zoom a:hover {
    background: #f3f6fa !important;
    color: #0d2f5c !important;
}

.page-trek-detail .td-ch-map-frame .leaflet-popup-content-wrapper {
    background: #ffffff;
    color: #1a2433;
    border: 1px solid #d4deea;
    border-radius: 4px;
    box-shadow: 0 8px 22px rgba(10, 24, 48, 0.18);
}

.page-trek-detail .td-ch-map-frame .leaflet-popup-content-wrapper strong {
    color: #1a4a8c;
    font-family: var(--ch-font-serif);
    font-style: italic;
}

.page-trek-detail .td-ch-map-frame .leaflet-popup-content-wrapper span {
    color: #5a6a7c;
}

.page-trek-detail .td-ch-map-frame .leaflet-popup-tip {
    background: #ffffff;
}

.page-trek-detail .td-map-tip {
    background: #ffffff;
    color: #1a2433;
    border: 1px solid #c5d0de;
    border-radius: 3px;
    box-shadow: none;
    padding: 0.2rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.page-trek-detail .td-map-tip::before {
    border-top-color: #ffffff;
}

.page-trek-detail .td-ch-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a4a8c;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(10, 24, 48, 0.35);
}

.page-trek-detail .td-ch-stops {
    list-style: none;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(110, 160, 220, 0.22);
    background: linear-gradient(180deg, rgba(20, 48, 88, 0.5) 0%, rgba(10, 26, 52, 0.4) 100%);
    max-height: 420px;
    overflow: auto;
}

.page-trek-detail .td-ch-stops li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-trek-detail .td-ch-stops li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.page-trek-detail .td-ch-stops li:first-child {
    padding-top: 0;
}

.page-trek-detail .td-ch-stops span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ch-brass-light);
    padding-top: 0.2rem;
}

.page-trek-detail .td-ch-stops strong {
    display: block;
    font-family: var(--ch-font-serif);
    font-size: 1.02rem;
    font-weight: 600;
    font-style: italic;
    color: #f3f6fb;
}

.page-trek-detail .td-ch-stops em {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--ch-text-muted);
    margin-top: 0.12rem;
}

.page-trek-detail .td-ch-faq-section .ch-kicker {
    font-size: 0.55rem;
}

.page-trek-detail .td-ch-faq-section .ch-section-title {
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.page-trek-detail .td-ch-faq-section .ch-section-lead {
    font-size: 0.78rem;
}

.page-trek-detail .td-ch-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.85rem;
}

.page-trek-detail .td-ch-faq .td-acc {
    border: 1px solid rgba(126, 182, 217, 0.38);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(16, 32, 56, 0.78) 0%, rgba(8, 18, 36, 0.62) 100%);
}

.page-trek-detail .td-ch-faq .td-acc.is-open {
    background: linear-gradient(180deg, rgba(22, 42, 72, 0.88) 0%, rgba(10, 22, 44, 0.72) 100%);
    border-color: rgba(197, 160, 89, 0.45);
}

.page-trek-detail .td-ch-faq .td-acc__trigger {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.05rem 1.15rem;
    min-height: 0;
    color: #f3eee6;
}

.page-trek-detail .td-ch-faq .td-acc__title {
    font-family: var(--ch-font-sans, "Outfit", "DM Sans", sans-serif);
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    color: #f3eee6;
    line-height: 1.4;
}

.page-trek-detail .td-ch-faq .td-acc__chevron {
    width: 0.55rem;
    height: 0.55rem;
    color: #c5a059;
    border-right: 2px solid #c5a059;
    border-bottom: 2px solid #c5a059;
    transform: rotate(45deg);
    margin-top: -0.2rem;
    flex-shrink: 0;
}

.page-trek-detail .td-ch-faq .td-acc.is-open .td-acc__chevron {
    transform: rotate(225deg);
    margin-top: 0.15rem;
}

.page-trek-detail .td-ch-faq .td-acc__panel {
    border-top: 1px solid rgba(197, 160, 89, 0.22);
    padding: 0 1.15rem 1.1rem;
}

.page-trek-detail .td-ch-faq .td-acc__panel p {
    margin: 0.7rem 0 0;
    color: rgba(243, 238, 230, 0.86);
    font-size: 0.95rem;
    line-height: 1.7;
}

.page-trek-detail .ch-cta-bg.td-ch-cta-photo {
    background-size: cover;
    background-position: center 42%;
    filter: saturate(0.55) contrast(1.02) brightness(0.38);
}

@media (max-width: 1024px) {
    .page-trek-detail .td-ch-polaroids .ch-polaroid-track {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.7rem 0.55rem !important;
    }

    .page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g2,
    .page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .page-trek-detail .td-ch-polaroids .ch-polaroid-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .page-trek-detail .td-ch-polaroids .ch-polaroid-caption {
        font-size: 0.78rem;
    }

    .page-trek-detail .td-ch-days {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-trek-detail .td-ch-days .ch-tour-card--wide {
        grid-column: span 2;
    }

    .page-trek-detail .td-ch-map-layout,
    .page-trek-detail .td-ch-faq {
        grid-template-columns: 1fr;
    }

    .page-trek-detail .td-ch-map-frame,
    .page-trek-detail .td-ch-map-frame .td-map,
    .page-trek-detail .td-ch-map-frame #tdLuxMap,
    .page-trek-detail .td-ch-stops {
        min-height: 320px;
        height: 320px;
        max-height: 320px;
    }

    .page-trek-detail .td-ch-stops {
        height: auto;
        min-height: 0;
        max-height: 240px;
    }
}

@media (max-width: 560px) {
    .page-trek-detail .td-ch-polaroids .ch-polaroid-track,
    .page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g3,
    .page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g2,
    .page-trek-detail .td-ch-polaroids .ch-polaroid-track.td-ch-g1 {
        grid-template-columns: 1fr 1fr !important;
    }

    .page-trek-detail .td-ch-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-trek-detail .td-ch-days .ch-tour-card--wide {
        grid-column: auto;
    }
}
