/* ============================================================
   Coastly - Design System
   Translated from Branding/coastly-brand-guide.md (Palette P1)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@600;700;800&display=swap');

:root {
  /* Palette P1 */
  --tide:        #0A4F54;  /* Deep Tide */
  --lagoon:      #0E6E73;  /* Lagoon */
  --amber:       #F2A65A;  /* Sun Amber */
  --amber-press: #E8823A;  /* Amber Press */
  --sand:        #F4EDE2;  /* Surface */
  --warm:        #FBF7F0;  /* Warm White */
  --ink:         #2A2620;  /* Text */
  --drift:       #9A8C78;  /* Driftwood */
  --dark:        #0A2E32;  /* Dark surface */
  --dark-tint:   #8FB3B0;  /* Muted teal on dark */

  /* Semantic (light theme default) */
  --bg:        var(--warm);
  --surface:   #ffffff;
  --surface-2: var(--sand);
  --text:      var(--ink);
  --muted:     var(--drift);
  --line:      #e7ddcc;
  --brand:     var(--tide);
  --accent:    var(--amber);

  /* Shape & depth */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow:    0 6px 24px rgba(10, 79, 84, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 46, 50, 0.22);
  --maxw: 1180px;

  --grad-ocean: linear-gradient(135deg, var(--lagoon), var(--tide));
  --grad-sun:   linear-gradient(180deg, var(--amber), var(--amber-press));
}

/* Dark theme (Today / dawn-patrol surfaces) */
.theme-dark {
  --bg:        var(--dark);
  --surface:   #0E3539;
  --surface-2: #0c3034;
  --text:      var(--sand);
  --muted:     var(--dark-tint);
  --line:      rgba(143, 179, 176, 0.18);
  --brand:     var(--sand);
  --shadow:    0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 18px 50px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
h1, .display { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lagoon);
}
.theme-dark .eyebrow { color: var(--amber); }
.muted { color: var(--muted); }
.es { font-style: italic; color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; flex: none; box-shadow: var(--shadow); }
.brand .word { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.42rem; letter-spacing: -0.03em; color: var(--brand); line-height: 1; }
.brand .town { font-weight: 500; color: var(--amber); margin-left: 2px; }

