/* ============================================================
   Highline Adventures — public front end (frontend-redesign)
   templates/base_front.html (home, adventures): dark
   cinematic, one chapter per viewport, CSS scroll-snap, no
   Tailwind (Lighthouse). templates/base.html (shop, cart,
   checkout, portal, CMS) loads it too — see "Classic pages"
   at the end, every rule there scoped to html.fe-public.
   ============================================================ */

:root {
  --fe-bg: #0a0a0a;
  --fe-bg-2: #0f0f0f;
  --fe-panel: #141414;
  --fe-panel-2: #171717;
  --fe-line: #262626;
  --fe-text: #ffffff;
  --fe-text-2: #d0d0d0;
  --fe-text-3: #a3a3a3;
  --fe-muted: #6f6f6f;
  --fe-accent: #FEA301;
  --fe-accent-hover: #F57F01;
  --fe-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --fe-sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fe-gutter: 56px;
  --fe-hdr-h: 96px;
  --fe-bar-h: 0px; /* 80px while the bottom booking bar is open on tall desktops (html.fe-bar-open) = what page content clears at the bottom */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fe-bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--fe-bg);
  color: var(--fe-text);
  font-family: var(--fe-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video, iframe { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--fe-display); font-weight: 400; text-wrap: balance; }
p { margin: 0; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Scroll-snap container (the page itself scrolls) ─────── */
html.fe-snap { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.fe-snap { scroll-behavior: auto; } }
.fe-chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--fe-bg);
  padding: var(--fe-hdr-h) 120px calc(80px + var(--fe-bar-h)) var(--fe-gutter);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.fe-chapter--alt { background: var(--fe-bg-2); }
.fe-chapter--hero { padding: 0; justify-content: flex-end; }
.fe-chapter--tight { padding-bottom: calc(40px + var(--fe-bar-h)); gap: 24px; } /* desktop only; phones keep their own padding */

/* ── Type ────────────────────────────────────────────────── */
.fe-kicker { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fe-accent); font-weight: 600; }
.fe-h1 { font-size: clamp(88px, 11.6vw, 168px); line-height: 0.9; letter-spacing: 0.01em; }
.fe-h2 { font-size: clamp(56px, 6.6vw, 96px); line-height: 0.95; }
.fe-h2--xl { font-size: clamp(64px, 7.8vw, 112px); line-height: 0.92; }
.fe-h3 { font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; }
.fe-h2--long { font-size: clamp(48px, 5.4vw, 88px); } /* long headlines that must still fit one frame */
.fe-lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; color: #d9d9d9; max-width: 640px; }
.fe-body { font-size: 18px; line-height: 1.5; color: var(--fe-text-2); max-width: 460px; }
.fe-price { font-size: 15px; color: var(--fe-accent); font-weight: 600; }
.fe-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fe-text-3); }

/* ── Buttons & links ─────────────────────────────────────── */
.fe-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fe-accent); color: var(--fe-bg); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
  align-self: flex-start;
}
.fe-btn:hover { background: var(--fe-accent-hover); color: var(--fe-bg); transform: translateY(-1px); }
.fe-btn--sm { font-size: 14px; padding: 12px 22px; }
.fe-btn:disabled { opacity: 0.4; pointer-events: none; }
.fe-link {
  font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--fe-accent); padding-bottom: 4px;
  align-self: flex-start;
}
.fe-link:hover { color: var(--fe-accent); }

/* ── Header (see-through; .is-solid once content slides under it, base_front.html) ── */
.fe-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--fe-hdr-h); padding: 0 var(--fe-gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,10,0.6), rgba(10,10,10,0)) no-repeat;
  border-bottom: 1px solid transparent; /* so going solid doesn't nudge the logo */
  transition: background-color .2s, border-color .2s;
  pointer-events: none;
}
.fe-header > * { pointer-events: auto; }
.fe-logo img { height: 56px; width: auto; }
.fe-header-actions { display: flex; align-items: center; gap: 28px; }
.fe-icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--fe-text); cursor: pointer; padding: 0; position: relative;
  text-decoration: none;
}
.fe-icon-btn:hover { color: var(--fe-accent); }
.fe-cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--fe-accent); color: var(--fe-bg);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.fe-burger { flex-direction: column; justify-content: center; gap: 7px; padding: 0 8px; }
.fe-burger span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform 200ms ease, width 200ms ease; }
.fe-burger span:last-child { width: 70%; }
.fe-burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.fe-burger[aria-expanded="true"] span:last-child { width: 100%; transform: translateY(-4.5px) rotate(-45deg); }
/* Menu open: lift the bar over .fe-menu so the X shows and can close it (phones have no Escape) */
.fe-header:has(.fe-burger[aria-expanded="true"]) { z-index: 60; }

