@font-face {
  font-family: "Pacifico";
  src: url("../fonts/pacifico.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/josefin-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/josefin-sans-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #081528;
  --navy-mid: #102a4a;
  --gold: #d6b03e;
  --gold-hi: #f2e09c;
  --cream: #fffbf4;
  --sand: #f2e4c6;
  --teal: #0a7080;
  --teal-dk: #064e5c;
  --header: #064e5c;
  --water: #66a6a5;
  --park: #1a4e2c;
  --coral: #d65440;
  --blue: #1a73e8;
  --text: #081528;
  --muted: #4c5a6a;
  --shadow: 0 8px 24px rgba(8, 21, 40, 0.22);
  --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --bar-h: 0px;
  --dock: calc(18px + var(--safe-bottom));
  font-family: "Josefin Sans", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 400;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; height: 100svh; height: 100dvh; }
html, body { margin: 0; background: var(--header); color: var(--cream); overflow: hidden; }
#map { position: absolute; inset: 0; height: 100%; height: 100svh; height: 100dvh; width: 100%; }
button, input { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

#app { position: relative; overflow: hidden; }

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  padding: calc(10px + var(--safe-top)) calc(12px + var(--safe-right)) 12px calc(12px + var(--safe-left));
  background: linear-gradient(180deg, rgba(6,78,92,0.96) 0%, rgba(6,78,92,0.88) 72%, rgba(6,78,92,0.0) 100%);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  flex: none; display: block; object-fit: cover;
  background: var(--cream);
  box-shadow: 0 1px 4px rgba(8,21,40,0.35);
}
.brand-text { min-width: 0; }
.brand h1 {
  margin: 0;
  font-family: "Pacifico", Georgia, cursive;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(4, 40, 48, 0.45);
}
.tagline {
  margin: 1px 0 0;
  font-family: "Josefin Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sand);
  opacity: 0.95;
}
@media (max-width: 420px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand h1 { font-size: 0.98rem; }
}
@media (max-width: 520px) {
  /* Keep the header compact on phones: the script title already brands the map. */
  .tagline { display: none; }
}
@media (max-width: 360px) {
  .brand-the { display: none; }
}


.home-btn {
  appearance: none; text-decoration: none;
  background: var(--cream); color: var(--navy);
  height: 44px; padding: 0 12px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: var(--shadow); font-weight: 800; font-size: 0.9rem; flex: none;
  line-height: 1;
}
.home-btn:active { transform: scale(0.97); }
@media (max-width: 380px) {
  .home-btn { padding: 0 10px; font-size: 0.82rem; }
}
.icon-btn {
  appearance: none; border: 0; background: var(--cream); color: var(--navy);
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); cursor: pointer;
}
.icon-btn:active { transform: scale(0.97); }

.search-row { display: flex; align-items: stretch; gap: 8px; }
.search-row .search-wrap { flex: 1; min-width: 0; }
.rental-btn {
  appearance: none; border: 0; flex: none;
  height: 48px; padding: 0 12px;
  border-radius: 14px; cursor: pointer;
  background: var(--cream); color: var(--navy);
  box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 800; font-size: 0.8rem; line-height: 1; white-space: nowrap;
}
.rental-btn svg { flex: none; color: var(--coral); }
.rental-btn.open, .rental-btn[aria-expanded="true"] {
  background: var(--navy); color: var(--cream);
}
.rental-btn.open svg, .rental-btn[aria-expanded="true"] svg { color: var(--gold-hi); }
.rental-btn:active { transform: scale(0.97); }
@media (max-width: 360px) {
  .rental-btn { padding: 0 10px; }
  .rental-btn span { display: none; }
}
.search-wrap { position: relative; }
#search {
  width: 100%; height: 48px; border: 0; border-radius: 14px;
  padding: 0 44px 0 16px; background: var(--cream); color: var(--navy);
  box-shadow: var(--shadow); outline: none;
  font-size: 16px; /* Android: avoid input zoom */
}
#search:focus { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 22px; cursor: pointer;
}
.search-results {
  list-style: none; margin: 8px 0 0; padding: 6px;
  background: var(--cream); color: var(--navy);
  border-radius: 14px; box-shadow: var(--shadow);
  max-height: min(50vh, 420px); overflow: auto;
}
.search-results li { border-radius: 10px; }
.search-results button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; color: inherit;
  display: flex; gap: 10px; align-items: flex-start;
}
.search-results button:hover, .search-results button:focus { background: var(--sand); outline: none; }
.search-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-dk); }
.search-title { font-weight: 700; font-size: 0.95rem; }
.search-sub { font-size: 0.8rem; color: var(--muted); }
.search-empty { padding: 14px; color: var(--muted); }