/* ---------- Top nav (web) ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text); opacity: 0.78; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { color: var(--lagoon); }
.theme-dark .nav-links a.active { color: var(--amber); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; padding: 12px 20px; border-radius: 999px;
  transition: transform .12s, box-shadow .12s, background .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-sun); color: #3a2410; box-shadow: 0 8px 20px rgba(232,130,58,.34); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(232,130,58,.45); }
.btn-tide { background: var(--brand); color: var(--warm); }
.theme-dark .btn-tide { background: var(--sand); color: var(--tide); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--lagoon); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: var(--surface-2); color: var(--text); border: 1px solid transparent;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-active { background: var(--brand); color: var(--warm); }
.theme-dark .chip-active { background: var(--amber); color: #3a2410; }
.chip.empty   { color: #2e7d56; } .chip.empty .dot   { background: #34c178; }
.chip.okay    { color: #b9791f; } .chip.okay .dot    { background: var(--amber); }
.chip.crowded { color: #c0492f; } .chip.crowded .dot { background: #e3573a; }
.tag { font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lagoon); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .16s, box-shadow .16s;
}
a.card:hover, .card.link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 18px; }
.card .body h3 { margin-bottom: 4px; }
.card .price { font-family: 'Inter Tight'; font-weight: 800; color: var(--lagoon); }
.card .price small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 6px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(10,46,50,.62); color: #fff; backdrop-filter: blur(6px);
}
.card-badge.verified { background: rgba(34,193,120,.92); color: #06301d; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,46,50,.30) 0%, rgba(10,46,50,.55) 55%, rgba(10,46,50,.86) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--sand); }
.hero-content h1, .hero-content h2 { color: #fff; }

/* ---------- Forecast widgets ---------- */
.cond-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.cond-hero .bg { position: absolute; inset: 0; }
.cond-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.cond-hero .bg::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,46,50,.25), rgba(10,46,50,.82)); }
.cond-hero .inner { position: relative; z-index: 2; padding: 22px; color: var(--sand); }
.cond-call { font-family: 'Inter Tight'; font-weight: 800; font-size: clamp(1.5rem, 4.4vw, 2.1rem); color: #fff; letter-spacing: -.02em; }
.cond-call-es { color: rgba(244,237,226,.82); font-style: italic; margin-top: 4px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; text-align: center;
}
.stat .k { font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.5rem; color: var(--text); line-height: 1.1; margin-top: 4px; }
.stat .v small { font-size: .7rem; font-weight: 600; color: var(--muted); }
.stat .sub { font-size: 0.72rem; color: var(--muted); }

/* Tide curve */
.tide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.tide-curve { width: 100%; height: 92px; }
.tide-curve path.line { fill: none; stroke: var(--lagoon); stroke-width: 3; }
.theme-dark .tide-curve path.line { stroke: var(--amber); }
.tide-curve path.fill { fill: color-mix(in srgb, var(--lagoon) 16%, transparent); stroke: none; }
.tide-curve circle { fill: var(--amber); stroke: #fff; stroke-width: 2; }
.theme-dark .tide-curve circle { stroke: var(--dark); }

/* Daily video tiles */
.video-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--shadow); }
.video-tile img { width: 100%; height: 100%; object-fit: cover; }
.video-tile::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(10,46,50,.8)); }
.video-tile .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow);
}
.video-tile .play svg { margin-left: 3px; }
.video-tile .meta { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; }
.video-tile .meta .who { font-weight: 700; font-size: .92rem; }
.video-tile .meta .when { font-size: .76rem; opacity: .85; }
.video-tile .pill {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: var(--grad-sun); color: #3a2410;
  padding: 5px 10px; border-radius: 999px;
}

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Device frame (hub) ---------- */
.device {
  width: 390px; height: 808px; border-radius: 46px; background: #0b1417;
  padding: 30px 12px 14px; box-shadow: var(--shadow-lg); position: relative; flex: none;
}
.device::before {
  content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 11px; background: #2a3338; border-radius: 999px; z-index: 3;
}
.device iframe { width: 100%; height: 100%; border: none; border-radius: 34px; background: var(--bg); }
.device-label { text-align: center; margin-top: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Modal / sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10,46,50,.5); backdrop-filter: blur(3px); z-index: 90; display: none; }
.scrim.open { display: block; }
.sheet {
  position: fixed; z-index: 100; background: var(--surface); box-shadow: var(--shadow-lg);
  left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(480px, 92vw);
  border-radius: var(--r-xl); padding: 26px; display: none;
}
.sheet.open { display: block; }
.sheet h3 { margin-bottom: 4px; }
.field { display: block; margin-top: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
.close-x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }

/* Town switcher list */
.town-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); margin-top: 10px; }
.town-item.active { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.town-item .soon { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--sand); padding: 56px 0 40px; }
.footer a { opacity: .8; } .footer a:hover { opacity: 1; }
.footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .word { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.4rem; }

