/* ===================================
   Package detail — redesign layer
   Loaded after the page's inline <style>, so everything here overrides it.
   Remove the <link> to this file in templates/core/package_detail.html to
   fall back to the previous look.
   =================================== */

:root {
    --pd-ink: #1E2F4D;
    --pd-body: #4B5563;
    --pd-muted: #6B7280;
    --pd-line: #ECEAE3;
    --pd-paper: #FAF9F6;
    --pd-radius: 16px;
    --pd-nav-h: 76px;
    --pd-subnav-h: 56px;
}

/* ----- Breadcrumb ----- */
.pd-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 6px 0 14px;
    font-size: 0.82rem;
    color: var(--pd-muted);
}
.pd-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pd-breadcrumb li + li::before {
    content: '';
    width: 5px; height: 5px;
    border-top: 1.5px solid #B8BDC6;
    border-right: 1.5px solid #B8BDC6;
    transform: rotate(45deg);
    margin-right: 4px;
}
.pd-breadcrumb a { color: var(--pd-muted); text-decoration: none; transition: color 0.2s ease; }
.pd-breadcrumb a:hover { color: var(--primary-color); }
.pd-breadcrumb [aria-current] span {
    color: var(--pd-ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42ch;
    display: inline-block;
}

/* ----- Hero mosaic ----- */
.package-hero { padding-top: 12px; }
.package-mosaic {
    height: 500px;
    gap: 8px;
    border-radius: var(--pd-radius);
    overflow: hidden;
}
.mosaic-main { border-radius: 0; }
/* The caption used to sit on the bare photo — a bright sky made the white
   title unreadable. A bottom-weighted scrim keeps it legible on any image. */
.mosaic-main-scrim {
    top: 35%;
    background: linear-gradient(180deg, rgba(16,26,52,0) 0%, rgba(16,26,52,0.55) 55%, rgba(16,26,52,0.85) 100%);
    pointer-events: none;
}
.mosaic-main-caption { padding: 32px 36px; }
.mosaic-main-caption h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 22ch;
    text-shadow: 0 2px 18px rgba(0,0,0,0.25);
    margin-bottom: 8px;
}
.mosaic-eyebrow {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    margin-bottom: 12px;
}
.mosaic-main-caption .region-line { margin: 0; font-size: 0.98rem; }
.mosaic-zoom-hint { width: 38px; height: 38px; top: 16px; right: 16px; }
.mosaic-tile { background: var(--pd-paper); }
.mosaic-tile.mosaic-stat { background: #F3F6F1; gap: 6px; }
.mosaic-stat .stat-value { font-size: 1.1rem; }
.mosaic-stat .stat-label { color: var(--pd-muted); }
@media (max-width: 991.98px) {
    .package-mosaic { height: auto; grid-template-rows: 320px 110px 110px; }
    .mosaic-main-caption { padding: 22px 22px; }
}
@media (max-width: 575.98px) {
    .package-mosaic { grid-template-rows: 260px 96px 96px; border-radius: 12px; gap: 6px; }
    .mosaic-main-caption { padding: 18px 16px; }
    .pd-breadcrumb [aria-current] span { max-width: 22ch; }
}

/* ----- Key trip specs ----- */
.trip-facts-section { margin-top: 20px; }
.trip-facts-card {
    border-color: var(--pd-line);
    border-radius: var(--pd-radius);
    padding: 28px;
    margin-top: 0;
    box-shadow: 0 1px 2px rgba(16,26,52,0.04);
}
.trip-facts-head h2 { font-size: 1.3rem; letter-spacing: -0.01em; }
.trip-facts { gap: 12px; }
.trip-fact {
    background: #fff;
    border-color: var(--pd-line);
    padding: 16px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.trip-fact:hover { border-color: #D6E9D9; box-shadow: 0 4px 14px rgba(16,26,52,0.06); }
.trip-fact-icon { background: var(--primary-light); border: none; }
.trip-fact .fact-label { color: var(--pd-muted); }
.trip-fact .fact-note { color: var(--pd-muted); }

/* ----- Sticky section nav ----- */
.pd-subnav {
    position: sticky;
    top: var(--pd-nav-h);
    z-index: 20;
    margin-top: 24px;
    background: #fff;
    border-top: 1px solid var(--pd-line);
    border-bottom: 1px solid var(--pd-line);
    transition: box-shadow 0.2s ease;
}
.pd-subnav.is-stuck { box-shadow: 0 6px 20px rgba(16,26,52,0.08); }
.pd-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
}
.pd-subnav-links {
    position: relative;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}
.pd-subnav-links::-webkit-scrollbar { display: none; }
.pd-subnav-links a {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pd-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.pd-subnav-links a::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: -6px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.pd-subnav-links a:hover { color: var(--secondary-color); }
.pd-subnav-links a.is-active { color: var(--secondary-color); }
.pd-subnav-links a.is-active::after { transform: scaleX(1); }
.pd-subnav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.pd-subnav.is-stuck .pd-subnav-cta { opacity: 1; visibility: visible; transform: none; }
.pd-subnav-price { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.pd-subnav-price small { font-size: 0.68rem; color: var(--pd-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.pd-subnav-price strong { font-size: 1.05rem; color: var(--pd-ink); }
.pd-subnav-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.pd-subnav-btn:hover { background: var(--primary-dark); color: #fff; }
@media (max-width: 991.98px) {
    /* The site's mobile CTA bar already covers booking on small screens */
    .pd-subnav-cta { display: none; }
    .pd-subnav-links a { padding: 0 12px; font-size: 0.86rem; }
}

/* Anchored sections land below both sticky bars, not under them */
.pd-body [id^="sec-"],
#book-this-tour {
    scroll-margin-top: calc(var(--pd-nav-h) + var(--pd-subnav-h) + 16px);
}

/* ----- Body & content cards ----- */
.pd-body { padding: 28px 0 64px; }
.content-card {
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(16,26,52,0.04);
}
.content-card-head {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
    gap: 14px;
}
.content-card-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; }
.content-eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; margin-bottom: 4px; }
.content-card-head h2 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.25; }
.content-card p,
.rich-content,
.highlight-list li { font-size: 0.98rem; line-height: 1.7; }
/* Overview preview — long descriptions fold to ~12 lines */
.pd-clamp {
    max-height: 340px;
    overflow: hidden;
    position: relative;
}
.pd-clamp::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
    pointer-events: none;
}
.pd-clamp.is-open { max-height: none; }
.pd-clamp.is-open::after { display: none; }
.pd-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 6px 0 4px;
    padding: 0 18px;
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pd-ink);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.pd-readmore:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pd-readmore i { font-size: 0.72rem; transition: transform 0.2s ease; }
.pd-readmore.is-open i { transform: rotate(180deg); }
@media (max-width: 575.98px) {
    .content-card { padding: 22px 18px; border-radius: 14px; }
    .content-card-head h2 { font-size: 1.2rem; }
    .content-card p, .rich-content, .highlight-list li { font-size: 1rem; }
}

/* Constant looping icons pulled focus away from the text — keep them still */
.trip-fact-icon i,
.highlight-list li i,
.safety-list li i { animation: none !important; }

/* Trip Highlights keep the pointing hand, in the logo's blue; the
   "Why Choose" list keeps its green thumb-up discs. */
.highlight-list { gap: 12px 28px; }
.highlight-list li i {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    margin-top: 4px;
}
.highlight-list li i.fa-hand-point-right {
    width: auto; height: auto;
    border-radius: 0;
    background: none;
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 5px;
}

/* Included / excluded */
.coverage-box { border-radius: 12px; padding: 18px 20px; border: 1px solid transparent; }
.coverage-include { background: #F2FAF4; border-color: #DCEFE0; }
.coverage-exclude { background: #FDF5F4; border-color: #F6E1DE; }
.coverage-box ul li { padding: 4px 0; line-height: 1.55; }

.safety-box { border-radius: 12px; background: #F3F8FD; border-left-width: 3px; padding: 18px 20px; }

.pd-packing-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
@media (max-width: 575.98px) { .pd-packing-list { grid-template-columns: 1fr; } }

/* ----- Itinerary as a timeline ----- */
.itin-day {
    position: relative;
    padding: 0 0 0 64px;
}
.itin-day::before {
    content: '';
    position: absolute;
    left: 21px; top: 44px; bottom: -4px;
    width: 2px;
    background: repeating-linear-gradient(180deg, #D6E9D9 0 6px, transparent 6px 11px);
}
.itin-day:last-child::before { display: none; }
.itin-day-divider { border-bottom: none; }
.itin-day + .itin-day { margin-top: 6px; }
.itin-day-title {
    min-height: 48px;
    padding: 8px 12px 8px 0;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}
.itin-day-title:hover { color: var(--primary-dark); }
.itin-daynum {
    position: absolute;
    left: 0; top: 2px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #D6E9D9;
    color: var(--pd-ink);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.itin-daynum small {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-muted);
    margin-bottom: 2px;
    transition: color 0.2s ease;
}
.itin-day.is-open .itin-daynum,
.itin-day-title:hover .itin-daynum {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.itin-day.is-open .itin-daynum small,
.itin-day-title:hover .itin-daynum small { color: rgba(255,255,255,0.8); }
.itin-day-text { flex: 1; min-width: 0; }
.itin-day-title .itin-chevron {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--pd-paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
.itin-day-body { padding: 6px 0 22px; }
.itin-chip { background: var(--pd-paper); border: 1px solid var(--pd-line); }
.btn-toggle-all-itinerary { min-height: 36px; padding: 6px 16px; }
@media (max-width: 575.98px) {
    .itin-day { padding-left: 54px; }
    .itin-daynum { width: 40px; height: 40px; font-size: 0.82rem; }
    .itin-day::before { left: 19px; top: 40px; }
}

/* ----- FAQ, departures, reviews ----- */
.faq-item { border-color: var(--pd-line); border-radius: 12px; }
.faq-question { background: #fff; min-height: 52px; padding: 14px 18px; font-size: 0.96rem; }
.faq-question:hover { background: var(--pd-paper); }
.faq-answer { font-size: 0.95rem; }

.content-card-cta { background: linear-gradient(180deg, #F6FBF7 0%, #fff 100%); border-color: #DCEFE0; }
.departure-item { border-color: var(--pd-line); border-radius: 12px; padding: 14px 18px; box-shadow: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.departure-item:not(.departure-full):hover { border-color: #CDE6D2; box-shadow: 0 4px 14px rgba(16,26,52,0.06); }
.btn-dep-join { min-height: 38px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }

.review-form-box { border-color: var(--pd-line); border-radius: 14px; padding: 22px; }
.review-card { background: #fff; border: 1px solid var(--pd-line); border-radius: 14px; padding: 18px 20px; }
.rating-stars, .star-rating-input { color: #E0A526; }
.star-rating-input i { padding: 4px 2px; }

.related-card { border-color: var(--pd-line); border-radius: 14px; transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.related-card:hover { transform: none; border-color: #D6E9D9; box-shadow: 0 10px 24px rgba(16,26,52,0.1); }
.related-card-img { height: 170px; }
.related-card h6 { color: var(--pd-ink); font-weight: 700; line-height: 1.35; }

.gallery-thumb { border-radius: 12px; }
.gallery-thumb img { height: 130px; }

/* ----- Booking card ----- */
.booking-form-card {
    top: calc(var(--pd-nav-h) + var(--pd-subnav-h) + 16px);
    /* No inner scrollbar — the card is compact enough to fit as-is */
    max-height: none;
    overflow: visible;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    padding: 0 0 16px;
    box-shadow: 0 12px 32px rgba(16,26,52,0.1);
}
.booking-form-card > form,
.booking-form-card > .pd-book-title,
.booking-form-card > .pd-trust { margin-left: 18px; margin-right: 18px; }
.pd-price-block {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--pd-radius) var(--pd-radius) 0 0;
    margin-bottom: 14px;
}
.pd-price-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    margin-bottom: 4px;
}
.pd-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.pd-price-block .pd-price { color: #fff; font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; }
.pd-price-unit { font-size: 0.85rem; color: rgba(255,255,255,0.9); }
.pd-price-was {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    text-decoration: line-through;
}
.pd-price-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}
.pd-price-rating i { color: #F2C14E; }
.pd-price-rating span { color: rgba(255,255,255,0.88); font-weight: 400; }
.pd-price-rating:hover span { text-decoration: underline; }
.pd-book-title { font-size: 0.98rem; font-weight: 700; color: var(--pd-ink); margin-bottom: 10px; }
.booking-form-compact .form-control,
.booking-form-compact .form-select {
    min-height: 40px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 0.9rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
}
.booking-form-compact textarea.form-control { min-height: 0; height: 64px; resize: vertical; }
.booking-form-compact .mb-2 { margin-bottom: 8px !important; }
.booking-form-compact .mb-3 { margin-bottom: 12px !important; }
.booking-form-compact .form-control:focus,
.booking-form-compact .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1,149,36,0.15);
}
.booking-form-compact .form-label { font-size: 0.78rem; font-weight: 600; color: var(--pd-ink); }
.choices__inner { min-height: 40px; display: flex; align-items: center; border-radius: 10px; }
.date-mode-btn { min-height: 36px; font-size: 0.8rem; }
.pd-book-btn {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.pd-book-btn:hover,
.pd-book-btn:focus-visible {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(1,149,36,0.25);
}
.pd-trust {
    list-style: none;
    padding: 12px 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--pd-line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--pd-body);
}
.pd-trust li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.pd-trust i { color: var(--primary-color); width: 16px; text-align: center; margin-top: 2px; flex-shrink: 0; }
@keyframes pdBookingPulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(16,26,52,0.1); }
    30% { box-shadow: 0 12px 32px rgba(16,26,52,0.1), 0 0 0 4px rgba(1,149,36,0.3); }
}
.booking-form-card.booking-highlight { animation: pdBookingPulse 1.4s ease; }
/* Date picker header — same logo blue as the price block above it */
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
.flatpickr-weekday,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: var(--secondary-color) !important;
}
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--secondary-color); }
.flatpickr-calendar.arrowBottom::after { border-top-color: var(--secondary-color); }
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--secondary-light) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover,
.flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}
.flatpickr-day:hover { background: var(--secondary-light) !important; }
.flatpickr-day.today { border-color: var(--secondary-color) !important; }

/* On short screens the full card can't fit under the sticky bars, so let it
   scroll with the page instead of clipping the Book Now button */
@media (max-height: 760px) {
    .booking-form-card { position: static; }
}
@media (max-width: 991.98px) {
    .booking-form-card { position: static; max-height: none; overflow: visible; margin-top: 8px; }
}

/* ----- Keyboard focus ----- */
.pd-body a:focus-visible,
.pd-body button:focus-visible,
.pd-body [role="button"]:focus-visible,
.pd-subnav a:focus-visible,
.pd-breadcrumb a:focus-visible,
.mosaic-clickable:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ===================================
   Brand colour roles — the logo's two colours, each with one job:
   BLUE  (#0174CD) = information & navigation: section icons, eyebrows,
                     specs, itinerary markers, links, active/focus states
   GREEN (#019524) = action & positive outcomes: Book/Join buttons,
                     included items, guaranteed/best badges, trust ticks
   =================================== */
:root {
    --pd-blue: var(--secondary-color, #0174CD);
    --pd-blue-dark: var(--secondary-dark, #045A9E);
    --pd-blue-soft: #E8F2FC;
    --pd-green: var(--primary-color, #019524);
    --pd-green-soft: var(--primary-light, #D7F2DC);
}

/* Section headers */
.content-card-icon { background: var(--pd-blue-soft); color: var(--pd-blue); }
.content-eyebrow { color: var(--pd-blue); }
.review-count-badge { background: var(--pd-blue-soft); color: var(--pd-blue); }

/* Trip specs & hero stat tiles */
.trip-fact-icon { background: var(--pd-blue-soft); }
.trip-fact-icon i,
.mosaic-stat i { color: var(--pd-blue); }
.trip-fact:hover { border-color: #C9E0F5; }

/* Best season line — reads as information, not a success state */
.best-season-line { color: var(--pd-body) !important; }
.best-season-line i,
.best-season-line strong { color: var(--pd-blue); }

/* Itinerary timeline */
.itin-day::before { background: repeating-linear-gradient(180deg, #C9E0F5 0 6px, transparent 6px 11px); }
.itin-daynum { border-color: #C9E0F5; }
.itin-day.is-open .itin-daynum,
.itin-day-title:hover .itin-daynum { background: var(--pd-blue); border-color: var(--pd-blue); }
.itin-day-title:hover { color: var(--pd-blue-dark); }
.itin-chip i { color: var(--pd-blue); }
.btn-show-more-reviews:hover,
.btn-view-gallery:hover,
.pd-readmore:hover { border-color: var(--pd-blue); color: var(--pd-blue); }

/* Itinerary journey gradient — blue at arrival, green at the finish.
   --itin-p (0→1) is set per day by the page script; browsers without
   color-mix() keep the plain blue timeline above. */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .itin-day {
        --itin-c: color-mix(in srgb, var(--pd-green) calc(var(--itin-p, 0) * 100%), var(--pd-blue));
        --itin-c-next: color-mix(in srgb, var(--pd-green) calc(var(--itin-p-next, 0) * 100%), var(--pd-blue));
    }
    .itin-day::before {
        background: linear-gradient(180deg, var(--itin-c), var(--itin-c-next));
        opacity: 0.7;
        -webkit-mask: repeating-linear-gradient(180deg, #000 0 6px, transparent 6px 11px);
                mask: repeating-linear-gradient(180deg, #000 0 6px, transparent 6px 11px);
    }
    .itin-daynum {
        border-color: color-mix(in srgb, var(--itin-c) 70%, #fff);
        color: color-mix(in srgb, var(--itin-c) 80%, var(--pd-ink));
    }
    .itin-daynum small { color: color-mix(in srgb, var(--itin-c) 70%, #fff); }
    .itin-day.is-open .itin-daynum,
    .itin-day-title:hover .itin-daynum {
        background: var(--itin-c);
        border-color: var(--itin-c);
        color: #fff;
    }
    .itin-day-title:hover { color: color-mix(in srgb, var(--itin-c) 75%, var(--pd-ink)); }
    .itin-day.is-open .itin-chevron { background: color-mix(in srgb, var(--itin-c) 12%, #fff); color: var(--itin-c); }
}
/* Day facts: elevation in blue (information), duration in green (effort) */
.itin-chip:has(.fa-mountain) { background: var(--pd-blue-soft); border-color: #C9E0F5; }
.itin-chip:has(.fa-mountain) i { color: var(--pd-blue); }
.itin-chip:has(.fa-clock) { background: var(--pd-green-soft); border-color: #BFE6C8; }
.itin-chip:has(.fa-clock) i { color: var(--pd-green); }
/* Expand All mirrors the journey: blue outline, green when hovered */
.btn-toggle-all-itinerary { border-color: #C9E0F5; color: var(--pd-blue); }
.btn-toggle-all-itinerary:hover { border-color: var(--pd-green); color: var(--pd-green); background: #F2FAF4; }

/* Briefing, FAQ, breadcrumbs, links */
.briefing-icon { background: var(--pd-blue-soft); color: var(--pd-blue); }
.faq-question i { color: var(--pd-blue); }
.faq-question.active { color: var(--pd-blue-dark); }
.pd-breadcrumb a:hover { color: var(--pd-blue); }
.related-price { color: var(--pd-blue); }
.related-card:hover { border-color: #C9E0F5; }

/* Green keeps the "go" moments */
.highlight-list li i:not(.fa-hand-point-right) { background: var(--pd-green-soft); color: var(--pd-green); }
.pd-trust i,
.safety-list li i { color: var(--pd-green); }
.content-card-cta { background: linear-gradient(180deg, #F2FAF4 0%, #fff 100%); border-color: #DCEFE0; }

/* Booking card — blue price block with a green underline, like the logo's
   blue globe and green swoosh; form focus in blue, the Book button green */
.pd-price-block { border-bottom: 3px solid var(--pd-green); }
.booking-form-compact .form-control:focus,
.booking-form-compact .form-select:focus,
.choices.is-open .choices__inner,
.choices.is-focused .choices__inner {
    border-color: var(--pd-blue);
    box-shadow: 0 0 0 3px rgba(1,116,205,0.15);
}
.choices__list--dropdown,
.choices__list[aria-expanded] { border-color: var(--pd-blue); }
.choices__list--dropdown .choices__item--selectable.is-highlighted { background: var(--pd-blue-soft); }
.date-mode-btn.active { color: var(--pd-blue); }

/* Off-brand beige/tan text from the original page → neutral ink & slate */
.season-table th,
.mosaic-stat .stat-label { color: var(--pd-muted); }
.season-table th { border-bottom-color: var(--pd-line); }
.season-table td { border-bottom-color: #F0F2F5; }

/* Focus rings follow the navigation colour */
.pd-body a:focus-visible,
.pd-body button:focus-visible,
.pd-body [role="button"]:focus-visible,
.pd-subnav a:focus-visible,
.pd-breadcrumb a:focus-visible,
.mosaic-clickable:focus-visible { outline-color: var(--pd-blue); }

/* ===================================
   Justified body text — every paragraph and multi-line item of written
   content on the page lines up on both edges. Headings, labels, buttons,
   tables and the booking form keep their normal alignment. Hyphenation
   keeps word gaps even; anything the editor explicitly aligned (Quill's
   ql-align-* classes) still wins because those rules are more specific.
   =================================== */
.rich-content,
.rich-content p,
.rich-content li,
.content-card p,
.highlight-list li span,
.coverage-box ul li,
.safety-list li span,
.briefing-answer,
.briefing-note span,
.faq-answer p,
.review-card p,
.itin-desc,
.itin-desc p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}
/* Very narrow columns justify badly (big gaps) — fall back to left there */
@media (max-width: 380px) {
    .highlight-list li span,
    .coverage-box ul li,
    .safety-list li span { text-align: left; }
}

/* Softer green on the action buttons — the brand green mixed with 12%
   white at rest, full brand green on hover/focus. */
:root { --pd-green-soft-btn: #20A23E; }
.pd-book-btn,
.pd-subnav-btn,
.btn-dep-join,
.btn-review-submit {
    background: var(--pd-green-soft-btn);
    border-color: var(--pd-green-soft-btn);
}
.pd-book-btn:hover, .pd-book-btn:focus-visible,
.pd-subnav-btn:hover, .pd-subnav-btn:focus-visible,
.btn-dep-join:hover, .btn-dep-join:focus-visible,
.btn-review-submit:hover, .btn-review-submit:focus-visible {
    background: var(--pd-green);
    border-color: var(--pd-green);
}

@media (prefers-reduced-motion: reduce) {
    .pd-subnav, .pd-subnav-cta, .pd-subnav-links a::after,
    .itin-daynum, .trip-fact, .departure-item, .related-card { transition: none !important; }
    html { scroll-behavior: auto !important; }
}

/* ----- "Popular" / "Save X%" badges in the sidebar price box ----- */
.pd-price-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pd-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; }
.pd-badge-popular { background: #FEF3C7; color: #92400E; }
.pd-badge-popular i { color: #F59E0B; font-size: 0.62rem; }
.pd-badge-save { background: var(--pd-green, #019524); color: #fff; }

/* ----- Uploaded altitude chart image (shown under the interactive chart when both exist) ----- */
.altitude-chart-image { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid #E8EDF3; cursor: zoom-in; }
.altitude-chart-image.has-chart { margin-top: 18px; }
.altitude-chart-image img { display: block; width: 100%; height: auto; }
.altitude-chart-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(16, 26, 52, 0.75); color: #fff; font-size: .72rem; font-weight: 600; opacity: .9; transition: opacity .2s ease; }
.altitude-chart-image:hover .altitude-chart-zoom { opacity: 1; }
.altitude-chart-image:focus-visible { outline: 2px solid var(--pd-blue, #0174CD); outline-offset: 2px; }

/* ----- Itinerary day: meals + accommodation strip ----- */
.itin-stay { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: #F6F9FC; border: 1px solid #EDF2F7; }
.itin-stay-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.itin-stay-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #E8F2FC; color: var(--pd-blue, #0174CD); font-size: .85rem; }
.itin-stay-item > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.itin-stay-item small { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A94A6; }
.itin-stay-item strong { font-size: .88rem; color: #1E2F4D; font-weight: 700; }
.itin-meal-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.itin-meal-tags span { padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.itin-meal-tags .on { background: #E9F7EC; color: #017A1D; }
.itin-meal-tags .off { background: #F1F3F6; color: #A0A8B5; text-decoration: line-through; }

/* ----- Safety Information: click-to-expand topics ----- */
.safety-acc { display: flex; flex-direction: column; gap: 8px; }
.safety-acc-item { border: 1px solid #E8EDF3; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.safety-acc-item[open] { border-color: #CFE2F5; box-shadow: 0 6px 18px rgba(1, 116, 205, .08); }
.safety-acc-item summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 52px; }
.safety-acc-item summary::-webkit-details-marker { display: none; }
.safety-acc-item summary:hover .safety-acc-topic { color: var(--pd-blue, #0174CD); }
.safety-acc-item summary:focus-visible { outline: 2px solid var(--pd-blue, #0174CD); outline-offset: -2px; border-radius: 12px; }
.safety-acc-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #E9F7EC; color: var(--pd-green, #019524); font-size: .85rem; }
.safety-acc-topic { flex: 1; font-weight: 700; font-size: .95rem; color: #1E2F4D; transition: color .2s ease; }
.safety-acc-chevron { color: #9CA3AF; font-size: .8rem; transition: transform .25s ease; }
.safety-acc-item[open] .safety-acc-chevron { transform: rotate(180deg); color: var(--pd-blue, #0174CD); }
.safety-acc-body { padding: 0 16px 14px 60px; color: #4B5563; font-size: .92rem; line-height: 1.65; text-align: justify; }
.safety-acc-item[open] .safety-acc-body { animation: safetyOpen .25s ease; }
@keyframes safetyOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.safety-acc-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: #F6F9FC; color: #4B5563; font-size: .92rem; }
.safety-acc-note i { color: var(--pd-green, #019524); font-size: 1rem; margin-top: 2px; }
@media (max-width: 575.98px) { .safety-acc-body { padding-left: 16px; } }
@media (prefers-reduced-motion: reduce) { .safety-acc-item[open] .safety-acc-body { animation: none; } .safety-acc-chevron { transition: none; } }

/* Section nav: fade the right edge so it's clear more links scroll into view */
@media (min-width: 0px) {
    .pd-subnav-links { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 32px; }
}

/* ----- Safety rows: slimmer ----- */
.safety-acc { gap: 6px; }
.safety-acc-item { border-radius: 10px; }
.safety-acc-item summary { min-height: 0; padding: 8px 12px; gap: 10px; }
.safety-acc-icon { width: 26px; height: 26px; border-radius: 7px; font-size: .72rem; }
.safety-acc-topic { font-size: .9rem; font-weight: 600; }
.safety-acc-chevron { font-size: .72rem; }
.safety-acc-body { padding: 0 14px 12px 48px; font-size: .9rem; }
@media (max-width: 575.98px) { .safety-acc-body { padding-left: 14px; } }
/* Uploaded chart image now sits above the interactive chart */
.altitude-chart-image.has-chart { margin-top: 0; margin-bottom: 18px; }

/* ----- Packing list: one card per topic, each with its own checklist ----- */
.pack-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pack-group { border: 1px solid #E8EDF3; border-radius: 14px; background: #fff; overflow: hidden; }
.pack-group-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #F6F9FC; border-bottom: 1px solid #EDF2F7; }
.pack-group-icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #E8F2FC; color: var(--pd-blue, #0174CD); font-size: .8rem; }
.pack-group-head h3 { flex: 1; margin: 0; font-size: .95rem; font-weight: 700; color: #1E2F4D; }
.pack-group-count { font-size: .7rem; font-weight: 700; color: var(--pd-blue, #0174CD); background: #E8F2FC; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pack-items { list-style: none; margin: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.pack-items li { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: #374151; line-height: 1.5; }
.pack-items li i { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #E9F7EC; color: var(--pd-green, #019524); font-size: .55rem; }
.pack-groups .pack-group:only-child { grid-column: 1 / -1; }
.pack-groups .pack-group:only-child .pack-items { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 24px; }
@media (max-width: 767.98px) {
    .pack-groups { grid-template-columns: 1fr; }
    .pack-groups .pack-group:only-child .pack-items { grid-template-columns: 1fr; }
}
/* Masonry: cards flow down two columns with no gaps under shorter ones */
.pack-groups { display: block; columns: 2; column-gap: 14px; }
.pack-group { break-inside: avoid; margin-bottom: 14px; display: block; }
.pack-groups .pack-group:only-child { column-span: all; }
@media (max-width: 767.98px) { .pack-groups { columns: 1; } }

/* ----- Why Choose This Tour: reason cards ----- */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.why-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #E8EDF3; border-radius: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.why-card:hover { border-color: #CFE2F5; box-shadow: 0 8px 22px rgba(1, 116, 205, .08); }
.why-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #E8F2FC, #E9F7EC); color: var(--pd-blue, #0174CD); font-size: .9rem; }
.why-text { min-width: 0; }
.why-text h3 { margin: 1px 0 4px; font-size: .95rem; font-weight: 700; color: #1E2F4D; line-height: 1.35; }
.why-text p { margin: 0; font-size: .86rem; color: #5B6575; line-height: 1.6; }
.why-card:only-child, .why-grid .why-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .why-grid { grid-template-columns: 1fr; } }
/* Short card text reads better left-aligned (justify leaves gaps in narrow columns) */
.why-text p, .why-text h3, .pack-items li { text-align: left !important; hyphens: manual !important; -webkit-hyphens: manual !important; }

/* ----- Narrower side margins on the tour page (header/footer unchanged) ----- */
@media (min-width: 1200px) {
    .package-hero > .container,
    .trip-facts-section > .container,
    .pd-subnav > .container,
    .pd-body > .container { max-width: min(1520px, calc(100vw - 48px)); padding-left: 0; padding-right: 0; }
}
@media (max-width: 1199.98px) {
    .package-hero > .container,
    .trip-facts-section > .container,
    .pd-subnav > .container,
    .pd-body > .container { max-width: 100%; padding-left: 16px; padding-right: 16px; }
}

/* ----- Important Information: answers use the full width (no empty strip on the right) ----- */
.briefing-row { grid-template-columns: 220px minmax(0, 1fr); column-gap: 24px; padding: 14px 0; }
.briefing-answer { max-width: none; }
@media (max-width: 767.98px) { .briefing-row { grid-template-columns: 1fr; } }