.layer-panel {
  position: absolute; z-index: 1300;
  top: calc(12px + var(--safe-top));
  right: calc(12px + var(--safe-right));
  width: min(320px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
  background: var(--cream); color: var(--navy);
  border-radius: 16px; box-shadow: var(--shadow); padding: 8px 8px 12px;
}
.layer-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px 10px; }
.layer-panel-head h2 { margin: 0; font-size: 1rem; }
.layer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-radius: 10px; font-weight: 600; font-size: 1rem;
}
.layer-row:active, .layer-row:hover { background: var(--sand); }
.layer-row input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }
.layer-note { margin: 4px 12px 0; font-size: 0.78rem; color: var(--muted); }
.layer-volunteer { margin: -2px 12px 8px 46px; font-size: 0.8rem; }
.layer-volunteer a { color: var(--teal-dk, #064e5c); font-weight: 700; }

.locate-btn {
  position: absolute; z-index: 1100;
  right: calc(14px + var(--safe-right));
  bottom: var(--dock);
  width: 52px; height: 52px; border: 0; border-radius: 16px;
  background: var(--cream); color: var(--navy);
  box-shadow: var(--shadow); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.locate-btn.locating { color: var(--blue); }
.locate-btn.active { background: var(--navy); color: var(--gold-hi); }

.toast {
  position: absolute; z-index: 1400; left: 50%; transform: translateX(-50%);
  bottom: calc(82px + var(--safe-bottom));
  background: var(--navy); color: var(--cream);
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--shadow);
  max-width: min(92vw, 420px); text-align: center; font-size: 0.9rem;
}

/* Leaflet tweaks */
.leaflet-container { background: #081528; font-family: inherit; }
.leaflet-control-zoom {
  border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 14px !important; overflow: hidden;
  margin-left: calc(14px + var(--safe-left)) !important;
  margin-bottom: var(--dock) !important;
  margin-top: 0 !important;
}
.leaflet-control-zoom a {
  width: 44px !important; height: 44px !important; line-height: 44px !important;
  font-size: 20px !important; color: var(--navy) !important; background: var(--cream) !important;
  border-bottom-color: #e6dcc8 !important;
}
.leaflet-control-attribution {
  background: rgba(8,21,40,0.75) !important; color: var(--sand) !important;
  font-size: 10px !important; margin: 0 !important; padding: 2px 8px !important;
}
.leaflet-control-attribution a { color: var(--gold-hi) !important; }

.leaflet-popup-content-wrapper {
  background: var(--cream); color: var(--navy);
  border-radius: 16px; box-shadow: var(--shadow); padding: 0;
}
.leaflet-popup-content { margin: 14px 16px 16px; min-width: 220px; max-width: min(78vw, 320px); }
.leaflet-popup-tip { background: var(--cream); }
.popup-kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--teal-dk); margin: 0 0 4px;
}
.popup h2 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.25; }
.popup-addr { margin: 0 0 8px; font-size: 0.92rem; color: var(--muted); }
.popup-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.popup-chips li {
  background: #eef6f6; color: var(--teal-dk); border-radius: 999px;
  padding: 3px 8px; font-size: 0.72rem; font-weight: 700;
}
.popup-notes { margin: 0 0 12px; font-size: 0.88rem; line-height: 1.4; }
.park-parking-note {
  margin: 0 0 10px; padding: 8px 10px;
  background: #e5f4ea; border-left: 3px solid var(--park); border-radius: 0 8px 8px 0;
  font-size: 0.86rem; line-height: 1.35; color: var(--park); font-weight: 700;
}
.brief-sec .park-parking-note { margin: 8px 0 8px; }
.popup-dirs { display: flex; flex-direction: column; gap: 8px; }
.dir-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--navy); color: var(--cream);
  border-radius: 12px; padding: 12px 12px; font-weight: 700; font-size: 0.95rem;
}
.dir-btn.bike { background: var(--teal); }
.dir-btn:active { opacity: 0.9; }

/* Markers */
.hb-marker {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(8,21,40,0.45);
}
.hb-marker svg { display: block; }
.hb-ada {
  position: absolute; right: -3px; bottom: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #081528; border: 1.5px solid #d6b03e;
  display: flex; align-items: center; justify-content: center;
}

.leaflet-tooltip.hb-tip {
  background: var(--cream); color: var(--navy); border: 0;
  border-radius: 8px; padding: 4px 8px; font-weight: 700; font-size: 12px;
  box-shadow: 0 2px 8px rgba(8,21,40,0.2);
}
.leaflet-tooltip.hb-tip::before { border-top-color: var(--cream); }

/* Blue location */
.hb-loc-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(26,115,232,0.25);
}

@media (min-width: 800px) {
  .brand h1 { font-size: 1.42rem; line-height: 1.2; }
  .tagline { font-size: 0.8rem; }
  .brand-mark { width: 44px; height: 44px; }
  #search { height: 50px; }
}