/* ---------- Lang toggle ---------- */
.langtoggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.langtoggle button { padding: 6px 12px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.langtoggle button.on { background: var(--lagoon); color: #fff; }

/* ---------- Utilities ---------- */
.pad { padding: 22px; }
.mt-s { margin-top: 8px; } .mt { margin-top: 18px; } .mt-l { margin-top: 34px; }
.center { text-align: center; }
.hide-mobile { display: initial; }
.only-mobile { display: none; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.pageblock { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 120px; }

/* ============================================================
   Responsive - collapses to the mobile app layout < 760px
   (also how the device-frame iframes render)
   ============================================================ */
@media (max-width: 760px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hide-mobile { display: none !important; }
  .only-mobile { display: initial; }
  .section { padding: 40px 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .pageblock { padding: 18px 16px 96px; }
  .container { padding: 0 16px; }

  /* bottom tab bar appears */
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    backdrop-filter: saturate(160%) blur(22px);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
    box-shadow: 0 -8px 30px rgba(10,46,50,.07);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .62rem; font-weight: 600; color: var(--muted); flex: 1; padding: 4px 0; }
  .tabbar a.active { color: var(--lagoon); }
  .theme-dark .tabbar a.active { color: var(--amber); }
  .tabbar svg { width: 22px; height: 22px; }
}

@media (max-width: 460px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
}

/* Mobile: force everything to a single column so 2-pane and card layouts
   stack cleanly on phones. !important beats inline grid-template-columns. */
@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr !important; }
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  aside[style*="sticky"] { position: static !important; }
}

/* ============================================================
   Extended components — marketplace, bookings, vendor portal
   ============================================================ */

/* Stepper (booking + vendor onboarding) */
.stepper { display: flex; align-items: center; gap: 8px; margin: 6px 0 26px; flex-wrap: wrap; }
.stepper .step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.stepper .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: .85rem; flex: none; }
.stepper .step.done .num { background: #34c178; color: #06301d; }
.stepper .step.active .num { background: var(--grad-sun); color: #3a2410; }
.stepper .step.active { color: var(--text); }
.stepper .bar { flex: 1; min-width: 18px; height: 2px; background: var(--line); }

/* Segmented control */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Vendor portal layout */
.vlayout { display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: start; }
.vside { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); }
.vside a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--r-sm); color: var(--text); font-weight: 600; font-size: .92rem; opacity: .8; }
.vside a.active { background: var(--surface-2); opacity: 1; color: var(--lagoon); }
.vside a:hover { opacity: 1; }
.kpi { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.kpi .card { padding: 18px; }
.kpi .k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin-top: 4px; }
.kpi .v small { font-size: .8rem; color: #34c178; font-weight: 700; }

/* Simple data rows / table */
.trow { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-top: 10px; }
.trow .who { font-weight: 600; }
.status { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status.req { background: #fff3e0; color: #b9791f; }
.status.conf { background: #e3f7ec; color: #2e7d56; }
.status.done { background: var(--surface-2); color: var(--muted); }

/* Product (market) card */
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .16s; }
.prod:hover { transform: translateY(-3px); }
.prod .media { aspect-ratio: 1; overflow: hidden; position: relative; }
.prod .media img { width: 100%; height: 100%; object-fit: cover; }
.prod .body { padding: 13px 14px 14px; }
.prod .who { font-size: .74rem; color: var(--lagoon); font-weight: 700; }
.prod h3 { font-size: 1rem; margin: 2px 0 6px; }
.prod .spread { align-items: center; }
.prod .price { font-family: 'Inter Tight'; font-weight: 800; color: var(--text); font-size: 1.1rem; }
.prod .price small { font-weight: 600; color: var(--muted); font-size: .7rem; }
.add-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-sun); color: #3a2410; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; box-shadow: 0 6px 14px rgba(232,130,58,.3); flex: none; }
.freshtag { position: absolute; top: 10px; left: 10px; background: rgba(34,193,120,.92); color: #06301d; font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.freshtag.soon { background: rgba(10,46,50,.66); color: #fff; }

/* Storefront header */
.shop-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.shop-hero .bg { aspect-ratio: 21/7; }
.shop-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero .bg::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,46,50,.15), rgba(10,46,50,.8)); }
.shop-hero .meta { position: absolute; left: 24px; bottom: 20px; color: #fff; z-index: 2; }
.shop-ava { width: 64px; height: 64px; border-radius: 18px; border: 3px solid #fff; object-fit: cover; }

/* Cart */
.cart-badge { position: absolute; top: -4px; right: -6px; background: var(--amber-press); color: #fff; font-size: .62rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.qty { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 6px; }
.qty button { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; font-size: .92rem; margin-top: 8px; }
.summary-row.total { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.2rem; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Avatar + menu */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-ocean); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 13px 8px; border-radius: var(--r-sm); font-weight: 600; }
.menu-item:hover { background: var(--surface-2); }

/* Upload / dropzone */
.dropzone { border: 2px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); background: var(--surface-2); }
.thumbset { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbset .t { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }

/* Product tiles + line icons (clean, no emoji) */
.etile { display: grid; place-items: center; width: 100%; height: 100%; }
.etile svg { width: 42%; height: 42%; stroke: var(--lagoon); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-th { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.cart-th svg { width: 56%; height: 56%; stroke: var(--lagoon); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; vertical-align: -0.16em; }
.ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Messaging */
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); min-height: 560px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-li.active { background: var(--surface-2); }
.chat-li .av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); font-size: 1.2rem; }
.chat-thread { display: flex; flex-direction: column; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.4; }
.bubble.them { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--lagoon); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .t { display: block; font-size: .66rem; opacity: .6; margin-top: 3px; }
.composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.composer input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font: inherit; }