/* ── Full-screen overlay menu ────────────────────────────── */
.fe-menu {
  position: fixed; inset: 0; z-index: 50; background: rgba(10,10,10,0.97);
  padding: var(--fe-hdr-h) var(--fe-gutter) 48px;
  display: flex; flex-direction: column; justify-content: center; justify-content: safe center; gap: 48px;
  overflow-y: auto;
}
.fe-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fe-menu-main a, .fe-menu-main span {
  font-family: var(--fe-display); font-size: clamp(48px, 7vw, 88px); line-height: 1; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 18px;
}
.fe-menu-main a:hover { color: var(--fe-accent); }
.fe-menu-main small { font-family: var(--fe-sans); font-size: 13px; letter-spacing: 0.2em; color: var(--fe-muted); }
/* Admin-managed sub-links, under their parent and in line with its label */
.fe-menu-main .fe-menu-sub { flex-direction: row; flex-wrap: wrap; gap: 6px 24px; padding: 4px 0 10px 46px; }
.fe-menu-main .fe-menu-sub a { font-family: var(--fe-sans); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fe-text-3); }
.fe-menu-main .fe-menu-sub a:hover { color: var(--fe-accent); }
.fe-menu-foot { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fe-text-3); }
.fe-menu-foot a { text-decoration: none; }
.fe-menu-foot a:hover { color: var(--fe-accent); }
.fe-menu .fe-menu-top { display: none; } /* Home (+ Search later) at the top of the phone menu; desktop has the icons in the header (.fe-menu ul sets display, hence two classes) */
[x-cloak] { display: none !important; }

/* ── Chapter index (right edge): one-word labels on desktop (the lit word is the marker), dashes on phones ── */
.fe-index {
  position: fixed; right: var(--fe-gutter); top: 50%; transform: translateY(-50%); z-index: 30;
  display: flex; flex-direction: column; gap: 16px; text-align: right;
  font-family: var(--fe-display); font-size: 15px; letter-spacing: 0.1em; /* the widest word (Electric, Reviews) must stay inside the 120px the frames clear on the right */
}
.fe-index a { color: var(--fe-muted); text-decoration: none; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.fe-index a::after { content: ''; display: none; width: 0; height: 2px; background: var(--fe-accent); transition: width 200ms ease; }
.fe-index a:hover { color: var(--fe-text); }
.fe-index a[aria-current="true"] { color: var(--fe-accent); }
.fe-index a[aria-current="true"]::after { width: 28px; }
@media (max-height: 640px) { .fe-index { gap: 10px; } } /* 12 home frames: the rail reaches the header and the corner Book button otherwise */

/* ── Video slot (silent autoplay embed, 16:9 cover) ──────── */
.fe-video { position: absolute; inset: 0; overflow: hidden; background: var(--fe-bg); }
.fe-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fe-video iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none; max-width: none;
  /* cover: wider of 16:9-by-height or by-width */
  width: max(100%, 177.78vh); height: max(100%, 56.25vw);
  /* scale pushes the YouTube title bar and logo off-screen */
  transform: translate(-50%, -50%) scale(1.35);
}
.fe-video--card iframe { width: max(100%, 177.78cqh); height: max(100%, 56.25cqw); }
.fe-video--card { container-type: size; }
.fe-scrim { position: absolute; inset: 0; pointer-events: none; }
.fe-scrim--hero { background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 35%, rgba(10,10,10,0.85) 100%); }
.fe-scrim--card { background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.9) 100%); }
.fe-scrim--panel { background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,0.92) 100%); }

/* ── Hero ────────────────────────────────────────────────── */
.fe-hero-copy { position: relative; padding: 0 var(--fe-gutter) calc(96px + var(--fe-bar-h)); display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.fe-scroll-hint { position: absolute; left: var(--fe-gutter); bottom: calc(40px + var(--fe-bar-h)); display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #9a9a9a; }

/* ── Chapter head row ────────────────────────────────────── */
.fe-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.fe-head > div { display: flex; flex-direction: column; gap: 14px; }

/* ── Adventure cards ─────────────────────────────────────── */
.fe-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; flex: 1; min-height: 0; }
.fe-card {
  position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--fe-panel);
  text-decoration: none; color: var(--fe-text); min-height: 280px;
}
.fe-card img, .fe-card .fe-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: transform 400ms ease; }
.fe-card:hover img { transform: scale(1.04); }
.fe-card-copy { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.fe-card-copy h3 { font-size: clamp(26px, 2.8vw, 40px); line-height: 0.95; }
.fe-card-copy .fe-price { font-size: 14px; }

/* ── Two-column chapter (Stay) ───────────────────────────── */
.fe-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; flex: 1; }
.fe-split-copy { display: flex; flex-direction: column; gap: 28px; }
.fe-rows { display: flex; flex-direction: column; gap: 12px; }
.fe-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--fe-panel-2); border: 1px solid var(--fe-line); border-radius: 12px; padding: 24px 28px;
  text-decoration: none; color: var(--fe-text);
}
a.fe-row:hover { border-color: var(--fe-accent); }
.fe-row > div { display: flex; flex-direction: column; gap: 4px; }
.fe-row h3 { font-size: 34px; line-height: 1; }
.fe-row small { font-size: 14px; color: var(--fe-text-3); }

