/* px4: trek page top (desktop and tablet landscape; phones keep the mobile trek layout). CSS + px-trek.js. */
@media (min-width: 1024px) {
  /* the hero: one photo across the width, the trek's title on it */
  body.pagebody .trekpages .hero-split .hs-inner { grid-template-columns: 1fr !important; }
  body.pagebody .trekpages .hero-split .hs-copy { display: none !important; }
  body.pagebody .trekpages .hero-split .hs-media { width: 100% !important; }
  body.pagebody .trekpages > .fullwidthbox,
  body.pagebody .trekpages > .fullwidthbox .hero-split,
  body.pagebody .trekpages > .fullwidthbox .hslide,
  body.pagebody .trekpages > .fullwidthbox .hs-inner,
  body.pagebody .trekpages > .fullwidthbox .hs-media { height: min(64vh, 600px) !important; min-height: 440px; max-height: none !important; }
  body.pagebody .trekpages > .fullwidthbox { overflow: hidden; margin-bottom: 0 !important; padding-bottom: 0 !important; }
  body.pagebody .trekpages > .fullwidthbox .hs-img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; object-position: 50% 55% !important; }
  body.pagebody .trekpages .fullwidthbox.px-th::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, rgba(10,18,34,0) 36%, rgba(10,18,34,.35) 60%, rgba(10,18,34,.8) 100%);
  }
  body.pagebody .px-th-copy {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
    padding: 0 var(--px-col, 28px) 72px; color: #fff;
  }
  body.pagebody .px-th-copy h1.trekheading {
    font-family: var(--px-serif) !important; font-weight: 500 !important; color: #fff !important;
    font-size: clamp(38px, 4.2vw, 60px) !important; line-height: 1.05 !important; margin: 12px 0 12px !important;
    max-width: 24ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); text-align: left !important;
  }
  body.pagebody .px-th-copy .blsubtitle {
    font-family: var(--px-sans) !important; font-size: 17px !important; line-height: 1.55 !important; font-weight: 400 !important;
    color: rgba(255,255,255,.94) !important; max-width: 62ch; text-shadow: 0 1px 10px rgba(0,0,0,.45); margin: 0 !important; padding: 0 !important; text-align: left !important;
    background: none !important; border: 0 !important; box-shadow: none !important;
  }
  body.pagebody .px-th-copy .breadcrumb { background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.3) !important; border-radius: 999px !important; padding: 2px 12px !important; margin: 0 !important; backdrop-filter: blur(6px); }
  body.pagebody .px-th-copy .breadcrumb, body.pagebody .px-th-copy .breadcrumb * { color: #fff !important; background-color: transparent !important; box-shadow: none !important; }
  body.pagebody .treksubheadingblock.px-th-moved { display: none !important; }

  /* the band: facts, price, quote */
  body.pagebody .px-tb {
    clear: both; display: flex; align-items: center; gap: 28px; justify-content: space-between;
    background: #fff; border: 1px solid var(--px-line); border-radius: 16px; box-shadow: 0 2px 4px rgba(22,38,66,.06), 0 14px 34px rgba(22,38,66,.12);
    padding: 20px 26px; margin: -44px 0 8px; position: relative; z-index: 4;
  }
  body.pagebody .px-tb-facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; }
  body.pagebody .px-tb-fact dt { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--px-muted); margin: 0 0 3px; }
  body.pagebody .px-tb-fact dd { font-size: 16px; font-weight: 600; color: var(--px-ink); margin: 0; }
  body.pagebody .px-tb-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; text-align: right; }
  body.pagebody .px-tb-price { margin: 0 !important; font-size: 14px; color: var(--px-muted); }
  body.pagebody .px-tb-price strong { font-family: var(--px-serif); font-size: 22px; font-weight: 600; color: var(--px-navy); }
  body.pagebody a.px-tb-btn {
    display: inline-block; background: var(--px-gold); color: var(--px-navy) !important; font-weight: 700; font-size: 15px;
    padding: 12px 24px; border-radius: 999px; text-decoration: none !important; box-shadow: 0 6px 16px rgba(201,149,43,.3);
  }
  body.pagebody a.px-tb-btn:hover { filter: brightness(1.06); }
  body.pagebody a.px-tb-link { font-size: 14px; font-weight: 600; color: var(--px-navy) !important; text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  body.pagebody .px-tb { flex-direction: column; align-items: stretch; }
  body.pagebody .px-tb-act { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- phones and tablets: the mobile trek top (hhm-*), restyled ---------- */
@media (max-width: 1023.98px) {
  html .hh-view-mobile .hhm-shell .hhm-tophero-media {
    width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; box-shadow: none;
  }
  html .hh-view-mobile .hhm-shell .hhm-heroimg { aspect-ratio: 4 / 5; max-height: 68vh; width: 100%; object-fit: cover; }
  html .hh-view-mobile .hhm-shell .hhm-tophero-scrim {
    background: linear-gradient(180deg, rgba(10,18,34,.28) 0%, rgba(10,18,34,0) 26%, rgba(10,18,34,0) 46%, rgba(10,18,34,.82) 100%);
  }
  html .hh-view-mobile .hhm-shell .hhm-tophero-overlay { top: auto; bottom: 22px; left: 20px; right: 20px; max-width: none; }
  html .hh-view-mobile .hhm-shell .hhm-tophero-title {
    font-family: var(--px-serif) !important; font-weight: 500 !important; font-size: clamp(32px, 8.6vw, 44px) !important;
    line-height: 1.04 !important; max-width: 16ch; text-shadow: 0 2px 16px rgba(0,0,0,.35);
  }
  html .hh-view-mobile .hhm-shell .hhm-tophero-breadcrumb { margin: 0 0 10px; }
  html .hh-view-mobile .hhm-shell .hhm-tophero-breadcrumb .breadcrumb {
    background: rgba(255,255,255,.16) !important; border: 1px solid rgba(255,255,255,.32) !important; border-radius: 999px !important;
    padding: 2px 12px !important; backdrop-filter: blur(6px); box-shadow: none !important;
  }
  html .hh-view-mobile .hhm-shell .hhm-tophero-breadcrumb .breadcrumb, html .hh-view-mobile .hhm-shell .hhm-tophero-breadcrumb .breadcrumb * { color: #fff !important; background-color: transparent !important; }

  html .hh-view-mobile .hhm-shell .hhm-review { margin: 14px 0 0; padding: 0; background: none; box-shadow: none; font-size: 13px; }
  html .hh-view-mobile .hhm-shell .hhm-pillrow { margin-top: 12px; gap: 8px; }
  html .hh-view-mobile .hhm-shell .hhm-pill {
    background: #fff !important; border: 1px solid var(--px-line) !important; box-shadow: none !important;
    color: var(--px-ink) !important; font-weight: 600; font-size: 13px; border-radius: 999px;
  }
  html .hh-view-mobile .hhm-shell .hhm-pill i { color: var(--px-gold) !important; }
  html .hh-view-mobile .hhm-shell .hhm-tophero-subtitle {
    font-family: var(--px-sans) !important; font-size: 16px !important; line-height: 1.6 !important; font-weight: 400 !important;
    color: var(--px-ink) !important; background: none !important; border: 0 !important; box-shadow: none !important;
    padding: 0 !important; margin: 14px 0 0 !important; text-align: left !important;
  }

  /* price and quote, right under the summary */
  body .px-mq { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 4px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--px-line); border-radius: 14px; box-shadow: var(--px-shadow); }
  body .px-mq-price { margin: 0 !important; font-size: 13px; color: var(--px-muted); line-height: 1.3; }
  body .px-mq-price strong { display: block; white-space: nowrap; font-family: var(--px-serif); font-size: 20px; font-weight: 600; color: var(--px-navy); }
  body a.px-mq-btn { flex: 1 1 100%; text-align: center; display: block; background: var(--px-gold); color: var(--px-navy) !important; font-weight: 700; font-size: 15px;
    padding: 13px 18px; border-radius: 999px; text-decoration: none !important; }
}

/* ---------- px4b: the trek page body, calmer (all widths unless noted) ---------- */
/* price box: a white card, left aligned, tiers as plain rows */
html body .pricing-box.hh-pb-shell { background: #fff !important; border: 1px solid var(--px-line) !important; box-shadow: var(--px-shadow) !important; border-radius: 16px !important; }
html body .pricing-box .hh-pb-head { text-align: left !important; }
html body .pricing-box .hh-pb-head h2, html body .pricing-box .hh-pb-head h3, html body .pricing-box .hh-pb-title { text-align: left !important; }
html body .pricing-box .hh-price-range-chips { display: block !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--px-line) !important; border-radius: 0 !important;
  padding: 9px 0 !important; margin: 0 !important; font-size: 14px !important; color: var(--px-ink) !important; text-align: left !important; box-shadow: none !important; }
html body .pricing-box .hh-pb-panel { background: var(--px-paper, #faf8f4) !important; border: 1px solid var(--px-line) !important; box-shadow: none !important; }
html body .pricing-box .hh-pb-card.is-private { background: #fff !important; border: 1px solid var(--px-navy) !important; box-shadow: none !important; }
html body .pricing-box .hh-pb-card.is-private .strong { color: var(--px-navy) !important; }

/* trek facts: a quiet two-column list instead of grey tiles with emoji */
html body .trekfactsinfo .trekfacts > li { background: none !important; border-radius: 0 !important; border-bottom: 1px solid var(--px-line) !important; text-align: left !important; padding: 10px 4px !important; min-height: 0 !important; }
html body .trekfactsinfo .trekfacts > li > .font15em { display: none !important; }
html body .trekfactsinfo .trekfacts > li .blacktext { min-height: 0 !important; margin: 0 0 2px !important; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: .07em; text-transform: uppercase; color: var(--px-muted) !important; }
html body .trekfactsinfo .trekfacts > li span { font-size: 14.5px !important; font-weight: 600; color: var(--px-ink) !important; }

/* chapter list */
html body .trektopics-preview .hh-chap-link { border-color: var(--px-line) !important; box-shadow: none !important; }
html body .trektopics-preview .hh-chap-link:hover { border-color: var(--px-navy) !important; background: var(--px-paper, #faf8f4) !important; }
html body .trektopics-preview .hh-chap-link i, html body .trektopics-preview .hh-chap-link svg { color: var(--px-navy) !important; }

/* itinerary days: plain white rows, readable titles */
html body .trek-itinerary li.ditinheader { box-shadow: none !important; border: 1px solid var(--px-line) !important; border-radius: 12px !important; background: #fff !important; margin-bottom: 10px !important; }
html body .trek-itinerary li.ditinheader:hover { border-color: var(--px-navy) !important; }
html body .trek-itinerary li.ditinheader > h3 { font-family: var(--px-sans) !important; padding: 12px 14px !important; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
html body .trek-itinerary li.ditinheader > h3 .day { font-family: var(--px-sans) !important; font-size: 12px !important; font-weight: 700; color: #fff !important; background: var(--px-navy) !important; border-radius: 999px; padding: 3px 10px !important; letter-spacing: .04em; }
html body .trek-itinerary li.ditinheader > h3 .ditdd { font-family: var(--px-sans) !important; font-size: 15px !important; padding: 0 !important; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; letter-spacing: 0 !important; }
html body .trek-itinerary li.ditinheader > h3 .itindaytitle { margin: 0 !important; color: var(--px-ink); text-transform: none; }
html body .trek-itinerary li.ditinheader > h3 [class*="itinsummary"] { font-size: 11.5px !important; font-weight: 600; border-radius: 999px; padding: 2px 9px !important; background: var(--px-paper, #faf8f4) !important; border: 1px solid var(--px-line); color: var(--px-muted) !important; text-transform: none; }

/* other versions: buttons in the house style */
html body a.hh-var-cta { background: var(--px-navy) !important; color: #fff !important; border-radius: 999px !important; padding: 10px 18px !important; box-shadow: none !important; font-size: 15px !important; }
html body .trek-itinerary li.ditinheader > h3, html body .trek-itinerary li.ditinheader > h3 * { font-family: var(--px-sans) !important; }
html body .trek-itinerary li.ditinheader > h3 .itindaytitle { font-size: 15px !important; font-weight: 600 !important; }
html body .pricing-box .hh-pb-head > *:not(.hh-pb-title) { text-align: left !important; }
html body .trek-itinerary li.ditinheader > h3 .day { position: static !important; transform: none !important; top: auto !important; left: auto !important; margin: 0 !important; flex: none; }
html body .trek-itinerary li.ditinheader > h3 { min-height: 0 !important; margin: 0 !important; }
html body .trekfactsinfo .trekfacts > li a { display: inline-block; margin-top: 2px; font-size: 12.5px !important; color: var(--px-navy) !important; }
html body .trek-itinerary li.ditinheader > h3 { display: grid !important; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
html body .trek-itinerary li.ditinheader > h3 .day { align-self: center; line-height: 1.4 !important; vertical-align: middle; }
html body .trek-itinerary li.ditinheader > h3 .ditdd { line-height: 1.4 !important; vertical-align: middle; }

/* ---------- px4c: trek photo wall as an even grid ---------- */
html body #trekphotos { border: 0 !important; padding-top: 0 !important; }
html body #trekphotos > h2 { font-weight: 500 !important; font-size: clamp(26px, 2.6vw, 36px) !important; text-align: left !important; max-width: 1240px; margin: 0 auto 18px !important; }
html body #trekphotos > ul { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; max-width: 1240px; margin: 0 auto !important; padding: 0 !important; }
html body #trekphotos > ul > li { display: block !important; padding: 0 !important; margin: 0 !important; width: auto !important; }
html body #trekphotos > ul > li img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; max-width: none !important; transition: transform .25s ease, filter .25s ease; }
html body #trekphotos > ul > li a:hover img { transform: scale(1.02); filter: brightness(1.05); }
@media (max-width: 600px) { html body #trekphotos > ul { grid-template-columns: repeat(3, 1fr); gap: 6px; } html body #trekphotos > ul > li img { border-radius: 6px; } }
html body #trekphotos > ul.px-ph-folded > li.px-ph-more { display: none !important; }
html body .px-ph-btn { display: block; margin: 18px auto 0; background: #fff; border: 1px solid var(--px-navy); color: var(--px-navy); font-weight: 600; font-size: 15px; padding: 10px 22px; border-radius: 999px; cursor: pointer; }
html body .px-ph-btn:hover { background: var(--px-navy); color: #fff; }

/* px4d: no layout jump while px-trek.js runs: the old title box is hidden from the first paint, and the band's room is held */
@media (min-width: 1024px) {
  html body .trekpages .treksubheadingblock { display: none !important; }
  html body .trekpages > .fullwidthbox { transition: none !important; }
  html body .trekpages:not(.px-tb-ready) > .fullwidthbox { margin-bottom: 122px !important; }
}

/* ---------- px4e (owner review 16 Nov) ---------- */
/* the "Recommended" badge on the private quote card only made sense next to Group Match */
body.pagebody .hh-pb-card .hh-pb-badge-new { display: none !important; }

/* modals: opening one no longer throws the page back to the top (custommodal.css fixed the body). The page simply stops
   scrolling; the scrollbar's gutter stays so nothing shifts sideways. */
html { scrollbar-gutter: stable; }
html.px-modal-open { overflow: hidden !important; }
html.px-modal-open body.pagebody { position: static !important; height: auto !important; width: auto !important; overflow: visible !important; }

@media (min-width: 768px) {
  /* reading view (chapters, pricing notes, altitude profile, FAQ): a white sheet over a dimmed page */
  body.pagebody .custom-modal { background: rgba(14,22,36,.6) !important; backdrop-filter: blur(3px); }
  body.pagebody .custom-modal .modal-content {
    width: min(880px, calc(100% - 48px)); margin: 5vh auto 0 !important; max-height: 90vh; box-sizing: border-box;
    padding: 52px 60px 44px !important; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); background: #fff !important;
  }
  body.pagebody .custom-modal .modal-content h2 { font-size: clamp(26px, 2.4vw, 34px) !important; font-weight: 500 !important; line-height: 1.15 !important; text-align: left !important; color: var(--px-navy) !important; margin: 0 0 18px !important; }
  body.pagebody .custom-modal .modal-content h3 { font-size: 21px !important; font-weight: 600 !important; text-align: left !important; margin: 26px 0 8px !important; }
  body.pagebody .custom-modal .modal-content p { font-size: 17px !important; line-height: 1.75 !important; color: var(--px-ink) !important; }
  body.pagebody .custom-modal .modal-content li { font-size: 16px !important; line-height: 1.65 !important; color: var(--px-ink) !important; }
  body.pagebody .custom-modal .modal-content a:not([class*="btn"]):not(.px-tb-btn) { color: var(--px-navy) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(22,38,66,.35); }
  body.pagebody .custom-modal .modal-content img { border-radius: 12px; max-width: 100%; height: auto; }
  body.pagebody .custom-modal .modal-content .audio-player { background: var(--px-paper) !important; border: 1px solid var(--px-line) !important; border-radius: 999px !important; box-shadow: none !important; }

  /* the close button: round, calm, always in the corner */
  body.pagebody .custom-modal .close-btn {
    position: fixed !important; top: 18px !important; right: 22px !important; width: 44px; height: 44px; padding: 0 !important; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; border-radius: 50% !important; border: 0 !important;
    background: #fff !important; color: var(--px-navy) !important; font-size: 17px !important; font-weight: 600 !important; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 10003 !important;
    transition: transform .15s ease;
  }
  body.pagebody .custom-modal .close-btn:hover { transform: scale(1.06); }

  /* photo and video view: a dark stage, the picture large, the caption under it */
  body.pagebody .custom-modal:has(.modal-nav) { background: rgba(8,12,20,.94) !important; backdrop-filter: none; }
  body.pagebody .custom-modal:has(.modal-nav) .modal-content {
    width: 100%; max-width: none; height: 100vh; max-height: 100vh; margin: 0 !important; padding: 6vh 110px 4vh !important;
    background: transparent !important; box-shadow: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  }
  body.pagebody .custom-modal:has(.modal-nav) .modal-body { align-items: center; }
  body.pagebody .custom-modal:has(.modal-nav) .modal-content img { max-height: 78vh; width: auto !important; max-width: 100% !important; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  body.pagebody .custom-modal:has(.modal-nav) .modal-body { width: 100%; }
  body.pagebody .custom-modal:has(.modal-nav) .youtube-embed-container { width: min(1100px, 100%, calc(76vh * 16 / 9)) !important; aspect-ratio: 16 / 9; height: auto !important; padding-bottom: 0 !important; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
  body.pagebody .custom-modal:has(.modal-nav) .modal-content h2 { color: #f4f1ea !important; text-align: center !important; font-size: 20px !important; margin: 18px 0 0 !important; }
  body.pagebody .custom-modal .modal-nav {
    width: 54px; height: 54px; padding: 0 !important; display: flex; align-items: center; justify-content: center; font-size: 22px !important;
    color: #fff !important; background: rgba(255,255,255,.12) !important; border-radius: 50% !important; transition: background .15s ease;
  }
  body.pagebody .custom-modal .modal-nav:hover { background: rgba(255,255,255,.26) !important; }
  body.pagebody .custom-modal .modal-nav.prev { left: 28px !important; }
  body.pagebody .custom-modal .modal-nav.next { right: 28px !important; }
}

/* ---------- px4f (owner review 16 Nov): version cards, itinerary summary, altitude profile and FAQ on the page ---------- */
/* version cards (the primary itinerary's summary uses the same classes, so both now match) */
body.pagebody .hh-var-card { background: #fff !important; border: 1px solid var(--px-line) !important; border-radius: 16px !important; box-shadow: var(--px-shadow) !important; padding: 22px 24px !important; }
body.pagebody .itinerary-variations > h2 { font-size: clamp(24px, 2.2vw, 30px) !important; font-weight: 500 !important; margin-bottom: 18px !important; }
body.pagebody .hh-var-card h3.hh-var-name { font-family: var(--px-serif) !important; font-size: 22px !important; font-weight: 500 !important; line-height: 1.2 !important; color: var(--px-navy) !important; margin: 0 0 8px !important; }
body.pagebody .hh-var-card .hh-var-name span { font-size: 13px !important; color: var(--px-muted) !important; }
body.pagebody .hh-var-card .hh-var-name span + span { font-family: var(--px-serif) !important; font-size: 22px !important; font-weight: 500 !important; color: var(--px-navy) !important; }
body.pagebody .hh-var-card .hh-var-sum { font-size: 14.5px !important; line-height: 1.6 !important; color: var(--px-muted) !important; }
body.pagebody .hh-var-card .hh-var-sum strong { display: block; margin-top: 4px; color: var(--px-navy) !important; font-size: 15.5px; }
body.pagebody .hh-var-card .hh-var-price { border: 0 !important; padding: 0 !important; margin-top: 14px !important; }
body.pagebody .hh-var-card .hh-price-label { font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--px-muted) !important; }
body.pagebody .hh-var-card .hh-price-range-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start !important; }
body.pagebody .hh-var-card .hh-pill { background: var(--px-paper) !important; border: 1px solid var(--px-line) !important; color: var(--px-navy) !important; font-size: 12.5px !important; font-weight: 500 !important; border-radius: 999px !important; padding: 5px 12px !important; margin: 0 6px 6px 0 !important; }
body.pagebody .hh-var-card .hh-pill.hh-pill-warn { border-color: rgba(201,149,43,.55) !important; }
body.pagebody .hh-var-card details.hh-var-more > summary { display: none; }
body.pagebody .hh-var-card .hh-note { background: var(--px-paper) !important; border: 1px solid var(--px-line) !important; border-radius: 12px !important; padding: 12px 14px !important; }
body.pagebody .hh-var-card .hh-note .hh-label { font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: .12em; text-transform: uppercase; color: var(--px-muted) !important; margin-bottom: 4px; }
body.pagebody .hh-var-card .hh-note .font12, body.pagebody .hh-var-card .hh-terrain-text { font-size: 14px !important; color: var(--px-ink) !important; }
body.pagebody .hh-var-card .hh-takeaway { border-left: 3px solid var(--px-gold) !important; }
/* the counts: a calm grid of figures instead of grey bars */
body.pagebody .hh-var-card .hh-mini-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0 !important; background: transparent !important; padding: 0 !important; }
body.pagebody .hh-var-card .hh-mini-card > div { background: var(--px-paper) !important; border: 1px solid var(--px-line); border-radius: 12px !important; margin: 0 !important; padding: 10px 12px !important; font-size: 13.5px !important; line-height: 1.5 !important; color: var(--px-muted) !important; }
body.pagebody .hh-var-card .hh-mini-card .circle { background: transparent !important; padding: 0 2px 0 0 !important; border-radius: 0 !important; }
body.pagebody .hh-var-card .hh-mini-card .circle strong { font-family: var(--px-serif) !important; font-size: 20px !important; font-weight: 600 !important; color: var(--px-navy) !important; }
body.pagebody .px-var-folded > .hh-var-card.px-var-extra { display: none !important; }
body.pagebody .px-var-btn, body.pagebody .px-faq-btn { display: block; margin: 6px auto 0; }

/* altitude profile on the page */
body.pagebody .px-alt { background: #fff; border: 1px solid var(--px-line); border-radius: 16px; box-shadow: var(--px-shadow); padding: 22px 24px 20px; margin: 0 0 24px; }
body.pagebody .px-alt-h { font-size: clamp(24px, 2.2vw, 30px) !important; font-weight: 500 !important; margin: 0 0 4px !important; }
body.pagebody .px-alt-note { font-size: 14px !important; color: var(--px-muted) !important; margin: 0 0 8px !important; }
body.pagebody .px-alt-wrap { overflow-x: auto; overflow-y: hidden; padding: 0 0 6px; scrollbar-width: thin; }
body.pagebody .px-alt-wrap dl.csslinegraph { margin: 0 auto !important; border-radius: 8px; }
/* px4-27 (owner 18 Nov): long treks make the chart wider than its 720px background; the altitude bands now carry on to the right edge */
body.pagebody dl.csslinegraph { background: url(/Data/Sites/1/skins/framework/ep_back.gif) no-repeat 0 0, url(/Data/Sites/1/skins/framework/ep_band.png) repeat-x 0 0 !important; }

/* FAQ on the page */
body.pagebody .px-faq { background: #fff; border: 1px solid var(--px-line); border-radius: 16px; box-shadow: var(--px-shadow); padding: 22px 24px 20px; margin: 24px 0; }
body.pagebody .px-faq-h { font-size: clamp(24px, 2.2vw, 30px) !important; font-weight: 500 !important; margin: 0 0 10px !important; }
body.pagebody .px-faq-item { border-top: 1px solid var(--px-line); }
body.pagebody .px-faq-item > summary { list-style: none; cursor: pointer; position: relative; padding: 14px 34px 14px 0; font-size: 16px; font-weight: 600; color: var(--px-navy); line-height: 1.45; }
body.pagebody .px-faq-item > summary::-webkit-details-marker { display: none; }
body.pagebody .px-faq-item > summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 22px; font-weight: 400; color: var(--px-gold); transition: transform .2s ease; }
body.pagebody .px-faq-item[open] > summary::after { transform: rotate(45deg); }
body.pagebody .px-faq-a { padding: 0 0 16px; }
body.pagebody .px-faq-a, body.pagebody .px-faq-a * { font-family: var(--px-sans) !important; }
body.pagebody .px-faq-a p, body.pagebody .px-faq-a li, body.pagebody .px-faq-a div { font-size: 15px !important; line-height: 1.7 !important; color: var(--px-ink) !important; }
body.pagebody .px-faq-a h3 { font-family: var(--px-serif) !important; font-size: 18px !important; margin: 14px 0 6px !important; }
body.pagebody .px-faq-folded > .px-faq-extra { display: none; }

/* px4f T4: an opened day uses the whole column; the day's facts and tips read at a comfortable size; the day's small chart sits below, centred */
@media (min-width: 768px) {
  html body .trek-itinerary li.ditinheader .divtogglechild { padding: 4px 18px 18px !important; }
  html body .trek-itinerary li.ditinheader .itin_left { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
  html body .trek-itinerary li.ditinheader .itin_left > div { max-width: none !important; width: auto !important; }
  html body .trek-itinerary li.ditinheader .itin_left .ittext { margin-top: 8px !important; }
  html body .trek-itinerary li.ditinheader .itin_left .itaccomeals, html body .trek-itinerary li.ditinheader .itin_left .itaccomeals * { font-size: 14.5px !important; line-height: 1.55 !important; }
  html body .trek-itinerary li.ditinheader .itin_left .hh-var-terrains strong { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--px-muted) !important; }
  html body .trek-itinerary li.ditinheader .itin_left .hh-terrain-item { font-size: 14px !important; }
  html body .trek-itinerary li.ditinheader .itin_left h4, html body .trek-itinerary li.ditinheader .itin_left h4 * { font-family: var(--px-serif) !important; font-size: 21px !important; font-weight: 500 !important; text-decoration: none !important; color: var(--px-navy) !important; }
  html body .trek-itinerary li.ditinheader .itin_left h4 { margin: 22px 0 8px !important; }
  html body .trek-itinerary li.ditinheader .itin_left ul { padding-left: 20px !important; }
  html body .trek-itinerary li.ditinheader .itin_left ul li, html body .trek-itinerary li.ditinheader .itin_left > p { font-size: 15.5px !important; line-height: 1.7 !important; color: var(--px-ink) !important; margin: 0 0 8px !important; list-style: disc; }
  html body .trek-itinerary li.ditinheader .itin_left ul li::marker { color: var(--px-gold); }
  html body .trek-itinerary li.ditinheader .itin_right { display: block !important; width: max-content !important; max-width: 100%; margin: 18px auto 0 !important; }
}

/* ---------- px4h (owner 17 Nov): the pricing notes popup, built to read at a glance ---------- */
.hh-pb-notes-modal { font-family: var(--px-sans) !important; color: var(--px-ink); }
.hh-pb-notes-modal .hh-pb-notes-modal-title { font-family: var(--px-serif) !important; font-size: clamp(28px, 2.6vw, 36px) !important; font-weight: 500 !important; color: var(--px-navy) !important; line-height: 1.15 !important; margin: 0 0 18px !important; }
@media (min-width: 900px) {
  .hh-pb-notes-modal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
  .hh-pb-notes-modal .hh-pb-notes-modal-title { grid-column: 1 / -1; }
  .hh-pb-notes-modal .hh-pb-notes-sep { display: none !important; }
}
.hh-pb-notes-modal .hh-pb-notes-block { background: var(--px-paper); border: 1px solid var(--px-line); border-top: 4px solid var(--px-gold); border-radius: 14px; padding: 18px 20px 16px; }
.hh-pb-notes-modal .hh-pb-notes-block.px-gm-parked { display: none !important; }
.hh-pb-notes-modal .hh-pb-notes-h { font-family: var(--px-serif) !important; font-size: 20px !important; font-weight: 600 !important; color: var(--px-navy) !important; margin: 0 0 10px !important; text-transform: none !important; letter-spacing: 0 !important; }
.hh-pb-notes-modal .hh-pb-notes-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.hh-pb-notes-modal .hh-pb-notes-list li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 7px 0 !important; margin: 0 !important; font-size: 14.5px !important; line-height: 1.55 !important; border-top: 1px solid rgba(22,38,66,.06); }
.hh-pb-notes-modal .hh-pb-notes-list li:first-child { border-top: 0; }
.hh-pb-notes-modal .hh-pb-notes-list li > i { color: var(--px-gold) !important; font-size: 14px !important; margin-top: 4px; }
.hh-pb-notes-modal .hh-pb-notes-list .strong { color: var(--px-navy); font-weight: 600; }
.hh-pb-notes-modal .hh-pb-notes-foot { margin: 12px 0 0 !important; padding: 10px 12px; background: #fff; border-radius: 10px; font-size: 13.5px !important; font-weight: 500; color: var(--px-navy) !important; }
.hh-pb-notes-modal .hh-pb-notes-foot i { color: var(--px-gold); }

/* px4t (17 Nov, tablet sweep): iPads and Android tablets get the desktop trek page (the server picks the layout by browser),
   so between 768 and 1023px the desktop trek top keeps its px look. Same rules as above, scoped to the desktop page. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* the hero: one photo across the width, the trek's title on it */
  body.pagebody.hh-view-desktop .trekpages .hero-split .hs-inner { grid-template-columns: 1fr !important; }
  body.pagebody.hh-view-desktop .trekpages .hero-split .hs-copy { display: none !important; }
  body.pagebody.hh-view-desktop .trekpages .hero-split .hs-media { width: 100% !important; }
  body.pagebody.hh-view-desktop .trekpages > .fullwidthbox,
  body.pagebody.hh-view-desktop .trekpages > .fullwidthbox .hero-split,
  body.pagebody.hh-view-desktop .trekpages > .fullwidthbox .hslide,
  body.pagebody.hh-view-desktop .trekpages > .fullwidthbox .hs-inner,
  body.pagebody.hh-view-desktop .trekpages > .fullwidthbox .hs-media { height: min(64vh, 600px) !important; min-height: 440px; max-height: none !important; }
  body.pagebody.hh-view-desktop .trekpages > .fullwidthbox { overflow: hidden; margin-bottom: 0 !important; padding-bottom: 0 !important; }
  body.pagebody.hh-view-desktop .trekpages > .fullwidthbox .hs-img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; object-position: 50% 55% !important; }
  body.pagebody.hh-view-desktop .trekpages .fullwidthbox.px-th::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, rgba(10,18,34,0) 36%, rgba(10,18,34,.35) 60%, rgba(10,18,34,.8) 100%);
  }
  body.pagebody.hh-view-desktop .px-th-copy {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
    padding: 0 var(--px-col, 28px) 72px; color: #fff;
  }
  body.pagebody.hh-view-desktop .px-th-copy h1.trekheading {
    font-family: var(--px-serif) !important; font-weight: 500 !important; color: #fff !important;
    font-size: clamp(38px, 4.2vw, 60px) !important; line-height: 1.05 !important; margin: 12px 0 12px !important;
    max-width: 24ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); text-align: left !important;
  }
  body.pagebody.hh-view-desktop .px-th-copy .blsubtitle {
    font-family: var(--px-sans) !important; font-size: 17px !important; line-height: 1.55 !important; font-weight: 400 !important;
    color: rgba(255,255,255,.94) !important; max-width: 62ch; text-shadow: 0 1px 10px rgba(0,0,0,.45); margin: 0 !important; padding: 0 !important; text-align: left !important;
    background: none !important; border: 0 !important; box-shadow: none !important;
  }
  body.pagebody.hh-view-desktop .px-th-copy .breadcrumb { background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.3) !important; border-radius: 999px !important; padding: 2px 12px !important; margin: 0 !important; backdrop-filter: blur(6px); }
  body.pagebody.hh-view-desktop .px-th-copy .breadcrumb, body.pagebody.hh-view-desktop .px-th-copy .breadcrumb * { color: #fff !important; background-color: transparent !important; box-shadow: none !important; }
  body.pagebody.hh-view-desktop .treksubheadingblock.px-th-moved { display: none !important; }

  /* the band: facts, price, quote */
  body.pagebody.hh-view-desktop .px-tb {
    clear: both; display: flex; align-items: center; gap: 28px; justify-content: space-between;
    background: #fff; border: 1px solid var(--px-line); border-radius: 16px; box-shadow: 0 2px 4px rgba(22,38,66,.06), 0 14px 34px rgba(22,38,66,.12);
    padding: 20px 26px; margin: -44px 0 8px; position: relative; z-index: 4;
  }
  body.pagebody.hh-view-desktop .px-tb-facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; }
  body.pagebody.hh-view-desktop .px-tb-fact dt { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--px-muted); margin: 0 0 3px; }
  body.pagebody.hh-view-desktop .px-tb-fact dd { font-size: 16px; font-weight: 600; color: var(--px-ink); margin: 0; }
  body.pagebody.hh-view-desktop .px-tb-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; text-align: right; }
  body.pagebody.hh-view-desktop .px-tb-price { margin: 0 !important; font-size: 14px; color: var(--px-muted); }
  body.pagebody.hh-view-desktop .px-tb-price strong { font-family: var(--px-serif); font-size: 22px; font-weight: 600; color: var(--px-navy); }
  body.pagebody.hh-view-desktop a.px-tb-btn {
    display: inline-block; background: var(--px-gold); color: var(--px-navy) !important; font-weight: 700; font-size: 15px;
    padding: 12px 24px; border-radius: 999px; text-decoration: none !important; box-shadow: 0 6px 16px rgba(201,149,43,.3);
  }
  body.pagebody.hh-view-desktop a.px-tb-btn:hover { filter: brightness(1.06); }
  body.pagebody.hh-view-desktop a.px-tb-link { font-size: 14px; font-weight: 600; color: var(--px-navy) !important; text-decoration: underline; text-underline-offset: 3px; }
  body.pagebody.hh-view-desktop .px-tb { flex-direction: column; align-items: stretch; }
  body.pagebody.hh-view-desktop .px-tb-act { flex-direction: row; align-items: center; justify-content: space-between; }
  html body.hh-view-desktop .trekpages .treksubheadingblock { display: none !important; }
  html body.hh-view-desktop .trekpages > .fullwidthbox { transition: none !important; }
  html body.hh-view-desktop .trekpages:not(.px-tb-ready) > .fullwidthbox { margin-bottom: 122px !important; }
}

/* px4-28 (owner 18 Nov): an opened day reads lighter. The facts are plain rows with hairlines instead of a box each;
   terrain / effort / view words get room between icon and word and between items; the small day chart loses its empty top. */
@media (min-width: 768px) {
  html body .trek-itinerary li.ditinheader .itin_left .ittext, html body .trek-itinerary li.ditinheader .itin_left .itaccomeals, html body .trek-itinerary li.ditinheader .itin_left .hh-var-terrains { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
  html body .trek-itinerary li.ditinheader .itin_left .ittext { padding: 4px 0 12px !important; font-size: 15.5px !important; line-height: 1.6 !important; color: var(--px-ink) !important; }
  html body .trek-itinerary li.ditinheader .itin_left .ittext .itinarrivein > i { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--px-navy) !important; color: #fff !important; font-size: 12px !important; vertical-align: -6px; }
  html body .trek-itinerary li.ditinheader .itin_left .ittext .hh-note { margin: 6px 0 0 !important; padding: 1px 8px !important; border-radius: 999px !important; font-size: 12px !important; }
  html body .trek-itinerary li.ditinheader .itin_left .itaccomeals { padding: 8px 0 !important; border-top: 1px solid var(--px-line) !important; }
  html body .trek-itinerary li.ditinheader .itin_left .itaccomeals > span:first-child { color: var(--px-muted) !important; font-weight: 600 !important; margin-right: 4px; }
  html body .trek-itinerary li.ditinheader .itin_left .itaccomeals i { width: 18px !important; margin-right: 8px !important; text-align: center; background: none !important; }
  html body .trek-itinerary li.ditinheader .itin_left .hh-var-terrains:not(.itaccomeals):not(.ittext) { padding: 12px 0 2px !important; border-top: 1px solid var(--px-line) !important; }
  html body .trek-itinerary li.ditinheader .itin_left .hh-var-terrains > strong { display: block; margin: 0 0 6px !important; font-size: 11.5px !important; }
  html body .trek-itinerary li.ditinheader .itin_left .hh-terrain-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  html body .trek-itinerary li.ditinheader .itin_left span.hh-terrain-item { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 1.5 !important; color: var(--px-ink) !important; }
  html body .trek-itinerary li.ditinheader .itin_left span.hh-terrain-item .hh-ico { width: 16px; text-align: center; font-size: 13px !important; color: var(--px-gold) !important; margin: 0 !important; }
  html body .trek-itinerary li.ditinheader .itin_left h4 { margin-top: 18px !important; }
  html body .trek-itinerary li.ditinheader .itin_right { margin-top: 10px !important; }
  html body .trek-itinerary li.ditinheader .itin_right .graphwrapper { overflow: visible; overflow-y: clip; overflow-clip-margin: 0; padding-top: 4px; }
}

/* px4-29 (owner 18 Nov): the day's photos get rounded corners and sit in an even row that fills the day box (they stay
   unclickable). Phones keep their own two-column grid from hh-mobile-itinerary.css, rounded the same way. */
html body:not(.hh-view-mobile) .trek-itinerary li.ditinheader .itin_right_right { margin: 8px 0 4px !important; padding: 0 !important; clear: both; }
html body .trek-itinerary .trekitineraryphotos ul.ditiimages { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; padding: 0 !important; margin: 0 !important; width: 100%; }
html body .trek-itinerary ul.ditiimages li { display: block !important; margin: 0 !important; padding: 0 !important; }
html body .trek-itinerary ul.ditiimages img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; padding: 0 !important; border-radius: 10px !important; box-shadow: 0 1px 3px rgba(22,38,66,.10); }
html body.hh-view-mobile .trek-itinerary .trekitineraryphotos ul.ditiimages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* px4-30 (owner 18 Nov): the day box decides its own layout from what the day has (px-trek.js sets the classes).
   - 3 to 5 photos: a small mosaic right under the day's route line (px-mos-3/4/5), first photo large. The thumbnails are only
     stretched a little (mosaic at most 380px wide), so no bigger files are loaded.
   - 1 or 2 photos: the rounded row at the bottom, as px4-29 (px-phrow). No photos: nothing.
   - distance and hours in the collapsed header, only when every day of the trek has both (px-haskm). */
html body .trek-itinerary ul.ditiimages > li.px-ph-off { display: none !important; }
html body .trek-itinerary li.px-mos .itin_left .itin_right_right { margin: 2px 0 14px !important; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; max-width: 380px; clear: none; }
html body .trek-itinerary li.px-mos .trekitineraryphotos ul.ditiimages { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 60px; gap: 6px; }
html body .trek-itinerary li.px-mos-3 .trekitineraryphotos ul.ditiimages { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 64px; }
html body .trek-itinerary li.px-mos .trekitineraryphotos ul.ditiimages > li { overflow: hidden; border-radius: 10px; }
html body .trek-itinerary li.px-mos .trekitineraryphotos ul.ditiimages > li.px-ph-lead { grid-column: span 2; grid-row: span 2; }
html body .trek-itinerary li.px-mos-4 .trekitineraryphotos ul.ditiimages > li.px-ph-last { grid-column: span 2; }
html body .trek-itinerary li.px-mos .trekitineraryphotos ul.ditiimages img { width: 100% !important; height: 100% !important; aspect-ratio: auto; object-fit: cover; box-shadow: none; }
html body:not(.hh-view-mobile) .trek-itinerary li.px-haskm > h3 { position: relative; padding-right: 128px !important; }
html body:not(.hh-view-mobile) .trek-itinerary li.px-haskm > h3 .px-dkm { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
html body .trek-itinerary li.px-haskm > h3 .px-dkm { font: 500 12.5px/1.3 var(--px-sans) !important; letter-spacing: 0 !important; word-spacing: 0 !important; text-transform: none !important; color: var(--px-muted) !important; white-space: nowrap; }
html body.hh-view-mobile .trek-itinerary li.px-haskm > h3 .px-dkm { display: block; margin: 3px 0 0; font-size: 11.5px !important; }
/* px4-30, phones: the collapsed day stays two short lines: the day pill beside the title, then the day type and the
   distance on one quiet line under it. */
html body.hh-view-mobile .trek-itinerary li.ditinheader > h3 { padding: 10px 12px !important; column-gap: 10px !important; row-gap: 0 !important; align-items: center !important; }
html body.hh-view-mobile .trek-itinerary li.ditinheader > h3 .day { grid-row: auto !important; font-size: 11px !important; padding: 3px 9px !important; }
html body.hh-view-mobile .trek-itinerary li.ditinheader > h3 .ditdd { grid-row: auto !important; display: flex !important; flex-wrap: wrap; align-items: center; gap: 3px 8px !important; border: 0 !important; }
html body.hh-view-mobile .trek-itinerary li.ditinheader > h3 .itindaytitle { flex: 1 0 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 14px !important; line-height: 1.3 !important; }
html body.hh-view-mobile .trek-itinerary li.ditinheader > h3 [class*="itinsummary"] { display: inline-block !important; font-size: 11px !important; line-height: 1.5 !important; padding: 0 8px !important; max-width: 60vw; }
html body.hh-view-mobile .trek-itinerary li.px-haskm > h3 .px-dkm { display: inline; margin: 0 !important; }
html body .trek-itinerary li.px-haskm > h3 .px-dkm { border: 0 !important; padding: 0 !important; background: none !important; }
/* px4-30: the article list rule (indent, item spacing) does not apply to the day photos */
body.pagebody main #ctl00_divCenter .trek-itinerary .trekitineraryphotos ul.ditiimages:not(#px_) { padding: 0 !important; margin: 0 !important; }
body.pagebody main #ctl00_divCenter .trek-itinerary .trekitineraryphotos ul.ditiimages:not(#px_) > li { margin: 0 !important; padding: 0 !important; }
body.pagebody main #ctl00_divCenter .trek-itinerary li.px-mos .itin_left .itin_right_right { max-width: 380px !important; }
/* px4-31: the large tile is placed first whichever photo it is; on phones the row uses three columns so a 320 px copy
   stays sharp on dense screens */
html body .trek-itinerary li.px-mos .trekitineraryphotos ul.ditiimages > li.px-ph-lead { order: -1; }
html body.hh-view-mobile .trek-itinerary li.px-phrow .trekitineraryphotos ul.ditiimages { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
