/* ==========================================================================
   Tour detail page — td- prefix; depends on departures.css + tours-all.css
   ========================================================================== */
.td-hero { padding: 48px 0 40px; }
.td-hero:before { background: linear-gradient(90deg, rgba(21, 25, 25, .94) 0%, rgba(21, 25, 25, .78) 50%, rgba(21, 25, 25, .45) 100%); }
.td-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: end; }
.td-hero__copy .hx-title { font-size: 34px; margin-bottom: 8px; }
.td-hero__sub { color: var(--hx-yellow); font-size: 17px; font-style: italic; margin: 0 0 20px; }
.td-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.td-facts li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 8px 14px 8px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(21, 25, 25, .55);
    backdrop-filter: blur(4px);
}
.td-facts i { grid-row: 1 / 3; color: var(--hx-yellow); font-size: 18px; line-height: 1; }
.td-facts span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-muted); }
.td-facts strong { font-size: 14px; color: #fff; line-height: 1.2; }

.td-hero__book {
    padding: 18px 20px 16px;
    border-radius: 14px;
    background: rgba(21, 25, 25, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.td-hero__price { display: flex; flex-direction: column; color: #fff; font-size: 28px; font-weight: 700; line-height: 1.1; }
.td-hero__price small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-muted); font-weight: 700; margin-bottom: 4px; }
.td-hero__price em { font-style: normal; font-size: 12px; color: var(--hx-muted); font-weight: 400; margin-top: 4px; }
.td-hero__price--request { font-size: 22px; }
.td-btn--lg { justify-content: center; padding: 12px 18px; font-size: 14px; }
.td-btn--block { display: flex; justify-content: center; padding: 12px 18px; font-size: 14px; width: 100%; }
.td-hero__alt { font-size: 12px; color: var(--hx-muted) !important; text-align: center; }
.td-hero__alt span { color: var(--hx-yellow); font-weight: 700; }
.td-hero__alt:hover { text-decoration: none; color: #fff !important; }

.td-nav .at-jump__inner { gap: 6px; }
.td-nav__book { margin-left: auto; flex: 0 0 auto; }

.td-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.dp .td-grid:before, .dp .td-grid:after { display: none !important; }
.td-main { min-width: 0; }

.td-card {
    background: #fff;
    color: #3a3f3f;
    border-radius: 14px;
    padding: 26px 30px 28px;
    margin-bottom: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    scroll-margin-top: 120px;
}
.td-card .hx-eyebrow { color: #8a6f00; margin-bottom: 4px; }
.td-card__title { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: #151919; }
.td-card__title small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a8f8f; margin-left: 10px; }
.td-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.td-toggle-all { border: 1px solid #d9dcdc; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: #151919; cursor: pointer; white-space: nowrap; }
.td-toggle-all:hover { border-color: #151919; }

.td-prose { font-size: 15px; line-height: 1.8; text-align: justify; hyphens: auto; }
.td-prose p { margin: 0 0 14px; text-align: justify !important; }
.td-prose p:last-child { margin-bottom: 0; }
.td-prose strong, .td-prose b { color: #151919; }
.td-prose ul, .td-prose ol { padding-left: 22px; margin: 0 0 14px; }
.td-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.td-prose--sm { font-size: 14px; line-height: 1.75; }
.td-video { margin-top: 20px; border-radius: 10px; overflow: hidden; background: #000; }
.td-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }

.td-highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.td-highlights li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; }
.td-highlights i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--hx-yellow); color: #151919; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.td-highlights strong { color: #151919; }

.td-days { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ececec; }
.td-day { border-bottom: 1px solid #ececec; }
.td-day__head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 4px;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #151919;
}
.td-day__num { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 48px; border-radius: 10px; background: #151919; color: var(--hx-yellow); font-weight: 700; font-size: 18px; line-height: 1; }
.td-day__num small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #9aa3a3; margin-bottom: 3px; }
.td-day__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.td-day__head i { color: #9aa3a3; transition: transform .2s ease; }
.td-day.is-open .td-day__head i { transform: rotate(180deg); color: #151919; }
.td-day__body { display: none; padding: 0 4px 18px 76px; }
.td-day.is-open .td-day__body { display: block; }
.td-day__alt { display: block; max-width: 100%; height: auto; margin-top: 12px; border-radius: 8px; }

/* ---------- itinerary / gallery tabs ---------- */
.td-tabs__head { align-items: flex-end; margin: 4px 0 20px; border-bottom: 1px solid #ececec; }
.td-tabs__head .td-card__title { margin-bottom: 12px; }
.td-tabs__list { display: flex; gap: 4px; margin-bottom: -1px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.td-tabs__list::-webkit-scrollbar { display: none; }
.td-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #6b7070;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}
.td-tabs__tab i { color: #9aa3a3; font-size: 15px; }
.td-tabs__tab small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7070; padding: 3px 8px; border-radius: 999px; background: #f0f1f1; }
.td-tabs__tab:hover { color: #151919; }
.td-tabs__tab:hover i { color: #151919; }
.td-tabs__tab[aria-selected="true"] { color: #151919; border-bottom-color: var(--hx-yellow); }
.td-tabs__tab[aria-selected="true"] i { color: #151919; }
.td-tabs__tab[aria-selected="true"] small { background: #151919; color: var(--hx-yellow); }
.td-tabs__tab:focus-visible { outline: 2px solid var(--hx-yellow); outline-offset: -2px; border-radius: 6px; }
.td-tabs .td-toggle-all { margin-bottom: 11px; }
.td-tabs .td-days { border-top: 0; }
.td-tabs__panel { scroll-margin-top: 215px; } /* leaves room for the tab row above the panel when a #itinerary / #gallery link lands here */

.td-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.td-gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.td-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eee; }
.td-gallery li:first-child a { aspect-ratio: auto; height: 100%; }
.td-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.td-gallery a:hover img { transform: scale(1.05); }

.td-reviews { display: grid; gap: 14px; }
.td-review { margin: 0; padding: 18px 20px; border: 1px solid #ececec; border-radius: 12px; background: #fafafa; }
.td-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.td-review__head img, .td-review__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.td-review__avatar { display: inline-flex; align-items: center; justify-content: center; background: #151919; color: var(--hx-yellow); }
.td-review__head strong { display: block; color: #151919; font-size: 15px; }
.td-review__stars { color: #00aa6c; font-size: 10px; letter-spacing: 2px; }
.td-review__text { font-size: 14px; line-height: 1.7; }
.td-review__text p { margin: 0 0 8px; }
.td-review__text p:last-child { margin: 0; }
.td-review__text a { color: #151919; font-weight: 700; }
.td-review__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 700; color: #00aa6c !important; }
.td-map iframe { display: block; width: 100%; border: 0; border-radius: 10px; min-height: 420px; }

/* ---------- sidebar ---------- */
.td-side { position: sticky; top: 76px; }
.td-side__card { background: #fff; color: #3a3f3f; border-radius: 14px; border-top: 4px solid var(--hx-yellow); padding: 20px 22px 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); scroll-margin-top: 120px; }
.td-side__price { display: flex; flex-direction: column; margin-bottom: 14px; }
.td-side__price small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8f8f; font-weight: 700; }
.td-side__price strong { font-size: 30px; color: #151919; line-height: 1.1; }
.td-side__price span { font-size: 12px; color: #6b7070; }
.td-prices { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 13px; }
.td-prices th, .td-prices td { padding: 6px 0; border-bottom: 1px dashed #e4e6e6; text-align: left; font-weight: 400; }
.td-prices td { text-align: right; font-weight: 700; color: #151919; white-space: nowrap; }
.td-side__h { margin: 20px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8f8f; }
.td-dates { list-style: none; margin: 0; padding: 0; }
.td-dates li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #ececec; }
.td-dates__when strong { display: block; font-size: 14px; color: #151919; line-height: 1.3; }
.td-dates__when small { font-size: 11px; color: #6b7070; }
.td-status { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px solid #c9a400; color: #8a6f00; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.td-status--guaranteed { background: var(--hx-yellow); border-color: var(--hx-yellow); color: #151919; }
.td-status--full, .td-status--closed, .td-status--sold-out { border-color: #d9dcdc; color: #9aa3a3; }
.td-dates__book { font-size: 12px; font-weight: 700; color: #151919 !important; text-decoration: underline !important; }
.td-side__note { font-size: 13px; line-height: 1.6; margin: 0; }
.td-side__note a { color: #151919; font-weight: 700; }
.td-details { border-top: 1px solid #ececec; }
.td-details:first-of-type { margin-top: 18px; }
.td-details summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: #151919; }
.td-details summary::-webkit-details-marker { display: none; }
.td-details summary i { color: #1d9a4a; }
.td-details:nth-of-type(2) summary i { color: #c0392b; }
.td-details summary span { margin-left: auto; font-size: 11px; color: #8a8f8f; font-weight: 700; }
.td-details summary:after { content: '\f107'; font-family: FontAwesome; color: #9aa3a3; margin-left: 6px; transition: transform .2s ease; }
.td-details[open] summary:after { transform: rotate(180deg); }
.td-details__list { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; line-height: 1.55; }
.td-details__list li { position: relative; padding: 4px 0 4px 18px; }
.td-details__list li:before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 0; top: 5px; font-size: 10px; color: #1d9a4a; }
.td-details__list--ex li:before { content: '\f00d'; color: #c0392b; }

.td-side__help { margin-top: 16px; padding: 16px 20px; border: 1px solid var(--hx-line); border-radius: 14px; }
.td-side__help ul { list-style: none; margin: 0; padding: 0; }
.td-side__help li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.td-side__help li i { width: 18px; color: var(--hx-yellow); text-align: center; line-height: 1; }
.td-side__help a { color: #fff !important; }
.td-side__help a:hover { color: var(--hx-yellow) !important; }

.td-related { margin-top: 24px; }
.td-related .at-grid--bare { margin-bottom: 0; }

/* ---------- mobile booking bar ---------- */
.td-mobilebar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(21, 25, 25, .96);
    border-top: 1px solid var(--hx-line);
    backdrop-filter: blur(6px);
}
.td-mobilebar.is-hidden { display: none !important; }
.td-mobilebar__price { color: #fff; line-height: 1.1; }
.td-mobilebar__price small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-muted); }
.td-mobilebar__price strong { font-size: 18px; }

@media (max-width: 1199px) {
    .td-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
    .td-hero__grid { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 991px) {
    .td-hero__grid { grid-template-columns: 1fr; }
    .td-hero__book { max-width: 420px; }
    .td-grid { grid-template-columns: 1fr; }
    .td-side { position: static; }
    .td-nav { position: static; }
    .td-nav__book { display: none; }
    .td-highlights { grid-template-columns: 1fr; }
    .td-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .td-mobilebar { display: flex; }
    .td-card, .td-side__card { scroll-margin-top: 70px; }
    .td-tabs__panel { scroll-margin-top: 180px; }
}
@media (max-width: 580px) {
    .td-hero { padding: 32px 0 28px; }
    .td-hero:before { background: linear-gradient(rgba(21, 25, 25, .9), rgba(21, 25, 25, .86)); }
    .td-hero__copy .hx-title { font-size: 26px; }
    .td-facts { gap: 8px; }
    .td-facts li { padding: 6px 10px 6px 10px; }
    .td-card { padding: 20px 18px 22px; }
    .td-tabs__head { flex-wrap: wrap; align-items: center; }
    .td-tabs__list { order: 2; width: 100%; margin-top: 4px; }
    .td-tabs .td-toggle-all { order: 1; margin: 0 0 4px auto; }
    .td-tabs__tab { padding: 8px 10px 10px; font-size: 14px; gap: 7px; }
    .td-tabs__tab small { padding: 2px 6px; }
    .td-tabs__tab i { display: none; } /* keeps both tabs inside a 360-390px screen without a side scroll */
    .td-day__head { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
    .td-day__num { width: 48px; height: 44px; font-size: 16px; }
    .td-day__body { padding-left: 0; }
    .td-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-dates li { grid-template-columns: minmax(0, 1fr) auto; }
    .td-dates__book { grid-column: 1 / -1; justify-self: start; }
    .dp-list { padding-bottom: 80px; }
}

/* ---------- 2026-10-19 refinements ---------- */
/* 1. hero closes with a yellow rule; no gap before the page nav */
.td-hero { border-bottom: 3px solid var(--hx-yellow); padding-bottom: 36px; }
.td-nav { border-top: 0; }
/* 3. page nav: tab-like links with an active underline instead of pills */
.td-nav .at-jump__inner { gap: 2px; padding-top: 0; padding-bottom: 0; }
.td-nav .at-jump__link { border: 0; border-radius: 0; padding: 15px 14px 13px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .72) !important; border-bottom: 3px solid transparent; letter-spacing: .01em; }
.td-nav .at-jump__link:hover, .td-nav .at-jump__link:focus { color: #fff !important; border-bottom-color: rgba(255, 208, 0, .5); }
.td-nav .at-jump__link.is-active { color: #fff !important; border-bottom-color: var(--hx-yellow); }
.td-nav__book { margin: 8px 0 8px auto; }
/* 4. itinerary / gallery tabs: fewer elements */
.td-tabs__head { margin: 0 0 20px; align-items: flex-end; }
.td-tabs__tab { gap: 8px; padding: 6px 2px 12px; margin-right: 26px; font-size: 18px; }
.td-tabs__tab small { background: none !important; padding: 0; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #9aa3a3 !important; }
.td-tabs__tab[aria-selected="true"] small { color: #6b7070 !important; }
.td-tabs .td-toggle-all { margin-bottom: 12px; }
/* 5. highlights: plain list, as on the previous site */
.td-highlights { display: block; padding-left: 20px; list-style: disc; }
.td-highlights li { display: list-item; font-size: 15px; line-height: 1.7; margin-bottom: 8px; color: #3a3f3f; }
.td-highlights li::marker { color: #8a6f00; }
/* 2. day facts chips */
.td-day__facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.td-day__facts li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px 12px 7px 10px; border-radius: 10px; background: #f6f6f3; border: 1px solid #ebebe6; }
.td-day__facts i { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 8px; background: #151919; color: var(--hx-yellow); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.td-day__facts span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #8a8f8f; line-height: 1.2; }
.td-day__facts strong { font-size: 13px; color: #151919; line-height: 1.25; }
@media (max-width: 580px) {
    .td-tabs__tab { font-size: 16px; margin-right: 16px; }
    .td-nav .at-jump__link { padding: 12px 10px; }
}

/* highlights: numbered, titled items in two columns (2026-10-19) */
.td-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 0; list-style: none; }
.td-highlights li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid #ececec; border-radius: 12px; background: #fafaf8; margin: 0; }
.td-highlights li::marker { content: none; }
.td-highlights__num { width: 30px; height: 30px; border-radius: 9px; background: #151919; color: var(--hx-yellow); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.td-highlights__title { display: block; color: #151919; font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.td-highlights p { margin: 0; font-size: 14px; line-height: 1.6; color: #4a4f4f; text-align: left; }
@media (max-width: 767px) { .td-highlights { grid-template-columns: 1fr; } }