/* ── Panels (Dining/Gear, Pass/Gift) ─────────────────────── */
.fe-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; flex: 1; min-height: 0; }
.fe-panel {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--fe-panel); border: 1px solid #2a2a2a;
  padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-height: 320px;
}
.fe-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.fe-panel > * { position: relative; }
.fe-panel > .fe-scrim, .fe-panel > img { position: absolute; }
.fe-panel h3 { font-size: clamp(48px, 6vw, 88px); line-height: 0.92; }
.fe-panel--plain { justify-content: flex-start; gap: 20px; }
.fe-panel--plain h3 { font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; }
.fe-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; color: var(--fe-text-2); }
.fe-list li { display: flex; gap: 12px; align-items: center; }
.fe-list li::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--fe-accent); flex: none; }
.fe-big-price { font-family: var(--fe-display); font-size: 56px; line-height: 1; color: var(--fe-accent); }
.fe-big-price small { font-family: var(--fe-sans); font-size: 15px; color: var(--fe-text-3); margin-left: 6px; }

/* ── Reviews + close ─────────────────────────────────────── */
.fe-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fe-review { background: var(--fe-panel); border: 1px solid var(--fe-line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.fe-stars { color: var(--fe-accent); letter-spacing: 0.1em; font-size: 18px; }
.fe-review blockquote { margin: 0; font-size: 19px; line-height: 1.45; color: var(--fe-text-2); }
.fe-review cite { font-style: normal; font-size: 14px; color: var(--fe-text-3); }
.fe-close { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-top: auto; }
.fe-close-cta { display: flex; flex-direction: column; gap: 24px; }
.fe-contact { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--fe-text-2); }
.fe-contact a { text-decoration: none; }
.fe-contact a:hover { color: var(--fe-accent); }
.fe-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; font-size: 13px; color: var(--fe-muted); border-top: 1px solid var(--fe-line); padding-top: 20px; }
.fe-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.fe-footer a { text-decoration: none; }
.fe-footer a:hover { color: var(--fe-accent); }
html:has(.fe-book-fab) .fe-chapter--end .fe-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); } /* the corner Book button sits over the last footer row otherwise (home's last frame and a tour's frame 05 hide the button instead: the frame would outgrow short phones) */

