/* Mobile-first public visitor guide. Minimal text, scannable cards. */
:root {
  --ink: #0c2a32;
  --ink-2: #23414a;
  --foam: #f4fbf8;
  --paper: #ffffff;
  --line: #d5e6e1;
  --sea: #0b6e6e;
  --sea-2: #094f55;
  --lagoon: #1a9b8a;
  --sand: #f3ead8;
  --muted: #5b7178;
  --green: #137a4c;
  --green-bg: #e4f6ec;
  --yellow: #a56b00;
  --yellow-bg: #fff3d1;
  --red: #b42318;
  --red-bg: #fde8e6;
  --gray: #5d6b75;
  --gray-bg: #e8edf0;
  --shadow: 0 8px 28px rgba(12, 42, 50, 0.1);
  --radius: 18px;
  --font: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
  --display: "Noto Serif SC", "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.45;
  min-height: 100vh;
}
img, svg { max-width: 100%; }
a { color: var(--sea-2); }
button { font-family: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; background: #fff; padding: 8px; z-index: 20; }
[hidden] { display: none !important; }

/* bilingual */
html[data-lang="zh"] [lang="en"],
html[data-lang="en"] [lang="zh"] { display: none; }
html[data-lang="en"] { font-family: "Source Sans 3", "Noto Sans SC", system-ui, sans-serif; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  background: var(--sea-2);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0;
}
.logo { color: #fff; text-decoration: none; display: flex; flex-direction: column; }
.logo .mark { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.logo .sub { font-size: 0.7rem; opacity: 0.8; letter-spacing: 0.02em; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.lang-switch { display: flex; background: rgba(255,255,255,.15); border-radius: 999px; padding: 2px; }
.lang-toggle {
  border: 0; background: transparent; color: #fff; border-radius: 999px;
  padding: 4px 10px; cursor: pointer; font-size: 0.82rem;
}
.lang-toggle[aria-pressed="true"] { background: #fff; color: var(--sea-2); }
.nav-toggle {
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
.site-nav {
  display: none; background: var(--sea);
  padding: 8px 16px 14px;
}
.site-nav.open { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a {
  color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); font-weight: 600; font-size: 0.95rem;
}
.site-nav a[aria-current="page"] { background: #fff; color: var(--sea-2); }

.hero { background: linear-gradient(160deg, #083b40, #0b6e6e 60%, #1a8f7a); color: #fff; padding: 28px 0 36px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 8px; line-height: 1.2; }
.hero .lede, .hero .kicker { margin: 0; }
.kicker { text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.hero .lede { opacity: 0.92; max-width: 40rem; font-size: 0.98rem; }
.wave-break { display: block; width: 100%; height: 28px; margin-top: -1px; }
.section { padding: 24px 0 40px; }
h2 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 12px; }
.muted, .note { color: var(--muted); font-size: 0.9rem; }
.disclaimer {
  background: var(--sand); border-radius: var(--radius); padding: 12px 14px;
  font-size: 0.88rem; margin: 16px 0 0;
}
.sources { font-size: 0.82rem; color: var(--muted); }
.sources a { margin-right: 0.7em; }
.site-footer { background: var(--sea-2); color: #d7eeea; padding: 28px 0; font-size: 0.86rem; }
.site-footer a { color: #fff; }

/* Today */
.island-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.island-picks button, .geo-btn {
  border: 0; background: rgba(255,255,255,.16); color: #fff;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600;
}
.island-picks button[aria-pressed="true"] { background: #fff; color: var(--sea-2); }
.geo-btn { border: 1px solid rgba(255,255,255,.5); background: transparent; }
.today-meta { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; }
.coast-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.coast {
  border: 0; border-radius: 22px; padding: 16px 14px 14px; text-align: left;
  min-height: 112px; color: var(--ink); box-shadow: var(--shadow); cursor: default;
}
.coast .dir { font-family: var(--display); font-size: 1.15rem; margin: 0; }
.coast .height { font-size: 1.7rem; font-weight: 700; margin: 4px 0; letter-spacing: -0.02em; }
.coast .state { font-weight: 700; font-size: 0.95rem; margin: 0; }
.coast.green { background: var(--green-bg); color: #0b4a2e; }
.coast.yellow { background: var(--yellow-bg); color: #6a4300; }
.coast.red { background: var(--red-bg); color: #7a140e; }
.coast.unknown { background: var(--gray-bg); color: #3d4a54; }
.wind-line { margin: 12px 0 20px; font-size: 0.92rem; }
.recs { display: flex; flex-direction: column; gap: 10px; }
.rec {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); cursor: pointer;
}
.rec h3 { margin: 0 0 4px; font-size: 1.05rem; }
.rec p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.alert-banner {
  background: var(--red-bg); color: #7a140e; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
}
.secondary-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 28px; }
.tile {
  background: #fff; border-radius: var(--radius); padding: 16px 14px; text-decoration: none;
  color: inherit; box-shadow: var(--shadow); display: block;
}
.tile h2 { font-size: 1.05rem; margin: 0 0 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.state-msg { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }

/* Cards */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip, .filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font-size: 0.85rem;
}
.filters button[aria-pressed="true"] { background: var(--sea-2); color: #fff; border-color: var(--sea-2); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.spot-card {
  border: 0; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-align: left; cursor: pointer; padding: 0; display: block; width: 100%; color: inherit;
}
.spot-card.is-hidden { display: none; }
.card-art {
  height: 110px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(135deg, var(--a, #0b6e6e), var(--b, #1a9b8a) 50%, var(--c, #0c3a44));
}
.spot-card .body { padding: 12px 14px 14px; }
.spot-card h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 2px 8px; font-size: 0.72rem; font-weight: 700; background: var(--gray-bg);
}
.tag.surf { background: #dceeff; color: #124a7a; }
.tag.snorkel { background: #d8f3ee; color: #0b5b50; }
.tag.warn { background: var(--yellow-bg); color: #6a4300; }
.tag.danger { background: var(--red-bg); color: #7a140e; }

/* Places map tiles */
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.place-card {
  background: #fff; border-radius: var(--radius); text-decoration: none; color: inherit;
  box-shadow: var(--shadow); overflow: hidden; display: block;
}
.place-card .art { height: 90px; }
.place-card h2 { margin: 0; padding: 10px 12px 12px; font-size: 1.05rem; }
.art.oahu { background: linear-gradient(135deg, #0b6e6e, #7ad0c4); }
.art.hawaii { background: linear-gradient(135deg, #8a3a12, #e07a3d 60%, #0b6e6e); }
.art.maui { background: linear-gradient(135deg, #165e8a, #5eb0d6); }
.art.kauai { background: linear-gradient(135deg, #146b3a, #7bc96f); }

/* Safety */
.rule { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 10px; padding: 0 14px; }
.rule summary {
  cursor: pointer; list-style: none; padding: 14px 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 650;
}
.rule summary::-webkit-details-marker { display: none; }
.rule .ico { font-size: 1.3rem; line-height: 1; }
.rule .more { padding: 0 0 14px; margin: 0; color: var(--ink-2); }

/* Volcano */
.status-card {
  width: 100%; border: 0; background: #fff; border-radius: 24px; box-shadow: var(--shadow);
  text-align: left; cursor: pointer; padding: 0; color: inherit;
}
.status-card .pad { padding: 20px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.volcano-light {
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.15), 0 0 0 6px rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.volcano-light.color-green { background: radial-gradient(circle at 35% 30%, #b6f5c8, #137a4c); }
.volcano-light.color-yellow { background: radial-gradient(circle at 35% 30%, #ffe9a0, #d4a017); }
.volcano-light.color-orange { background: radial-gradient(circle at 35% 30%, #ffd0a8, #e06b1f); }
.volcano-light.color-red { background: radial-gradient(circle at 35% 30%, #ffb3ab, #b42318); }
.volcano-light.color-unknown, .volcano-light.color-unassigned {
  background: radial-gradient(circle at 35% 30%, #e8edf0, #7a8794);
}
.status-card h2 { margin: 0; }
.volcano-syn { margin: 4px 0 0; font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cta { font-weight: 700; color: var(--sea-2); margin: 8px 0 0; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; }
.badge.GREEN, .badge.NORMAL { background: var(--green-bg); color: var(--green); }
.badge.YELLOW, .badge.ADVISORY { background: var(--yellow-bg); color: var(--yellow); }
.badge.ORANGE, .badge.WATCH { background: #ffe1c4; color: #9a4b00; }
.badge.RED, .badge.WARNING { background: var(--red-bg); color: var(--red); }
.live-links a {
  display: block; background: #fff; border-radius: 14px; padding: 12px 14px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow); margin-bottom: 8px;
}
.live-links a strong { display: block; }
.live-links a span { color: var(--muted); font-size: 0.88rem; }

/* Modals / sheets */
.modal, .sheet-root {
  position: fixed; inset: 0; background: rgba(8, 30, 36, .55);
  z-index: 80; display: grid; place-items: end center;
}
.modal { place-items: center; padding: 16px; }
.modal-card, .sheet {
  background: #fff; width: min(720px, 100%); max-height: 90vh; overflow: auto;
  border-radius: 20px 20px 0 0; padding: 16px 16px 28px;
}
.modal-card { border-radius: 20px; }
.modal-head, .sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.close-btn {
  border: 0; background: var(--gray-bg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.webcam-fig iframe, .webcam-fig img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 0; border-radius: 12px; background: #111; }
.webcam-grid { display: grid; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--sea-2); color: #fff; }
.sheet dl { margin: 0; }
.sheet dt { font-weight: 700; margin: 12px 0 2px; font-size: 0.82rem; color: var(--muted); }
.sheet dd { margin: 0; }
body.sheet-open { overflow: hidden; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; background: transparent; padding: 0 0 10px; width: min(1080px, calc(100% - 24px)); margin: 0 auto; gap: 6px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .sheet { border-radius: 20px; margin-bottom: 6vh; }
  .sheet-root { place-items: center; padding: 16px; }
  .coast-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.pretty{padding-left:1.2rem}
.pretty li{margin:0 0 .5rem}
@media (min-width:720px){
  .grid.grid-2{grid-template-columns:1fr 1fr !important}
}

/* ===== Map-first Today view ===== */
body.map-home { height: 100dvh; overflow: hidden; background: #d9e8e4; }
body.map-home .site-header, body.map-home .site-footer { display: none; }
#today-app.map-shell { position: relative; height: 100dvh; }
#map { position: absolute; inset: 0; }
.map-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  pointer-events: none;
}
.map-top > * { pointer-events: auto; }
.map-bar {
  margin: 6px 8px 0;
  background: rgba(8, 40, 46, .92);
  color: #fff;
  border-radius: 12px;
  padding: 4px 8px;
  min-height: 40px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  position: relative;
  width: max-content;
  max-width: calc(100% - 16px);
}
.map-bar .logo { flex: 0 0 auto; margin-right: 4px; }
.map-bar .logo .mark { font-size: 0.92rem; }
.map-bar .logo .sub { display: none; }
.map-bar .lang-switch { background: rgba(255,255,255,.12); padding: 1px; margin-left: auto; }
.map-bar .lang-toggle { padding: 3px 7px; font-size: 0.72rem; }
.map-bar .info-btn, .map-bar .menu-btn, .map-bar .nav-mini a, .sheet-handle .info-btn, .sheet-handle .close-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: rgba(255,255,255,.14); color: #fff;
  text-decoration: none; font-weight: 800; cursor: pointer; font-size: 0.85rem;
  flex: 0 0 auto;
}
.map-bar .menu-btn { font-size: 1rem; line-height: 1; }
.map-bar .nav-mini {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  flex-direction: column; gap: 4px;
  background: rgba(8, 40, 46, .96);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  min-width: 140px;
  z-index: 40;
}
.map-bar .nav-mini:not([hidden]) { display: flex; }
.map-bar .nav-mini a {
  width: auto; height: auto; border-radius: 8px;
  justify-content: flex-start; padding: 8px 10px; font-size: 0.85rem;
}

.map-fabs {
  position: absolute; z-index: 25;
  right: 10px;
  bottom: calc(var(--sheet-h, 18dvh) + 12px);
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.map-fab {
  pointer-events: auto;
  border: 0; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 10px;
  font-weight: 650; font-size: 0.75rem;
  box-shadow: var(--shadow); cursor: pointer;
}
.map-fab[aria-pressed="true"] { background: var(--sea-2); color: #fff; }

/* Sheet / desktop panel */
.map-sheet {
  --sheet-h: 18dvh;
  position: absolute; z-index: 30;
  left: 0; right: 0; bottom: 0;
  height: var(--sheet-h);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 28px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: height .32s ease;
}
.map-sheet.dragging { transition: none; }
.map-sheet[data-sheet-mode="detail"] .sheet-handle .close-btn { display: none; }
.map-sheet[data-sheet-state="peek"] .sheet-scroll { display: none; }
.sheet-handle {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px;
  padding: 4px 10px 0;
  min-height: 28px;
  cursor: grab; touch-action: none;
  position: relative;
}
.sheet-handle .grabber {
  position: absolute; left: 50%; top: 8px;
  width: 40px; height: 4px; margin-left: -20px;
  border-radius: 4px; background: #c5c9cc;
}
.sheet-handle .info-btn, .sheet-handle .close-btn {
  background: var(--gray-bg); color: var(--ink);
  width: 28px; height: 28px;
}
.sheet-sticky { flex: 0 0 auto; padding: 0 14px 6px; }
.sheet-scroll { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 20px; }
[data-sheet-peek] [data-summary] { margin: 0; font-weight: 700; font-size: 0.95rem; }
[data-sheet-peek] [data-when] { margin: 2px 0 0; font-size: 0.72rem; color: var(--muted, #5c6a70); }
.legend-row {
  display: flex; flex-wrap: nowrap; gap: 8px 10px;
  margin: 6px 0 4px; font-size: 0.7rem; font-weight: 650;
  overflow-x: auto; scrollbar-width: none;
}
.legend-row span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot.green { background: #137a4c; }
.legend-dot.yellow { background: #c49000; }
.legend-dot.red { background: #b42318; }
.legend-dot.inner { background: #8b939c; }
.rec-chips { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.rec-chips button { white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.map-sheet[data-sheet-mode="detail"] [data-sheet-peek] [data-summary],
.map-sheet[data-sheet-mode="detail"] [data-sheet-peek] [data-when],
.map-sheet[data-sheet-mode="detail"] .rec-chips { display: none; }
.map-sheet[data-sheet-state="full"] ~ .map-fabs,
body:has(.map-sheet[data-sheet-state="full"]) .map-fabs { opacity: 0; pointer-events: none; }
.rec-chips button, .sheet-tools button, .rec-card {
  border: 0; background: #f3f6f7; color: var(--ink);
  border-radius: 999px; padding: 5px 10px; font-weight: 650;
  font-size: 0.78rem; cursor: pointer;
}
.rec-chips button[aria-pressed="true"], .sheet-tools button[aria-pressed="true"] {
  background: var(--sea-2); color: #fff;
}
.sheet-tools {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 4px 0 10px;
}
.rec-cards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.rec-card {
  flex: 0 0 220px; border-radius: 14px; padding: 10px 12px;
  text-align: left; background: #fff; border: 1px solid #e2e8ea;
  scroll-snap-align: start; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.rec-card[aria-pressed="true"], .rec-card.selected {
  border-color: var(--sea-2);
  box-shadow: 0 0 0 2px rgba(11,110,110,.25);
}
.rec-card .name { font-weight: 800; font-size: 0.9rem; margin: 0 0 4px; }
.rec-card .why { margin: 0; font-size: 0.75rem; color: #5c6a70; line-height: 1.35; }
.rec-card .more {
  margin-top: 8px; border: 0; background: var(--sea-2); color: #fff;
  border-radius: 8px; padding: 6px 8px; font-weight: 700; font-size: 0.75rem; cursor: pointer; width: 100%;
}

@media (min-width: 800px) {
  .map-top { left: 360px; }
  .map-bar { margin: 10px 12px 0 12px; }
  .map-bar .menu-btn { display: none; }
  .map-bar .nav-mini {
    display: flex; position: static; flex-direction: row; gap: 4px;
    background: transparent; box-shadow: none; padding: 0; min-width: 0;
  }
  .map-bar .nav-mini[hidden] { display: flex !important; }
  .map-bar .nav-mini a {
    width: auto; height: 30px; border-radius: 999px;
    padding: 0 9px; justify-content: center; font-size: 0.75rem;
  }
  .map-sheet {
    top: 0; bottom: 0; left: 0; right: auto;
    width: 360px; height: auto !important;
    border-radius: 0;
    box-shadow: 8px 0 24px rgba(0,0,0,.12);
    transition: none;
  }
  .sheet-handle { cursor: default; padding: 10px 10px 0; min-height: 0; }
  .sheet-handle .grabber { display: none; }
  .map-sheet .sheet-handle .close-btn { display: none; }
  .rec-chips button { max-width: 100%; }
  .map-fabs {
    left: 372px; right: auto; bottom: 88px; flex-direction: column;
  }
  .rec-cards { flex-direction: column; overflow-x: hidden; }
  .rec-card { flex: 0 0 auto; width: 100%; }
}

.map-pin {
  border: 0; cursor: pointer; font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.map-pin.rec {
  width: 32px; height: 32px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--sea-2); color: #fff; font-size: 0.95rem;
  display: grid; place-items: center;
}
.map-pin.rec > * , .map-pin.rec { /* number upright */
}
.map-pin.rec { color: #fff; }
.map-pin.rec { font-size: 1rem; }
/* rotate the number back */
.map-pin.rec { line-height: 1; }
.map-pin.rec { text-indent: 0; }
.map-pin.rec { /* we'll wrap number */ }
.map-pin.small {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--sea-2);
  display: grid; place-items: center; font-size: 0.7rem;
  border: 2px solid var(--sea);
}
.map-pin.small.snorkel { border-color: #0b5b50; }
.map-pin.unverified { border: 2px dashed #a56b00; }
.map-pin.volcano {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; padding: 0;
}
.map-pin.volcano .tri {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #7a8794;
}
.map-pin.volcano.green .tri { border-bottom-color: #137a4c; }
.map-pin.volcano.yellow .tri { border-bottom-color: #c49000; }
.map-pin.volcano.orange .tri { border-bottom-color: #e06b1f; }
.map-pin.volcano.red .tri { border-bottom-color: #b42318; }

#map-panel {
  position: absolute; z-index: 30;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: auto;
}
#map-panel .cta-btn {
  display: block; width: 100%; margin-top: 12px;
  border: 0; background: var(--sea-2); color: #fff;
  border-radius: 12px; padding: 10px 12px; font-weight: 700; cursor: pointer;
}
.coast-pill { display: inline-block; border-radius: 999px; padding: 4px 10px; font-weight: 700; }
.coast-pill.green { background: var(--green-bg); color: var(--green); }
.coast-pill.yellow { background: var(--yellow-bg); color: var(--yellow); }
.coast-pill.red { background: var(--red-bg); color: var(--red); }
.coast-pill.unknown, .coast-pill.inner { background: var(--gray-bg); color: var(--gray); }
.reason { margin: 10px 0; }
.num {
  display: inline-grid; place-items: center;
  width: 1.4em; height: 1.4em; border-radius: 50%;
  background: var(--sea-2); color: #fff; font-size: 0.85rem; margin-right: 4px;
}
#live-frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #111; }

@media (max-width: 799px) {
  #map-panel {
    left: 0; right: 0; bottom: 0;
    max-height: 62vh;
    border-radius: 20px 20px 0 0;
    padding: 12px 14px 20px;
  }
}
@media (min-width: 800px) {
  #map-panel {
    top: 0; right: 0; bottom: 0;
    width: min(400px, 38vw);
    padding: 16px 18px 28px;
  }
  .map-top { left: 360px; }
  .map-bar { margin: 10px 12px 0 12px; }
  .map-tools { margin: 8px 12px 0; }
  .map-bar .menu-btn { display: none; }
  .map-bar .nav-mini {
    display: flex; position: static; flex-direction: row; gap: 4px;
    background: transparent; box-shadow: none; padding: 0; min-width: 0;
  }
  .map-bar .nav-mini[hidden] { display: flex !important; }
  .map-bar .nav-mini a {
    width: auto; height: 30px; border-radius: 999px;
    padding: 0 9px; justify-content: center; font-size: 0.75rem;
  }
}
/* upright numbers on teardrop pins */
.map-pin.rec { transform: rotate(-45deg); }
.map-pin.rec { font-style: normal; }
.map-pin.rec { /* child not used; use unicode after rotate back via text? harder */ }

.map-pin.rec .n{display:block;transform:rotate(45deg);}

.map-pin.selected, .map-pin.rec.selected {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sea-2);
  z-index: 2;
}
.map-cluster {
  background: var(--sea-2); color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-weight: 800; font-size: 0.75rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.sheet-detail .cta-btn {
  display: block; width: 100%; margin-top: 12px;
  border: 0; background: var(--sea-2); color: #fff;
  border-radius: 12px; padding: 10px 12px; font-weight: 700; cursor: pointer;
}
.sheet-detail .sheet-head, #map-sheet .sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.sheet-detail .sheet-head h2 { margin: 0 0 8px; font-size: 1.05rem; }
.back-browse {
  border: 0; background: none; color: var(--sea-2);
  font-weight: 700; cursor: pointer; padding: 0; margin: 0 0 8px; font-size: 0.8rem;
}
