/* ==========================================================================
   Home (front page)
   ========================================================================== */
.hp-section { padding-block: clamp(48px, 7vw, 96px); }
.hp-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 24px; }
.hp-sec-link { font-weight: 600; color: var(--hp-ink); border-bottom: 2px solid var(--hp-saffron); }

/* Story / hero */
.hp-story { position: relative; background: #EEF3F2; }
/* dvh (with a vh fallback) tracks the visible viewport on iOS — matching window.innerHeight, which the
   scroll-story JS reads — so the sticky fly-through and the chapters stay in sync as Safari's toolbar
   shows/hides. Plain 100vh (toolbar-hidden height) drifted out of step on iOS. */
.hp-story__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.hp-story__bg { position: absolute; inset: 0; background: linear-gradient(180deg, #BFD9EA 0%, #EEF3F2 62%, #E6EEF1 100%); }
.hp-story__poster { position: absolute; inset: 0; transition: opacity 1.8s ease; }
.hp-story__poster svg { width: 100%; height: 100%; display: block; }
.hp-story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.hp-story__labels { position: absolute; inset: 0; pointer-events: none; }
.hp-story__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(243,246,247,.55)); }
.hp-story__rail { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 8px; transition: background .5s ease, color .5s ease; }
/* Over the dark night chapter the rail flips to a dark glass panel with light text. */
.hp-story__rail.is-dark { background: rgba(7,19,27,.72); }
.hp-story__rail.is-dark, .hp-story__rail.is-dark [data-ch], .hp-story__rail.is-dark [data-ch] * { color: #fff; }
.hp-story__rail.is-dark [data-ch].is-on { color: #fff; }
.hp-rail__btn { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 999px; cursor: pointer; color: #40515B; transition: .3s; }
.hp-rail__n { font-size: 11px; color: #7A8790; }
.hp-rail__l { font-size: 13px; font-weight: 600; }
.hp-rail__dot { width: 8px; height: 8px; border-radius: 50%; background: #C6D2D8; margin-left: auto; }
.hp-rail__btn.is-on { color: var(--hp-ink); background: rgba(255,159,28,.14); }
.hp-rail__btn.is-on .hp-rail__dot { width: 12px; height: 12px; background: var(--hp-saffron); box-shadow: 0 0 0 4px rgba(255,159,28,.25); }

.hp-story__chapters { position: relative; z-index: 6; margin-top: -100vh; margin-top: -100dvh; }
.hp-chapter { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: 0 clamp(16px, 6vw, 90px); }
#ch-3, #ch-5 { justify-content: flex-end; }
.hp-chapter:nth-child(even) { justify-content: flex-end; }
@media (max-width: 820px) { .hp-chapter, .hp-chapter:nth-child(even) { justify-content: flex-end; padding-right: 16px; } }

.hp-hero { max-width: 760px; animation: hp-up .9s cubic-bezier(.2,.7,.2,1) backwards; padding-top: calc(var(--hp-abar, 0px) + 24px); }
.hp-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.72); padding: 8px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hp-ink); }
.hp-hero__badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hp-saffron); }
/* White + soft shadow so the headline stays legible over both the pale sky and the 3D terrain. */
.hp-hero__h1 { font-family: var(--hp-font-display); font-size: clamp(44px, 7.4vw, 104px); line-height: .95; letter-spacing: -.035em; margin: 14px 0; white-space: nowrap; color: #fff; text-shadow: 0 2px 28px rgba(7,19,27,.5), 0 1px 3px rgba(7,19,27,.35); }
.hp-hero__pink { color: var(--hp-saffron-l); font-style: italic; font-weight: 600; }
.hp-hero__intro { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 14px; padding: 14px 18px; font-size: clamp(15px,1.4vw,18px); color: #1F2E37; max-width: 560px; }
.hp-hero__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; animation: hp-up 1s .3s both; }
.hp-trust { background: rgba(255,255,255,.82); border-radius: 999px; padding: 8px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.hp-trust__g { font-family: var(--hp-font-display); font-weight: 800; color: #1C5FD4; }
/* Scroll cue: white on a subtle plate so it reads over the terrain; hidden on phones (natural scroll
   + the sticky CTA bar already occupies the bottom). Dot never fully vanishes. */
.hp-hero__cue { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: #fff; font-weight: 600; background: rgba(7,19,27,.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 8px 14px; border-radius: 999px; text-shadow: 0 1px 2px rgba(7,19,27,.4); }
.hp-hero__mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; display: inline-flex; justify-content: center; padding-top: 5px; }
.hp-hero__mdot { width: 4px; height: 8px; border-radius: 2px; background: var(--hp-saffron); animation: hp-cue 1.8s infinite; }
@keyframes hp-cue { 0% { transform: translateY(-4px); opacity: .35; } 40% { opacity: 1; } 100% { transform: translateY(12px); opacity: .35; } }
@media (max-width: 820px) { .hp-hero__cue { display: none; } }
@keyframes hp-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hp-chcard { max-width: 460px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 18px; padding: 22px; box-shadow: var(--hp-shadow-card); }
.hp-chcard--dark { background: rgba(7,19,27,.84); color: #fff; max-width: 440px; }
.hp-chcard__img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.hp-chcard__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hp-saffron-ink-2); }
.hp-chcard--dark .hp-chcard__kicker { color: var(--hp-saffron-l); }
.hp-chcard__h2 { font-family: var(--hp-font-display); font-size: clamp(30px,3.4vw,44px); line-height: 1.05; margin: 6px 0; color: inherit; }
.hp-chcard__body { color: var(--hp-text-2); }
.hp-chcard--dark .hp-chcard__body { color: #C6D2D8; }
.hp-chcard__link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--hp-ink); border-bottom: 2px solid var(--hp-saffron); }
.hp-chcard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hp-chchip { padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.hp-chchip--saffron { background: #FFF1DC; color: #7A4100; border: 1px solid #FFD699; }
.hp-chchip--grey { background: #EEF2F3; color: var(--hp-ink); }
.hp-chchip--pink { background: var(--hp-pink); color: #fff; }
.hp-chchip--ink { background: var(--hp-ink); color: #fff; }

/* Hero search */
.hp-hsearch { background: #fff; border-radius: 18px; box-shadow: var(--hp-shadow-card); padding: 8px; margin-top: 18px; max-width: 980px; position: relative; animation: hp-up 1s .15s backwards; }
/* Home section headlines are large display type (design: 44–68px); restore the hierarchy the shared .hp-h2 (max 36px) flattens. */
.home .hp-h2 { font-size: clamp(32px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -.02em; }
.hp-sec-sub { font-size: 17px; line-height: 1.6; color: var(--hp-text-2); margin: 14px 0 0; max-width: 640px; }
/* Featured-trips filter chips. */
.hp-tripchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.hp-tripchips::-webkit-scrollbar { display: none; }
.hp-tripchip { flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid rgba(14,27,36,.16); background: #fff; color: var(--hp-ink); min-height: 40px; }
.hp-tripchip.is-on { border-color: var(--hp-ink); background: var(--hp-ink); color: #fff; }
/* The featured-trips grid (trip.css isn't enqueued on Home, so define the columns here too). */
.hp-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.hp-trip-cell { display: flex; min-width: 0; }
.hp-trip-cell > * { flex: 1 1 auto; min-width: 0; }
.hp-hsearch__tabs { display: flex; gap: 4px; padding: 4px; }
.hp-hsearch__tab { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 700; color: var(--hp-text-2); cursor: pointer; }
.hp-hsearch__tab.is-on { background: var(--hp-ink); color: #fff; }
.hp-hsearch__row { display: flex; gap: 6px; padding: 4px; }
@media (max-width: 820px) { .hp-hsearch__row { flex-direction: column; } }
.hp-hsearch__field, .hp-hsearch__btn { flex: 1; background: var(--hp-bg); border: 0; border-radius: 10px; padding: 10px 14px; text-align: left; display: flex; flex-direction: column; cursor: pointer; min-height: 58px; justify-content: center; }
.hp-hsearch__field select { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 0; }
.hp-hsearch__go { flex: 0 0 auto; min-height: 58px; background: var(--hp-saffron); color: var(--hp-ink); border: 0; border-radius: 12px; padding: 0 22px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.hp-hsearch__go:hover { background: var(--hp-saffron-l); }
.hp-hsearch__go .hp-icon { width: 18px; height: 18px; }

/* Marquee */
.hp-marquee { background: var(--hp-ink); color: #fff; padding: 16px 0; overflow: hidden; }
.hp-marquee__row { display: flex; width: max-content; animation: hp-marq 48s linear infinite; }
.hp-marquee__track { font-family: var(--hp-font-display); font-size: clamp(20px,2.4vw,30px); white-space: nowrap; padding-right: 20px; }
@keyframes hp-marq { to { transform: translateX(-50%); } }

/* Seasons */
.hp-seasons { background: #fff; border-top: 1px solid var(--hp-line-08); }
.hp-live { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-live__chip { background: var(--hp-bg); border-radius: 12px; padding: 10px 12px; min-width: 110px; }
.hp-live__top { font-size: 12px; color: var(--hp-muted); display: flex; align-items: center; gap: 6px; }
.hp-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hp-green); animation: hp-pulse 2.4s infinite; }
@keyframes hp-pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
.hp-live__temp { font-family: var(--hp-font-display); font-size: 22px; font-weight: 700; }
.hp-live__label { font-size: 12px; color: var(--hp-muted); }
.hp-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-bottom: 20px; }
.hp-month { border: 0; background: var(--hp-bg); border-radius: 10px; padding: 10px 4px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hp-month.is-on { background: var(--hp-ink); color: #fff; }
.hp-month__bar { width: 70%; height: 4px; border-radius: 2px; }
.hp-month__bar--peak { background: var(--hp-saffron); }
.hp-month__bar--green { background: var(--hp-green); }
.hp-month__bar--mixed { background: linear-gradient(90deg, var(--hp-green) 50%, var(--hp-saffron) 50%); }
.hp-monthdetail { display: grid; grid-template-columns: 1.05fr 1fr .9fr; gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .hp-monthdetail { grid-template-columns: 1fr; } }
.hp-md-photo { min-height: 380px; border-radius: 18px; background-size: cover; background-position: center; color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.hp-md-chip { align-self: flex-start; background: var(--hp-saffron); color: var(--hp-ink); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin-bottom: auto; }
.hp-md-name { font-family: var(--hp-font-display); font-size: 30px; }
.hp-md-mood { font-size: 14px; color: #E3EAEE; }
.hp-md-open { background: var(--hp-bg); border-radius: 18px; padding: 18px; }
.hp-md-open__h { font-weight: 700; margin-bottom: 10px; }
.hp-md-orow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--hp-line-08); }
.hp-md-stat { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.hp-md-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.hp-md-tile { background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.hp-md-tile span { font-size: 12px; color: var(--hp-muted); }
.hp-md-picks { background: var(--hp-ink); color: #fff; border-radius: 18px; padding: 18px; }
.hp-md-picks__h { font-weight: 700; margin-bottom: 10px; }
/* These sit on the dark "Good in <month>" card, so the link text must be white — not the global
   blue link colour it was inheriting. */
.hp-md-pick { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: #fff; text-decoration: none; transition: opacity var(--hp-t-fast, .15s); }
.hp-md-pick:hover { color: #fff; text-decoration: none; opacity: .82; }
.hp-md-pick:hover .hp-md-pick__n { text-decoration: underline; text-underline-offset: 2px; }
.hp-md-pick img { width: 54px; height: 44px; object-fit: cover; border-radius: 8px; }
.hp-md-pick__n { display: block; font-weight: 600; color: #fff; }
.hp-md-pick__p { color: #FFC266; font-size: 13px; }
.hp-md-note { font-size: 12.5px; color: #AFBDC5; margin-top: 12px; }

/* Stay block */
.hp-stayblock { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 1080px) { .hp-stayblock { grid-template-columns: 1fr; } }
.hp-staystack { position: relative; height: clamp(380px, 48vw, 600px); }
.hp-staystack img { position: absolute; border-radius: 16px; object-fit: cover; box-shadow: var(--hp-shadow-card); transition: transform .8s cubic-bezier(.2,.7,.2,1); will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hp-staystack__a { left: 0; top: 8%; width: 64%; height: 74%; }
.hp-staystack__b { right: 0; top: 0; width: 44%; height: 42%; border: 4px solid #F3F6F7; }
.hp-staystack__c { right: 0; bottom: 0; width: 48%; height: 40%; }
.hp-staystack__badge { position: absolute; left: 0; bottom: 0; background: var(--hp-ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; }
.hp-roomlist { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.hp-roomrow { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--hp-line-08); border-radius: 12px; transition: border-color .2s; }
.hp-roomrow:hover { border-color: var(--hp-saffron); text-decoration: none; }
.hp-roomrow img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.hp-roomrow__b { flex: 1; }
.hp-roomrow__n { font-weight: 700; display: block; }
.hp-roomrow__s { font-size: 13px; color: var(--hp-muted); }
.hp-roomrow__p { font-family: var(--hp-font-display); font-weight: 700; text-align: right; }
.hp-roomrow__p span { display: block; font-size: 11px; color: var(--hp-muted); font-family: var(--hp-font-ui); font-weight: 400; }

/* Why book */
.hp-whybook { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; background: #fff; border-radius: 22px; padding: clamp(24px,4vw,44px); align-items: center; }
@media (max-width: 1080px) { .hp-whybook { grid-template-columns: 1fr; } }
.hp-compare { border-radius: 14px; overflow: hidden; }
.hp-compare__row { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 8px; padding: 12px 14px; align-items: center; }
.hp-compare__row:nth-child(even) { background: #F7F9F9; }
.hp-compare__head { background: var(--hp-ink); color: #fff; }
.hp-compare__yes { color: var(--hp-green); font-weight: 800; text-align: center; }
.hp-compare__no { color: var(--hp-muted); text-align: center; }

/* Reviews */
.hp-reviews-sec { background: var(--hp-ink); color: #fff; padding-block: clamp(48px,7vw,96px); }
.hp-rating-badge2 { background: #fff; color: var(--hp-ink); border-radius: 12px; padding: 10px 16px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.hp-revcarousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.hp-revcarousel::-webkit-scrollbar { display: none; }
.hp-revcard { flex: 0 0 min(360px, 84vw); scroll-snap-align: start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 20px; margin: 0; }
.hp-revcard blockquote { margin: 10px 0; color: #E3EAEE; }
.hp-revcard figcaption { display: flex; gap: 10px; align-items: center; }
.hp-revcard__av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.hp-revfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.hp-revnav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; cursor: pointer; font-size: 20px; }
.hp-revnav button:last-child { background: var(--hp-saffron); color: var(--hp-ink); border: 0; }

/* Manage + plan */
.hp-manageplan { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1080px) { .hp-manageplan { grid-template-columns: 1fr; } }
.hp-mp-card { border-radius: 22px; padding: clamp(22px,3vw,36px); }
.hp-mp-card--warm { background: linear-gradient(160deg, #FFE3BD, #FFD08A); }
.hp-mp-card--ink { color: #fff; background-size: cover; background-position: center; }
.hp-mp-find { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 820px) { .hp-mp-find { flex-direction: column; } }
.hp-mp-faq { display: inline-block; margin-top: 12px; color: #fff; text-decoration: underline; }

/* Sticky mobile bar */
.hp-stickybar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; display: none; gap: 10px; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px; box-shadow: var(--hp-shadow-pop); transform: translateY(140%); transition: transform .35s ease; padding-bottom: calc(10px + env(safe-area-inset-bottom,0px)); }
.hp-stickybar.is-on { transform: none; }
@media (max-width: 820px) { .hp-stickybar { display: flex; } }
/* Hide the floating CTA bar while a date/traveller sheet is open — it is a body-level fixed bar that
   would otherwise overlap the bottom sheet. */
html.hp-sb-pop-open .hp-stickybar { display: none !important; }
.hp-stickybar__wa { width: 52px; height: 52px; border-radius: 12px; background: var(--hp-whatsapp); color: var(--hp-whatsapp-ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hp-stickybar__wa .hp-icon { width: 24px; height: 24px; }
.hp-stickybar__cta { flex: 1; background: var(--hp-saffron); color: var(--hp-ink); border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .hp-marquee__row, .hp-hero__mdot, .hp-live__dot, .hp-hero, .hp-hero__trust { animation: none !important; }
}

/* Terrain credit chip on the story stage */
.hp-story__credit { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 600; color: var(--hp-text-2); box-shadow: var(--hp-shadow-sm); }
.hp-story__credit-bar { width: 18px; height: 4px; border-radius: 2px; background: var(--hp-saffron); }
@media (max-width: 820px) { .hp-story__credit { display: none; } }

/* ==== Responsive audit fixes ==== */
@media (max-width: 560px) { .hp-hero__h1 { white-space: normal; } }
@media (max-width: 820px) {
  /* The fixed header floats over the hero on the home page, and --hp-hdr is zeroed inside .hp-main by
     the overlay rule — so on phones the vertically-centred, taller-than-viewport hero was pushed up
     under the 68px header. Top-align the hero chapter and pad by the real header height so the hero
     starts cleanly below the header. */
  #ch-0 { align-items: flex-start; }
  .hp-hero { padding-top: calc(var(--hp-abar, 0px) + env(safe-area-inset-top, 0px) + 112px); } /* clear header + breathing room */
  body.hp-stickybar-on { padding-bottom: 88px; } /* clear the fixed mobile CTA bar — only while it is shown */
  /* Let the 3D terrain show on phones: the chapter cards were a near-solid 460px block with a photo.
     Make them narrower, lighter and drop the in-card photo so the fly-through is visible around/through. */
  .hp-chcard, .hp-chcard--dark { max-width: min(76vw, 320px); padding: 16px; background: rgba(255,255,255,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .hp-chcard--dark { background: rgba(7,19,27,.66); }
  .hp-chcard__img { display: none; }
  .hp-chcard__h2 { font-size: clamp(23px, 5.6vw, 28px); }
  .hp-chcard__body { font-size: 14px; line-height: 1.5; }
}
.hp-tripchip { min-height: 44px; }