/* ── Adventure page ──────────────────────────────────────── */
/* No overscroll-behavior: contain — it traps the wheel here and the page never reaches the next chapter. */
/* Touch screens only: the frame scrolls inside itself (frame 05 keeps Continue to Payment reachable). Mouse: the frame grows, so there is one scrollbar. */
@media (pointer: coarse) { .fe-chapter--scroll { height: 100vh; height: 100svh; overflow-y: auto; } }
.fe-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: var(--fe-text-2); }
.fe-hero-meta strong { color: var(--fe-accent); font-weight: 600; }
.fe-media { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 10; background: var(--fe-panel); }
/* Photo strip in the media box: swipe / scroll-snap, two round buttons page it */
.fe-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fe-strip::-webkit-scrollbar { display: none; }
.fe-strip img { flex: 0 0 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.fe-strip-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(10, 10, 10, 0.6); color: var(--fe-text); font-size: 28px; line-height: 1; cursor: pointer; }
.fe-strip-nav:hover { background: var(--fe-accent); color: #0a0a0a; }
.fe-strip-nav--prev { left: 12px; }
.fe-strip-nav--next { right: 12px; }
.fe-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 24px; margin: 0; border-top: 1px solid var(--fe-line); padding-top: 24px; }
.fe-facts div { display: flex; flex-direction: column; gap: 4px; }
.fe-facts dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fe-text-3); }
.fe-facts dd { margin: 0; font-family: var(--fe-display); font-size: 30px; line-height: 1; }
.fe-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fe-chip { border: 1px solid var(--fe-line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--fe-text-2); }
.fe-chip--accent { border-color: var(--fe-accent); color: var(--fe-accent); }
.fe-rating { display: flex; align-items: baseline; gap: 10px; color: var(--fe-text-3); font-size: 14px; }
.fe-rating strong { font-family: var(--fe-display); font-size: 40px; line-height: 1; color: var(--fe-accent); }
.fe-gallery { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.fe-gallery .fe-reviews { grid-template-columns: 1fr; gap: 14px; }
.fe-review h3 { font-size: 26px; line-height: 1; }
.fe-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.fe-review-actions .fe-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--fe-text); }
.fe-book { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.fe-cal { display: flex; flex-direction: column; gap: 18px; }
.fe-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fe-cal-head h3 { font-size: 34px; line-height: 1; }
.fe-cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fe-line); background: none; color: var(--fe-text); font-size: 18px; cursor: pointer; }
.fe-cal-nav:hover:not(:disabled) { border-color: var(--fe-accent); color: var(--fe-accent); }
.fe-cal-nav:disabled { opacity: 0.3; cursor: default; }
.fe-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fe-cal-grid small { text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fe-muted); padding-bottom: 6px; }
.fe-cal-day { height: 52px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--fe-muted); font-size: 15px; cursor: default; }
.fe-cal-day.is-open { background: var(--fe-panel-2); border-color: var(--fe-line); color: var(--fe-text); cursor: pointer; }
.fe-cal-day.is-open:hover { border-color: var(--fe-accent); }
.fe-cal-day.is-selected { background: var(--fe-accent); border-color: var(--fe-accent); color: #0a0a0a; font-weight: 600; }
.fe-riders { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fe-riders output { min-width: 2ch; text-align: center; font-family: var(--fe-display); font-size: 34px; line-height: 1; }
.fe-slots { display: flex; flex-direction: column; gap: 10px; }
.fe-slot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--fe-line); background: var(--fe-panel-2); color: var(--fe-text); text-align: left; cursor: pointer; }
.fe-slot > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.fe-slot small { font-size: 12px; color: var(--fe-text-3); }
.fe-slot .fe-price { white-space: nowrap; }
.fe-slot:hover:not(:disabled), .fe-slot.is-selected { border-color: var(--fe-accent); }
.fe-slot.is-selected { background: rgba(254, 163, 1, 0.12); }
.fe-slot:disabled { opacity: 0.45; cursor: default; }
.fe-order { display: flex; flex-direction: column; gap: 16px; background: var(--fe-panel); border: 1px solid var(--fe-line); border-radius: 16px; padding: 28px; }
.fe-order-body { display: flex; flex-direction: column; gap: 16px; }
.fe-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fe-text-3); }
.fe-select, .fe-input, .fe-textarea { width: 100%; font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--fe-text); background: var(--fe-bg); border: 1px solid var(--fe-line); border-radius: 10px; padding: 12px 14px; }
.fe-select:focus, .fe-input:focus, .fe-textarea:focus { outline: none; border-color: var(--fe-accent); }
.fe-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fe-text-2); }
.fe-check input { accent-color: var(--fe-accent); width: 18px; height: 18px; }
.fe-lines { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--fe-text-2); border-top: 1px solid var(--fe-line); padding-top: 14px; }
.fe-lines > div { display: flex; justify-content: space-between; gap: 16px; }
.fe-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--fe-line); font-size: 20px; font-weight: 600; color: var(--fe-text); }
.fe-note { font-size: 14px; color: var(--fe-text-3); }
.fe-note a { color: var(--fe-text); }
.fe-btn--wide { width: 100%; }
.fe-form { display: flex; flex-direction: column; gap: 14px; background: var(--fe-panel); border: 1px solid var(--fe-line); border-radius: 16px; padding: 22px; }

/* ── Rides list (/activities): hub (film, calendar, ride rows), then one full slide per ride ── */
/* the footer frame is short and snaps to the page end, so the last slide's lower part stays above it */
.fe-chapter--end { min-height: 0; padding-top: 48px; padding-bottom: calc(48px + var(--fe-bar-h)); gap: 20px; justify-content: flex-end; scroll-snap-align: end; }
.fe-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.fe-actions .fe-btn, .fe-actions .fe-link { align-self: center; }

/* ── Home: text over photo, 3 cards, tap-to-open rows ────── */
.fe-scrim--text { background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.9) 100%); }
.fe-copy { display: flex; flex-direction: column; gap: 14px; max-width: 720px; font-size: 18px; line-height: 1.5; color: var(--fe-text-2); }
.fe-copy strong { color: var(--fe-text); font-weight: 600; }
.fe-copy .fe-list li { align-items: flex-start; }
.fe-copy .fe-list li::before { margin-top: 0.55em; }
.fe-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fe-card-copy p { font-size: 15px; line-height: 1.45; color: var(--fe-text-2); max-width: 420px; }
/* <details name="…"> keeps one row open per frame, so each frame still fits one screen */
.fe-fold { background: var(--fe-panel-2); border: 1px solid var(--fe-line); border-radius: 12px; }
.fe-fold:hover, .fe-fold[open] { border-color: var(--fe-accent); }
.fe-fold > summary { display: block; list-style: none; cursor: pointer; position: relative; padding: 20px 64px 20px 28px; }
.fe-fold > summary::-webkit-details-marker { display: none; }
.fe-fold > summary::after { content: '+'; position: absolute; right: 28px; top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; color: var(--fe-accent); }
.fe-fold[open] > summary::after { content: '\2212'; }
.fe-fold h3 { font-size: 34px; line-height: 1; }
.fe-fold small { display: block; margin-top: 6px; font-size: 14px; color: var(--fe-text-3); }
.fe-q { font-size: 17px; font-weight: 500; line-height: 1.35; }
.fe-fold-body { padding: 0 28px 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--fe-text-2); }