/* Stars / ratings */
.stars { color: var(--amber); letter-spacing: 1px; }
.stars .off { color: var(--line); }
.rating-big { font-family: 'Inter Tight'; font-weight: 800; font-size: 3rem; line-height: 1; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.bar-row .track { flex: 1; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--amber); }

/* Search */
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 14px 20px; box-shadow: var(--shadow); }
.searchbar input { flex: 1; border: none; background: none; font: inherit; font-size: 1.05rem; outline: none; color: var(--text); }

/* Notifications */
.notif { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); margin-top: 10px; }
.notif.unread { border-left: 3px solid var(--amber); }
.notif .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.notif .when { color: var(--muted); font-size: .76rem; white-space: nowrap; }

@media (max-width: 760px) {
  .chat-wrap { grid-template-columns: 1fr; min-height: 0; }
  .chat-list { display: none; }
}

/* ============================================================
   Extended components — forecast, tide, tracking, map, FAQ, onboarding
   ============================================================ */

/* Multi-day forecast */
.fc-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; }
.fc-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px; text-align: center; }
.fc-day.best { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.fc-day .d { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fc-day .wv { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.3rem; margin: 4px 0; }
.fc-bar { height: 46px; display: flex; align-items: flex-end; justify-content: center; margin: 6px 0; }
.fc-bar span { width: 12px; border-radius: 6px 6px 0 0; background: var(--lagoon); }
.theme-dark .fc-bar span { background: var(--amber); }

/* Model comparison rows (tide validation) */
.model-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); margin-top: 8px; background: var(--surface); }
.dotlabel { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; }
.dotlabel i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* Vertical timeline (tracking, booking detail) */
.vtl { position: relative; padding-left: 30px; }
.vtl::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.vtl .ev { position: relative; padding-bottom: 22px; }
.vtl .ev::before { content: ''; position: absolute; left: -25px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.vtl .ev.done::before { background: #34c178; border-color: #34c178; }
.vtl .ev.active::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 30%, transparent); }
.vtl .ev .tm { font-size: .78rem; color: var(--muted); }

