/*
 * Hike in Hills — Trip Page Styles
 * Loaded only on hih_trip singular + archive pages.
 * Fixes all responsiveness issues on the single trip layout.
 *
 * Breakpoints:
 *   1200px  →  wide desktop
 *   1024px  →  tablet landscape  (sidebar stacks below content)
 *    768px  →  tablet / large phone
 *    480px  →  small phone
 */

/* ─────────────────────────────────────────────────────────────────────
   VARIABLES  (mirrors main.css so colours stay consistent)
──────────────────────────────────────────────────────────────────────── */
:root {
    --trip-green:      #1a6b3c;
    --trip-green-lt:   #e8f5ee;
    --trip-orange:     #e07a23;
    --trip-dark:       #1a2332;
    --trip-muted:      #6b7280;
    --trip-border:     #e5e7eb;
    --trip-surface:    #ffffff;
    --trip-bg:         #f8f9fa;
    --trip-radius:     12px;
    --trip-radius-sm:  8px;
    --trip-shadow:     0 4px 24px rgba(0,0,0,.08);
    --trip-shadow-lg:  0 8px 40px rgba(0,0,0,.12);
    --font-body:       'Jost', sans-serif;
    --font-heading:    'Playfair Display', serif;
}

/* ─────────────────────────────────────────────────────────────────────
   BASE RESET FOR TRIP CONTENT
──────────────────────────────────────────────────────────────────────── */
.hih-trip-page * { box-sizing: border-box; }
.hih-trip-page img { max-width: 100%; height: auto; display: block; }

/* ─────────────────────────────────────────────────────────────────────
   PAGE HERO — TREK VARIANT
──────────────────────────────────────────────────────────────────────── */
.page-hero--trek {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 48px;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,30,.80) 0%, rgba(10,20,30,.35) 55%, transparent 100%);
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    color: #fff;
    margin: 12px 0 0;
    line-height: 1.15;
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { opacity: .5; }

/* ── Hero badges ── */
.trek-hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* ─────────────────────────────────────────────────────────────────────
   BADGES