/* ── "Read more" side panel: <dialog class="fe-drawer"> slides in from the left (markup: components/front_drawer.html, JS: base_front.html) ── */
button.fe-link { background: none; border: 0; border-bottom: 1px solid var(--fe-accent); padding: 0 0 4px; color: inherit; cursor: pointer; }
.fe-order .fe-link { align-self: flex-start; }
.fe-drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--fe-line);
  width: min(480px, 90vw); max-width: none; height: 100%; max-height: none; overflow: hidden;
  background: var(--fe-panel); color: var(--fe-text);
  transform: translateX(-100%);
  transition: transform 250ms ease, overlay 250ms allow-discrete, display 250ms allow-discrete;
}
.fe-drawer[open] { transform: none; }
@starting-style { .fe-drawer[open] { transform: translateX(-100%); } }
.fe-drawer::backdrop { background: rgba(10,10,10,0.7); }
/* the body scrolls, not the dialog, so a tap on the dialog itself only ever means "outside" */
.fe-drawer-body { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 24px 40px 40px; display: flex; flex-direction: column; gap: 24px; }
.fe-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fe-drawer-x { margin-right: -10px; flex: none; }
.fe-drawer h2 { font-size: 48px; line-height: 0.95; }
.fe-drawer .fe-copy { font-size: 17px; gap: 16px; }
.fe-drawer .fe-list { font-size: inherit; gap: 12px; }
body:has(.fe-drawer[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .fe-drawer { transition: none; } }

/* ── Booking bar (Phase 2): fixed to the bottom of the screen, "Book ▾" toggles it ── */
html.fe-bar-open { --fe-bar-h: 80px; } /* kept in sync by front_nav.html (barOpen); set before paint by front_book_bar.html when the bar resumes open */
@media (max-height: 819px) { html.fe-bar-open { --fe-bar-h: 0px; } } /* short laptops (1366×768): the open bar overlays the frame instead of pushing it — 3 home frames overflow otherwise */
/* corner Book button: opens the bar, gone while it is open */
.fe-book-fab { position: fixed; right: var(--fe-gutter); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 39; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
html.fe-bar-open .fe-book-fab,
html:has(.fe-burger[aria-expanded="true"]) .fe-book-fab,
html:has(.fe-index a[href="#a5"][aria-current="true"]) .fe-book-fab,
html:has(.fe-index a[href="#book"][aria-current="true"]) .fe-book-fab { display: none; } /* bar open; menu open (it covers the button: keep it out of the Tab order); a tour's booking frame (it would sit over Continue to payment); home's last frame (has its own Book button, and the footer would sit under this one) */
.fe-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 39; background: var(--fe-panel); border-top: 1px solid var(--fe-line); }
.fe-bar-x { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: none; color: var(--fe-text-3); font-size: 24px; line-height: 1; cursor: pointer; }
.fe-bar-x:hover { color: var(--fe-text); }
.fe-bar-f.is-off { opacity: 0.4; pointer-events: none; } /* Date and Riders until a ride is picked */
.fe-bar-row { display: flex; align-items: stretch; padding: 0 var(--fe-gutter); }
.fe-bar-f { flex: 1; padding: 14px 18px 14px 0; border-right: 1px solid var(--fe-line); margin-right: 18px; position: relative; min-width: 0; }
.fe-bar-lbl { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fe-text-3); margin-bottom: 4px; }
.fe-bar-val { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: var(--fe-text); font: inherit; font-size: 20px; text-align: left; }
button.fe-bar-val { cursor: pointer; }
button.fe-bar-val > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fe-bar-car { font-size: 12px; color: var(--fe-text-3); }
.fe-bar-cta { display: flex; align-items: center; padding: 12px 0; }
.fe-bar-back { display: none; } /* phones only, below */
.fe-step { display: inline-flex; align-items: center; gap: 12px; }
.fe-step button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #444; background: none; color: var(--fe-text); font-size: 18px; cursor: pointer; }
.fe-step button:disabled { opacity: 0.3; cursor: default; }
.fe-step b { min-width: 16px; text-align: center; }
/* calendar popover opens upward from the bar; reuses the tour page's .fe-cal-* pieces, compacted */
.fe-pop { position: absolute; bottom: 100%; left: 0; z-index: 45; width: 300px; padding: 16px; background: #161616; border: 1px solid var(--fe-line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 12px; }
.fe-pop--list { gap: 2px; padding: 8px; } /* the bar's ride list */
.fe-bar-opt { padding: 12px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--fe-text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.fe-bar-opt:hover { border-color: var(--fe-accent); }
.fe-bar-opt.is-selected { background: var(--fe-accent); color: #0a0a0a; font-weight: 600; }
/* compact calendar: the bar popover and the list page's "Choose a date" */
:is(.fe-pop, .fe-pick) .fe-cal-head strong { font-family: var(--fe-display); font-size: 22px; letter-spacing: 0.04em; }
:is(.fe-pop, .fe-pick) .fe-cal-nav { width: 32px; height: 32px; font-size: 15px; }
:is(.fe-pop, .fe-pick) .fe-cal-grid { gap: 3px; }
:is(.fe-pop, .fe-pick) .fe-cal-day { height: 34px; font-size: 13px; border-radius: 8px; }
:is(.fe-pop, .fe-pick) .fe-cal-day:not(:disabled) { color: var(--fe-text); cursor: pointer; }
:is(.fe-pop, .fe-pick) .fe-cal-day:disabled { color: var(--fe-muted); }

/* ── Rides hub: copy on top, calendar left (a panel, so it reads over the film), ride rows right; relative so it paints over the film ── */
.fe-hub { position: relative; display: grid; grid-template-columns: 320px 1fr; gap: 32px 64px; align-items: start; }
.fe-hub-copy { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.fe-pick { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--fe-panel-2); border: 1px solid var(--fe-line); border-radius: 12px; }
/* the rows column follows the calendar's height and scrolls inside when the rides outgrow it, so the hub stays one screen */
.fe-hub-rows { position: relative; align-self: stretch; }
.fe-hub-rows .fe-rows { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--fe-line) transparent; }
.fe-hub .fe-row { padding: 16px 20px; }

/* ── Phone (snap everywhere; each chapter fits one screen) ── */
@media (max-width: 900px) {
  :root { --fe-gutter: 20px; --fe-hdr-h: 72px; }
  html.fe-bar-open { --fe-bar-h: 0px; } /* phones: the bar starts closed and overlays the page when opened */
  .fe-chapter { padding: var(--fe-hdr-h) var(--fe-gutter) 28px; gap: 20px; }
  .fe-chapter--hero { padding: 0; }
  .fe-logo { flex: 0 1 148px; min-width: 0; }
  .fe-logo img { width: 100%; height: auto; }
  .fe-header-actions { gap: 4px; }
  .fe-h1 { font-size: 88px; }
  .fe-h2, .fe-h2--xl { font-size: 56px; }
  .fe-h3 { font-size: 40px; }
  .fe-lead { font-size: 17px; }
  .fe-body { font-size: 15px; }
  .fe-kicker { font-size: 11px; }
  .fe-hero-copy { padding-bottom: 40px; gap: 14px; }
  .fe-scroll-hint { display: none; }
  .fe-index { right: 12px; gap: 14px; font-size: 0; }
  .fe-index a::after { display: block; width: 10px; background: #5a5a5a; }
  .fe-index a[aria-current="true"]::after { width: 20px; background: var(--fe-accent); }
  .fe-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; }
  .fe-card { min-height: 0; border-radius: 10px; }
  .fe-card:first-child { grid-column: 1 / -1; }
  .fe-card-copy { left: 12px; right: 12px; bottom: 12px; gap: 2px; }
  .fe-card-copy h3 { font-size: 26px; }
  .fe-card-copy .fe-price { font-size: 12px; }
  .fe-split { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .fe-split-copy { gap: 14px; }
  .fe-split-copy .fe-body { display: none; }
  .fe-rows { gap: 8px; }
  .fe-row { padding: 14px 16px; border-radius: 10px; }
  .fe-row h3 { font-size: 24px; }
  .fe-row small, .fe-row .fe-price { font-size: 12px; }
  .fe-panels { grid-template-columns: 1fr; gap: 12px; }
  .fe-panel { padding: 16px; border-radius: 12px; min-height: 0; gap: 8px; }
  .fe-panel h3, .fe-panel--plain h3 { font-size: 34px; }
  .fe-panel .fe-body { font-size: 14px; }
  .fe-list { font-size: 14px; gap: 6px; }
  .fe-big-price { font-size: 34px; }
  .fe-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fe-head .fe-link { display: none; }
  .fe-reviews { grid-template-columns: 1fr; gap: 10px; }
  .fe-review { padding: 16px; gap: 8px; border-radius: 12px; }
  .fe-review blockquote { font-size: 14px; }
  .fe-review cite { font-size: 12px; }
  .fe-close { grid-template-columns: 1fr; gap: 16px; }
  .fe-close-cta { gap: 12px; }
  .fe-contact { font-size: 13px; gap: 4px; }
  .fe-footer { font-size: 11px; padding-top: 12px; gap: 8px 14px; }
  .fe-menu { padding: var(--fe-hdr-h) var(--fe-gutter) 32px; gap: 28px; }
  .fe-menu-main a, .fe-menu-main span { font-size: 44px; }
  .fe-menu-main .fe-menu-sub a { font-size: 13px; }
  .fe-chapter--scroll { scroll-snap-stop: normal; }
  .fe-chapter--end { padding-top: 28px; }
  .fe-chapter--hub { padding-right: 44px; } /* keep the calendar clear of the rail dashes */
  .fe-hub { grid-template-columns: 1fr; gap: 16px; }
  .fe-hub-copy { gap: 10px; }
  .fe-hub-rows .fe-rows { position: static; } /* stacked: the hub grows past one screen; the page scrolls through it */
  .fe-pick { padding: 12px; }
  .fe-pick .fe-cal-day { height: 28px; }
  .fe-hub .fe-row { padding: 10px 14px; }
  .fe-slide .fe-hero-copy { padding-bottom: 40px; gap: 10px; }
  .fe-hero-meta { font-size: 13px; gap: 4px 16px; }
  .fe-media { border-radius: 12px; aspect-ratio: 16 / 9; }
  .fe-facts { gap: 10px 16px; padding-top: 14px; }
  .fe-facts dd { font-size: 22px; }
  .fe-chip { padding: 6px 12px; font-size: 12px; }
  .fe-rating strong { font-size: 30px; }
  .fe-gallery, .fe-book { grid-template-columns: 1fr; gap: 16px; }
  .fe-review h3 { font-size: 20px; }
  .fe-cal { gap: 12px; }
  .fe-cal-head h3 { font-size: 26px; }
  .fe-cal-nav { width: 38px; height: 38px; }
  .fe-cal-grid { gap: 4px; }
  .fe-cal-day { height: auto; aspect-ratio: 1; font-size: 14px; border-radius: 8px; }
  .fe-slot { padding: 12px 14px; }
  .fe-slot > span:first-child { font-size: 15px; }
  .fe-order { padding: 18px; border-radius: 12px; gap: 12px; }
  .fe-form { padding: 16px; }
  .fe-copy { font-size: 14px; gap: 8px; }
  .fe-cards--3 { grid-template-columns: 1fr; }
  .fe-card-copy p { font-size: 13px; }
  .fe-fold > summary { padding: 12px 48px 12px 16px; }
  .fe-fold > summary::after { right: 16px; font-size: 24px; }
  .fe-fold h3 { font-size: 24px; }
  .fe-fold small { margin-top: 4px; font-size: 12px; }
  .fe-fold small .fe-price { font-size: 12px; }
  .fe-q { font-size: 15px; }
  .fe-fold-body { padding: 0 16px 12px; gap: 8px; font-size: 14px; }
  .fe-h2.fe-h2--long { font-size: 40px; }
  .fe-close-cta .fe-h3 { font-size: 32px; }
  .fe-drawer-body { padding: 16px var(--fe-gutter) 32px; gap: 18px; }
  .fe-drawer h2 { font-size: 40px; }
  .fe-bar-row { flex-direction: column; padding: 0 var(--fe-gutter) 14px; }
  .fe-bar-f { padding: 10px 0; margin-right: 0; border-right: 0; position: static; }
  /* one step at a time (book-bar.js step): ride, then date, then riders + See times */
  .fe-bar[data-step="ride"] :is(.fe-bar-f--date, .fe-bar-f--riders, .fe-bar-cta),
  .fe-bar[data-step="date"] :is(.fe-bar-f--ride, .fe-bar-f--riders, .fe-bar-cta),
  .fe-bar[data-step="riders"] :is(.fe-bar-f--ride, .fe-bar-f--date) { display: none; }
  .fe-bar-back { display: block; width: 100%; padding: 12px var(--fe-gutter); border: 0; border-bottom: 1px solid var(--fe-line); background: none; color: var(--fe-text-3); font: inherit; font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fe-bar-back, .fe-bar-f--ride { padding-right: 48px; } /* the bar's top row keeps clear of the X */
  .fe-bar-val { font-size: 18px; }
  .fe-bar-cta { padding: 14px 0 0; }
  .fe-bar-cta .fe-btn { width: 100%; }
  /* anchored to the whole bar, not the field, so the calendar never covers the back button; landscape phones scroll it (190px = header + bar) */
  .fe-pop { left: var(--fe-gutter); right: var(--fe-gutter); width: auto; max-width: 360px; max-height: calc(100svh - 190px); overflow-y: auto; }
  .fe-pop .fe-cal-day { height: auto; }
  /* phones: drop what doesn't fit one frame (the kicker still names the frame) */
  .fe-hide-phone { display: none; }
  .fe-menu .fe-menu-top { display: flex; }
  .fe-sr-phone { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ============================================================
   Classic pages (base.html: shop, cart, checkout, portal, CMS)
   Same palette without rebuilding them: their Tailwind colours
   resolve through --vp-* (base.html tailwind.config), so the
   tokens are re-pointed here. html.fe-public only — chaptered
   pages and admin/staff never match. Selectors start with
   html.fe-public so they outrank the CDN utilities.
   ============================================================ */
html.fe-public {
  --vp-c-bg: var(--fe-panel);
  --vp-c-bg-soft: var(--fe-panel-2);
  --vp-c-bg-mute: var(--fe-line);
  --vp-c-text-1: var(--fe-text);
  --vp-c-text-2: var(--fe-text-2);
  --vp-c-text-3: var(--fe-text-3);
  --vp-c-divider: var(--fe-line);
  --vp-c-border: var(--fe-line);
  --vp-c-brand-1: var(--fe-accent);
  --vp-c-brand-2: var(--fe-accent-hover);
  --vp-c-brand-3: #D25318;
  --vp-c-brand-soft: rgba(254, 163, 1, .14);
  /* status colours: same dark set as the admin (highline-shell.css html.etr-admin.dark) */
  --vp-c-tip: #86E0A0; --vp-c-tip-soft: rgba(134, 224, 160, .14);
  --vp-c-success: #86E0A0; --vp-c-success-soft: rgba(134, 224, 160, .14);
  --vp-c-warning: #FEC200; --vp-c-warning-soft: rgba(254, 194, 0, .14);
  --vp-c-danger-1: #FF8A6B; --vp-c-danger-2: #FF6A45; --vp-c-danger-soft: rgba(255, 138, 107, .14);
  --vp-c-info: #8FCBF0; --vp-c-info-soft: rgba(143, 203, 240, .14);
  --vp-button-brand-text: var(--fe-bg);
  --vp-button-alt-hover-bg: var(--fe-line);
  --vp-font-family-base: var(--fe-sans);
  --blooms: var(--fe-accent);
  /* highline.css surfaces → dark panels */
  --hl-blooms: var(--fe-accent);
  --hl-blooms-deep: var(--fe-accent-hover);
  --hl-border: var(--fe-line);
  --hl-border-strong: #3a3a3a;
  --hl-surface-mute: var(--fe-panel);
  --hl-band-bg: var(--fe-bg-2);
  --hl-hills-deep: var(--fe-bg-2);
  --hl-on-band: var(--fe-text);
  --hl-on-band-soft: var(--fe-text-2);
  accent-color: var(--fe-accent);
}

/* Shell: solid bar (content scrolls under it), footer with page gutters */
html.fe-public .fe-header, .fe-header.is-solid {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--fe-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
html.fe-public #main-content { padding-top: var(--fe-hdr-h); }
html.fe-public .sticky.top-4 { top: calc(var(--fe-hdr-h) + 16px); }
html.fe-public #main-content + .fe-footer { margin: 64px var(--fe-gutter) 0; padding: 20px 0 calc(32px + var(--fe-bar-h)); }
html:has(.fe-book-fab) #main-content + .fe-footer { padding-bottom: calc(72px + var(--fe-bar-h) + env(safe-area-inset-bottom)); } /* same clearance for the corner Book button */

/* Type: Bebas headings like the chaptered pages (one weight only, so no
   synthetic bold), sized from the Tailwind class each heading already has */
html.fe-public main.fe-classic :is(h1, h2, h3) { font-weight: 400; letter-spacing: 0.02em; line-height: 1; }
html.fe-public main.fe-classic h1 { font-size: clamp(44px, 5vw, 72px); line-height: 0.95; letter-spacing: 0.01em; }
html.fe-public main.fe-classic :is(h2, h3) { font-size: 22px; }
html.fe-public main.fe-classic :is(h2, h3).text-xs { font-size: 16px; }
html.fe-public main.fe-classic :is(h2, h3).text-sm { font-size: 18px; }
html.fe-public main.fe-classic :is(h2, h3).text-lg { font-size: 26px; }
html.fe-public main.fe-classic :is(h2, h3).text-xl { font-size: 30px; }
html.fe-public main.fe-classic :is(h2, h3).text-2xl { font-size: 36px; }
html.fe-public main.fe-classic :is(h2, h3):is(.text-3xl, .text-4xl) { font-size: clamp(40px, 4.4vw, 56px); }
/* Builder pages (no .fe-classic) keep their own type; zero specificity so their CSS wins */
:where(html.fe-public main:not(.fe-classic)) :is(h1, h2, h3) { font-family: inherit; font-weight: inherit; }

/* Buttons: orange pill with dark text (.fe-btn); secondary = outline pill */
html.fe-public :is(a, button):is(.bg-brand, .bg-accent),
html.fe-public :is(.btn-brand, .btn-accent, .hl-btn-primary) { color: var(--fe-bg); font-weight: 600; }
html.fe-public :is(a, button).bg-surface-soft,
html.fe-public .btn-secondary { background-color: transparent; box-shadow: inset 0 0 0 1px #3a3a3a; }
html.fe-public :is(a, button).bg-surface-soft:hover,
html.fe-public .btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--fe-accent); }
html.fe-public .hl-btn-outline:hover { color: var(--fe-bg); }

/* Fields sit darker than the panel they're on (.fe-input); zero-specificity
   root so any bg-* class on a field still wins */
:where(html.fe-public) :is(input, select, textarea),
:where(html.fe-public) .form-input { background-color: var(--fe-bg); }

/* The one light gray border the html.dark safety net in components.css misses */
html.fe-public .border-gray-100 { border-color: var(--fe-line); }
