/* ══════════════════════════════════════════════════════════════════════════
   storefront.css — todoculebra.com storefront-first home (2026-09-16)
   Contract: STOREFRONT_FIRST_SPEC.md. Owned by storefront.js; nothing here
   paints unless that script mounts (body.home-mounted / body.home-open).
   Flag off → every selector below is inert: the map is byte-identical.

   Layering (measured in index.html): map chrome ≤ 1002 · chassis sheet 1002
   · more-overlay 2998 / more-sheet 2999 · booking + tour panels 3000 ·
   live-chat 4000 · welcome popup 9101. The storefront sits at 2500: above
   every piece of map chrome, BELOW every panel a CTA opens, so booking /
   chat / More / tour all paint over it exactly as they paint over the map.
   ══════════════════════════════════════════════════════════════════════════ */

#tc-home{
  --h-ink:#04202B;          /* deep water — hero + tab bar ink            */
  --h-ink-2:#0D3E4F;
  --h-aqua:#12B5BE;         /* THE one saturated accent (charter §9)      */
  --h-aqua-deep:#086970;    /* aqua as small text on light                */
  --h-aqua-light:#5FE3E0;   /* aqua on dark                               */
  --h-sun:#F5B84B;          /* family accent — tour card                  */
  --h-leaf:#2E9E6B;         /* family accent — camping card               */
  --h-sea:#2F7FD1;          /* family accent — ferry card                 */
  --h-text:#0C2530;
  --h-text-2:#4E6B77;
  --h-line:rgba(12,37,48,.10);
  --h-card:#FFFFFF;
  --h-r:18px;
  --h-font:var(--font-ui, 'DM Sans', system-ui, -apple-system, sans-serif);
  position:fixed; inset:0; z-index:2500;
  overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch;
  background:linear-gradient(180deg,#E9F5F9 0%,#F6FBFC 38%,#FFFFFF 100%);
  color:var(--h-text); font-family:var(--h-font);
  -webkit-font-smoothing:antialiased;
  padding-bottom:calc(150px + env(safe-area-inset-bottom,0px));
}
#tc-home[hidden]{ display:none !important; }
#tc-home *,#tc-home *::before,#tc-home *::after{ box-sizing:border-box; }
#tc-home button{ font-family:inherit; cursor:pointer; }
#tc-home a{ color:inherit; }
#tc-home img{ max-width:100%; display:block; }

/* ── hide the map's chrome under the storefront (hiding, never removing —
      the Map tab restores every one of these instantly) ─────────────────── */
body.home-mounted #bottom-nav,
body.home-mounted #map-quote,
body.home-mounted #site-legal{ display:none !important; }
body.home-open .ch-sheet, body.home-open .ch-chips,
body.home-open .ch-layers, body.home-open .ch-layers-menu{ display:none !important; }
/* The storefront IS the welcome (spec §7): the popup and the return nudge
   never paint over it. storefront.js also pre-marks them seen at mount. */
body.home-open #welcome-popup,
body.home-open #tc-return-nudge{ display:none !important; }
/* Map state with the P1 chassis on: lift its sheet so the peek CTA is not
   under our tab bar (the sheet is bottom-anchored + transform detents). */
body.home-mounted.chassis-on:not(.home-open) .ch-sheet{ bottom:84px !important; }
body.home-mounted:not(.home-open):not(.chassis-on) #quick-chips{ bottom:88px !important; }

/* ── shell ───────────────────────────────────────────────────────────────── */
.h-shell{ max-width:720px; margin:0 auto; padding:0 16px; }