──────────────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge--dark       { background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.badge--muted      { background: #f1f5f9; color: var(--trip-dark); border: 1px solid var(--trip-border); font-size: 11px; }
.badge--mod-diff   { background: #fff3cd; color: #92400e; border: 1px solid #fcd34d; }
.badge--easy       { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.badge--moderate   { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.badge--difficult  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ─────────────────────────────────────────────────────────────────────
   STICKY SECTION NAV
──────────────────────────────────────────────────────────────────────── */
.trek-section-nav {
    background: var(--trip-surface);
    border-bottom: 1px solid var(--trip-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.trek-section-nav .container { padding-top: 0; padding-bottom: 0; }
.trek-section-nav__list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.trek-section-nav__list::-webkit-scrollbar { display: none; }
.trek-section-nav__link {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--trip-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}
.trek-section-nav__link:hover,
.trek-section-nav__link.is-active {
    color: var(--trip-green);
    border-bottom-color: var(--trip-green);
}

/* ─────────────────────────────────────────────────────────────────────
   MAIN TWO-COLUMN LAYOUT
──────────────────────────────────────────────────────────────────────── */
.single-trek-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 80px;   /* leave room for mobile bar */
}

/* ─────────────────────────────────────────────────────────────────────
   TREK QUICK-FACTS STRIP
──────────────────────────────────────────────────────────────────────── */
.trek-facts {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    background: var(--trip-bg);
    border: 1px solid var(--trip-border);
    border-radius: var(--trip-radius);
    padding: 20px;
    margin-bottom: 28px;
}
.trek-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.trek-fact__icon { font-size: 22px; line-height: 1; }
.trek-fact__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--trip-dark);
    line-height: 1.2;
}
.trek-fact__label {
    font-size: 11px;
    color: var(--trip-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ─────────────────────────────────────────────────────────────────────
   PHOTO GRID — up to 4 images, hero left + thumbs right
──────────────────────────────────────────────────────────────────────── */
.trek-photo-grid {
    display: grid;
    gap: 8px;
    border-radius: var(--trip-radius);
    overflow: hidden;
    margin-bottom: 32px;
}

/* 2 photos: 50/50 side by side */
.trek-photo-grid--2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px;
}
.trek-photo-grid--2 .trek-photo-grid__item--hero {
    /* full height, left side */
}

/* 3 photos: hero left (tall), 2 thumbs stacked right */
.trek-photo-grid--3 {
    grid-template-columns: 60% 1fr;
    grid-template-rows: 185px 185px;
}
.trek-photo-grid--3 .trek-photo-grid__item--hero {
    grid-row: span 2;
}

/* 4 photos: hero left (tall), 3 thumbs stacked right */
.trek-photo-grid--4 {
    grid-template-columns: 60% 1fr;
    grid-template-rows: 123px 123px 123px;
}
.trek-photo-grid--4 .trek-photo-grid__item--hero {
    grid-row: span 3;
}

.trek-photo-grid__item {
    position: relative;
    overflow: hidden;
    background: var(--trip-border);
}
.trek-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .3s ease;
}
.trek-photo-grid__item:hover img {
    transform: scale(1.04);
}

/* "More photos" overlay on last thumb */
.trek-photo-grid__more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: .5px;
    pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────────
   FIX: REMOVE TOP GAP BETWEEN STICKY NAV AND HERO
   main.css sets padding-top: var(--nav-height) on .site-content for
   fixed-header pages. The trip header is position:sticky so it stays
   in flow — that padding just creates a white gap above the hero.
──────────────────────────────────────────────────────────────────────── */
.hih-trip-page .site-content {
    padding-top: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   SUPPRESS THEME FEATURED IMAGE AUTO-INJECTION
   Astra & some themes inject the post featured image after the header.
   On the trip page we already display it inside the custom hero, so we
   hide any auto-injected copy outside our hero wrapper.
──────────────────────────────────────────────────────────────────────── */
.hih-trip-page .ast-featured-image-wrap,
.hih-trip-page .post-thumbnail,
.hih-trip-page .entry-thumbnail,
.hih-trip-page .ast-single-post-thumbnail,
.hih-trip-page figure.wp-block-post-featured-image,
.site-content > .site-main > figure:first-of-type,
.site-content > .site-main > img:first-of-type {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────
   TREK SECTION WRAPPER
──────────────────────────────────────────────────────────────────────── */
.trek-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}
.trek-section__title {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: var(--trip-dark);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--trip-green-lt);
    font-family: var(--font-heading);
}

/* ─────────────────────────────────────────────────────────────────────
   OVERVIEW TEXT
──────────────────────────────────────────────────────────────────────── */
.trek-overview-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.85;
}
.trek-overview-text p { margin-bottom: 14px; }

/* ─────────────────────────────────────────────────────────────────────
   HIGHLIGHTS LIST
──────────────────────────────────────────────────────────────────────── */
.highlights-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.highlights-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
}
.highlights-list li::before {
    content: '✦';
    color: var(--trip-orange);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   ITINERARY ACCORDION
──────────────────────────────────────────────────────────────────────── */
.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.itinerary-day {
    border: 1px solid var(--trip-border);
    border-radius: var(--trip-radius);
    overflow: hidden;
    background: var(--trip-surface);
}
.itinerary-day__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--trip-bg);
    cursor: pointer;
    transition: background .2s;
    user-select: none;
}
.itinerary-day__header:hover {
    background: var(--trip-green-lt);
}
.itinerary-day__num {
    width: 32px;
    height: 32px;
    background: var(--trip-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-body);
}
.itinerary-day__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--trip-dark);
    flex: 1;
    font-family: var(--font-body);
    margin: 0;
}
.itinerary-day__arrow {
    width: 18px;
    height: 18px;
    color: var(--trip-muted);
    transition: transform .25s;
    flex-shrink: 0;
}
.itinerary-day.is-open .itinerary-day__arrow {
    transform: rotate(180deg);
}
/* Body: collapsed by default, expanded when .is-open */
.itinerary-day__body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
}
.itinerary-day.is-open .itinerary-day__body {
    max-height: 800px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.itinerary-day__desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 12px;
}
.itinerary-day__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* ─────────────────────────────────────────────────────────────────────
   INCLUSIONS / EXCLUSIONS
