/* See You Gator — playful field-guide look. Tokens are mirrored in CLAUDE.md "Design tokens". */
:root {
  --sand: #E3F0D3;          /* page background: pale lily-pad green */
  --sand-deep: #C3DDA8;     /* pressed / track / borders */
  --paper: #F6FBEF;         /* cards, sheets */
  --ink: #23302A;           /* primary text */
  --ink-soft: #55635A;      /* secondary text */
  --line: rgba(35, 48, 42, .14);
  --moss: #2E8B4A;          /* brand / primary action */
  --moss-deep: #1F6436;     /* primary pressed */
  --leaf: #8CC56B;          /* fresh highlights */
  --swamp: #2C6E7F;         /* water, links */
  --water: #CFE7E2;         /* water tint */
  --sun: #F2B84B;           /* warnings */
  --sun-soft: #FCE7B8;
  --coral: #E0705A;         /* alerts, flags */
  --gator-fresh: #4E9A51;
  --gator-week: #7FA35A;
  --gator-old: #A9B48C;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 24px rgba(35, 48, 42, .12), 0 2px 0 rgba(35, 48, 42, .06);
  --shadow-pop: 0 16px 40px rgba(35, 48, 42, .18);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --topbar: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 400 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--swamp); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--topbar);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: linear-gradient(180deg, #2E8B4A, #23733C); border-bottom: 2px solid #1A5A2E;
  color: #F6FBEF;
}
.topbar .brand, .topbar .brand-name { color: #F6FBEF; }
.brand { display: inline-flex; align-items: center; gap: 24px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 40px; flex: none; overflow: visible; }
.brand-mark svg { width: 44px; height: 26px; stroke: none; overflow: visible; }
.brand-name { font: 700 22px/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  background: var(--paper); border: 2px solid var(--sand-deep); border-radius: 999px;
  font-size: 14px; color: var(--ink-soft); white-space: nowrap;
}
.badge b { color: var(--moss); font: 700 16px/1 var(--font-display); }
.badge-icon { display: grid; place-items: center; width: 32px; height: 24px; flex: none; }
.badge-icon svg, .legend-gator svg { width: 100%; height: 100%; stroke: none; overflow: visible; }
.legend-gator { display: grid; place-items: center; width: 32px; height: 24px; flex: none; }
.badge.pop { animation: pop .6s var(--bounce); }
.safety-link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--leaf); color: #14401F; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.safety-link:hover { background: #A3D486; }

/* ---------- Stage + map ---------- */
.stage { position: fixed; inset: var(--topbar) 0 0; }
.map { position: absolute; inset: 0; background: var(--water); }
.maplibregl-ctrl-attrib { font-size: 11px; }
/* Map controls on the 8px grid: 32px buttons, 16px from the edges. The credit is a closed "i" styled like +/-. */
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { margin: 0 16px 16px 0; }
.maplibregl-ctrl-group button { width: 32px; height: 32px; }
.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact {
  min-height: 32px; margin: 0 16px 16px 0; padding: 0; background: #fff; border-radius: 4px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .1);
}
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button {
  width: 32px; height: 32px; right: 0; bottom: 0; top: auto; border-radius: 4px; background-color: #fff; background-position: center;
}
.maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 0 40px 0 8px; line-height: 32px; }
.maplibregl-ctrl-bottom-right { bottom: 88px; }