/* top strip */
.h-top{ display:flex; align-items:center; gap:10px; padding:calc(10px + env(safe-area-inset-top,0px)) 0 10px; }
.h-wordmark{ font-weight:900; font-size:18px; letter-spacing:-.02em; color:var(--h-ink); flex:1; min-width:0; white-space:nowrap; }
.h-wordmark i{ font-style:normal; color:var(--h-aqua); }
.h-openpill{ display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 11px; border-radius:999px; background:#fff; border:1px solid var(--h-line); font-size:12px; font-weight:700; color:var(--h-text-2); white-space:nowrap; }
.h-openpill b{ width:8px; height:8px; border-radius:50%; background:#9AA7AD; flex:0 0 auto; }
.h-openpill.is-open b{ background:#1DB56B; box-shadow:0 0 0 3px rgba(29,181,107,.18); }
.h-openpill.is-open{ color:#0F6B40; }
.h-lang{ height:32px; min-width:44px; padding:0 10px; border-radius:10px; border:1px solid var(--h-line); background:#fff; font-size:12px; font-weight:800; color:var(--h-ink); letter-spacing:.06em; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.h-hero{ position:relative; border-radius:22px; overflow:hidden; background:var(--h-ink); color:#fff; min-height:440px; display:flex; flex-direction:column; justify-content:flex-end; box-shadow:0 14px 38px rgba(4,32,43,.22); }
.h-hero__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 35%; }
.h-hero__veil{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(4,32,43,.08) 0%,rgba(4,32,43,.42) 45%,rgba(4,32,43,.94) 100%); }
.h-hero__in{ position:relative; padding:22px 18px 18px; }
.h-eyebrow{ font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--h-aqua-light); margin:0 0 8px; }
.h-hero h1{ font-size:clamp(28px,7.4vw,40px); line-height:1.04; letter-spacing:-.025em; font-weight:900; margin:0 0 10px; }
.h-hero p{ margin:0 0 14px; font-size:15px; line-height:1.5; color:#CFE6EB; max-width:44ch; }
.h-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:0 20px; border-radius:14px; border:0; font-size:16px; font-weight:800; text-decoration:none; width:100%; }
.h-btn--primary{ background:var(--h-aqua); color:var(--h-ink); box-shadow:0 8px 24px rgba(18,181,190,.35); }
.h-btn--primary:active{ transform:scale(.985); }
.h-btn--ghost{ background:rgba(255,255,255,.10); color:#fff; border:1px solid rgba(255,255,255,.22); min-height:46px; font-size:14px; }
.h-hero__row{ display:flex; gap:8px; margin-top:8px; }
.h-hero__row .h-btn{ flex:1; }
.h-hero__phone{ display:block; text-align:center; margin-top:12px; font-size:13px; color:#CFE6EB; text-decoration:none; }
.h-hero__phone b{ color:#fff; }
.h-opener{ margin-top:12px; font-size:13px; line-height:1.45; color:#CFE6EB; border-top:1px solid rgba(255,255,255,.14); padding-top:10px; }
.h-opener b{ color:#fff; font-weight:800; }
.h-opener[hidden]{ display:none; }

/* ── section scaffolding ─────────────────────────────────────────────────── */
.h-sec{ margin-top:26px; }
.h-sec__h{ font-size:22px; font-weight:900; letter-spacing:-.02em; margin:0 0 4px; color:var(--h-ink); }
.h-sec__sub{ margin:0 0 12px; font-size:14px; color:var(--h-text-2); line-height:1.45; }
.h-card{ background:var(--h-card); border:1px solid var(--h-line); border-radius:var(--h-r); box-shadow:0 6px 20px rgba(12,37,48,.06); }

/* ── fleet: chip row + 2-column photo grid (Mariah's mockup) ─────────────── */
.h-chips{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding:2px 0 10px; -webkit-overflow-scrolling:touch; }
.h-chips::-webkit-scrollbar{ display:none; }
.h-chip{ flex:0 0 auto; min-height:38px; padding:0 14px; border-radius:999px; border:1px solid var(--h-line); background:#fff; font-size:13px; font-weight:700; color:var(--h-text-2); white-space:nowrap; }
.h-chip[aria-pressed="true"]{ background:var(--h-ink); color:#fff; border-color:var(--h-ink); }
.h-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.h-veh{ display:flex; flex-direction:column; border-radius:var(--h-r); overflow:hidden; background:#fff; border:1px solid var(--h-line); box-shadow:0 6px 20px rgba(12,37,48,.06); }
.h-veh[hidden]{ display:none; }
.h-veh__media{ position:relative; aspect-ratio:4/3; background:var(--h-ink); overflow:hidden; }
.h-veh__media img{ width:100%; height:100%; object-fit:cover; object-position:50% 60%; }
.h-veh__ink{ position:absolute; inset:0; display:flex; align-items:flex-end; padding:12px; color:#fff; font-weight:900; font-size:15px; line-height:1.15; letter-spacing:-.01em; background:linear-gradient(160deg,#0D3E4F 0%,#04202B 100%); }
.h-veh__ink small{ display:block; font-weight:600; font-size:11px; color:var(--h-aqua-light); margin-bottom:4px; letter-spacing:.08em; text-transform:uppercase; }
.h-veh__pill{ position:absolute; top:10px; left:10px; padding:4px 9px; border-radius:999px; background:rgba(4,32,43,.86); color:#fff; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.h-veh__body{ padding:12px 12px 12px; display:flex; flex-direction:column; gap:4px; flex:1; }
.h-veh__name{ font-size:16px; font-weight:900; letter-spacing:-.02em; color:#000; line-height:1.15; }
.h-veh__loc{ font-size:12px; color:var(--h-text-2); display:flex; align-items:center; gap:4px; }
.h-veh__loc svg{ width:12px; height:12px; flex:0 0 auto; }
.h-veh__from{ margin-top:6px; font-size:12px; color:var(--h-text-2); font-weight:500; line-height:1.1; }
.h-veh__from b{ font-size:26px; font-weight:900; color:var(--h-ink); letter-spacing:-.03em; margin:0 2px; }
.h-veh__from s{ text-decoration:line-through; color:#8FA3AB; margin-left:2px; }
.h-veh__ladder{ margin-top:4px; font-size:11.5px; color:var(--h-text-2); line-height:1.45; }
.h-veh__ladder b{ color:var(--h-text); font-weight:700; }
.h-veh__multi{ font-size:11.5px; color:var(--h-aqua-deep); font-weight:700; }
.h-veh__cta{ margin-top:auto; padding-top:10px; }
.h-veh__cta .h-btn{ min-height:44px; font-size:14px; padding:0 12px; border-radius:12px; }
.h-veh--noprice .h-veh__from{ display:none; }

/* ── price it in ten seconds ─────────────────────────────────────────────── */
.h-quote{ padding:14px; }
.h-nl{ display:flex; align-items:center; gap:10px; width:100%; min-height:52px; padding:0 14px; border-radius:14px; border:1px dashed rgba(18,181,190,.6); background:#F2FBFC; color:var(--h-text-2); font-size:14px; text-align:left; }
.h-nl b{ color:var(--h-aqua-deep); font-weight:800; white-space:nowrap; }
.h-nl span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.h-pick{ margin-top:12px; display:grid; gap:10px; }
.h-pick__row{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.h-pick__lbl{ width:100%; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--h-text-2); }
.h-seg{ flex:1 1 auto; min-height:44px; padding:0 12px; border-radius:12px; border:1px solid var(--h-line); background:#fff; font-size:14px; font-weight:700; color:var(--h-text); }
.h-seg[aria-pressed="true"]{ background:var(--h-ink); color:#fff; border-color:var(--h-ink); }
.h-date{ flex:1 1 auto; min-height:44px; padding:0 12px; border-radius:12px; border:1px solid var(--h-line); background:#fff; font:inherit; font-size:14px; font-weight:700; color:var(--h-text); }
.h-step{ display:inline-flex; align-items:center; border:1px solid var(--h-line); border-radius:12px; background:#fff; overflow:hidden; }
.h-step button{ width:44px; height:44px; border:0; background:transparent; font-size:20px; font-weight:800; color:var(--h-ink); }
.h-step output{ min-width:36px; text-align:center; font-weight:900; font-size:16px; }
.h-quote__go{ margin-top:2px; }
.h-quote__out{ margin-top:12px; padding:12px 14px; border-radius:14px; background:#F2FBFC; border:1px solid rgba(18,181,190,.35); }
.h-quote__out[hidden]{ display:none; }
.h-quote__total{ font-size:14px; color:var(--h-text-2); }
.h-quote__total b{ display:block; font-size:28px; font-weight:900; color:var(--h-ink); letter-spacing:-.03em; line-height:1.1; }
.h-quote__meta{ font-size:12px; color:var(--h-text-2); margin-top:2px; }
.h-quote__err{ color:#B42318; font-weight:700; font-size:14px; }
.h-quote__out .h-btn{ margin-top:10px; }
.h-examples{ margin-top:12px; }

/* ── sticky trip bar (spec §5) ───────────────────────────────────────────── */
#tc-home-tripbar{ position:fixed; left:12px; right:12px; bottom:calc(84px + env(safe-area-inset-bottom,0px)); z-index:2600; max-width:720px; margin:0 auto; display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 12px 8px 16px; border:0; border-radius:16px; background:var(--h-ink); color:#fff; box-shadow:0 12px 32px rgba(4,32,43,.35); font-family:var(--h-font); text-align:left; }
#tc-home-tripbar[hidden], body:not(.home-open) #tc-home-tripbar{ display:none !important; }
#tc-home-tripbar .tb-l{ flex:1; min-width:0; }
#tc-home-tripbar .tb-t{ display:block; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--h-aqua-light); font-weight:800; }
#tc-home-tripbar .tb-w{ display:block; font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#tc-home-tripbar .tb-n{ font-size:20px; font-weight:900; letter-spacing:-.02em; white-space:nowrap; }
#tc-home-tripbar .tb-go{ flex:0 0 auto; height:40px; padding:0 14px; border-radius:11px; background:var(--h-aqua); color:var(--h-ink); font-weight:800; font-size:14px; display:inline-flex; align-items:center; }

/* ── service cards (delivery · tour · ferry · camping) ───────────────────── */
.h-svc{ display:grid; gap:12px; }
.h-svcard{ display:flex; gap:12px; align-items:flex-start; padding:14px; text-align:left; border-radius:var(--h-r); background:#fff; border:1px solid var(--h-line); box-shadow:0 6px 20px rgba(12,37,48,.06); width:100%; color:var(--h-text); }
.h-svcard__ic{ flex:0 0 44px; width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; background:#EAF4F6; }
.h-svcard--tour .h-svcard__ic{ background:rgba(245,184,75,.22); }
.h-svcard--ferry .h-svcard__ic{ background:rgba(47,127,209,.14); }
.h-svcard--camp .h-svcard__ic{ background:rgba(46,158,107,.16); }
.h-svcard__t{ font-size:16px; font-weight:900; letter-spacing:-.01em; line-height:1.2; }
.h-svcard__s{ font-size:13px; color:var(--h-text-2); line-height:1.45; margin-top:3px; }
.h-svcard__k{ margin-top:6px; font-size:13px; font-weight:800; color:var(--h-aqua-deep); }
.h-svcard--tour .h-svcard__k{ color:#8A5A00; }
.h-svcard--camp .h-svcard__k{ color:#1F6E4A; }
.h-svcard--ferry .h-svcard__k{ color:#1F5EA3; }
.h-svcard__arrow{ align-self:center; font-size:20px; color:var(--h-text-2); }

/* ── reviews ─────────────────────────────────────────────────────────────── */
.h-reviews{ display:flex; align-items:center; gap:12px; padding:14px; text-decoration:none; }
.h-reviews[hidden]{ display:none; }
.h-reviews__n{ font-size:30px; font-weight:900; letter-spacing:-.03em; color:var(--h-ink); }
.h-reviews__stars{ color:#F5B84B; font-size:14px; letter-spacing:.06em; }
.h-reviews__c{ font-size:13px; color:var(--h-text-2); }

/* ── how it works · where we are ─────────────────────────────────────────── */
.h-steps{ display:grid; gap:10px; }
.h-step3{ display:flex; gap:12px; padding:12px 14px; }
.h-step3 b{ flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:var(--h-ink); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:900; }
.h-step3 div{ font-size:14px; line-height:1.45; color:var(--h-text); }
.h-step3 div small{ display:block; color:var(--h-text-2); font-size:12.5px; }
.h-where{ padding:14px; font-size:14px; line-height:1.5; }
.h-where b{ display:block; font-size:15px; font-weight:900; }
.h-where .h-btn{ margin-top:10px; min-height:44px; font-size:14px; background:#EAF4F6; color:var(--h-ink); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.h-faq{ padding:2px 14px; }
.h-faq[hidden]{ display:none; }
.h-faq details{ border-top:1px solid var(--h-line); }
.h-faq details:first-child{ border-top:0; }
.h-faq summary{ list-style:none; cursor:pointer; padding:13px 26px 13px 0; font-size:14.5px; font-weight:800; position:relative; color:var(--h-text); min-height:44px; }
.h-faq summary::-webkit-details-marker{ display:none; }
.h-faq summary::after{ content:"+"; position:absolute; right:0; top:11px; font-size:20px; color:var(--h-aqua-deep); font-weight:800; }
.h-faq details[open] summary::after{ content:"–"; }
.h-faq p{ margin:0 0 14px; font-size:14px; line-height:1.55; color:var(--h-text-2); }

/* ── footer ──────────────────────────────────────────────────────────────── */
.h-foot{ margin-top:26px; padding:18px 0 8px; border-top:1px solid var(--h-line); font-size:13px; color:var(--h-text-2); }
.h-foot__links{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-bottom:10px; }
.h-foot__links a,.h-foot__links button{ font-weight:700; color:var(--h-ink); text-decoration:none; background:none; border:0; padding:0; font-size:13px; min-height:32px; }
.h-foot small{ display:block; line-height:1.5; }

/* ── floating 5-tab bar (spec §7; one bar for BOTH states) ───────────────── */
#tc-home-tabbar{ position:fixed; left:12px; right:12px; bottom:calc(10px + env(safe-area-inset-bottom,0px)); z-index:2600; max-width:720px; margin:0 auto; height:64px; display:grid; grid-template-columns:repeat(5,1fr); background:rgba(4,32,43,.96); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border-radius:22px; box-shadow:0 2px 6px rgba(4,32,43,.18),0 14px 34px rgba(4,32,43,.32); font-family:var(--font-ui, 'DM Sans', system-ui, sans-serif); }
#tc-home-tabbar button{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; background:none; border:0; color:#9FBECB; font-size:11px; font-weight:700; cursor:pointer; min-height:44px; font-family:inherit; }
#tc-home-tabbar button svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
#tc-home-tabbar button[aria-current="page"]{ color:#5FE3E0; }
#tc-home-tabbar button[aria-current="page"] svg{ background:rgba(95,227,224,.14); border-radius:12px; padding:3px 12px; width:46px; height:28px; }
#tc-home-tabbar .tab-book{ color:#fff; }
#tc-home-tabbar .tab-book svg{ background:#12B5BE; color:#04202B; border-radius:14px; width:46px; height:30px; padding:4px 12px; }
/* joins the body-class collision model (§6.3): when a map surface owns the
   screen in MAP state, the bar stands down like #bottom-nav does. In HOME
   state the storefront overlay is above those surfaces, so the bar stays. */
body:not(.home-open).pin-sheet-open #tc-home-tabbar,
body:not(.home-open).pin2-open #tc-home-tabbar,
body:not(.home-open).peek-card-open #tc-home-tabbar,
body:not(.home-open).dest-switcher-open #tc-home-tabbar,
body:not(.home-open).nav-active #tc-home-tabbar,
body:not(.home-open).panel-open #tc-home-tabbar,
body:not(.home-open).itinerary-sheet-open #tc-home-tabbar,
body:not(.home-open):has(#welcome-popup.show) #tc-home-tabbar{ display:none !important; }

@media (min-width:721px){
  #tc-home{ padding-bottom:calc(170px + env(safe-area-inset-bottom,0px)); }
  .h-hero{ min-height:480px; }
}
@media (prefers-reduced-motion:reduce){ #tc-home *{ transition:none !important; } }