──────────────────────────────────────────────────────────────────────── */
.inc-exc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.inc-exc-block__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    font-family: var(--font-body);
}
.inc-exc-block__title--inc { color: #15803d; }
.inc-exc-block__title--exc { color: #b91c1c; }
.inc-exc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.inc-exc-list li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    align-items: flex-start;
    line-height: 1.5;
}
.inc-exc-list--inc li::before { content: '✓'; color: #15803d; font-weight: 700; flex-shrink: 0; }
.inc-exc-list--exc li::before { content: '✗'; color: #b91c1c; font-weight: 700; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────────────
   BATCH DATES TABLE
──────────────────────────────────────────────────────────────────────── */
.batch-table-wrap {
    overflow-x: auto;
    border-radius: var(--trip-radius);
    border: 1px solid var(--trip-border);
    -webkit-overflow-scrolling: touch;
}
.batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 520px;
}
.batch-table thead tr { background: var(--trip-bg); }
.batch-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--trip-muted);
    border-bottom: 1px solid var(--trip-border);
    white-space: nowrap;
}
.batch-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--trip-border);
    color: #4b5563;
    vertical-align: middle;
}
.batch-table tbody tr:last-child td { border-bottom: none; }
.batch-table tbody tr:hover td { background: var(--trip-bg); }
.batch-price { font-weight: 700; color: var(--trip-green) !important; }

.badge--green { background: #22c55e; color: #fff; }
.badge--gold  { background: var(--trip-orange); color: #fff; }

@media (max-width: 600px) {
    .batch-table-wrap { border: none; }
    .batch-table,
    .batch-table thead,
    .batch-table tbody,
    .batch-table th,
    .batch-table td,
    .batch-table tr { display: block; }
    .batch-table thead { display: none; }
    .batch-table tbody tr {
        background: var(--trip-surface);
        border: 1px solid var(--trip-border);
        border-radius: var(--trip-radius);
        margin-bottom: 12px;
        padding: 4px 0;
    }
    .batch-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px solid var(--trip-border);
        font-size: 13px;
    }
    .batch-table td:last-child { border-bottom: none; }
    .batch-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .4px;
        color: var(--trip-muted);
        flex-shrink: 0;
        margin-right: 8px;
    }
    .batch-table td:last-child::before { content: none; }
    .batch-table td:last-child { justify-content: flex-end; }
}

/* ─────────────────────────────────────────────────────────────────────
   LOGISTICS — MEETING POINT
──────────────────────────────────────────────────────────────────────── */
.trek-meeting-point {
    background: #f0fdf4;
    border-left: 4px solid var(--trip-green);
    padding: 16px 20px;
    border-radius: 0 var(--trip-radius-sm) var(--trip-radius-sm) 0;
    margin-bottom: 20px;
}
.trek-meeting-point__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--trip-green);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}
.trek-meeting-point p { margin: 0; font-size: 14px; color: var(--trip-dark); }
.trek-how-to-reach { font-size: 14px; color: #4b5563; line-height: 1.8; }
.trek-how-to-reach p { margin-bottom: 10px; }
.trek-how-to-reach ul,
.trek-how-to-reach ol { padding-left: 20px; margin-bottom: 10px; }
.trek-how-to-reach li { margin-bottom: 4px; }

/* ─────────────────────────────────────────────────────────────────────
   MAP EMBED
──────────────────────────────────────────────────────────────────────── */
.map-embed-wrap {
    border-radius: var(--trip-radius);
    overflow: hidden;
    border: 1px solid var(--trip-border);
}
.map-embed-wrap iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* ─────────────────────────────────────────────────────────────────────
   PACKING LIST
──────────────────────────────────────────────────────────────────────── */
.packing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.packing-group__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--trip-dark);
    margin-bottom: 12px;
    font-family: var(--font-body);
}
.packing-group__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.packing-group__list li {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.packing-group__list li::before {
    content: '✓';
    color: var(--trip-green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────
   FAQ ACCORDION
──────────────────────────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    border: 1px solid var(--trip-border);
    border-radius: var(--trip-radius);
    background: var(--trip-surface);
}
.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--trip-dark);
    transition: color .2s;
    user-select: none;
    font-family: var(--font-body);
}
.faq-item__question:hover { color: var(--trip-green); }
.faq-item__arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--trip-muted);
    transition: transform .25s;
}
.faq-item.is-open .faq-item__arrow { transform: rotate(180deg); }
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .3s;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
    padding-inline: 20px;
}
.faq-item.is-open .faq-item__answer {
    max-height: 600px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────────────
   BUTTONS
──────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--outline {
    background: transparent;
    color: var(--trip-green);
    border-color: var(--trip-green);
}
.btn--outline:hover { background: var(--trip-green); color: #fff; }
.btn--whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn--whatsapp:hover { background: #1db954; border-color: #1db954; color: #fff; }
.btn--sm  { font-size: 13px; padding: 7px 18px; }
.btn--lg  { font-size: 16px; padding: 14px 32px; }
.btn--full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────────────────
   BOOKING SIDEBAR
──────────────────────────────────────────────────────────────────────── */
.booking-sidebar {
    position: sticky;
    top: 94px;   /* nav-height + buffer */
    background: var(--trip-surface);
    border: 1px solid var(--trip-border);
    border-radius: var(--trip-radius);
    padding: 24px;
    box-shadow: var(--trip-shadow-lg);
}
.booking-sidebar__price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--trip-border);
}
.booking-sidebar__price-label { font-size: 13px; color: var(--trip-muted); margin-bottom: 4px; }
.booking-sidebar__price-amount {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--trip-dark);
    line-height: 1.1;
}
.booking-sidebar__price-note { font-size: 12px; color: var(--trip-muted); margin-top: 4px; }

