/* SeaTrack — phone prototype (dark marine) */

:root {
  --bg-desktop: #060a0e;
  --bg: #0b1218;
  --bg-panel: #121c26;
  --bg-card: #182430;
  --border: #243445;
  --text: #e8eef4;
  --muted: #8fa3b8;
  --accent: #2dd4bf;
  --accent-dim: #0f766e;
  --wind: #38bdf8;
  --tide: #a78bfa;
  --waves: #34d399;
  --currents: #22d3ee;
  --fish: #fbbf24;
  --boat: #f87171;
  --danger: #fb7185;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --phone-w: 390px;
  --phone-h: 844px;
  --bezel: 12px;
  --status-h: 52px;
  --header-h: 52px;
  --tab-h: 56px;
  --home-h: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg-desktop);
  color: var(--text);
}

body {
  min-height: 100vh;
}

/* —— Desktop stage: centre the phone —— */
.desktop-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1rem 2rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #12202c 0%, transparent 55%),
    var(--bg-desktop);
}

.desktop-caption {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
}

/* —— Phone chrome —— */
.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  position: relative;
  flex-shrink: 0;
}

.phone-bezel {
  width: 100%;
  height: 100%;
  background: #1a1d21;
  border-radius: 44px;
  padding: var(--bezel);
  box-shadow:
    0 0 0 2px #2a2e33,
    0 0 0 4px #0c0e10,
    0 25px 60px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.phone-side-btn {
  position: absolute;
  background: #2a2e33;
  border-radius: 2px;
}
.phone-side-silent {
  left: -3px; top: 120px; width: 3px; height: 28px;
}
.phone-side-vol-up {
  left: -3px; top: 170px; width: 3px; height: 52px;
}
.phone-side-vol-down {
  left: -3px; top: 232px; width: 3px; height: 52px;
}
.phone-side-power {
  right: -3px; top: 190px; width: 3px; height: 72px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Status bar + Dynamic Island */
.status-bar {
  height: var(--status-h);
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.55rem 1.1rem 0;
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #0e1620 0%, var(--bg) 100%);
}

.status-time {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.dynamic-island {
  width: 118px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  justify-self: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.status-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.status-signal {
  width: 16px;
  height: 10px;
  background:
    linear-gradient(to top, #e8eef4 0 40%, transparent 40%) left / 3px 100% no-repeat,
    linear-gradient(to top, #e8eef4 0 55%, transparent 55%) 4px / 3px 100% no-repeat,
    linear-gradient(to top, #e8eef4 0 75%, transparent 75%) 8px / 3px 100% no-repeat,
    linear-gradient(to top, #e8eef4 0 100%) 12px / 3px 100% no-repeat;
}

.status-wifi {
  width: 14px;
  height: 10px;
  border: 2px solid var(--text);
  border-radius: 50% / 100% 100% 0 0;
  border-bottom: none;
  position: relative;
}
.status-wifi::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--text);
  border-radius: 50%;
  left: 3px;
  bottom: -1px;
}

.status-battery {
  width: 22px;
  height: 10px;
  border: 1.5px solid var(--text);
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.status-battery::before {
  content: "";
  display: block;
  height: 100%;
  width: 70%;
  background: var(--accent);
  border-radius: 1px;
}
.status-battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: var(--text);
  border-radius: 0 1px 1px 0;
}

/* App header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.15rem 0.85rem 0.55rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
}

.brand h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 0.05rem 0 0;
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.badge-mock {
  background: rgba(251, 113, 133, 0.2);
  color: var(--danger);
  border: 1px solid rgba(251, 113, 133, 0.4);
}

.badge-premium {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

/* Main body */
.app-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.map-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
  background: #0a1520;
}

.map-legend {
  position: absolute;
  left: 0.55rem;
  bottom: 2.6rem;
  z-index: 500;
  background: rgba(18, 28, 38, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.62rem;
  backdrop-filter: blur(6px);
  max-width: 42%;
}

.legend-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  margin: 0.12rem 0;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.swatch.currents { background: linear-gradient(90deg, #22d3ee, #2dd4bf); }
.swatch.wind { background: var(--wind); }
.swatch.tide { background: var(--tide); }
.swatch.waves { background: var(--waves); opacity: 0.75; }
.swatch.fish { background: var(--fish); border-radius: 50%; }
.swatch.boat { background: var(--boat); border-radius: 50%; }
.swatch.ramp { background: #fb923c; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.swatch.store-tackle,
.swatch.store-marine {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(11, 18, 24, 0.8);
  border-radius: 50%;
  color: #111827;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}
.swatch.store-tackle { background: #f6b94c; }
.swatch.store-marine { background: #62d4c8; border-radius: 4px; }

.map-chip {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(18, 28, 38, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
}

.map-hint {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(18, 28, 38, 0.9);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
  max-width: 92%;
  pointer-events: none;
  line-height: 1.3;
}

/* Bottom drawers */
.drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 800;
  max-height: 62%;
  background: var(--bg-panel);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drawer-up 0.22s ease-out;
}

.drawer[hidden] { display: none !important; }

.drawer-tall { max-height: 78%; }

.drawer-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  flex: 1;
  min-height: 0;
}

.drawer-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #3a4a5a;
  margin: 0.25rem auto 0.45rem;
  flex-shrink: 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.drawer-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  flex: 1;
}

.drawer-close {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}
.drawer-close:hover { color: var(--text); }

@keyframes drawer-up {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.hint {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.scope-note {
  margin: 0 0 0.55rem;
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.9;
  line-height: 1.3;
}

.disclaimer {
  margin: 0.55rem 0 0;
  font-size: 0.62rem;
  color: var(--danger);
  opacity: 0.9;
  line-height: 1.35;
}

.subhead {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.subhead em {
  font-style: normal;
  color: var(--danger);
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0.75rem 0 0.25rem;
}
.section-head h3 {
  margin: 0;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.count {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

/* Toggles */
.layer-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle-ui {
  width: 38px;
  height: 22px;
  background: #2a3a4a;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s;
}
.toggle-ui::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #94a3b8;
  top: 3px;
  left: 3px;
  transition: transform 0.15s, background 0.15s;
}
.toggle input:checked + .toggle-ui { background: var(--accent-dim); }
.toggle input:checked + .toggle-ui::after {
  transform: translateX(16px);
  background: var(--accent);
}
.toggle-label em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.7rem;
}

/* Weather cards */
.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.weather-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.weather-card-wide { grid-column: 1 / -1; }
.w-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.w-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.w-value-sm {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.35;
}
.w-sub {
  font-size: 0.62rem;
  color: var(--muted);
}
#w-solunar-stars {
  color: var(--fish);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* Spot list */
.spot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: 40%;
}

.spot-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.spot-item:hover,
.spot-item.active {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.08);
}
.spot-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}
.spot-name { font-weight: 600; font-size: 0.82rem; }
.spot-dist { font-size: 0.68rem; color: var(--accent); white-space: nowrap; }
.spot-meta { font-size: 0.65rem; color: var(--muted); }

.selected-panel {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 0.8rem;
}
.selected-panel[hidden] { display: none !important; }
.selected-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.detail-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.detail-row {
  display: flex;
  gap: 0.45rem;
  margin: 0.2rem 0;
}
.detail-label {
  color: var(--muted);
  min-width: 4.2rem;
  flex-shrink: 0;
}

.currents-block {
  margin-top: 0.35rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

/* Tab bar */
.tab-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  height: var(--tab-h);
  background: rgba(14, 22, 32, 0.96);
  border-top: 1px solid var(--border);
  padding: 0.2rem 0.2rem 0;
  z-index: 900;
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  cursor: pointer;
  font: inherit;
  border-radius: 10px;
  padding: 0.2rem;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
}
.tab-icon { font-size: 1.05rem; line-height: 1; }
.tab-label {
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-indicator {
  flex-shrink: 0;
  height: var(--home-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 22, 32, 0.96);
}
.home-indicator::after {
  content: "";
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: #e8eef4;
  opacity: 0.85;
}

/* Leaflet dark */
.leaflet-control-attribution {
  background: rgba(18, 28, 38, 0.85) !important;
  color: var(--muted) !important;
  font-size: 0.55rem !important;
  max-width: 55%;
}
.leaflet-control-attribution a { color: var(--accent) !important; }
.leaflet-bar a {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
}
.leaflet-top.leaflet-right { top: 2.4rem; right: 0.4rem; }

.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.leaflet-popup-tip { background: var(--bg-card); }
.leaflet-popup-content {
  margin: 0.55rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.leaflet-popup-content strong { color: var(--accent); }

/* Markers (kept for app.js class names — support both naming styles) */
.marker-fish, .marker-fish {
  width: 20px;
  height: 20px;
  background: var(--fish);
  border: 2px solid #0b1218;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}
.marker-fish.selected, .marker-fish.selected {
  box-shadow: 0 0 0 3px var(--accent);
}
.marker-boat, .marker-boat {
  width: 24px;
  height: 24px;
  background: var(--boat);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.marker-tide, .marker-tide {
  width: 12px;
  height: 12px;
  background: var(--tide);
  border: 2px solid #0b1218;
  border-radius: 3px;
}
.marker-wind-arrow, .marker-wind-arrow {
  font-size: 16px;
  color: var(--wind);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1;
  text-align: center;
}

.current-flow-canvas { pointer-events: none !important; }
.current-geo-label { background: transparent !important; border: none !important; }
.current-geo-label-text {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(11, 18, 24, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 4px;
  padding: 0.12rem 0.35rem;
  white-space: nowrap;
  pointer-events: none;
}
.current-geo-label-text.eddy {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.4);
}
.current-geo-label-text.bar {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

/* Dialog — phone-friendly sheet */
dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-panel);
  color: var(--text);
  padding: 0;
  max-width: min(340px, calc(100vw - 2rem));
  width: calc(100% - 2rem);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
dialog::backdrop { background: rgba(5, 10, 15, 0.72); }

#add-spot-form {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
#add-spot-form h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent);
}
#add-spot-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
#add-spot-form input,
#add-spot-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  resize: vertical;
}
#add-spot-form input:focus,
#add-spot-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-primary {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* Narrow real phones: fill viewport (no floating chrome padding feel) */
@media (max-width: 430px) {
  .desktop-stage {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .desktop-caption { display: none; }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
  }
  .phone-bezel {
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .phone-screen { border-radius: 0; }
  .phone-side-btn { display: none; }
}

/* —— Demo-complete upgrades —— */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.moon-badge {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.45rem 0.15rem 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #c4b5fd;
}
.moon-badge.hidden { display: none !important; }
.moon-icon { font-size: 0.85rem; line-height: 1; }
.moon-pct { letter-spacing: 0.02em; }

/* Search */
.search-bar {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem 0.45rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 950;
  background: var(--bg);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.15);
}
.search-icon {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}
#spot-search {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  min-width: 0;
}
#spot-search::placeholder { color: #5a6d80; }
.search-clear {
  appearance: none;
  border: none;
  background: #2a3a4a;
  color: var(--muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.search-clear[hidden] { display: none !important; }

.search-results {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: calc(100% - 2px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  max-height: 280px;
  overflow-y: auto;
  z-index: 960;
}
.search-results[hidden] { display: none !important; }

.search-hit {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  text-align: left;
  width: 100%;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
}
.search-hit:last-child { border-bottom: none; }
.search-hit:hover,
.search-hit:focus {
  background: rgba(45, 212, 191, 0.1);
  outline: none;
}
.search-hit-name {
  font-weight: 650;
  font-size: 0.82rem;
  color: var(--text);
}
.search-hit-meta {
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.35;
}
.search-hit-warn {
  font-size: 0.6rem;
  color: var(--danger);
  font-weight: 600;
  margin-top: 0.1rem;
}
.search-hit-type {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(45, 212, 191, 0.12);
  border-radius: 4px;
  padding: 0.08rem 0.3rem;
  margin-right: 0.25rem;
}
.search-empty {
  padding: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}
.search-hint-banner {
  padding: 0.45rem 0.7rem;
  font-size: 0.6rem;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}

/* Nav disclaimer (nautical) */
.nav-disclaimer {
  position: absolute;
  top: 2.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 550;
  background: rgba(185, 28, 28, 0.92);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.nav-disclaimer[hidden] { display: none !important; }

/* Basemap style pill on map */
.style-pill {
  position: absolute;
  top: 0.5rem;
  right: 0.45rem;
  z-index: 500;
  display: flex;
  background: rgba(18, 28, 38, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.style-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.32rem 0.45rem;
  cursor: pointer;
  border-right: 1px solid var(--border);
}
.style-btn:last-child { border-right: none; }
.style-btn.active {
  background: rgba(45, 212, 191, 0.2);
  color: var(--accent);
}
.style-btn:hover { color: var(--text); }

/* Basemap switcher in Layers drawer */
.basemap-switch {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.basemap-opt {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.05rem;
  align-items: center;
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
}
.basemap-opt span:nth-child(2) {
  font-size: 0.82rem;
  font-weight: 650;
  grid-column: 2;
  grid-row: 1;
}
.basemap-opt em {
  grid-column: 2;
  grid-row: 2;
  font-style: normal;
  font-size: 0.62rem;
  color: var(--muted);
}
.basemap-opt.active {
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.1);
}
.bm-preview {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  grid-row: 1 / 3;
  border: 1px solid rgba(255,255,255,0.1);
}
.bm-sat {
  background:
    linear-gradient(135deg, #1a3a2a 0%, #0d2840 40%, #1a4a3a 70%, #0a2030 100%);
}
.bm-naut {
  background:
    linear-gradient(180deg, #0a1628 0%, #122848 50%, #0c1e38 100%);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25);
}
.bm-norm {
  background:
    linear-gradient(135deg, #c8d4a8 0%, #a8c090 40%, #88b0c8 70%, #d0c8a0 100%);
}

/* Tide curve */
.tide-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tide-now {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.tide-chart-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.4rem 0.25rem;
}
.tide-chart {
  width: 100%;
  height: auto;
  display: block;
}
.tide-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--muted);
  padding: 0.15rem 0.15rem 0;
}
.tide-mark-label {
  font-size: 7px;
  fill: #c4b5fd;
  font-weight: 600;
}

/* Solunar block */
.solunar-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.moon-visual {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(14, 22, 32, 0.6));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.moon-face {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.45));
}

/* Adjust map chrome for search bar */
.leaflet-top.leaflet-right { top: 2.8rem; right: 0.4rem; }
.map-chip { top: 0.5rem; left: 0.5rem; transform: none; }
.map-legend { bottom: 2.4rem; }

/* Spot list bait line */
.spot-bait {
  font-size: 0.6rem;
  color: var(--fish);
  margin-top: 0.05rem;
}

/* Slightly taller drawers for meatier conditions */
.drawer-tall { max-height: 82%; }

/* Solunar bands on tide curve */
.tide-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  padding: 0.15rem 0.15rem 0.35rem;
  font-size: 0.58rem;
  color: var(--muted);
}
.tcl-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.tcl-item i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}
.tcl-major i { background: rgba(251, 191, 36, 0.55); border: 1px solid #fbbf24; }
.tcl-minor i { background: rgba(56, 189, 248, 0.4); border: 1px solid #38bdf8; }
.tcl-item em {
  font-style: normal;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
}
.tide-solunar-note {
  margin: 0.3rem 0 0;
  font-size: 0.55rem;
  color: var(--muted);
  line-height: 1.35;
}
.tide-solunar-label-major {
  font-size: 6.5px;
  fill: #fcd34d;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tide-solunar-label-minor {
  font-size: 6px;
  fill: #7dd3fc;
  font-weight: 650;
}

/* Estuary tidal delay control */
.tidal-delay-panel {
  margin-top: 0.15rem;
  padding: 0.55rem 0.6rem 0.65rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(14, 22, 32, 0.5));
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 10px;
}
.tidal-delay-panel[hidden] { display: none !important; }
.delay-ref-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.45rem;
}
.delay-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.delay-value {
  color: var(--currents);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
#tidal-delay-slider {
  width: 100%;
  accent-color: #22d3ee;
  cursor: pointer;
}
.delay-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--muted);
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
}
.detail-delay {
  margin-top: 0.45rem;
  padding: 0.4rem 0.5rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  font-size: 0.68rem;
  color: var(--currents);
  line-height: 1.35;
}


/* Combined wind + waves block */
.wind-waves-block {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 0.5rem 0.55rem 0.6rem;
  margin-bottom: 0.15rem;
}
.wind-waves-hint {
  margin: 0 0 0.4rem !important;
  font-size: 0.62rem !important;
}
.ww-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.ww-combined {
  grid-column: 1 / -1;
  background: rgba(11, 18, 24, 0.55) !important;
  border-color: rgba(45, 212, 191, 0.35) !important;
}
.ww-card .w-value { color: #7dd3fc; }
.ww-combined .w-value { color: var(--accent) !important; }


/* Species & size limits (DEMO regs / ID — no catch logs) */
.species-panel {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}
.species-panel[hidden] { display: none !important; }
.species-panel .section-head { margin-top: 0; }
.species-list {
  list-style: none;
  margin: 0.35rem 0 0.45rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
}
.species-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: start;
}
.species-id {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  position: relative;
  background: linear-gradient(145deg, #1a3344, #0f1c28);
  border: 1px solid rgba(45, 212, 191, 0.25);
  flex-shrink: 0;
}
.species-id-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(251, 113, 133, 0.9);
  color: #fff;
  padding: 0.05rem 0.2rem;
  border-radius: 3px;
}
.species-body { min-width: 0; }
.species-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  margin: 0 0 0.1rem;
}
.species-sci {
  font-size: 0.58rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.25rem;
}
.species-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
}
.species-chip {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.species-chip.size {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}
.species-note {
  font-size: 0.6rem;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}
.species-source {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.58rem;
  color: #fcd34d;
  line-height: 1.35;
  padding: 0.35rem 0.45rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 6px;
}


/* Regs tab — offline pack + prompt */
.tab[hidden], .tab.tab-hidden { display: none !important; }
.offline-pack-banner {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  margin: 0 0 0.55rem;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 10px;
}
.offline-pack-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.offline-pack-banner strong {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.offline-pack-banner span {
  font-size: 0.6rem;
  color: var(--muted);
  line-height: 1.35;
}
.regs-search-field {
  margin: 0 0 0.45rem;
}
.regs-search-field input {
  width: 100%;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}
.regs-search-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.species-list-regs {
  max-height: none;
}
.drawer-regs { max-height: 88%; }

.regs-prompt {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.75rem 5.5rem;
  background: rgba(5, 10, 15, 0.55);
}
.regs-prompt[hidden] { display: none !important; }
.regs-prompt-card {
  width: min(360px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: drawer-up 0.2s ease-out;
}
.regs-prompt-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}
.regs-prompt-head h3 {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--accent);
}
.regs-prompt-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.regs-prompt-actions .btn { flex: 1; }
.regs-prompt-mute {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.65rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.55rem;
  width: 100%;
  text-align: center;
  padding: 0.25rem;
}
.regs-prompt-mute:hover { color: var(--text); }

/* When Regs feature off, tab bar can stay 5 slots or collapse — we hide tab */
.tab-bar.regs-off {
  grid-template-columns: repeat(4, 1fr);
}


/* Boat ramp markers + directions sheet */
.marker-ramp {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid #fb923c;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.55));
  position: relative;
}
.marker-ramp::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 8px;
  height: 8px;
  background: #0b1218;
  border-radius: 50%;
}
.marker-ramp.selected {
  border-bottom-color: #fdba74;
  filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.9));
}

.ramp-sheet {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.75rem 5.5rem;
  background: rgba(5, 10, 15, 0.55);
}
.ramp-sheet[hidden] { display: none !important; }
.ramp-sheet-card {
  width: min(360px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: drawer-up 0.2s ease-out;
}
.ramp-sheet-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.15rem 0 0.2rem;
  color: var(--text);
}
.ramp-sheet-coords {
  font-size: 0.72rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ramp-dirs-label {
  margin: 0.7rem 0 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ramp-dir-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ramp-dir-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
}
.ramp-dir-btn.google { border-color: rgba(66, 133, 244, 0.5); color: #93c5fd; }
.ramp-dir-btn.apple { border-color: rgba(148, 163, 184, 0.5); color: #e2e8f0; }
.ramp-dir-btn.waze { border-color: rgba(51, 204, 255, 0.5); color: #67e8f9; }
.ramp-dir-btn:hover { background: rgba(45, 212, 191, 0.1); }

.ramp-facilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0.65rem 0 0.35rem;
}
.ramp-fac {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}
.ramp-fac-label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.ramp-fac-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.ramp-nearby-shop { margin-top: 0.15rem; }
.ramp-nearby-shop[hidden] { display: none !important; }
.ramp-shop-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #ddd6fe;
  background: rgba(167, 139, 250, 0.08);
  cursor: pointer;
}
.ramp-shop-btn:hover { background: rgba(167, 139, 250, 0.16); }

/* Store markers (Premium DEMO) */
.marker-store {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  position: relative;
}
.marker-store-tackle,
.marker-store-marine { background: transparent; }
.store-brand-badge {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #0b1218;
  background: var(--brand-accent);
  color: var(--brand-ink);
  font-size: 0.5rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px rgba(255,255,255,0.22);
}
.store-brand-circle { border-radius: 50%; }
.store-brand-square { border-radius: 6px; }
.marker-store.selected .store-brand-badge {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.32), 0 0 8px var(--brand-accent);
  transform: scale(1.12);
}

.store-sheet-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.2rem;
}
.store-sheet-brand {
  flex: 0 0 auto;
}
.store-sheet-brand .store-brand-badge {
  width: 42px;
  height: 42px;
  border-width: 3px;
  font-size: 0.78rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.45);
}
.store-sheet-identity .ramp-sheet-name { margin-top: 0; }
.store-sheet-identity .store-type-pill { margin-bottom: 0; }

.store-sheet {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.75rem 5.5rem;
  background: rgba(5, 10, 15, 0.55);
}
.store-sheet[hidden] { display: none !important; }
.store-sheet-card {
  width: min(360px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: drawer-up 0.2s ease-out;
}
.store-type-pill {
  display: inline-block;
  margin: 0.25rem 0 0.45rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.store-type-pill.tackle {
  background: rgba(167, 139, 250, 0.18);
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.4);
}
.store-type-pill.marine {
  background: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.store-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.2rem 0 0.35rem;
}
.store-meta-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}
.store-meta-label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.12rem;
}
.store-meta-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}


/* —— Premium AI Fishing Coach (MOCK) —— */
.coach-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.35rem;
}

.btn-coach {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
}

.coach-sheet {
  position: fixed;
  inset: 0;
  z-index: 2150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.75rem 5.5rem;
  background: rgba(5, 10, 15, 0.55);
}

.coach-sheet[hidden] { display: none !important; }

.coach-sheet-card {
  width: min(360px, 100%);
  max-height: min(78vh, 720px);
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.95rem 0.95rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: drawer-up 0.2s ease-out;
}

.coach-locs-label {
  margin: 0.65rem 0 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.coach-loc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.coach-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.coach-chip:hover {
  color: var(--text);
  border-color: rgba(45, 212, 191, 0.45);
}

.coach-chip.active {
  color: #0b1218;
  background: var(--accent);
  border-color: var(--accent);
}

.coach-location-head {
  margin: 0.15rem 0 0.55rem;
}

.coach-loc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.coach-loc-meta {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 0.12rem;
}

.coach-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.coach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.coach-card-wide {
  grid-column: 1 / -1;
}

.coach-card .w-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.coach-card .w-value-sm {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
}

.coach-sheet-card .disclaimer {
  margin-top: 0.75rem;
}

.coach-mode-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.35rem 0 0.65rem;
  padding: 0.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.coach-mode-tab {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.coach-mode-tab.active {
  background: var(--accent);
  color: #0b1218;
}

.coach-pane { margin-top: 0.15rem; }

.coach-species-guides {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.coach-species-acc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.coach-species-sum {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text);
  user-select: none;
}

.coach-species-sum::-webkit-details-marker { display: none; }

.coach-species-emoji { font-size: 1rem; line-height: 1; }
.coach-species-name { flex: 1; }
.coach-species-chev {
  color: var(--muted);
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}
.coach-species-acc[open] .coach-species-chev { transform: rotate(180deg); }

.coach-hwyt {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0.65rem 0.7rem;
  border-top: 1px solid var(--border);
}

.coach-hwyt-block { padding-top: 0.45rem; }

.coach-hwyt-label {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.coach-hwyt-block p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
}

.coach-plan-head { margin: 0.1rem 0 0.45rem; }

.coach-plan-date {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
}

.coach-plan-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.coach-cond-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.coach-cond-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.coach-cond-wide { grid-column: 1 / -1; }

.coach-plan-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.coach-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

.coach-win-prime { border-left-color: var(--accent); }
.coach-win-good { border-left-color: var(--fish); }
.coach-win-avg { border-left-color: var(--muted); }

.coach-window-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.coach-window-time {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
}

.coach-window-rating {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.coach-win-good .coach-window-rating {
  background: rgba(251, 191, 36, 0.15);
  color: var(--fish);
}

.coach-win-avg .coach-window-rating {
  background: rgba(143, 163, 184, 0.15);
  color: var(--muted);
}

.coach-window-label {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0.2rem 0 0.35rem;
}

.coach-window-species {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.coach-window-row {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.35;
}

.coach-window-row .w-label {
  font-size: 0.58rem;
}

.coach-plan-hint {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
}



/* LIVE data layer badge (Open-Meteo / QLD CDS) */
.badge-live {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#live-attribution {
  font-size: 0.7rem;
  opacity: 0.75;
  line-height: 1.35;
  margin: 0.25rem 0 0.75rem;
}

/* ---- WorldTides static data + About ---- */
.wt-tide-box { margin-top: 0.5rem; padding: 0.5rem 0.6rem; border-radius: 10px; background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.25); }
.wt-tide-box .w-label { display: block; margin: 0.35rem 0 0.2rem; }
.wt-upcoming { list-style: none; margin: 0; padding: 0; font-size: 0.72rem; line-height: 1.55; }
.wt-upcoming b { display: inline-block; width: 2.6rem; color: #c4b5fd; }
.wt-chip { display: inline-block; padding: 0.05rem 0.4rem; border-radius: 999px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em; }
.wt-chip-station { background: rgba(52,211,153,0.18); color: #6ee7b7; }
.wt-chip-model { background: rgba(251,191,36,0.2); color: #fcd34d; }
.wt-safety { margin: 0.45rem 0 0; font-size: 0.64rem; line-height: 1.35; color: #fca5a5; }
.wt-safety-big { font-size: 0.72rem; padding: 0.55rem 0.65rem; border-radius: 10px; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); margin: 0.6rem 0; }
.wt-attr { margin: 0.35rem 0 0; font-size: 0.6rem; opacity: 0.8; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.about-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: inherit; border-radius: 999px; width: 26px; height: 26px; font-size: 0.85rem; cursor: pointer; }
.about-brand { display: flex; gap: 0.6rem; align-items: center; margin: 0.3rem 0; }
.about-brand img { border-radius: 10px; }
.about-attr { font-size: 0.66rem; line-height: 1.4; margin: 0 0 0.4rem; }

/* De-clunk v5: opaque conditions/drawers above Leaflet panes+controls (z up to 1000) and legend */
.drawer{z-index:1100;background:var(--bg-panel);background-color:#121c26;opacity:1;isolation:isolate;backdrop-filter:none}
.map-legend.legend-hidden-by-drawer{display:none}

.tab-bar{grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-flow:column}
.tab-bar .tab{min-width:0;font-size:.62rem}

/* SeaTrack SVG map icons (ramps + stores) */
.st-icon { background: none; border: 0; }
.st-icon img { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
.marker-store-pin { position: relative; width: 24px; height: 31px; }
.marker-store-label {
  position: absolute; left: 50%; top: 32px; transform: translateX(-50%);
  white-space: nowrap; font: 700 11px/1.15 system-ui, sans-serif; color: #fff;
  padding: 1px 5px; border-radius: 4px; background: rgba(11,33,80,.82);
  text-shadow: 0 1px 1px rgba(0,0,0,.6); pointer-events: none;
}
.marker-store-pin.selected .marker-store-label { background: #0b2150; box-shadow: 0 0 0 1.5px #fbbf24; }
.legend-icon { width: 15px; height: 18px; vertical-align: middle; margin-right: 2px; }