/* ---- illustrated base, directory, numbered pins, parking (Nov 2026) ---- */
.leaflet-container.illustrated { background: var(--water, #66a6a5); } /* matches illustrated water so empty space reads as ocean/sound */
.leaflet-tile-pane img.hb-names, .leaflet-overlay-pane img.hb-names { pointer-events: none; }
.layer-sub { margin: 6px 12px 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal-dk); }
.layer-panel { max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom)); overflow: auto; }
.dir-panel {
  position: absolute; z-index: 1300;
  top: calc(12px + var(--safe-top)); right: calc(12px + var(--safe-right));
  bottom: calc(12px + var(--safe-bottom));
  width: min(380px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
  background: var(--cream); color: var(--navy);
  border-radius: 16px; box-shadow: var(--shadow); padding: 8px 8px 0;
  display: flex; flex-direction: column;
}
.dir-panel[hidden] { display: none; }
.dir-search { padding: 0 6px 6px; }
#dir-filter {
  width: 100%; height: 44px; border: 1px solid #e2d6bd; border-radius: 12px; padding: 0 12px;
  background: #fff; color: var(--navy); font-size: 16px; outline: none;
}
#dir-filter:focus { box-shadow: 0 0 0 3px var(--gold); }
.dir-note { margin: 0 12px 6px; font-size: 0.76rem; color: var(--muted); }
.dir-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 8px; }
.dir-cat-pill {
  border: 1px solid #e2d6bd; background: #fff; color: var(--navy);
  border-radius: 999px; padding: 5px 10px;
  font-size: 0.7rem; font-weight: 700; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer;
}
.dir-cat-pill:hover, .dir-cat-pill:focus { background: var(--sand); outline: none; }
.dir-cat-pill[aria-pressed="true"] { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.dir-cat-pill.cat-candy { color: #c43d6a; border-color: #e7a0b5; }
.dir-cat-pill.cat-candy[aria-pressed="true"] { background: #c43d6a; color: #fffbf4; border-color: #c43d6a; }
.dir-cat.cat-candy {
  color: #c43d6a; display: flex; align-items: center; gap: 6px;
}
.dir-cone { display: block; flex: 0 0 auto; }
.biz-cat-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700;
}
.biz-cat-badge.cat-candy {
  color: #c43d6a; background: #fde8ef;
  border-radius: 999px; padding: 2px 8px 2px 6px;
}
.dir-list { overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 4px 12px; flex: 1; }
.dir-area { margin: 10px 6px 4px; padding: 6px 10px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 800; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; }
.dir-area small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: 0.85; font-size: 0.74rem; }
.dir-cat { margin: 8px 10px 2px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #b4472f; }
.dir-item {
  width: 100%; display: flex; align-items: baseline; gap: 10px; text-align: left;
  border: 0; background: transparent; color: inherit; cursor: pointer;
  padding: 8px 10px; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
}
.dir-item:hover, .dir-item:focus { background: var(--sand); outline: none; }
.dir-num { flex: none; min-width: 2.1em; text-align: right; font-weight: 800; color: #b4472f; font-variant-numeric: tabular-nums; }
.dir-empty { padding: 14px; color: var(--muted); }
.hb-pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f2cf6a; border: 3px solid #c4512f; color: #0d2240;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: -0.02em;
  box-shadow: 0 1px 4px rgba(8,21,40,0.5);
}
.hb-pin.n3 { font-size: 10.5px; }
.popup-biz { list-style: none; margin: 0 0 10px; padding: 0; }
.popup-biz li { margin: 0 0 6px; }
.popup-biz b { display: block; font-size: 1.02rem; }
.popup-biz span { display: block; font-size: 0.8rem; color: var(--muted); }
.hb-parking {
  background: #163a70; color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; font-weight: 900; box-shadow: 0 1px 3px rgba(8,21,40,0.55);
  pointer-events: auto;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
.hb-parking.compact {
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9px; letter-spacing: 0.02em;
}
.hb-parking.compact.lot { border-radius: 4px; }
.hb-parking.count {
  min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px;
  font-size: 12px; letter-spacing: -0.02em;
}
.hb-parking.count.wide { min-width: 30px; }
.hb-parking.lot { background: #163a70; }
.hb-parking.uncertain { background: #163a70; border-style: dashed; }
.hb-parking.ada.compact {
  width: 22px; height: 22px; border-radius: 50%;
}
.hb-parking.ada.count {
  min-width: 34px; height: 26px; padding: 0 6px 0 4px; gap: 2px;
  font-size: 13px;
}
.hb-parking.ada.count.wide { min-width: 40px; }
.hb-ada-glyph { display: block; flex: 0 0 auto; }
.hb-parking-poly { cursor: pointer; }
.z-low .hb-parking.compact { transform: scale(0.85); transform-origin: center center; }

.parking-ada-rule {
  margin: 0 0 8px; padding: 8px 10px;
  background: #eef3fa; border-left: 3px solid #163a70; border-radius: 0 8px 8px 0;
  font-size: 0.88rem; line-height: 1.4; color: #163a70;
}
.parking-ada-rule strong { font-weight: 800; color: #163a70; }

.hb-divicon {
  background: none;
  border: 0;
  overflow: visible;
}
.hb-access-num {
  width: 100%; height: 100%;
  min-width: 30px; min-height: 30px; padding: 2px 4px 3px;
  box-sizing: border-box;
  border-radius: 9px; background: #0a7080; color: #fffbf4;
  border: 2px solid #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(8,21,40,0.5);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  position: relative;
  white-space: nowrap;
  pointer-events: auto;
}
.hb-access-num.mid { border-radius: 9px; }
.hb-access-num.wide { border-radius: 10px; }
.hb-access-num .pw-prefix {
  display: block;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.08em; line-height: 1;
  margin-bottom: 1px;
  color: #f2e09c;
}
.hb-access-num .pw-num {
  display: block;
  font-size: 13px; font-weight: 900;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hb-access-num.wide .pw-num { font-size: 12px; letter-spacing: -0.04em; }
.hb-access-num .hb-ada { right: -5px; bottom: -4px; }
.z-low .hb-access-num { transform: scale(0.86); transform-origin: center center; }
@media (max-width: 520px) {
  .dir-panel { top: calc(8px + var(--safe-top)); right: 8px; left: 8px; bottom: calc(8px + var(--safe-bottom)); width: auto; }
}
.z-low .hb-pin { transform: scale(0.72); }
.z-low .hb-marker { transform: scale(0.85); }
.leaflet-container a.dir-btn, .leaflet-container a.dir-btn:visited,
.popup-sheet a.dir-btn, .popup-sheet a.dir-btn:visited { color: var(--cream); }

/* Business cards in pin popups (Call / Directions / Claim; Website, photo, deal for paid listings) */
.popup-biz .biz-card { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid rgba(8,21,40,0.12); }
.popup-biz .biz-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.biz-photo { display: block; width: 100%; max-height: 140px; object-fit: cover; border-radius: 10px; margin: 0 0 8px; }
.biz-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.leaflet-container a.biz-btn, .leaflet-container a.biz-btn:visited,
.popup-sheet a.biz-btn, .popup-sheet a.biz-btn:visited {
  flex: 1 1 auto; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; text-decoration: none;
  background: var(--navy); color: var(--cream);
}
.leaflet-container a.biz-btn.call, .popup-sheet a.biz-btn.call { background: var(--teal); }
.leaflet-container a.biz-btn.web, .popup-sheet a.biz-btn.web { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.leaflet-container a.biz-claim, .leaflet-container a.biz-claim:visited,
.popup-sheet a.biz-claim, .popup-sheet a.biz-claim:visited {
  display: block; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; text-align: center; text-decoration: none;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(8,21,40,0.18);
}
.leaflet-container a.biz-claim:active, .leaflet-container a.biz-btn:active,
.popup-sheet a.biz-claim:active, .popup-sheet a.biz-btn:active { opacity: 0.88; }

.biz-claim-row { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.leaflet-container a.biz-claim, .leaflet-container a.biz-claim:visited,
.popup-sheet a.biz-claim, .popup-sheet a.biz-claim:visited { margin: 0; }
.leaflet-container a.biz-sample, .leaflet-container a.biz-sample:visited,
.popup-sheet a.biz-sample, .popup-sheet a.biz-sample:visited {
  display: block; margin: 0; padding: 10px 12px; border-radius: 10px; text-align: center; text-decoration: none;
  background: #fff; color: var(--navy); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 2px var(--navy);
}
.leaflet-container a.biz-sample:active, .popup-sheet a.biz-sample:active { opacity: 0.88; }
.biz-deal { display: block; margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #fff2cc; color: var(--navy); font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.dir-claim { margin: 0; padding: 10px 16px 14px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid rgba(8,21,40,0.1); }

.dir-foot { margin: 0; padding: 10px 12px 14px; border-top: 1px solid rgba(8,21,40,0.1); }
.dir-foot .dir-claim { border-top: 0; padding: 0 0 8px; margin: 0; }
.dir-advertise, .dir-advertise:visited {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 12px;
  background: var(--navy); color: var(--cream);
  font-weight: 800; text-decoration: none; font-size: 0.95rem;
}
.dir-advertise:active { opacity: 0.88; }
.dir-claim a { color: var(--teal-dk); font-weight: 700; }
.popup-biz { max-height: min(52vh, 430px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Whole-island / Bridge Area toggle, sits above the locate button */
.view-btn {
  position: absolute; z-index: 1100;
  right: calc(14px + var(--safe-right));
  bottom: calc(var(--dock) + 62px);
  height: 44px; padding: 0 14px;
  border: 0; border-radius: 14px;
  background: var(--cream); color: var(--navy);
  box-shadow: var(--shadow); cursor: pointer;
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.01em;
  white-space: nowrap;
}
.view-btn:active { transform: scale(0.97); }
.view-btn[aria-pressed="true"] { background: var(--navy); color: var(--gold-hi); }

/* Numbered-pin clusters at low zoom */
.hb-cluster {
  border-radius: 50%;
  background: #f2cf6a; border: 3px solid #c4512f; color: #0d2240;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; line-height: 1;
  box-shadow: 0 1px 4px rgba(8,21,40,0.5);
}
.hb-cluster.sm { width: 36px; height: 36px; font-size: 13px; }
.hb-cluster.md { width: 42px; height: 42px; font-size: 14px; }
.hb-cluster.lg { width: 50px; height: 50px; font-size: 15px; }
.marker-cluster { background: transparent; }

/* Today's Beach Brief */
.brief-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; height: 40px; padding: 0 14px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--sand); color: var(--navy);
  box-shadow: var(--shadow); font-weight: 800; font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.brief-toggle svg { flex: none; color: var(--teal-dk); }
.brief-chevron {
  width: 0; height: 0; margin-left: 4px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--navy);
}
.brief-toggle.open .brief-chevron { transform: rotate(180deg); }
.brief-toggle:active { transform: scale(0.98); }

.brief-tab {
  display: none;
  position: absolute;
  z-index: 1250;
  left: 50%;
  transform: translateX(-50%);
  /* Sit above the Whole island button (bottom 80px, height 44px) and zoom. */
  bottom: calc(var(--dock) + 116px);
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 28px);
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(214, 176, 62, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
}
.brief-tab[hidden] { display: none !important; }
.brief-tab-title { white-space: nowrap; }
.brief-tab-summary {
  font-weight: 700;
  color: var(--teal-dk);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brief-tab .brief-chevron { margin-left: 2px; border-top: 0; border-bottom: 6px solid var(--navy); }
@media (max-width: 720px) {
  .brief-tab:not([hidden]) { display: flex; }
}

.view-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  background: var(--cream);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 12px 7px 14px;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}
.view-chip[hidden] { display: none !important; }
.view-chip a {
  color: var(--teal-dk);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.view-chip a:hover { text-decoration: underline; }
.view-chip-note {
  margin: 6px 0 0; padding: 8px 12px;
  background: #e5f4ea; color: var(--park);
  border-radius: 12px; box-shadow: var(--shadow);
  font-size: 0.78rem; font-weight: 700; line-height: 1.35;
}
.view-chip-note[hidden] { display: none !important; }

.brief-panel {
  position: absolute; z-index: 1250;
  left: calc(12px + var(--safe-left));
  width: min(380px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
  max-height: min(54vh, 480px);
  background: var(--cream); color: var(--navy);
  border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid rgba(214, 176, 62, 0.45);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.brief-panel[hidden] { display: none; }
.brief-content {
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 0 14px 14px;
}
.brief-sec { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid rgba(8,21,40,0.1); }
.brief-sec:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.brief-sec h3 {
  margin: 0 0 6px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dk);
}
.brief-sec h4 { margin: 0 0 4px; font-size: 0.8rem; font-weight: 800; }
.brief-lead { margin: 0 0 4px; font-size: 0.9rem; line-height: 1.35; }
.brief-line { margin: 0 0 2px; font-size: 0.84rem; color: var(--muted); }
.brief-meta { margin: 6px 0 0; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.brief-error { margin: 0; font-size: 0.85rem; color: var(--coral); }
.brief-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brief-tides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.brief-tide-station {
  background: #eef6f6;
  border-radius: 12px;
  padding: 8px 8px 6px;
  min-width: 0;
}
.brief-tide-end {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dk);
  line-height: 1.2;
}
.brief-sec h4.brief-tide-place,
.brief-tide-place {
  margin: 1px 0 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.brief-tide-station .brief-error { font-size: 0.8rem; margin: 0 0 4px; }
.brief-tide-station .brief-table { font-size: 0.78rem; }
.brief-tide-station .brief-table th { padding: 1px 6px 1px 0; }
.brief-tide-station .brief-table td { padding: 1px 0; }
@media (min-width: 721px) {
  .brief-panel {
    width: min(520px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
    max-height: min(62vh, 560px);
  }
  .brief-tides { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brief-tide-station .brief-split { grid-template-columns: 1fr; gap: 8px; }
}
.brief-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.brief-table th { text-align: left; font-weight: 800; padding: 2px 8px 2px 0; color: var(--navy); }
.brief-table td { padding: 2px 0; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.brief-rating {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 12px;
  background: #eef6f6; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px;
  align-items: baseline;
}
.brief-rating-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--teal-dk);
}
.brief-rating-value { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.brief-rating-note { grid-column: 1 / -1; font-size: 0.7rem; color: var(--muted); }
.brief-rating.score-4 { background: #e5f4ea; }
.brief-rating.score-4 .brief-rating-value { color: var(--park); }
.brief-rating.score-3 { background: #eef6f6; }
.brief-rating.score-2 { background: #fff2cc; }
.brief-rating.score-2 .brief-rating-value { color: #8a5a00; }
.brief-rating.score-1 { background: #fde8e4; }
.brief-rating.score-1 .brief-rating-value { color: var(--coral); }
.brief-windows { margin: 4px 0 0; padding: 0 0 0 18px; font-size: 0.86rem; }
.brief-windows span { color: var(--muted); font-size: 0.78rem; }
.brief-sponsor { margin: 8px 0 0; font-size: 0.7rem; color: var(--muted); }
.brief-sponsor a { color: var(--teal-dk); font-weight: 700; text-decoration: none; }
.brief-sponsor a:hover { text-decoration: underline; }
.brief-links { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.4; }
.brief-links a { color: var(--teal-dk); font-weight: 700; }

/* SurfCAST by Otto parking (popups and Beach Brief) */
.parking-lead { margin: 0 0 6px; font-size: 0.9rem; line-height: 1.35; }
.parking-line { margin: 0 0 6px; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.parking-line strong { color: var(--navy); font-weight: 800; }
.parking-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 8px 0 8px;
}
.parking-btn {
  display: flex; align-items: center; justify-content: center;
  text-align: center; text-decoration: none;
  border-radius: 12px; padding: 10px 8px; min-height: 40px;
  font-weight: 800; font-size: 0.86rem; line-height: 1.2;
}
.parking-btn.primary { background: var(--navy); color: var(--cream); }
.parking-btn.pay { background: var(--teal); color: var(--cream); }
.parking-btn:active { opacity: 0.9; }
.leaflet-container a.parking-btn,
.leaflet-container a.parking-btn:visited,
.popup-sheet a.parking-btn,
.popup-sheet a.parking-btn:visited { color: var(--cream); }
.parking-apps, .parking-links { margin: 0 0 4px; font-size: 0.8rem; line-height: 1.45; }
.parking-apps a, .parking-links a { color: var(--teal-dk); font-weight: 700; }
.parking-note { margin: 6px 0 4px; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.parking-source { margin: 0 0 10px; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.parking-popup .parking-note { margin-bottom: 4px; }
.leaflet-popup-content .parking-popup {
  max-height: min(46vh, calc(100svh - 440px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.rental-chip { cursor: pointer; }
.rental-chip-open {
  appearance: none; border: 0; background: transparent;
  color: var(--teal-dk); font-weight: 800; font-size: 0.84rem;
  cursor: pointer; white-space: nowrap; padding: 0; font-family: inherit;
}
.rental-chip-open:hover { text-decoration: underline; }

.rental-panel { z-index: 1260; width: min(420px, calc(100vw - 24px - var(--safe-left) - var(--safe-right))); }
.rental-content {
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 0 14px 14px;
}
.rental-form { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
#rental-address {
  width: 100%; height: 44px; border: 1px solid rgba(8,21,40,0.14);
  border-radius: 12px; padding: 0 12px;
  background: #fff; color: var(--navy);
  font-size: 16px; outline: none;
}
#rental-address:focus { box-shadow: 0 0 0 3px var(--gold); border-color: transparent; }
.rental-submit {
  appearance: none; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--navy); color: var(--cream);
  font-weight: 800; font-size: 0.9rem; min-height: 44px; padding: 0 12px;
  font-family: inherit;
}
.rental-submit:disabled { opacity: 0.6; cursor: wait; }
.rental-submit:active { opacity: 0.9; }
.rental-or {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px; color: var(--muted); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.rental-or::before, .rental-or::after {
  content: ""; flex: 1; height: 1px; background: rgba(8,21,40,0.14);
}
.rental-locate {
  appearance: none; width: 100%; border: 0; border-radius: 14px;
  background: var(--cream); color: var(--navy); cursor: pointer;
  font-weight: 800; font-size: 0.9rem; line-height: 1;
  min-height: 48px; padding: 0 14px;
  font-family: inherit; margin: 0 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
.rental-locate svg { flex: none; color: var(--coral); }
.rental-locate:disabled { opacity: 0.7; cursor: wait; }
.rental-locate:active { transform: scale(0.97); }
.rental-locate:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.rental-status { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.rental-status.is-error { color: var(--coral); }
.rental-here { margin: 4px 0 10px; font-size: 0.84rem; line-height: 1.4; color: var(--navy); }
.rental-here.rental-offisland { color: var(--muted); }
.rental-text-btn {
  appearance: none; border: 0; background: none; padding: 0;
  color: var(--teal-dk); font-weight: 800; font-size: inherit;
  cursor: pointer; font-family: inherit;
}
.rental-text-btn:hover { text-decoration: underline; }
.rental-sec { margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px solid rgba(8,21,40,0.1); }
.rental-sec:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.rental-sec h3 {
  margin: 0 0 6px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dk);
}
.rental-empty { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.rental-list { list-style: none; margin: 0; padding: 0; }
.rental-hit {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; text-align: left; border: 0; background: transparent;
  color: inherit; cursor: pointer; font-family: inherit;
  padding: 8px 6px; border-radius: 10px; min-height: 44px;
}
.rental-hit:hover, .rental-hit:focus { background: var(--sand); outline: none; }
.rental-hit-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rental-hit-title { font-weight: 800; font-size: 0.9rem; color: var(--navy); }
.rental-hit-sub { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.rental-hit-dist {
  flex: none; text-align: right; font-weight: 700;
  font-size: 0.72rem; color: var(--teal-dk); line-height: 1.25;
  max-width: 7.8em;
  display: flex; flex-direction: column; align-items: flex-end;
}
.rental-sec-sub { margin: -2px 6px 8px; font-size: 0.76rem; color: var(--muted); }
.rental-hit-kicker {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-dk);
}
.rental-ess-item { display: flex; align-items: center; gap: 4px; }
.rental-ess-item .rental-hit { flex: 1; min-width: 0; }
.rental-dirs {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 10px; border-radius: 10px;
  border: 1.5px solid var(--navy); color: var(--navy);
  text-decoration: none; font-weight: 800; font-size: 0.72rem;
  font-family: inherit; white-space: nowrap;
}
.rental-dirs:hover { background: var(--sand); }
.rental-essentials-note { margin: 6px 6px 0; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.rental-safety-card { display: flex; flex-direction: column; gap: 8px; }
.rental-safety-911-line {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #7a1f14;
  line-height: 1.35;
}
.rental-call-911,
.popup-call-911 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: #d32f2f;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(125, 20, 16, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.rental-call-911:hover, .rental-call-911:focus,
.popup-call-911:hover, .popup-call-911:focus {
  background: #b71c1c;
  color: #fff !important;
}
.popup-911-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.hb-rental-pin {
  width: 36px; height: 36px; border-radius: 50%;
  background: #d65440; color: #fffbf4;
  border: 3px solid #f2e09c;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(8,21,40,0.5);
}

@media (max-width: 520px) {
  .rental-panel { left: 8px; right: 8px; width: auto; }
  .rental-content { padding: 0 12px 12px; }
}

.install-banner {
  position: absolute; z-index: 1260;
  left: calc(12px + var(--safe-left));
  bottom: calc(86px + var(--safe-bottom));
  width: min(280px, calc(100vw - 90px - var(--safe-left) - var(--safe-right)));
  background: var(--cream); color: var(--navy);
  border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(214, 176, 62, 0.45);
  padding: 10px 36px 10px 12px;
}
.install-banner[hidden] { display: none; }
.install-text { margin: 0; font-size: 0.8rem; line-height: 1.35; }
.install-action {
  margin-top: 8px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--navy); color: var(--cream);
  font-weight: 800; font-size: 0.8rem; padding: 8px 10px;
}
.install-dismiss {
  position: absolute; top: 4px; right: 4px;
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 20px; cursor: pointer;
}

@media (max-width: 520px) {
  .brief-panel { left: 8px; right: 8px; width: auto; max-height: min(46vh, 420px); }
  .brief-toggle { height: 38px; font-size: 0.82rem; }
  .view-chip { font-size: 0.78rem; padding: 6px 10px 6px 12px; }
  .brief-content { padding: 0 12px 10px; }
  .brief-sec { margin: 0 0 8px; padding: 0 0 8px; }
}

/* Full Beach Brief on phones: use more of the screen and keep the body
   scrollable so tides, weather, parking, surf and alerts are all reachable. */
@media (max-width: 720px) {
  #brief-panel {
    max-height: min(72vh, calc(100dvh - 13rem - var(--safe-bottom)));
  }
  #brief-panel .brief-content {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}


@media (max-width: 720px) {
  :root {
    /* ~76px above the visual bottom, plus the safe area, so controls clear
       the Android nav bar and the browser toolbar. */
    --dock: calc(76px + var(--safe-bottom));
  }
  .toast { bottom: calc(var(--dock) + 280px); }
  /* Sit above the Beach Brief tab (dock + 116px, ~36px tall) and zoom. */
  .install-banner { bottom: calc(var(--dock) + 168px); }
  /* The Leaflet attribution is the phone "info bar" beside zoom. Keep it
     one line, and sit zoom fully above it with a 12px gap. Locate stays put. */
  .leaflet-control-attribution {
    margin-bottom: var(--dock) !important;
    margin-left: calc(66px + var(--safe-left)) !important;
    margin-right: calc(66px + var(--safe-right)) !important;
    max-width: calc(100vw - 132px - var(--safe-left) - var(--safe-right));
    max-height: 16px;
    padding: 3px 8px !important;
    line-height: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .leaflet-control-zoom {
    margin-bottom: calc(var(--dock) + 16px + 12px) !important;
  }
}

@media (display-mode: standalone) {
  .install-banner { display: none !important; }
}


/* Sea turtle nest markers */
.hb-turtle {
  width: 34px;
  height: 34px;
  position: relative;
  filter: drop-shadow(0 1px 2px rgba(8, 21, 40, 0.45));
}
.hb-turtle svg { display: block; }
.hb-turtle-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fffbf4;
  color: #0a5c4c;
  border: 1.5px solid #0a5c4c;
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  box-sizing: border-box;
}
.popup-volunteer { margin: 8px 0 0; font-size: 0.82rem; }
.popup-volunteer a { color: var(--teal-dk); font-weight: 700; }
.popup-protect {
  margin: 8px 0 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--teal-dk);
  background: #e7f4f2;
  border-radius: 8px;
  padding: 8px 10px;
}
.popup-meta { margin: 0 0 5px; font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.popup-meta strong { color: var(--navy); font-weight: 800; }
.popup-status {
  display: inline-block;
  margin: 0 0 8px;
  background: #e7f4f2;
  color: var(--teal-dk);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
}

.popup-sponsor a { color: var(--teal-dk); font-weight: 700; }
.popup-patrol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 8px 10px;
  background: #081528;
  border-radius: 10px;
  text-decoration: none;
  color: #fffbf4;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.25;
}
.popup-patrol:hover, .popup-patrol:focus {
  background: #102a4a;
}
.popup-patrol img {
  display: block;
  height: 36px;
  width: auto;
  flex: none;
}
.popup-patrol span { color: #f2e09c; }

/* Compact sea turtle nest popup — logo header, tight body, Walk/Bike row */
.leaflet-popup.turtle-nest-popup,
.leaflet-popup.turtle-nest-popup .leaflet-popup-content-wrapper,
.leaflet-popup.turtle-nest-popup .leaflet-popup-content {
  touch-action: none;
}
.leaflet-popup.turtle-nest-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}
.leaflet-popup.turtle-nest-popup .leaflet-popup-content {
  margin: 0;
  min-width: 196px;
  max-width: min(72vw, 250px);
  width: auto;
}
@media (max-width: 520px) {
  .leaflet-popup.turtle-nest-popup .leaflet-popup-content {
    min-width: 196px;
    max-width: min(78vw, 242px);
  }
}
.leaflet-container .turtle-nest-popup a.leaflet-popup-close-button {
  color: #f2e09c;
  top: 3px;
  right: 2px;
  z-index: 3;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 24px;
}
.leaflet-container .turtle-nest-popup a.leaflet-popup-close-button:hover,
.leaflet-container .turtle-nest-popup a.leaflet-popup-close-button:focus {
  color: #fffbf4;
}

.turtle-popup { margin: 0; }
.turtle-popup .popup-patrol {
  gap: 7px;
  margin: 0;
  padding: 6px 30px 6px 8px;
  border-radius: 0;
  font-size: 0.66rem;
  line-height: 1.15;
}
.turtle-popup .popup-patrol img {
  height: 28px;
  width: auto;
}
.turtle-popup .popup-patrol span {
  color: #f2e09c;
  max-width: 9.4em;
}
.turtle-popup-body { padding: 7px 10px 4px; }
.turtle-popup h2 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  line-height: 1.2;
}
.turtle-popup .popup-status {
  margin: 0 0 3px;
  font-size: 0.64rem;
  padding: 1px 7px;
}
.turtle-popup .popup-meta {
  margin: 0 0 2px;
  font-size: 0.74rem;
  line-height: 1.25;
}
.turtle-popup .popup-notes {
  margin: 0 0 3px;
  font-size: 0.74rem;
  line-height: 1.25;
}
.turtle-popup .popup-protect {
  margin: 3px 0 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.68rem;
  line-height: 1.25;
}
.turtle-popup .popup-volunteer { margin: 3px 0 0; font-size: 0.72rem; }
.turtle-popup .popup-dirs {
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 6px 8px 8px;
}
.turtle-popup .dir-btn {
  flex: 1;
  border-radius: 999px;
  padding: 7px 8px;
  font-size: 0.78rem;
  line-height: 1.1;
}

/* Beach Safety Station markers — same visual weight as other pins, including when selected. */
.hb-safety {
  width: 22px;
  height: 28px;
  position: relative;
  filter: drop-shadow(0 1px 2px rgba(8, 21, 40, 0.45));
  transform-origin: bottom center;
}
.hb-safety svg { display: block; }
.hb-safety-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  max-width: 36px;
  min-width: 16px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: #fffbf4;
  color: #7a1f14;
  border: 1.25px solid #c23b22;
  font-size: 8px;
  font-weight: 800;
  line-height: 11px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.z-low .hb-safety { transform: scale(0.85); }
.leaflet-marker-icon.leaflet-zoom-animated .hb-safety,
.leaflet-marker-icon:hover .hb-safety,
.leaflet-marker-icon:focus .hb-safety,
.leaflet-popup-open .hb-safety {
  /* Keep the selected / hovered pin the same size as the resting pin. */
  width: 22px;
  height: 28px;
}
.popup-911 {
  margin: 8px 0 8px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #7a1f14;
  background: #fde8e4;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}
.popup-vfd {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: #081528;
  border-radius: 10px;
}
.popup-vfd p { margin: 0 0 6px; color: #fffbf4; font-weight: 800; font-size: 0.82rem; }
.popup-vfd a { color: #f2e09c; font-weight: 700; font-size: 0.8rem; }

/* Seashell Spots */
.layer-count {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
}
.layer-seashell-actions {
  margin: -4px 12px 10px 46px;
}
.seashell-drop-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.88rem;
  font-family: inherit;
  padding: 9px 12px;
  cursor: pointer;
}
.seashell-drop-btn:active { transform: scale(0.98); }
.seashell-drop-btn[aria-pressed="true"],
.seashell-picking .seashell-drop-btn {
  background: var(--navy);
  color: var(--gold-hi);
}
.seashell-pick-banner {
  position: absolute;
  z-index: 1270;
  left: 50%;
  transform: translateX(-50%);
  top: var(--seashell-banner-top, calc(132px + var(--safe-top)));
  width: min(92vw, 440px);
  background: var(--navy);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
}
.seashell-pick-banner[hidden] { display: none; }
.seashell-pick-banner p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}
.seashell-pick-banner button {
  appearance: none;
  border: 0;
  flex: none;
  background: transparent;
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1.5px var(--gold);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}
.leaflet-container.seashell-picking { cursor: crosshair; }
.hb-seashell {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 2px rgba(8,21,40,.45));
}
.hb-seashell svg { display: block; }
.popup-seashell .popup-meta { margin: 0 0 6px; }

/* Rental address type-ahead */
.rental-suggest { list-style: none; margin: -4px 0 0; padding: 4px 0; background: #fff; border: 1px solid #cfd8dc; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.18); max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rental-suggest li { margin: 0; }
.rental-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 0; background: none; text-align: left; font: inherit; font-size: 16px; color: #1b2a33; cursor: pointer; }
.rental-suggest button:hover, .rental-suggest button.is-active { background: #eef6f8; }
.rental-suggest .sg-pin { flex: 0 0 auto; width: 18px; height: 18px; color: #c0392b; }
.rental-suggest .sg-text { display: flex; flex-direction: column; min-width: 0; }
.rental-suggest .sg-main { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rental-suggest .sg-main b { font-weight: 800; }
.rental-suggest .sg-sub { font-size: 13px; color: #607d8b; }
.rental-suggest .sg-note { padding: 6px 14px; font-size: 12px; color: #78909c; }

/* Phone pin cards: a bottom sheet so the title and details stay readable
   under the fixed top UI. Desktop Leaflet popups are unchanged. */
.leaflet-popup.hb-popup-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.popup-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(70dvh, 70svh, calc(100svh - var(--sheet-top, 12rem) - 8px));
  background: var(--cream);
  color: var(--navy);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 32px rgba(8, 21, 40, 0.3);
  padding: 0 0 max(12px, var(--safe-bottom));
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: auto;
  -webkit-user-select: none;
  user-select: none;
}
.popup-sheet[hidden] { display: none !important; }
.popup-sheet-head {
  position: relative;
  flex: none;
  height: 44px;
  touch-action: none;
}
.popup-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(8, 21, 40, 0.22);
  margin: 14px auto 0;
}
.popup-sheet-close {
  position: absolute;
  top: 0;
  right: 2px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 2;
}
.popup-sheet-close:active { opacity: 0.7; }
.popup-sheet-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 4px 16px 16px;
  pointer-events: auto;
}
.popup-sheet .popup-biz {
  max-height: none;
  overflow: visible;
}
body.hb-sheet-open .install-banner { display: none !important; }
body.hb-sheet-open .toast { visibility: hidden; }
.popup-sheet .turtle-popup .popup-patrol {
  border-radius: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
}
@media (min-width: 721px) {
  .popup-sheet { display: none !important; }
}

.hb-event-pin {
  width: 36px; height: 36px; border-radius: 50%;
  background: #d65440; color: #fffbf4;
  border: 3px solid #f2e09c;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(8,21,40,0.5);
}
.popup .event-source-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f6ead3; color: var(--navy, #12304b);
  border-radius: 999px; padding: 2px 8px; margin: 0 0 6px;
}
.popup-fb-link {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px; min-height: 40px; padding: 8px 12px; border-radius: 999px;
  background: #1877f2; color: #fff !important; font-weight: 800; text-decoration: none; font-size: 0.9rem;
}

/* Corner brand badge: desktop only, sits above the zoom controls.
   Phones already have the branded header and tight map space. */
.map-brand {
  position: absolute;
  z-index: 1100;
  left: calc(14px + var(--safe-left));
  bottom: calc(var(--dock) + 108px);
  display: none;
  align-items: center;
  gap: 8px;
  max-width: min(280px, calc(100vw - 28px));
  padding: 4px 12px 4px 4px;
  background: rgba(6, 78, 92, 0.9);
  color: var(--cream);
  border-radius: 999px;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.map-brand img {
  width: 28px; height: 28px; border-radius: 50%;
  flex: none; display: block; background: var(--cream);
}
.map-brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.map-brand-name {
  font-family: "Pacifico", Georgia, cursive;
  font-weight: 400;
  font-size: 0.88rem;
  white-space: nowrap;
}
.map-brand-tag {
  font-family: "Josefin Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sand);
}
@media (min-width: 721px) {
  .map-brand { display: flex; }
}
body.hb-sheet-open .map-brand { display: none !important; }