/* Map */
.mapwrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); height: 460px;
  background: linear-gradient(160deg, #0E6E73 0%, #0A4F54 55%, #0A2E32 100%); }
.mapwrap .land { position: absolute; inset: -10% 30% 40% -10%; background: linear-gradient(135deg,#e7dcc6,#d9cdb2); border-radius: 0 50% 60% 40%; transform: rotate(-8deg); opacity: .9; }
.mapwrap .land2 { position: absolute; right: -8%; top: 50%; width: 50%; height: 60%; background: linear-gradient(135deg,#e7dcc6,#cdbf9f); border-radius: 50% 0 40% 60%; opacity: .85; }
.pin { position: absolute; transform: translate(-50%,-100%); z-index: 3; text-align: center; cursor: pointer; }
.pin .dot { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--grad-sun); display: grid; place-items: center; box-shadow: var(--shadow); margin: 0 auto; }
.pin .dot span { transform: rotate(45deg); font-size: .8rem; }
.pin .lbl { margin-top: 4px; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(10,46,50,.6); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pin.teal .dot { background: var(--lagoon); }

/* FAQ accordion */
.faq { border: 1px solid var(--line); border-radius: var(--r); margin-top: 10px; background: var(--surface); overflow: hidden; }
.faq summary { padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lagoon); font-weight: 800; }
.faq[open] summary::after { content: '−'; }
.faq .a { padding: 0 18px 16px; color: var(--muted); }

/* Onboarding choice tiles */
.choice { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.choice .opt { border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 14px; text-align: center; cursor: pointer; background: var(--surface); transition: border-color .15s, transform .12s; }
.choice .opt:hover { transform: translateY(-2px); }
.choice .opt.sel { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 9%, transparent); }
.choice .opt .ic { font-size: 1.8rem; }

@media (max-width: 760px) {
  .fc-days { grid-template-columns: repeat(4,1fr); }
  .choice { grid-template-columns: 1fr 1fr; }
  .mapwrap { height: 380px; }
}

@media (max-width: 760px) {
  .vlayout { grid-template-columns: 1fr; }
  .vside { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .vside a { white-space: nowrap; }
  .kpi { grid-template-columns: 1fr 1fr; }
  .trow { grid-template-columns: 1fr auto; }
  .trow .when, .trow .amt { display: none; }
}

/* ============================================================
   Premium / glass (marketing site, Bilt-style)
   ============================================================ */
/* Soft mesh-gradient field used behind glass sections */
.meshbg {
  position: relative;
  background:
    radial-gradient(55% 75% at 12% 18%, rgba(14,110,115,.18), transparent 60%),
    radial-gradient(50% 70% at 88% 22%, rgba(242,166,90,.18), transparent 60%),
    radial-gradient(75% 95% at 62% 105%, rgba(10,79,84,.16), transparent 60%),
    var(--warm);
}
.field-dark {
  position: relative; color: var(--sand);
  background:
    radial-gradient(55% 75% at 10% 10%, rgba(14,110,115,.55), transparent 60%),
    radial-gradient(55% 75% at 95% 25%, rgba(242,166,90,.20), transparent 55%),
    radial-gradient(80% 90% at 60% 110%, rgba(7,40,44,.9), transparent 60%),
    var(--dark);
}
.field-dark h1,.field-dark h2,.field-dark h3{ color:#fff; }
.field-dark .eyebrow{ color:var(--amber); }

/* Frosted glass surfaces */
.glass {
  background: rgba(255,255,255,.55);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 14px 44px rgba(10,46,50,.14);
  border-radius: var(--r-lg);
}
.glass-dark {
  background: rgba(10,46,50,.34);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 44px rgba(0,0,0,.28);
  border-radius: var(--r-lg); color: var(--sand);
}
.glass-card { padding: 26px; transition: transform .18s, box-shadow .18s; }
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(10,46,50,.20); }
.glass-icn {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-ocean); color: #fff; margin-bottom: 14px; box-shadow: var(--shadow);
}
.glass-icn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Floating device (app screen on glass) */
.device-float {
  width: 300px; height: 622px; border-radius: 40px; background: #0b1417;
  padding: 12px; box-shadow: 0 40px 90px rgba(10,46,50,.32), 0 8px 24px rgba(10,46,50,.2);
  position: relative; flex: none;
}
.device-float iframe { width: 100%; height: 100%; border: none; border-radius: 30px; background: var(--bg); }
.tilt-l { transform: perspective(1600px) rotateY(9deg) rotateX(3deg); }
.tilt-r { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); }

/* Showcase row (alternating text / device) */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.showcase .pane { display: flex; justify-content: center; }
.showcase.rev .copy { order: 2; }
.showcase.rev .pane { order: 1; }

/* Problem chips / pills */
.prob { display: flex; gap: 14px; align-items: flex-start; }
.prob .x { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(192,73,47,.12); color: #c0492f; font-weight: 800; }
.fix { display: flex; gap: 14px; align-items: flex-start; }
.fix .c { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(34,193,120,.14); color: #2e7d56; }
.fix .c svg { width: 18px; height: 18px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }

.bigstat { font-family:'Inter Tight'; font-weight:800; font-size: clamp(2rem,4vw,2.8rem); color: var(--lagoon); line-height:1; }
.field-dark .bigstat { color: var(--amber); }

@media (max-width: 860px){
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase.rev .copy { order: 1; } .showcase.rev .pane { order: 2; }
  .device-float { width: 264px; height: 548px; }
  .tilt-l,.tilt-r { transform: none; }
}

/* ---------- Richer marketplace cards + service tiles ---------- */
.prod { display: flex; flex-direction: column; }
.prod .media .hov {
  position: absolute; inset: 0; padding: 12px; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,46,50,0) 35%, rgba(10,46,50,.9));
  color: #fff; font-size: .8rem; line-height: 1.4; opacity: 0; transition: opacity .18s;
}
.prod:hover .media .hov { opacity: 1; }
.prod .body { display: flex; flex-direction: column; flex: 1; }
.prod .desc { font-size: .8rem; color: var(--muted); margin: 3px 0 9px; line-height: 1.35; }
.prod .price small { font-weight: 600; color: var(--muted); font-size: .7rem; }
.prod .from { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; display:block; }
.prod .foot { margin-top: auto; }
.svc-tile { display: grid; place-items: center; width: 100%; height: 100%; }
.svc-tile svg { width: 36%; height: 36%; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.req-btn { padding: 8px 14px; border-radius: 999px; background: var(--brand); color: var(--warm); font-weight: 600; font-size: .82rem; flex: none; }

/* ---------- Store-owner dashboard ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.kpi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.kpi-card .k { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kpi-card .v { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.7rem; color: var(--text); line-height: 1.1; margin-top: 4px; }
.kpi-card .d { font-size: .78rem; font-weight: 700; margin-top: 4px; }
.kpi-card .d.up { color: #2e7d56; } .kpi-card .d.down { color: #c0492f; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.bars .bar { flex: 1; background: var(--grad-ocean); border-radius: 6px 6px 0 0; min-height: 4px; position: relative; }
.bars .bar.amber { background: var(--grad-sun); }
.otable { width: 100%; border-collapse: collapse; }
.otable th, .otable td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.otable th { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ostat { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.ostat.new { background: rgba(242,166,90,.18); color: #b9791f; }
.ostat.done { background: rgba(34,193,120,.16); color: #2e7d56; }
.ostat.way { background: rgba(14,110,115,.14); color: var(--lagoon); }
@media (max-width:760px){ .kpi-grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Real estate detail ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.spec .k { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spec .v { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.15rem; margin-top: 3px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.gallery .g { position: relative; overflow: hidden; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery .g.big img { aspect-ratio: 4/3.4; }
.gallery .g .ov { position: absolute; inset: 0; background: rgba(10,46,50,.5); display: grid; place-items: center; color: #fff; font-weight: 700; }
.cost-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.cost-row.tot { border-bottom: none; border-top: 2px solid var(--tide); font-weight: 800; color: var(--tide); font-family: 'Inter Tight'; padding-top: 12px; }
@media (max-width:760px){ .spec-grid { grid-template-columns: repeat(2,1fr); } .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Events / ticketing ---------- */
.evt { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s; }
.evt:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.evt .date { background: var(--grad-ocean); color: #fff; text-align: center; padding: 20px 10px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.evt .date .d { font-family: 'Inter Tight'; font-weight: 800; font-size: 2rem; line-height: 1; }
.evt .date .m { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.evt .mid { padding: 16px 0; }
.evt .right { padding: 16px 18px; text-align: right; }
@media (max-width:620px){ .evt { grid-template-columns: 86px 1fr; } .evt .right { grid-column: 1 / -1; text-align: left; padding-top: 0; } .evt .date .d { font-size: 1.5rem; } }

/* ---------- Today thin hero banner ---------- */
.thinhero { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 6 / 1; margin-bottom: 18px; box-shadow: var(--shadow); }
.thinhero img { width: 100%; height: 100%; object-fit: cover; }
.thinhero .th-ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 24px;
  background: linear-gradient(90deg, rgba(10,46,50,.78), rgba(10,46,50,.35) 55%, rgba(10,46,50,.05)); color: #fff; }
.thinhero .th-ov strong { font-family: 'Inter Tight'; font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: -.02em; }
@media (max-width: 640px){ .thinhero { aspect-ratio: 3 / 1; } }

/* ---------- Language switcher + unit toggle ---------- */
.langsw { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.langsw .lang-btn { padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.langsw .lang-btn.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.theme-dark .langsw { background: rgba(255,255,255,.08); }
.unit-btn { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .78rem; color: var(--muted); }
.unit-btn.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
/* RTL (Hebrew) */
[dir="rtl"] .eyebrow, [dir="rtl"] .tag { letter-spacing: 0; }
[dir="rtl"] .mnav .links { flex-direction: row-reverse; }