/* Mode switch */
.modes {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px; height: 56px; padding: 8px;
  background: var(--paper); border: 2px solid var(--sand-deep); border-radius: 999px; box-shadow: var(--shadow);
}
.modes button {
  position: relative; z-index: 1; border: 0; background: none; border-radius: 999px; padding: 0 24px; white-space: nowrap;
  font: 600 16px/1 var(--font-display); color: var(--ink-soft); transition: color .2s var(--ease);
}
.modes button[aria-checked="true"] { color: #fff; }
.modes-thumb {
  position: absolute; top: 8px; left: 0; width: var(--thumb-w, 96px); height: calc(100% - 16px); border-radius: 999px;
  transform: translateX(var(--thumb-x, 8px));
  background: var(--moss); box-shadow: inset 0 -4px 0 var(--moss-deep); transition: transform .35s var(--bounce), background .2s;
}

/* Bottom dock */
.dock {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 16px; padding-bottom: env(safe-area-inset-bottom);
}
.cta {
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 16px 24px;
  border: 0; border-radius: 999px; background: var(--moss); color: #fff;
  font: 600 18px/1 var(--font-display); white-space: nowrap; box-shadow: inset 0 -4px 0 var(--moss-deep), var(--shadow-pop);
  transition: transform .2s var(--bounce);
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--moss-deep), var(--shadow); }
.cta:disabled { opacity: .6; cursor: wait; transform: none; }
.cta-plus { display: grid; place-items: center; flex: none; width: 24px; height: 24px; }
.cta-plus svg { width: 24px; height: 24px; }
.cta.secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--sand-deep), var(--shadow); }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--moss); color: #F6FBEF; box-shadow: inset 0 -4px 0 var(--moss-deep), var(--shadow);
}
.round-btn svg { width: 24px; height: 24px; }
.round-btn:hover { background: #349A53; }
.round-btn[aria-pressed="true"] { background: var(--moss-deep); color: #F6FBEF; }

/* Placing gator: the same gator as everywhere, hovering over the map center with a squished gator-shaped shadow. */
.crosshair { position: absolute; left: 50%; top: 50%; z-index: 4; width: 96px; height: 72px; transform: translate(-50%, -100%); pointer-events: none; }
.ch-gator { position: absolute; left: 0; bottom: 16px; width: 96px; height: 54px; animation: gator-bob 1.6s ease-in-out infinite; }
.ch-gator svg { filter: drop-shadow(0 3px 3px rgba(20, 50, 28, .25)); }
.ch-shadow { position: absolute; left: 0; bottom: -4px; width: 96px; height: 54px; transform-origin: 50% 100%; filter: brightness(0) blur(2px); animation: shadow-bob 1.6s ease-in-out infinite; }
.ch-gator svg, .ch-shadow svg { display: block; width: 100%; height: 100%; }
@keyframes gator-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shadow-bob { 0%, 100% { transform: scale(1, .26); opacity: .26; } 50% { transform: scale(.86, .22); opacity: .16; } }

/* ---------- Panel (side on desktop, bottom sheet on phone) ---------- */
.panel {
  position: absolute; z-index: 7; left: 16px; top: 80px; bottom: 104px; width: 360px;
  display: flex; flex-direction: column; background: linear-gradient(180deg, #2E8B4A, #23733C); border: 2px solid #1A5A2E;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; color: #F6FBEF;
}
.panel-grip { display: none; }
.panel-body { flex: 1; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }
.panel h2, .sheet h2 { margin: 0 0 8px; font: 700 24px/1.2 var(--font-display); letter-spacing: -.01em; }
.panel h3 { margin: 24px 0 8px; font: 600 16px/1.3 var(--font-display); }
.lede { margin: 0 0 16px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.zone-swatch { width: 16px; height: 16px; border-radius: 50%; background: rgba(63,163,77,.3); border: 2px solid #23703A; }

.list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.item {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 8px 16px 8px 8px; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); transition: transform .15s var(--ease), border-color .15s;
}
.item:hover { border-color: var(--leaf); transform: translateY(-1px); }
.item-pin { width: 40px; height: 48px; flex: none; }
.item-main { min-width: 0; flex: 1; }
.item-title { display: block; font-weight: 800; }
.item-sub { display: block; color: var(--ink-soft); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count-pill { flex: none; min-width: 40px; height: 32px; padding: 0 16px; display: grid; place-items: center; border-radius: 999px; background: var(--water); color: var(--swamp); font: 700 14px/1 var(--font-display); }
.empty { padding: 24px 16px; text-align: center; color: var(--ink-soft); background: var(--sand); border-radius: var(--radius); }

/* Detail card */
.detail-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin: 0 0 16px; background: var(--water); }
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.detail-head .item-pin { width: 56px; height: 64px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 15px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; }
.notes { margin: 0 0 16px; padding: 16px; background: var(--sand); border-radius: var(--radius); }
.hotline {
  display: flex; gap: 8px; align-items: flex-start; margin: 16px 0; padding: 16px;
  background: var(--sun-soft); border-radius: var(--radius); font-size: 14px;
}
.hotline a { color: var(--ink); font-weight: 800; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.text-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14px;
}
.text-btn:hover { border-color: var(--ink-soft); }
.text-btn.danger { color: #A23B28; }
.text-btn svg { width: 24px; height: 24px; }
.back-btn { margin: -8px 0 16px -8px; border: 0; background: none; padding: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--swamp); font-weight: 800; }
.back-btn svg { width: 24px; height: 24px; }

/* Hour chart (When mode) */
.hours { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 2px; height: 120px; margin: 16px 0 8px; }
.hour {
  position: relative; height: 100%; padding: 0; border: 0; background: none; display: flex; align-items: flex-end;
}
.hour span { display: block; width: 100%; min-height: 8px; border-radius: 4px 4px 2px 2px; background: #E8C27E; transition: height .4s var(--bounce), background .2s; }
.hour:hover span { background: #D9A24C; }
.hour[aria-pressed="true"] span { background: #C9822B; }
.hour-axis { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px; min-height: 40px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; line-height: 1;
  transition: transform .15s var(--bounce), background .15s, border-color .15s;
}
.chip:hover { border-color: var(--leaf); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: #fff; transform: scale(1.04); }
.chip small { font-weight: 600; opacity: .8; }

/* ---------- Sheet (post flow, places) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(35,48,42,.32); animation: fade .2s; }
.sheet {
  position: fixed; z-index: 31; left: 50%; top: 50%; width: min(480px, calc(100% - 32px)); max-height: calc(100% - 48px);
  transform: translate(-50%, -50%); overflow-y: auto; padding: 32px 24px 24px;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); animation: sheet-in .35s var(--bounce);
}
.sheet-close { position: absolute; top: 16px; right: 16px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn svg { width: 24px; height: 24px; }
.field { margin: 0 0 24px; }
.field-label { display: block; margin: 0 0 8px; font: 600 16px/1.3 var(--font-display); }
.field-hint { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.text-input, textarea.text-input {
  display: block; width: 100%; min-height: 48px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 16px; line-height: 1.5;
}
textarea.text-input { min-height: 96px; resize: vertical; }
.text-input:focus { outline: none; border-color: var(--swamp); box-shadow: 0 0 0 4px rgba(44,110,127,.18); }
.stepper {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 56px;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.stepper button { height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--moss); }
.stepper button:hover:not(:disabled) { background: var(--sand); }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper button svg { width: 24px; height: 24px; }
.stepper output { text-align: center; font: 600 18px/1 var(--font-display); }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo-thumb { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; background: var(--water); }
.form-status { margin: 16px 0 0; font-size: 14px; color: #A23B28; }
.form-status:empty { display: none; }
.turnstile-box { min-height: 0; margin: 0 0 16px; }
.actions { display: flex; gap: 16px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

/* Placing bar */
.place-bar {
  position: absolute; z-index: 8; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(480px, calc(100% - 32px)); padding: 16px; display: grid; gap: 16px;
  background: var(--paper); border: 2px solid var(--sand-deep); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  animation: sheet-up .35s var(--bounce);
}
.place-bar p { margin: 0; font: 600 18px/1.3 var(--font-display); text-align: center; }
.place-bar .actions { justify-content: center; }

/* Alert banner (saved places) */
.alert {
  position: absolute; z-index: 9; top: 80px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px;
  background: var(--coral); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-pop); animation: sheet-down .4s var(--bounce);
}
.alert-text { flex: 1; font-weight: 800; }
.alert-go { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; }
.alert .icon-btn { color: #fff; }
.alert .icon-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Toast */
.toast {
  position: absolute; z-index: 40; left: 50%; bottom: 104px; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 16px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--shadow-pop);
  animation: sheet-up .35s var(--bounce);
}

/* ---------- Gator markers ---------- */
.gator { width: 56px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; }
.gator svg, .item-pin svg { display: block; width: 100%; height: 100%; stroke: none; overflow: visible; }
.gator svg { filter: drop-shadow(0 3px 3px rgba(20, 50, 28, .35)); }
.gator:hover { z-index: 3; }
.gator:hover .gator-inner { transform: scale(1.12) rotate(-4deg); }
.gator-inner { width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform .25s var(--bounce); }
.gator.drop .gator-inner { animation: drop .8s var(--bounce) both; }
.gator.selected .gator-inner { transform: scale(1.2); filter: drop-shadow(0 4px 8px rgba(35,48,42,.35)); }
.spot-marker {
  display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--swamp); color: #fff; border: 3px solid #fff; box-shadow: var(--shadow-pop);
  font: 700 16px/1 var(--font-display); cursor: pointer; animation: drop .7s var(--bounce) both;
}
.spot-marker span { display: inline-flex; align-items: center; gap: 8px; }
.spot-marker svg { width: 24px; height: 24px; }

@keyframes drop { 0% { transform: translateY(-64px) scale(.6); opacity: 0; } 60% { transform: translateY(0) scale(1.08, .92); opacity: 1; } 80% { transform: translateY(-8px) scale(.98, 1.02); } 100% { transform: none; } }
@keyframes ripple { 0% { opacity: .9; transform: translateX(-50%) scale(.6); } 100% { opacity: 0; transform: translateX(-50%) scale(1.8); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes hover-bob { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, calc(-100% - 8px)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
@keyframes sheet-up { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes sheet-down { from { opacity: 0; transform: translate(-50%, -16px); } }

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  :root { --topbar: 56px; }
  .topbar { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .badge { height: 32px; padding: 0 16px; font-size: 13px; }
  #countLabel { display: none; }
  .safety-link { height: 32px; padding: 0 16px; font-size: 13px; }
  .modes { top: 8px; height: 56px; }
  .modes button { padding: 0 16px; }
  .modes button { font-size: 15px; }
  .panel {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; height: var(--sheet-h); max-height: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0;
  }
  .stage { --sheet-h: 40vh; --sheet-h: 40dvh; }
  .panel-body { overflow-y: auto; }
  .panel-body { padding: 24px 16px; }
  .dock { bottom: calc(var(--sheet-h) + 16px); z-index: 8; }
  .cta { height: 56px; }
  .alert { top: 56px; }
  .sheet { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92%; transform: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 32px 16px calc(24px + env(safe-area-inset-bottom)); animation: sheet-rise .35s var(--ease); }
  .toast { bottom: 96px; }
  .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-h) + 80px); }
}
@media (max-width: 359px) {
  .brand-name { display: none; }
}
@keyframes sheet-rise { from { transform: translateY(40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.field-hint a, .lede a, .muted a { color: var(--swamp); font-weight: 800; }

/* The side panel / phone bottom sheet uses the header's green; cards inside stay light. */
.panel .lede, .panel .muted, .panel .legend, .panel .hour-axis { color: rgba(246, 251, 239, .86); }
.panel h2, .panel h3 { color: #F6FBEF; }
.panel .item { color: var(--ink); }
.panel .empty { background: rgba(255, 255, 255, .14); color: #F6FBEF; }
.panel .zone-swatch { box-shadow: 0 0 0 2px rgba(246, 251, 239, .9); }
.panel .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #F6FBEF; }
.panel .chip[aria-pressed="true"], .panel .chip[aria-checked="true"] { background: #F6FBEF; border-color: #F6FBEF; color: #1F6436; }
.panel .hour span { background: rgba(246, 251, 239, .45); }
.panel .hour:hover span { background: rgba(246, 251, 239, .7); }
.panel .hour[aria-pressed="true"] span { background: #F6FBEF; }
.panel a { color: #F6FBEF; }

/* One icon system: 24px line icons, 2px stroke, round caps (same as the dock icons). Map controls use it too. */
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { background-size: 24px 24px; background-position: center; }
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2323302A%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%206v12M6%2012h12%22/%3E%3C/svg%3E"); }
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2323302A%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2012h12%22/%3E%3C/svg%3E"); }
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2323302A%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M12%2011v5M12%208h.01%22/%3E%3C/svg%3E"); background-size: 24px 24px; }
.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) { width: 32px; }
.maplibregl-ctrl-attrib-button { list-style: none; }
.maplibregl-ctrl-attrib-button::-webkit-details-marker, .maplibregl-ctrl-attrib-button::marker { display: none; content: ""; }

/* Sheets (saved places, log a gator, details) use the same green as the header and side panel. */
.sheet { background: linear-gradient(180deg, #2E8B4A, #23733C); color: #F6FBEF; border: 2px solid #1A5A2E; }
.sheet h2, .sheet h3, .sheet .field-label { color: #F6FBEF; }
.sheet .lede, .sheet .muted, .sheet .field-hint { color: rgba(246, 251, 239, .86); }
.sheet .icon-btn { color: #F6FBEF; }
.sheet .icon-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.sheet .text-input, .sheet .stepper, .sheet .item { color: var(--ink); }
.sheet .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #F6FBEF; }
.sheet .chip[aria-pressed="true"], .sheet .chip[aria-checked="true"] { background: #F6FBEF; border-color: #F6FBEF; color: #1F6436; }
.sheet .cta { background: #F6FBEF; color: #1F6436; box-shadow: inset 0 -4px 0 #C3DDA8, var(--shadow); }
.sheet .cta.secondary { background: transparent; color: #F6FBEF; box-shadow: inset 0 0 0 2px rgba(246, 251, 239, .6); }
.sheet .empty, .sheet .notes { background: rgba(255, 255, 255, .14); color: #F6FBEF; }
.sheet a, .sheet .field-hint a { color: #F6FBEF; }
.sheet .text-btn { background: transparent; color: #F6FBEF; box-shadow: inset 0 0 0 2px rgba(246, 251, 239, .6); }
@media (max-width: 767px) {
  .topbar { gap: 8px; }
  .brand { gap: 16px; }
  .brand-mark, .brand-mark svg { width: 40px; }
  .brand-mark svg { height: 24px; }
  .brand-name { font-size: 18px; }
  .badge { padding: 0 8px; gap: 8px; margin-left: auto; }
  .badge-icon { width: 24px; height: 16px; }
}
.maplibregl-ctrl-group button .maplibregl-ctrl-icon, .maplibregl-ctrl-attrib-button { background-repeat: no-repeat; background-position: center; }
/* Expanded map credit: site font and size, 8px-grid padding, room for the "i" on the right. */
.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 0 40px 0 16px; min-height: 32px; }
.maplibregl-ctrl-attrib-inner { font: 400 14px/32px var(--font-body); color: var(--ink-soft); }
.maplibregl-ctrl-attrib-inner a { color: var(--ink); font-weight: 700; text-decoration: none; }
.maplibregl-ctrl-attrib-inner a:hover { text-decoration: underline; }
.maplibregl-ctrl button:focus, .maplibregl-ctrl-attrib-button:focus { box-shadow: none; outline: none; }
.maplibregl-ctrl button:focus-visible, .maplibregl-ctrl-attrib-button:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; }

/* Header: gator count reads number first; settings menu (love / hate gators). */
.badge b { color: var(--moss-deep); }
.safety-link { gap: 8px; }
.safety-link svg { display: block; width: 24px; height: 24px; flex: none; }
.settings { position: relative; }
.top-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #F6FBEF;
}
.top-icon svg { width: 24px; height: 24px; }
.top-icon:hover, .top-icon[aria-expanded="true"] { background: rgba(255, 255, 255, .26); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 256px; padding: 8px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--sand-deep); border-radius: var(--radius); box-shadow: var(--shadow-pop);
  animation: sheet-down .2s var(--ease);
}
.menu-label { margin: 0; padding: 8px 8px 8px; font-size: 14px; color: var(--ink-soft); }
.menu [role="menuitemradio"] {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0 8px;
  border: 0; border-radius: var(--radius-sm); background: none; font-weight: 700; text-align: left;
}
.menu [role="menuitemradio"]:hover, .menu [role="menuitemradio"]:focus-visible { background: var(--sand); outline: none; }
.menu-check { width: 24px; height: 24px; color: var(--moss); visibility: hidden; }
.menu [aria-checked="true"] .menu-check { visibility: visible; }
/* Hate mode: gators look grumpy, keep-clear zones show on the map. */
body.hate .gator-brow { opacity: 1; }
@media (max-width: 767px) {
  .safety-link { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #F6FBEF; }
  .safety-link:hover { background: rgba(255, 255, 255, .26); }
  .safety-link span { display: none; }
  .safety-link svg { display: block; }
}
/* Text fields in the green sheets: soft pale green instead of stark white; brighter when typing. */
.sheet .text-input, .sheet .stepper { background: #E3F0D3; border-color: #C3DDA8; color: var(--ink); }
.sheet .text-input::placeholder { color: #5E7562; }
.sheet .text-input:focus { background: #EEF6E6; border-color: #8CC56B; box-shadow: 0 0 0 4px rgba(140, 197, 107, .35); }
/* Map controls share the mode switch's pale green outline. */
.maplibregl-ctrl.maplibregl-ctrl-group, .maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact { box-shadow: 0 0 0 2px var(--sand-deep); }
.maplibregl-ctrl-group button + button { border-top-color: var(--sand-deep); }
/* Header chips: count, safety and settings share one height and one translucent green on every screen. */
.badge, .safety-link, .top-icon {
  height: 40px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #F6FBEF; box-shadow: none;
}
.badge b, .badge #countLabel { color: #F6FBEF; }
.safety-link:hover, .top-icon:hover, .top-icon[aria-expanded="true"] { background: rgba(255, 255, 255, .26); }
.top-icon { width: 40px; }
@media (max-width: 767px) {
  .badge, .safety-link, .top-icon { height: 32px; }
  .safety-link, .top-icon { width: 32px; position: relative; }
  /* Keep a 44px tap area around the smaller phone icons. */
  .safety-link::after, .top-icon::after { content: ""; position: absolute; inset: -6px; }
}

/* Hate mode: restaurants serving gator. */
.plate { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.plate-inner { display: block; width: 100%; height: 100%; animation: drop .7s var(--bounce) both; }
.plate svg { width: 100%; height: 100%; stroke: none; overflow: visible; filter: drop-shadow(0 3px 3px rgba(20, 50, 28, .35)); }
.plate:hover svg { transform: rotate(-12deg) scale(1.1); transition: transform .25s var(--bounce); }
.plate-pop .maplibregl-popup-content { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); font: 400 14px/1.4 var(--font-body); color: var(--ink); box-shadow: var(--shadow-pop); }
.plate-pop strong { font: 700 16px/1.2 var(--font-display); }
.plate-pop span { color: var(--ink-soft); }
.plate-pop a { color: var(--moss-deep); font-weight: 800; }

/* Header buttons: solid green like the dock buttons, white text, one exact height. */
.badge, .safety-link, .top-icon {
  box-sizing: border-box; height: 40px; min-height: 40px; line-height: 1; padding-top: 0; padding-bottom: 0;
  background: #3E9C59; color: #fff; box-shadow: inset 0 -3px 0 #1A5A2E;
}
.badge b, .badge #countLabel { color: #fff; }
.safety-link:hover, .top-icon:hover, .top-icon[aria-expanded="true"] { background: #4AAA65; }
.badge-icon svg { overflow: visible; }
@media (max-width: 767px) {
  .badge, .safety-link, .top-icon { height: 32px; min-height: 32px; }
}

/* Every gator drawing opts out of the line-icon stroke default. */
.gator-svg { stroke: none; overflow: visible; }
/* Placing bar: green like the sheets; all three buttons share one size, weight and shape. */
.place-bar { background: linear-gradient(180deg, #2E8B4A, #23733C); border: 2px solid #1A5A2E; color: #F6FBEF; }
.place-bar .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.place-bar .actions .cta { justify-content: center; height: 56px; padding: 0 24px; font: 600 18px/1 var(--font-display); }
.place-bar #hereBtn { grid-column: 1 / -1; }
.place-bar .cta { background: #F6FBEF; color: #1F6436; box-shadow: inset 0 -4px 0 #C3DDA8, var(--shadow); }
.place-bar .cta.secondary { background: transparent; color: #F6FBEF; box-shadow: inset 0 0 0 2px rgba(246, 251, 239, .6); }
.cta svg { width: 24px; height: 24px; }

/* Settings menu: green like the header and sheets. */
.menu { width: 256px; padding: 8px; background: linear-gradient(180deg, #2E8B4A, #23733C); border: 2px solid #1A5A2E; color: #F6FBEF; }
.menu-label { color: rgba(246, 251, 239, .86); }
.menu [role="menuitemradio"] { color: #F6FBEF; }
.menu [role="menuitemradio"]:hover, .menu [role="menuitemradio"]:focus-visible { background: rgba(255, 255, 255, .14); }
.menu-check { color: #F6FBEF; }
/* Placing: the shadow is squished and soft even without animation; the bottom sheet steps aside on phone. */
.ch-shadow { transform: scale(1, .26); opacity: .26; }
@media (max-width: 767px) { body.placing .panel { display: none; } }
/* Header icon buttons: icon centred in the raised face (above the 3px base), same 2px visual stroke. */
.safety-link, .top-icon { display: grid; place-items: center; padding: 0 0 3px; }
.badge { padding-bottom: 3px; }
@media (max-width: 767px) {

}
.safety-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px 3px; }
@media (max-width: 767px) { .safety-link { padding: 0 0 3px; } }
.panel-body { overflow-x: hidden; }
.list li, .list .item { min-width: 0; width: 100%; }
/* Key: bigger gators than on the map so the colours read clearly. */
.legend { gap: 8px 24px; }
.legend .legend-gator { width: 56px; height: 32px; }
.legend li:has(.legend-gator svg[viewBox="0 0 40 40"]) .legend-gator { width: 32px; height: 32px; }

/* Header icons: 20px glyphs with room around them; stroke scaled so they render at the same 1.5px as every other icon. */
.safety-link svg, .top-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.badge, .safety-link, .top-icon { height: 40px; min-height: 40px; }
.top-icon { width: 40px; }
@media (max-width: 767px) {
  .badge, .safety-link, .top-icon { height: 40px; min-height: 40px; }
  .safety-link, .top-icon { width: 40px; }
  .safety-link::after, .top-icon::after { inset: -2px; }
}
/* Map controls: +/- joined in one rounded pill, info a circle of the same 40px width. */
.maplibregl-ctrl.maplibregl-ctrl-group { border-radius: 999px; overflow: hidden; }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact { min-height: 40px; border-radius: 999px; }
.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) { width: 40px; }
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button { width: 40px; height: 40px; border-radius: 999px; }
.maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 0 48px 0 16px; }
.maplibregl-ctrl-attrib-inner { line-height: 40px; }

/* Counter: line-icon gator head, more room left and right. */
.badge { padding: 0 16px 3px; gap: 8px; }
.badge-icon { width: 20px; height: 20px; }
.badge-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; color: #fff; }
@media (max-width: 767px) { .badge { padding: 0 16px 3px; } .badge-icon { width: 20px; height: 20px; } }
.badge-icon { width: 32px; height: 20px; }
.badge-icon svg { width: 32px; height: 18px; filter: brightness(0) invert(1); }
@media (max-width: 767px) { .badge-icon { width: 32px; height: 20px; } }
/* One 16px rhythm: header→mode switch, dock→sheet, between dock buttons, −→info, map controls→dock. */
.modes { top: 16px; }
.dock { bottom: 16px; gap: 16px; }
@media (max-width: 767px) {
  .modes { top: 16px; }
  .dock { bottom: calc(var(--sheet-h) + 16px); }
  .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-h) + 72px); }
}
