/* Savannah – shared layout for the customer app (index.html) and partner app (partners.html).
   Component looks stay as inline styles in the templates; this file owns page layout
   and adapts it to the screen:
     < 640px   phone: full width, bottom tab bar
     >= 640px  tablet: centred content columns, card grids, bottom tab bar
     >= 960px  desktop: sidebar navigation, map beside the list */

:root {
  --bg: #F5F3EC;
  --ink: #17231C;
  --line: #E2DED3;
  --brand: #1E5B3E;
  --brand-soft: #E3EDE6;
  --hover: #EEEBE3;
  --land: #E9E4D2;
  --gutter: 20px;
}

html, body { margin: 0; background: var(--bg); }
a { color: var(--brand); -webkit-tap-highlight-color: transparent; }
a:hover { color: #143F2B; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid #2B5FA8; outline-offset: 2px; }

/* ---------- shell and screens ---------- */
.shell {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; --max: 760px; }
.scroll > *, .map-list > * { flex-shrink: 0; }

/* Groups that are a plain column on phones and become grids on bigger screens.
   `gap: inherit` keeps the spacing of the column they sit in. */
.card-list, .tips, .split { display: flex; flex-direction: column; gap: inherit; }

/* Bottom bars respect the phone's home indicator. */
.footbar { padding-bottom: max(24px, env(safe-area-inset-bottom)) !important; }
.nav { padding-bottom: max(20px, env(safe-area-inset-bottom)) !important; }
.nav-brand { display: none; }

/* ---------- map ---------- */
.map-layout { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-pane {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 390 / 370;
  max-height: 52dvh;
  overflow: hidden;
  background: var(--land);
  container-type: size;
}
.map-pane { z-index: 0; } /* keeps the map's own layers under the list sheet */
.map-canvas { position: absolute; inset: 0; background: var(--land); font-family: inherit; }
.map-top {
  position: absolute; left: 16px; right: 16px; top: 16px; z-index: 1000; pointer-events: none;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.map-top > * { pointer-events: auto; }
.map-title-chip, .map-locate {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #17231C;
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 8px 24px -10px rgba(23, 35, 28, 0.35);
}
.map-title-chip, .map-locate { white-space: nowrap; }
.map-title-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 44px; }
.map-title-chip .map-title-dot { display: inline-block; vertical-align: middle; margin-right: 8px; }
.map-locate { flex-shrink: 0; }
.map-title-dot { width: 8px; height: 8px; border-radius: 50%; background: #2F8A5E; box-shadow: 0 0 0 4px rgba(47, 138, 94, 0.18); }
.map-locate { border: none; background: #17231C; color: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none; }
.map-locate:disabled { opacity: 0.7; }

.map-list {
  flex: 1; overflow-y: auto; position: relative; z-index: 1; margin-top: -24px;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 16px 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -12px 32px -16px rgba(23, 35, 28, 0.3);
}
.map-handle { align-self: center; width: 44px; height: 5px; border-radius: 999px; background: #D6D1C4; }
.map-list-head { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 2px; }
.map-list-head h1 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.map-list-head span { font-size: 13px; color: #6B746E; }
.map-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 22px;
  background: #FFFFFF; border: 1.5px solid #ECE8DE;
  box-shadow: 0 1px 2px rgba(23, 35, 28, 0.04), 0 10px 24px -16px rgba(23, 35, 28, 0.18);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.map-card.is-sel { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30, 91, 62, 0.12), 0 12px 28px -16px rgba(23, 35, 28, 0.3); }
.map-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0; border: none; background: none; text-align: left; color: #17231C; }
.map-card .wash-mono { width: 52px; height: 52px; font-size: 18px; }
.map-card-go { border: none; }
.map-note { font-size: 12px; color: #6B746E; text-align: center; line-height: 1.5; padding: 4px 8px 0; }

/* Leaflet, restyled: softer tiles, rounded controls. */
.map-canvas .leaflet-tile-pane { filter: saturate(0.7) brightness(1.04) contrast(0.95); }
.map-canvas .leaflet-control-zoom { border: none !important; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px -10px rgba(23, 35, 28, 0.35) !important; }
.map-canvas .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; color: #17231C !important; border-bottom-color: #ECE8DE !important; }
.map-canvas .leaflet-control-attribution { border-radius: 8px 0 0 0; background: rgba(255, 255, 255, 0.75) !important; font-size: 10px; }
.map-canvas .leaflet-bottom { bottom: 24px; } /* clear the list sheet that overlaps the map's bottom edge */
.svn-pin { background: none; border: none; }
.svn-pin span {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  background: #17231C; color: #FFFFFF; font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 10px; white-space: nowrap; margin-bottom: 4px;
  box-shadow: 0 8px 18px -8px rgba(23, 35, 28, 0.6);
}
.svn-pin svg { display: block; filter: drop-shadow(0 3px 4px rgba(23, 35, 28, 0.35)); }
.svn-you { width: 18px; height: 18px; border-radius: 999px; background: #2B5FA8; border: 3px solid #FFFFFF; box-sizing: border-box; box-shadow: 0 0 0 8px rgba(43,95,168,0.18); }

/* ---------- home ---------- */
.home h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }
.home-section { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head > span { font-size: 13px; color: #6B746E; }
.link-btn { border: none; background: none; padding: 6px 0; font-size: 14px; font-weight: 700; color: var(--brand); }

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 22px 20px 20px; color: #FFFFFF;
  background: linear-gradient(150deg, #133B2A 0%, #1E5B3E 55%, #2C7552 100%);
  box-shadow: 0 18px 40px -18px rgba(19, 59, 42, 0.55);
  display: flex; flex-direction: column; gap: 18px;
}
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 320px; height: 320px; right: -110px; top: -150px; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%); }
.hero::after { width: 260px; height: 260px; left: -120px; bottom: -150px; background: radial-gradient(circle, rgba(207, 224, 234, 0.22), transparent 65%); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-greet { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-chip { color: #FFFFFF; font-family: inherit; cursor: pointer; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-chip:disabled { opacity: 0.75; }
.hero-alert { margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); font-size: 13px; line-height: 1.5; }
.hero-title { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -0.8px; }
.hero-search {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 8px 0 18px;
  border: none; border-radius: 18px; background: #FFFFFF; color: #17231C; text-align: left;
  font-size: 16px; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-search > svg { color: var(--brand); flex-shrink: 0; }
.hero-search > span:nth-of-type(1) { flex: 1; color: #55605A; font-weight: 500; }
.hero-search-go { width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.hero-facts b { color: #FFFFFF; }
.hero-facts .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }

.svc-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.svc-row::-webkit-scrollbar { display: none; }
.svc-card {
  flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: 20px; border: 1px solid #ECE8DE; background: #FFFFFF; color: #17231C; text-align: left;
  box-shadow: 0 1px 2px rgba(23, 35, 28, 0.04), 0 6px 16px -10px rgba(23, 35, 28, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.svc-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.svc-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
.svc-price { font-size: 13px; color: #6B746E; }

.wash-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; text-align: left; color: #17231C;
  background: #FFFFFF; border: 1px solid #ECE8DE; border-radius: 22px;
  box-shadow: 0 1px 2px rgba(23, 35, 28, 0.04), 0 10px 24px -16px rgba(23, 35, 28, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.wash-mono {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 700; color: #FFFFFF; letter-spacing: 0.5px;
}
.wash-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wash-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wash-meta { font-size: 13px; color: #6B746E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wash-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #F3F1EA; font-size: 12px; font-weight: 600; }
.tag-rate { color: #8A5A00; background: #FBF1DC; }
.tag-unverified { color: #55605A; background: #ECEAE3; }
.tag-verified { color: #FFFFFF; background: var(--brand); }
.map-far { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #E4ECF7; color: #1F3F6B !important; font-size: 13px !important; line-height: 1.5; }
.map-far .link-btn { display: block; padding: 6px 0 0; color: #2B5FA8; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px !important; font-weight: 600; color: #3A443E !important; }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-verified { background: #1E5B3E; }
.lg-online { background: #FFFFFF; border: 2.5px solid #4E7A63; box-sizing: border-box; }
.lang-row { min-height: 56px; padding: 0 12px 0 16px; border-bottom: 1px solid #E2DED3; background: #FFFFFF; color: #17231C; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-select { font: inherit; font-size: 14px; font-weight: 600; color: #17231C; background: #F3F1EA; border: 1px solid #E2DED3; border-radius: 10px; padding: 8px 10px; min-height: 40px; cursor: pointer; }
.lang-mini { display: flex; align-items: center; justify-content: center; gap: 8px; color: #55605A; }
.lang-mini .lang-select { background: transparent; border-color: #D9D4C7; }
.section-sub { margin: -6px 0 0; font-size: 13px; color: #6B746E; }
.loc-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(23, 35, 28, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: loc-fade 0.2s ease; }
.loc-card { width: 100%; max-width: 420px; background: #FFFFFF; border-radius: 26px; padding: 24px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 24px 60px -20px rgba(23, 35, 28, 0.5); animation: loc-up 0.25s ease; }
.loc-card h2 { margin: 4px 0 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; color: #17231C; }
.loc-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #55605A; }
.loc-icon { width: 60px; height: 60px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.loc-primary { width: 100%; min-height: 52px; border: none; border-radius: 16px; background: var(--brand); color: #FFFFFF; font-size: 16px; font-weight: 700; }
.loc-secondary { width: 100%; min-height: 44px; border: none; background: none; color: #55605A; font-size: 15px; font-weight: 600; }
@keyframes loc-fade { from { opacity: 0; } }
@keyframes loc-up { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 640px) { .loc-modal { align-items: center; } }
@media (prefers-reduced-motion: reduce) { .loc-modal, .loc-card { animation: none; } }
.place-note { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: #F3F1EA; border: 1px dashed #D0CBBE; font-size: 13px; line-height: 1.5; color: #3A443E; }
.place-note a { color: var(--brand); font-weight: 700; }
.place-claim { text-decoration: none; }
.wash-chev { color: #B5BAB3; flex-shrink: 0; }

.map-teaser {
  display: flex; flex-direction: column; padding: 0; width: 100%; overflow: hidden; text-align: left; color: #17231C;
  background: #FFFFFF; border: 1px solid #ECE8DE; border-radius: 24px;
  box-shadow: 0 1px 2px rgba(23, 35, 28, 0.04), 0 10px 24px -16px rgba(23, 35, 28, 0.18);
}
.map-teaser-art { position: relative; display: block; width: 100%; height: 140px; }
.map-teaser-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-teaser-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.map-teaser-bar > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.map-teaser-title { font-size: 16px; font-weight: 700; }
.map-teaser-sub { font-size: 13px; color: #6B746E; }
.pill-btn { padding: 10px 16px; border-radius: 999px; background: #17231C; color: #FFFFFF; font-size: 14px; font-weight: 700; flex-shrink: 0; }

.home-split { display: flex; flex-direction: column; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #FFFFFF; border: 1px solid #ECE8DE; font-size: 14px; line-height: 1.45; color: #3A443E; }
.steps b { color: #17231C; }
.step-num { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; }

.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: #F6E9E1; color: #5E2412; font-size: 13px; line-height: 1.5; }
.tip-icon { width: 32px; height: 32px; border-radius: 10px; background: #B5492A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

@media (hover: hover) {
  .hero-search:hover, .svc-card:hover, .wash-card:hover { transform: translateY(-2px); }
  .wash-card:hover, .svc-card:hover { box-shadow: 0 2px 4px rgba(23, 35, 28, 0.05), 0 16px 32px -18px rgba(23, 35, 28, 0.28); border-color: #DCD6C8; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-search, .svc-card, .wash-card { transition: none; }
}

/* ---------- car wash page ---------- */
.cw-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF;
  border-radius: 28px; padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 18px 40px -20px rgba(19, 59, 42, 0.6);
}
.cw-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 85% -10%, rgba(255, 255, 255, 0.28), transparent 55%), linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.18)); }
.cw-hero-top { display: flex; align-items: center; gap: 10px; }
.cw-back { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.16); color: #FFFFFF; display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cw-kicker { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.3px; }
.cw-hero-main { display: flex; align-items: center; gap: 14px; }
.cw-mono { width: 64px; height: 64px; border-radius: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; font-weight: 700; }
.cw-hero-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cw-hero-text h1 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.5px; }
.cw-hero-text span { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); }
.cw-chip-strong { background: #FFFFFF; color: var(--brand); border-color: #FFFFFF; }

.cw-where { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: #FFFFFF; border: 1px solid #ECE8DE; font-size: 14px; line-height: 1.45; color: #3A443E; }
.cw-where b { display: block; color: #17231C; font-size: 13px; margin-bottom: 2px; }
.cw-where-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }

.cw-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.cw-action {
  min-height: 84px; border-radius: 20px; background: #FFFFFF; border: 1px solid #ECE8DE; color: #17231C; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700;
  box-shadow: 0 1px 2px rgba(23, 35, 28, 0.04), 0 10px 24px -18px rgba(23, 35, 28, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cw-action-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

.cw-card { background: #FFFFFF; border: 1px solid #ECE8DE; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(23, 35, 28, 0.04), 0 10px 24px -18px rgba(23, 35, 28, 0.2); }
.cw-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.cw-card-head h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; }
.cw-card-head span { font-size: 12px; color: #6B746E; }
.cw-muted { margin: 0; font-size: 14px; line-height: 1.5; color: #6B746E; }
.cw-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #F0EDE5; }
.cw-price > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.cw-price b { font-size: 15px; }
.cw-price small { font-size: 12px; color: #6B746E; }
.cw-price-amt { font-size: 15px; font-weight: 800; padding: 6px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.cw-review { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid #F0EDE5; font-size: 13px; line-height: 1.45; color: #3A443E; }

.cw-foot { background: rgba(245, 243, 236, 0.92) !important; border-top: 1px solid #ECE8DE; padding: 12px 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cw-cta { width: 100%; min-height: 56px; border-radius: 18px; border: none; font-size: 16px; font-weight: 700; box-shadow: 0 12px 24px -14px rgba(19, 59, 42, 0.6); }
.cw-cta:disabled { box-shadow: none; }

@media (hover: hover) {
  .cw-action:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23, 35, 28, 0.05), 0 16px 32px -18px rgba(23, 35, 28, 0.28); }
}

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  /* Centre each screen's content in a column of --max width. */
  .scroll, .bar, .footbar {
    padding-left: max(var(--gutter), calc((100% - var(--max)) / 2)) !important;
    padding-right: max(var(--gutter), calc((100% - var(--max)) / 2)) !important;
  }
  .screen-auth, .screen-welcome { --max: 460px; }
  .screen-account, .screen-book, .screen-sent, .screen-detail, .screen-form { --max: 680px; }
  .screen-wash { --max: 880px; }
  .screen-home, .screen-bookings, .screen-dash { --max: 1120px; }

  .screen-auth > .scroll, .screen-welcome > .scroll { justify-content: center; }

  .card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
  .tips, .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .split > :only-child { grid-column: 1 / -1; }
  .map-preview { height: 150px !important; }
  .home { gap: 34px !important; padding-top: 24px !important; }
  .hero { padding: 32px 32px 28px; }
  .hero-title { font-size: 44px; }
  .hero-search { max-width: 560px; }
  .svc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  /* Map teaser and "How Savannah works" share a row, half each. */
  .home-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
  .home-split .map-teaser { height: 100%; }
  .cw-page { gap: 24px !important; padding-top: 24px !important; }
  .cw-hero { padding: 20px 28px 28px; }
  .cw-hero-text h1 { font-size: 36px; }
  .cw-mono { width: 76px; height: 76px; font-size: 28px; }
  .home-split .map-teaser-art { flex: 1; min-height: 150px; height: auto !important; }

  .shell > .nav {
    padding-left: max(12px, calc((100% - 560px) / 2)) !important;
    padding-right: max(12px, calc((100% - 560px) / 2)) !important;
  }
}

@media (hover: hover) {
  .card-list > button:hover { border-color: var(--brand) !important; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 40px; }

  .shell.has-nav { display: grid; grid-template-columns: 272px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .shell.has-nav > .screen { grid-column: 2; grid-row: 1; }

  /* Bottom tab bar becomes a sidebar. */
  .shell.has-nav > .nav {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    flex-direction: column;
    gap: 4px !important;
    padding: 24px 16px !important;
    border-top: none !important;
    border-right: 1px solid var(--line);
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 24px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
  }
  .nav-brand img { border-radius: 9px; flex-shrink: 0; }
  .nav-brand small { font-family: 'DM Sans', system-ui, sans-serif; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px; }
  .nav button {
    width: 100%;
    min-height: 48px !important;
    padding: 0 14px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    border-radius: 12px;
    font-size: 15px !important;
  }
  .nav button:hover { background: var(--hover) !important; }
  .nav button[aria-current="page"] { background: var(--brand-soft) !important; }

  /* Map: list on the left, map fills the rest. */
  .map-layout { flex-direction: row; }
  .map-pane { flex: 1; aspect-ratio: auto; max-height: none; }
  .map-list {
    order: -1;
    flex: 0 0 420px !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    border-right: 1px solid var(--line);
    box-shadow: none !important;
    padding: 24px 20px !important;
  }
  .map-handle { display: none; }
  .map-canvas .leaflet-bottom { bottom: 0; }
}