.booking-sidebar__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.booking-sidebar__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid var(--trip-border);
    padding-bottom: 10px;
}
.booking-sidebar__meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.booking-sidebar__meta-label { color: var(--trip-muted); }
.booking-sidebar__meta-value { font-weight: 600; color: var(--trip-dark); }

.booking-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
.booking-sidebar__note { font-size: 12px; color: var(--trip-muted); text-align: center; margin-top: 8px; }

/* Trust grid */
.booking-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid var(--trip-border);
    margin-top: 20px;
    padding-top: 16px;
}
.booking-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--trip-muted);
}

/* ─────────────────────────────────────────────────────────────────────
   MOBILE STICKY BOOKING BAR
──────────────────────────────────────────────────────────────────────── */
.mobile-book-bar { display: none; }

@media (max-width: 1024px) {
    .mobile-book-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 500;
        background: var(--trip-surface);
        border-top: 1px solid var(--trip-border);
        padding: 12px 20px;
        box-shadow: 0 -4px 20px rgba(0,0,0,.10);
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .single-trek-layout { padding-bottom: 80px; }

    .mobile-book-bar__price {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    .mobile-book-bar__label {
        font-size: 11px;
        color: var(--trip-muted);
        text-transform: uppercase;
        letter-spacing: .4px;
    }
    .mobile-book-bar__amount {
        font-size: 20px;
        font-weight: 800;
        color: var(--trip-dark);
        font-family: var(--font-heading);
    }
    .mobile-book-bar__actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
──────────────────────────────────────────────────────────────────────── */

/* 1024px — tablet landscape: sidebar stacks below content */
@media (max-width: 1024px) {
    .single-trek-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .booking-sidebar {
        position: static;
        order: -1;   /* show above content on tablet */
    }
    .trek-facts { grid-template-columns: repeat(3, 1fr); }
}

/* 768px — tablet / large phone */
@media (max-width: 768px) {
    .page-hero--trek { min-height: 360px; padding-bottom: 36px; }
    .trek-facts { grid-template-columns: repeat(2, 1fr); }
    .trek-photo-grid--4,
    .trek-photo-grid--3 {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 130px 130px 130px;
    }
    .trek-photo-grid--4 .trek-photo-grid__item--hero,
    .trek-photo-grid--3 .trek-photo-grid__item--hero { grid-row: span 1; }
    .inc-exc-grid { grid-template-columns: 1fr; gap: 20px; }
    .highlights-list { grid-template-columns: 1fr; gap: 10px; }
    .trek-section { margin-bottom: 36px; }
    .trek-section__title { font-size: 19px; margin-bottom: 18px; }
    .packing-grid { grid-template-columns: 1fr; gap: 20px; }
    .mobile-book-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .mobile-book-bar__amount { font-size: 18px; }
}

/* 480px — small phone */
@media (max-width: 480px) {
    .page-hero--trek { min-height: 300px; padding-bottom: 24px; }
    .single-trek-layout { gap: 24px; }
    .trek-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 16px;
    }
    .trek-fact__value { font-size: 13px; }
    .trek-photo-grid--4,
    .trek-photo-grid--3,
    .trek-photo-grid--2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .trek-photo-grid__item { height: 130px; }
    .trek-photo-grid--4 .trek-photo-grid__item--hero,
    .trek-photo-grid--3 .trek-photo-grid__item--hero,
    .trek-photo-grid--2 .trek-photo-grid__item--hero {
        grid-column: span 2;
        height: 200px;
        grid-row: span 1;
    }
    .trek-section { margin-bottom: 28px; }
    .booking-sidebar { padding: 18px; }
    .booking-sidebar__price-amount { font-size: 30px; }
    .inc-exc-grid { gap: 16px; }
}
