/* ── NoyoMap · main.css ── */

:root {
  --fog:        #e8e4dc;
  --fog-dim:    #c9c4b8;
  --ocean-deep: #0d1f2d;
  --ocean-mid:  #162b3e;
  --ocean-surf: #1e3a50;
  --teal:       #2a8a8a;
  --teal-light: #3eb5b5;
  --amber:      #e8a030;
  --ember:      #d45a2a;
  --rail-w:     52px;
  --panel-w:    440px;
  --header-h:   52px;
  --radius:     6px;
  --mono:       'DM Mono', monospace;
  --sans:       'DM Sans', sans-serif;
  --serif:      'Playfair Display', Georgia, serif;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--ocean-deep);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--ocean-deep);
  border-bottom: 1px solid rgba(42,138,138,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 calc(var(--rail-w) + 16px);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  color: var(--teal-light);
  font-size: 18px;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fog);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-dim);
  letter-spacing: .08em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--teal-light);
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

.header-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fog-dim);
  letter-spacing: .06em;
}

/* ── OVERLAY RAIL (compact icons-only) ── */
.overlay-rail {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--ocean-mid);
  border-right: 1px solid rgba(42,138,138,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 12px;
  gap: 2px;
  z-index: 900;
  overflow: visible;
}
.overlay-rail::-webkit-scrollbar { display: none; }

/* No bottom fade needed — rail fits without scroll now */
.overlay-rail::after { display: none; }

/* Group labels — hidden (indicated by separators) */
.rail-group-label { display: none; }

/* Group separator — subtle line between sections */
.rail-accent {
  width: 22px;
  height: 1px;
  border-radius: 0;
  margin: 6px auto;
  flex-shrink: 0;
  background: rgba(42,138,138,.2);
}
.rail-accent--live    { background: rgba(62,181,181,.3); }
.rail-accent--explore { background: rgba(100,160,220,.25); }
.rail-accent--soon    { background: rgba(180,140,60,.2); }

.rail-divider { display: none; }

.overlay-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--fog-dim);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
}

/* Hide text labels — show via tooltip */
.overlay-btn span {
  display: none;
}

.overlay-btn svg {
  width: 22px; height: 22px;
  fill: currentColor;
  transition: fill var(--transition);
}

/* Tooltip on hover — uses data-tip to avoid native browser title tooltip */
.overlay-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,31,45,.96);
  color: var(--fog);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(42,138,138,.35);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 9999;
}
.overlay-btn:hover::after {
  opacity: 1;
}

.overlay-btn:hover {
  color: var(--fog);
  background: rgba(42,138,138,.12);
  border-color: rgba(42,138,138,.3);
}

/* Layer is visible on the map */
.overlay-btn.active {
  color: var(--teal-light);
  background: rgba(42,138,138,.15);
  border-color: rgba(62,181,181,.35);
}
.overlay-btn.active svg { fill: var(--teal-light); }

/* Layer is visible AND its data is showing in the right panel.
   A left-edge accent stripe distinguishes "in panel" from "just on map". */
.overlay-btn.panel-active {
  border-color: var(--teal-light);
  box-shadow: inset 3px 0 0 var(--teal-light);
}

/* Stub buttons — Burn Day, Skunk Train (no live data source yet) */
.overlay-btn-stub {
  opacity: .4;
}
.overlay-btn-stub:hover {
  opacity: .7;
}
/* Small "coming soon" dot in top-right corner */
.overlay-btn-stub::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232,182,48,.6);
  z-index: 2;
}

/* ── MAP ── */
#map {
  position: fixed;
  top: var(--header-h);
  left: var(--rail-w);
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Leaflet overrides */
.leaflet-container {
  background: var(--ocean-deep);
  font-family: var(--sans);
}

.leaflet-control-zoom {
  border: 1px solid rgba(42,138,138,.3) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: var(--ocean-mid) !important;
  color: var(--fog-dim) !important;
  border-bottom: 1px solid rgba(42,138,138,.2) !important;
  transition: all var(--transition) !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
}

.leaflet-control-zoom a:hover {
  background: var(--ocean-surf) !important;
  color: var(--teal-light) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--ocean-mid);
  color: var(--fog);
  border: 1px solid rgba(42,138,138,.3);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  font-family: var(--sans);
}

.leaflet-popup-tip { background: var(--ocean-mid); }

/* ── INFO PANEL ── */
.info-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: var(--panel-w);
  bottom: 0;
  background: var(--ocean-mid);
  border-left: 1px solid rgba(42,138,138,.25);
  z-index: 800;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(.4,0,.2,1);
}

.info-panel.open {
  transform: translateX(0);
}

/* ── DRAGGABLE DIVIDER ── */
.panel-divider {
  position: absolute;
  top: 0;
  left: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 810;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-divider::before {
  content: '';
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: rgba(62,181,181,.2);
  transition: background 150ms, height 150ms;
}
.panel-divider:hover::before,
.panel-divider.dragging::before {
  background: var(--teal-light);
  height: 60px;
}
.info-panel.resizing {
  transition: none;
  user-select: none;
}

.panel-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(42,138,138,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.panel-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--fog);
  letter-spacing: .02em;
}

/* Live / cached badge in panel header */
#panel-live-badge {
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
}
.panel-data-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
}
.panel-data-badge.live {
  color: var(--teal-light);
  background: rgba(62,181,181,.1);
  border: 1px solid rgba(62,181,181,.25);
}
.panel-data-badge.cached {
  color: rgba(201,196,184,.45);
  background: transparent;
  border: 1px solid rgba(201,196,184,.15);
}

.panel-close {
  background: none;
  border: none;
  color: var(--fog-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.panel-close:hover {
  color: var(--fog);
  background: rgba(255,255,255,.08);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--ocean-surf) transparent;
}

/* ── PANEL TOOLBAR (sticky search + chips + view toggle) ── */
.panel-toolbar {
  flex-shrink: 0;
  z-index: 5;
  background: var(--ocean-mid);
  border-bottom: 1px solid rgba(42,138,138,.15);
  padding-bottom: 2px;
}

/* ── VIEW TOGGLE ── */
.view-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 16px 6px;
}
.view-toggle-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-dim);
  letter-spacing: .04em;
  margin-right: auto;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid rgba(42,138,138,.25);
  border-radius: 4px;
  overflow: hidden;
}
.view-toggle-btn {
  background: none;
  border: none;
  color: var(--fog-dim);
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all 150ms;
}
.view-toggle-btn:hover {
  color: var(--fog);
  background: rgba(255,255,255,.04);
}
.view-toggle-btn.active {
  color: var(--teal-light);
  background: rgba(42,138,138,.15);
}

/* ── LIST VIEW (compact cards) ── */
.panel-content.list-view .shop-card,
.panel-content.list-view .dining-card,
.panel-content.list-view .hotel-card,
.panel-content.list-view .trail-card {
  padding: 8px 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.panel-content.list-view .shop-desc,
.panel-content.list-view .dining-desc,
.panel-content.list-view .hotel-desc,
.panel-content.list-view .trail-desc,
.panel-content.list-view .shop-footer,
.panel-content.list-view .dining-footer,
.panel-content.list-view .hotel-footer,
.panel-content.list-view .trail-footer,
.panel-content.list-view .shop-hours,
.panel-content.list-view .dining-hours,
.panel-content.list-view .hotel-price-row,
.panel-content.list-view .trail-details {
  display: none;
}
.panel-content.list-view .shop-header,
.panel-content.list-view .dining-header,
.panel-content.list-view .hotel-header,
.panel-content.list-view .trail-header {
  flex: 1;
  min-width: 0;
}
.panel-content.list-view .shop-name,
.panel-content.list-view .dining-name,
.panel-content.list-view .hotel-name,
.panel-content.list-view .trail-name {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-content.list-view .shop-meta,
.panel-content.list-view .dining-meta,
.panel-content.list-view .hotel-meta,
.panel-content.list-view .trail-meta {
  margin-top: 0;
}
.panel-content.list-view .shop-category,
.panel-content.list-view .dining-category,
.panel-content.list-view .hotel-type {
  font-size: 9px;
}
.panel-content.list-view .shop-featured-badge,
.panel-content.list-view .dining-featured-badge {
  display: none;
}
.panel-content.list-view .panel-section-label {
  padding: 8px 0 4px;
  font-size: 9px;
}

/* ── DESCRIPTION TRUNCATION (detail view) ── */
.shop-desc,
.dining-desc,
.hotel-desc,
.trail-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 200ms ease;
}
.shop-card:hover .shop-desc,
.dining-card:hover .dining-desc,
.hotel-card:hover .hotel-desc,
.trail-card:hover .trail-desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* ── CARD FLASH — fired when a map marker is clicked ── */
@keyframes card-flash-anim {
  0%   { box-shadow: 0 0 0 0 rgba(62,181,181,.0),  background-color: transparent; }
  20%  { box-shadow: 0 0 0 4px rgba(62,181,181,.45); background-color: rgba(62,181,181,.08); }
  100% { box-shadow: 0 0 0 0 rgba(62,181,181,.0),  background-color: transparent; }
}
.card-flash {
  animation: card-flash-anim 0.85s ease-out forwards;
}

/* ── PANEL DATA CARDS ── */
.data-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(42,138,138,.18);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  animation: fadeUp 240ms ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.data-card-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 6px;
}

.data-card-value {
  font-size: 28px;
  font-weight: 500;
  color: var(--fog);
  line-height: 1;
}

.data-card-unit {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fog-dim);
  margin-left: 4px;
}

.data-card-sub {
  font-size: 12px;
  color: var(--fog-dim);
  margin-top: 6px;
  line-height: 1.5;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-green  { background: rgba(46,160,100,.2);  color: #4cca80;  border: 1px solid rgba(46,160,100,.3); }
.badge-red    { background: rgba(212,90,42,.2);   color: #f07050;  border: 1px solid rgba(212,90,42,.3);  }
.badge-amber  { background: rgba(232,160,48,.2);  color: var(--amber); border: 1px solid rgba(232,160,48,.3); }
.badge-grey   { background: rgba(255,255,255,.06); color: var(--fog-dim); border: 1px solid rgba(255,255,255,.1); }

.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Source link */
.source-link {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: .06em;
}

.source-link:hover { color: var(--teal-light); text-decoration: underline; }

/* Visual separator line (inside card content) */
.panel-sep {
  height: 1px;
  background: rgba(42,138,138,.15);
  margin: 12px 0;
}

/* Event item */
.event-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.event-item:last-child { border-bottom: none; }

.event-date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.event-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fog);
  margin-bottom: 2px;
}

.event-venue {
  font-size: 12px;
  color: var(--fog-dim);
}

/* Loading */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--fog-dim);
  font-family: var(--mono);
  font-size: 12px;
}

.spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(42,138,138,.2);
  border-top-color: var(--teal-light);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Unconfigured state */
.unconfigured {
  background: rgba(232,160,48,.06);
  border: 1px solid rgba(232,160,48,.2);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 13px;
  color: var(--fog-dim);
  line-height: 1.6;
}

.unconfigured strong {
  display: block;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── WEATHER LAYER SWITCHER ── */
.layer-switcher {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(42,138,138,.18);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  animation: fadeUp 240ms ease both;
}

.layer-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.layer-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(42,138,138,.2);
  border-radius: 4px;
  color: var(--fog-dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 0;
  transition: all var(--transition);
  text-align: center;
}

.layer-btn:hover {
  color: var(--fog);
  border-color: rgba(42,138,138,.4);
  background: rgba(42,138,138,.1);
}

.layer-btn.active {
  color: var(--teal-light);
  background: rgba(42,138,138,.18);
  border-color: rgba(62,181,181,.4);
}

.layer-legend {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.legend-swatch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fog-dim);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.legend-swatch::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--sw);
  flex-shrink: 0;
}

/* Weather map marker */
.wx-marker {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,31,45,.9);
  border: 2px solid var(--teal-light);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(62,181,181,.2), 0 4px 16px rgba(0,0,0,.5);
  cursor: pointer;
}

.wx-temp {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--fog);
  letter-spacing: -.02em;
}

/* ── TRAIN TRIP CARDS ── */
.trip-card {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.trip-card:last-child { border-bottom: none; }

.trip-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.trip-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fog);
  flex: 1;
}

.trip-price {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-light);
  letter-spacing: .04em;
  white-space: nowrap;
}

.trip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.trip-meta-detail {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-dim);
  letter-spacing: .05em;
}

.trip-desc {
  font-size: 12px;
  color: var(--fog-dim);
  line-height: 1.5;
  margin-bottom: 8px;
}

.trip-book-btn {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(42,138,138,.15);
  border: 1px solid rgba(62,181,181,.35);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-light);
  text-decoration: none;
  transition: all var(--transition);
}
.trip-book-btn:hover {
  background: rgba(42,138,138,.28);
  border-color: rgba(62,181,181,.6);
  color: var(--fog);
}

/* Depot map markers */
.depot-marker {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(13,31,45,.88);
  border: 1.5px solid rgba(62,181,181,.45);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(62,181,181,.12), 0 3px 10px rgba(0,0,0,.45);
  cursor: pointer;
}

/* Animated moving train / railbike marker */
.moving-train {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(13,31,45,.92);
  border: 2px solid rgba(232,180,48,.85);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(232,180,48,.18), 0 0 14px rgba(232,180,48,.45);
  animation: pulse-train 2.2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes pulse-train {
  0%, 100% { box-shadow: 0 0 0 5px rgba(232,180,48,.18), 0 0 14px rgba(232,180,48,.4); }
  50%       { box-shadow: 0 0 0 9px rgba(232,180,48,.06), 0 0 22px rgba(232,180,48,.65); }
}

/* Live status section */
.train-est-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fog-dim);
  text-transform: none;
  letter-spacing: .04em;
  margin-left: 6px;
  font-weight: 400;
}

.train-live-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.train-live-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.train-live-info { flex: 1; min-width: 0; }

.train-live-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fog);
  margin-bottom: 3px;
}

.train-live-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal-light);
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.train-live-bar {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}

.train-live-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), rgba(232,180,48,.8));
  border-radius: 2px;
  transition: width 8s linear;
}

/* ── HARBOR ── */
.harbor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.harbor-stat {
  text-align: center;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  padding: 6px 4px;
}

.harbor-stat-val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fog);
}

.harbor-stat-lbl {
  font-size: 9px;
  color: var(--fog-dim);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}

.tide-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 12px;
}
.tide-row:last-child { border-bottom: none; }
.tide-arrow { font-size: 10px; width: 12px; flex-shrink: 0; }
.tide-type  { font-family: var(--mono); font-size: 10px; width: 36px; letter-spacing: .05em; flex-shrink: 0; }
.tide-time  { flex: 1; color: var(--fog-dim); font-family: var(--mono); font-size: 10px; }
.tide-height { font-family: var(--mono); font-size: 11px; color: var(--teal-light); white-space: nowrap; }

.harbor-count {
  display: inline-block;
  background: rgba(42,138,138,.25);
  color: var(--teal-light);
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 400;
}

.vessel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.vessel-row:last-child { border-bottom: none; }
.vessel-icon  { font-size: 18px; flex-shrink: 0; }
.vessel-info  { flex: 1; min-width: 0; }
.vessel-name  { font-size: 12px; font-weight: 500; color: var(--fog); }
.vessel-meta  { font-size: 10px; color: var(--fog-dim); font-family: var(--mono); margin-top: 1px; }

/* Harbor map markers */
.uscg-marker, .bar-marker, .vessel-marker {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(13,31,45,.88);
  border: 1.5px solid rgba(62,181,181,.4);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  cursor: pointer;
}
.uscg-marker {
  border-color: rgba(232,80,48,.6);
  box-shadow: 0 0 0 2px rgba(232,80,48,.15), 0 2px 8px rgba(0,0,0,.4);
}
.bar-marker {
  border-color: rgba(232,180,48,.6);
  font-size: 13px;
}

/* ── HOTEL CARDS ── */
.hotel-card {
  background: var(--ocean-surf);
  border: 1px solid rgba(42,138,138,.18);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.hotel-card:hover {
  border-color: rgba(42,138,138,.4);
}
.hotel-header {
  margin-bottom: 6px;
}
.hotel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fog);
  line-height: 1.3;
  margin-bottom: 3px;
}
.hotel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hotel-type {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--teal-light);
  background: rgba(42,138,138,.12);
  padding: 1px 6px;
  border-radius: 3px;
}
.hotel-stars {
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 1px;
}
.rating-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-dim);
  margin-left: auto;
}
.hotel-desc {
  font-size: 12px;
  color: var(--fog-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}
.hotel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hotel-price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal-light);
  font-weight: 600;
}
.price-unit {
  font-size: 10px;
  color: var(--fog-dim);
  font-weight: 400;
}
.hotel-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-light);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--transition);
}
.hotel-link:hover { color: var(--fog); }

/* ── EVENT CARDS ── */
.event-date-group {
  margin-bottom: 16px;
}
.event-date-header {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal-light);
  padding: 6px 0 6px;
  border-bottom: 1px solid rgba(42,138,138,.2);
  margin-bottom: 8px;
}
.event-card {
  background: var(--ocean-surf);
  border: 1px solid rgba(42,138,138,.15);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  transition: border-color var(--transition);
}
.event-card:hover {
  border-color: rgba(42,138,138,.38);
}
.event-card-body {
  margin-bottom: 8px;
}
.event-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fog);
  line-height: 1.3;
  margin-bottom: 3px;
}
.event-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-light);
  margin-bottom: 2px;
}
.event-venue {
  font-size: 11px;
  color: var(--fog-dim);
  margin-bottom: 4px;
}
.event-desc {
  font-size: 11px;
  color: rgba(200,196,184,.55);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-price {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
}
.event-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-light);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--transition);
  margin-left: auto;
}
.event-link:hover { color: var(--fog); }

/* ── SOURCE NOTE ── */
.source-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal-light);
  letter-spacing: .05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.source-note.muted { color: var(--fog-dim); }

/* ── HOTEL MAP MARKERS ── */
.hotel-marker {
  background: var(--ocean-mid);
  border: 1.5px solid rgba(62,181,181,.5);
  border-radius: 5px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  position: relative;
  overflow: visible;
  transition: border-color 200ms;
}

@keyframes pulse-hotel-ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0;   }
}

.hotel-marker.active {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168,85,247,.25), 0 2px 8px rgba(0,0,0,.5);
}
.hotel-marker.active::before,
.hotel-marker.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #a855f7;
  animation: pulse-hotel-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.hotel-marker.active::after {
  animation-delay: 0.65s;
}

/* ── HOTEL CARD INTERACTIVITY ── */
.hotel-card.has-location {
  cursor: pointer;
}
.hotel-card.has-location:hover {
  border-color: rgba(168,85,247,.35);
}
.hotel-card.focused {
  border-color: rgba(168,85,247,.65);
  box-shadow: 0 0 0 1px rgba(168,85,247,.18);
}

/* ── EVENT MAP MARKERS ── */
.event-marker {
  background: var(--ocean-mid);
  border: 1.5px solid rgba(232,160,48,.5);
  border-radius: 5px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  /* overflow visible required for pulse rings to radiate outside marker bounds */
  position: relative;
  overflow: visible;
  transition: border-color 200ms;
}

@keyframes pulse-event-ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0;   }
}

.event-marker.active {
  border-color: #48c78a;
  box-shadow: 0 0 0 2px rgba(72,199,138,.25), 0 2px 8px rgba(0,0,0,.5);
}
.event-marker.active::before,
.event-marker.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #48c78a;
  animation: pulse-event-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.event-marker.active::after {
  animation-delay: 0.65s;
}

/* ── EVENT CARD INTERACTIVITY ── */
.event-card.has-location {
  cursor: pointer;
}
.event-card.has-location:hover {
  border-color: rgba(72,199,138,.35);
}
.event-card.focused {
  border-color: rgba(72,199,138,.65);
  box-shadow: 0 0 0 1px rgba(72,199,138,.18);
}
.loc-pin {
  font-size: 10px;
  opacity: 0.65;
}

/* ── CAMERA VIEWER ── */
.cam-viewer {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.cam-still-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-dim);
  padding: 5px 6px;
  background: rgba(0,0,0,.5);
  text-align: center;
}
.cam-still-note a {
  color: var(--teal-light);
  text-decoration: none;
}

/* ── CAMERA CARDS ── */
.cam-card {
  background: var(--ocean-surf);
  border: 1px solid rgba(42,138,138,.15);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.cam-card:hover {
  border-color: rgba(234,179,8,.35);
}
.cam-card.focused {
  border-color: rgba(234,179,8,.7);
  box-shadow: 0 0 0 1px rgba(234,179,8,.2);
}
.cam-card-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.cam-thumb-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 46px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ocean-deep);
}
.cam-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cam-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0.5;
}
.cam-card-body {
  flex: 1;
  min-width: 0;
}
.cam-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fog);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.cam-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: blink-live 2s ease-in-out infinite;
}
@keyframes blink-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.cam-source {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 3px;
}
.cam-desc {
  font-size: 11px;
  color: var(--fog-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cam-ext-link {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(200,196,184,.4);
  text-decoration: none;
  display: block;
  text-align: right;
  transition: color var(--transition);
}
.cam-ext-link:hover { color: var(--teal-light); }

/* ── CAMERA MAP MARKERS ── */
.cam-marker {
  background: var(--ocean-mid);
  border: 1.5px solid rgba(234,179,8,.5);
  border-radius: 5px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  position: relative;
  overflow: visible;
  transition: border-color 200ms;
}

@keyframes pulse-cam-ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0;   }
}

.cam-marker.active {
  border-color: #eab308;
  box-shadow: 0 0 0 2px rgba(234,179,8,.25), 0 2px 8px rgba(0,0,0,.5);
}
.cam-marker.active::before,
.cam-marker.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #eab308;
  animation: pulse-cam-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.cam-marker.active::after {
  animation-delay: 0.65s;
}

/* ── SHOPPING MAP MARKERS ── */
.shop-marker {
  background: var(--ocean-mid);
  border: 1.5px solid rgba(45,184,133,.5);
  border-radius: 5px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  position: relative;
  overflow: visible;
  transition: border-color 200ms;
}

.shop-marker-featured {
  border-color: rgba(232,182,48,.75);
  box-shadow: 0 0 0 2px rgba(232,182,48,.2), 0 2px 10px rgba(0,0,0,.5);
}

@keyframes pulse-shop-ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0;   }
}

.shop-marker.active {
  border-color: #2db885;
  box-shadow: 0 0 0 2px rgba(45,184,133,.25), 0 2px 8px rgba(0,0,0,.5);
}
.shop-marker-featured.active {
  border-color: #e8b630;
  box-shadow: 0 0 0 2px rgba(232,182,48,.3), 0 2px 8px rgba(0,0,0,.5);
}
.shop-marker.active::before,
.shop-marker.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #2db885;
  animation: pulse-shop-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.shop-marker-featured.active::before,
.shop-marker-featured.active::after {
  border-color: #e8b630;
}
.shop-marker.active::after {
  animation-delay: 0.65s;
}

/* ── SHOPPING PANEL CARDS ── */
.shop-featured-label {
  color: var(--amber);
  letter-spacing: .1em;
}

.shop-card {
  background: var(--ocean-surf);
  border: 1px solid rgba(45,184,133,.18);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.shop-card:hover {
  border-color: rgba(45,184,133,.4);
}
.shop-card.has-location {
  cursor: pointer;
}
.shop-card.has-location:hover {
  border-color: rgba(45,184,133,.45);
}
.shop-card.focused {
  border-color: rgba(45,184,133,.7);
  box-shadow: 0 0 0 1px rgba(45,184,133,.18);
}

/* Featured card (Fabled) */
.shop-card.shop-featured {
  border-color: rgba(232,182,48,.4);
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(232,182,48,.06) 100%);
  box-shadow: 0 0 0 1px rgba(232,182,48,.15), 0 2px 12px rgba(0,0,0,.25);
}
.shop-card.shop-featured:hover {
  border-color: rgba(232,182,48,.65);
}
.shop-card.shop-featured.focused {
  border-color: rgba(232,182,48,.85);
  box-shadow: 0 0 0 1px rgba(232,182,48,.25), 0 2px 14px rgba(0,0,0,.3);
}

.shop-header {
  margin-bottom: 6px;
}
.shop-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fog);
  line-height: 1.3;
  margin-bottom: 4px;
}
.shop-card.shop-featured .shop-name {
  color: #f0d98a;
}
.shop-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-category {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #2db885;
  background: rgba(45,184,133,.12);
  padding: 1px 6px;
  border-radius: 3px;
}
.shop-card.shop-featured .shop-category {
  color: var(--amber);
  background: rgba(232,182,48,.12);
}
.shop-featured-badge {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  background: rgba(232,182,48,.15);
  border: 1px solid rgba(232,182,48,.3);
  padding: 1px 6px;
  border-radius: 3px;
}
.shop-desc {
  font-size: 12px;
  color: var(--fog-dim);
  line-height: 1.55;
  margin-bottom: 8px;
}
.shop-hours {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-dim);
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shop-address {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(200,196,184,.5);
  line-height: 1.3;
  flex: 1;
}
.shop-link {
  font-family: var(--mono);
  font-size: 11px;
  color: #2db885;
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color var(--transition);
  flex-shrink: 0;
}
.shop-link:hover { color: var(--fog); }
.shop-card.shop-featured .shop-link {
  color: var(--amber);
}
.shop-card.shop-featured .shop-link:hover { color: var(--fog); }

/* ── DINING ─────────────────────────────────────────────────────────────────── */

/* Map markers */
.dining-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #e07a5f;
  background: rgba(14,24,38,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.dining-marker:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(224,122,95,.4);
}
.dining-marker-featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,182,48,.25), 0 2px 8px rgba(0,0,0,.5);
}
.dining-marker-featured:hover {
  box-shadow: 0 0 0 4px rgba(232,182,48,.35), 0 4px 14px rgba(232,182,48,.4);
}

@keyframes pulse-dining-ring {
  0%   { box-shadow: 0 0 0 0 rgba(224,122,95,.5), 0 2px 8px rgba(0,0,0,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(224,122,95,0), 0 2px 8px rgba(0,0,0,.5); }
  100% { box-shadow: 0 0 0 0 rgba(224,122,95,0), 0 2px 8px rgba(0,0,0,.5); }
}
.dining-marker.active {
  transform: scale(1.25);
  animation: pulse-dining-ring 1.8s ease-out infinite;
}
.dining-marker-featured.active {
  animation: pulse-shop-ring 1.8s ease-out infinite;
}

/* Section labels */
.dining-featured-label {
  color: var(--amber);
  letter-spacing: .12em;
}
.dining-bar-label {
  color: rgba(170,130,240,.85);
  letter-spacing: .12em;
}

/* Cards */
.dining-card {
  background: var(--ocean-surf);
  border: 1px solid rgba(224,122,95,.18);
  border-radius: var(--radius);
  padding: 12px 14px 10px;
  margin-bottom: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.dining-card.has-location {
  cursor: pointer;
}
.dining-card.has-location:hover {
  border-color: rgba(224,122,95,.45);
  background: rgba(224,122,95,.04);
}
.dining-card.focused {
  border-color: #e07a5f;
  background: rgba(224,122,95,.07);
}

/* Featured dining card — amber treatment, same visual weight as featured shop */
.dining-card.dining-featured {
  border-color: rgba(232,182,48,.4);
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(232,182,48,.06) 100%);
}
.dining-card.dining-featured:hover {
  border-color: rgba(232,182,48,.65);
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(232,182,48,.1) 100%);
}
.dining-card.dining-featured.focused {
  border-color: var(--amber);
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(232,182,48,.12) 100%);
}

/* Violet left-border accent applied to ALL bar venues, including featured ones */
.dining-card.dining-bar-accent {
  border-left: 3px solid rgba(160,120,230,.6);
}
.dining-card.dining-bar-accent .dining-bar-badge {
  /* badge already styled below, just ensure it shows on featured cards too */
}

/* Bar / distillery / pub card — violet accent */
.dining-card.dining-bar {
  border-color: rgba(160,120,230,.25);
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(150,110,220,.05) 100%);
}
.dining-card.dining-bar.has-location:hover {
  border-color: rgba(160,120,230,.5);
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(150,110,220,.09) 100%);
}
.dining-card.dining-bar.focused {
  border-color: rgba(170,130,240,.75);
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(150,110,220,.12) 100%);
}
.dining-card.dining-bar .dining-name {
  color: rgba(190,155,255,.9);
}
.dining-card.dining-bar .dining-category {
  color: rgba(170,130,240,.8);
  background: rgba(150,110,220,.12);
}
.dining-card.dining-bar .dining-link {
  color: rgba(170,130,240,.8);
}
.dining-card.dining-bar .dining-link:hover {
  color: var(--fog);
}
.dining-bar-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(170,130,240,.85);
  background: rgba(150,110,220,.14);
  border: 1px solid rgba(150,110,220,.3);
  border-radius: 3px;
  padding: 2px 6px;
}

/* Bar map marker */
.dining-marker-bar {
  border-color: rgba(160,120,230,.7);
  box-shadow: 0 0 0 2px rgba(150,110,220,.2), 0 2px 8px rgba(0,0,0,.5);
}
.dining-marker-bar:hover {
  box-shadow: 0 4px 14px rgba(150,110,220,.45);
}

.dining-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.dining-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--fog);
  line-height: 1.3;
}
.dining-card.dining-featured .dining-name {
  color: var(--amber);
  font-size: 15px;
}
.dining-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dining-category {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #e07a5f;
  background: rgba(224,122,95,.12);
  border-radius: 3px;
  padding: 2px 6px;
}
.dining-card.dining-featured .dining-category {
  color: var(--amber);
  background: rgba(232,182,48,.12);
}
.dining-rating {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: .03em;
}
.dining-featured-badge {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  background: rgba(232,182,48,.15);
  border: 1px solid rgba(232,182,48,.3);
  border-radius: 3px;
  padding: 2px 6px;
}
.dining-desc {
  font-size: 12px;
  color: var(--fog-dim);
  line-height: 1.55;
  margin-bottom: 6px;
}
.dining-hours {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(201,196,184,.55);
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.dining-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dining-address {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(201,196,184,.4);
  letter-spacing: .02em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dining-link {
  font-family: var(--mono);
  font-size: 10px;
  color: #e07a5f;
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.dining-link:hover { color: var(--fog); }
.dining-card.dining-featured .dining-link {
  color: var(--amber);
}
.dining-card.dining-featured .dining-link:hover { color: var(--fog); }

/* ── MURALS ─────────────────────────────────────────────────────────────────── */

.mural-marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #b892e0;
  background: rgba(14,24,38,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.mural-marker:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(184,146,224,.45);
}

@keyframes pulse-mural-ring {
  0%   { box-shadow: 0 0 0 0 rgba(184,146,224,.55), 0 2px 8px rgba(0,0,0,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(184,146,224,0), 0 2px 8px rgba(0,0,0,.5); }
  100% { box-shadow: 0 0 0 0 rgba(184,146,224,0), 0 2px 8px rgba(0,0,0,.5); }
}
.mural-marker.active {
  transform: scale(1.28);
  border-color: #d4b0f5;
  animation: pulse-mural-ring 1.8s ease-out infinite;
}

.mural-walk-header {
  padding: 10px 14px 12px;
  background: linear-gradient(135deg, var(--ocean-surf) 0%, rgba(184,146,224,.08) 100%);
  border: 1px solid rgba(184,146,224,.2);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.mural-walk-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: #d4b0f5;
  margin-bottom: 3px;
}
.mural-walk-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(201,196,184,.6);
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.mural-walk-link {
  font-family: var(--mono);
  font-size: 10px;
  color: #b892e0;
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--transition);
}
.mural-walk-link:hover { color: var(--fog); }

.mural-card {
  background: var(--ocean-surf);
  border: 1px solid rgba(184,146,224,.18);
  border-radius: var(--radius);
  padding: 11px 13px 9px;
  margin-bottom: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.mural-card.has-location { cursor: pointer; }
.mural-card.has-location:hover {
  border-color: rgba(184,146,224,.45);
  background: rgba(184,146,224,.04);
}
.mural-card.focused {
  border-color: #b892e0;
  background: rgba(184,146,224,.07);
}

.mural-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 7px;
}
.mural-card-text { flex: 1; min-width: 0; }

.mural-name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--fog);
  line-height: 1.3;
  margin-bottom: 2px;
}
.mural-artist {
  font-size: 11px;
  color: #b892e0;
  font-style: italic;
  margin-bottom: 4px;
  line-height: 1.3;
}
.mural-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mural-category {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #b892e0;
  background: rgba(184,146,224,.12);
  border-radius: 3px;
  padding: 2px 6px;
}
.mural-year {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(201,196,184,.5);
  letter-spacing: .04em;
}

.mural-thumb-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(184,146,224,.25);
  background: rgba(184,146,224,.05);
}
.mural-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.mural-card.has-location:hover .mural-thumb { transform: scale(1.06); }

.mural-desc {
  font-size: 12px;
  color: var(--fog-dim);
  line-height: 1.55;
  margin-bottom: 7px;
}

.mural-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mural-location {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(201,196,184,.45);
  letter-spacing: .02em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mural-link {
  font-family: var(--mono);
  font-size: 10px;
  color: #b892e0;
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.mural-link:hover { color: var(--fog); }

/* ── FOOTER ── */
.map-footer {
  position: fixed;
  bottom: 44px;
  left: calc(var(--rail-w) + 8px);
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(200,196,184,.4);
  letter-spacing: .06em;
  z-index: 500;
  pointer-events: none;
}

/* ── NEWS / PUBLIC SAFETY BANNER ── */
.news-banner {
  position: fixed;
  bottom: 0;
  left: var(--rail-w);
  right: 0;
  height: 36px;
  background: rgba(13,31,45,.94);
  border-top: 1px solid rgba(42,138,138,.3);
  display: flex;
  align-items: center;
  z-index: 900;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.news-banner.has-high {
  background: rgba(45,20,15,.95);
  border-top-color: rgba(212,90,42,.5);
}
.news-banner-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: banner-scroll 40s linear infinite;
  padding-left: 100%;
}
.news-banner.no-scroll .news-banner-inner {
  animation: none;
  padding-left: 16px;
}
@keyframes banner-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.news-banner-inner:hover {
  animation-play-state: paused;
}
.news-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--fog);
  flex-shrink: 0;
}
.news-alert-icon {
  font-size: 13px;
}
.news-alert-title {
  color: var(--teal-light);
  font-weight: 500;
}
.news-banner.has-high .news-alert-title {
  color: var(--ember);
}
.news-alert-summary {
  color: var(--fog-dim);
}
.news-alert-source {
  font-size: 9px;
  color: rgba(200,196,184,.4);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.news-alert-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(42,138,138,.4);
  flex-shrink: 0;
}
.news-banner-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42,138,138,.15);
  border: 1px solid rgba(42,138,138,.25);
  color: var(--fog-dim);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
}
.news-banner-close:hover {
  background: rgba(42,138,138,.25);
  color: var(--fog);
}
.news-banner-none {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-dim);
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ocean-surf); border-radius: 2px; }

/* ── CONTACT BUTTON (header) ── */
.contact-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(62,181,181,.3);
  border-radius: 4px;
  color: var(--teal-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.contact-btn:hover {
  border-color: var(--teal-light);
  background: rgba(62,181,181,.08);
  color: var(--fog);
}

/* ── CONTACT MODAL ── */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,45,.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  padding: 16px;
}
.contact-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  background: var(--ocean-mid);
  border: 1px solid rgba(62,181,181,.25);
  border-radius: 10px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  transform: translateY(16px);
  transition: transform 260ms ease;
  overflow: hidden;
}
.contact-overlay.open .contact-modal {
  transform: translateY(0);
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
}
.contact-modal-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--fog);
  letter-spacing: .02em;
}
.contact-modal-close {
  background: none;
  border: none;
  color: var(--fog-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.contact-modal-close:hover { color: var(--fog); }

.contact-modal-sub {
  font-size: 12px;
  color: var(--fog-dim);
  padding: 6px 20px 16px;
  border-bottom: 1px solid rgba(42,138,138,.15);
}

/* Form */
#contact-form {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-field label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal-light);
}
.contact-field input,
.contact-field textarea {
  background: var(--ocean-surf);
  border: 1px solid rgba(42,138,138,.2);
  border-radius: var(--radius);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  resize: none;
  transition: border-color var(--transition);
  width: 100%;
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--teal-light);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(201,196,184,.35);
}

.contact-form-status {
  font-size: 11px;
  font-family: var(--mono);
  min-height: 16px;
  color: transparent;
}
.contact-form-status.error {
  color: #e05a5a;
}

.contact-submit {
  background: var(--teal);
  border: none;
  border-radius: var(--radius);
  color: var(--fog);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background var(--transition), opacity var(--transition);
  align-self: flex-end;
}
.contact-submit:hover:not(:disabled) { background: var(--teal-light); }
.contact-submit:disabled { opacity: .5; cursor: default; }

/* Success state — [hidden] must beat display:flex */
.contact-success[hidden] { display: none !important; }
.contact-success {
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.contact-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(42,138,138,.2);
  border: 1.5px solid var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--teal-light);
  margin-bottom: 6px;
}
.contact-success-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--fog);
}
.contact-success-sub {
  font-size: 12px;
  color: var(--fog-dim);
  max-width: 280px;
}
.contact-close-btn {
  margin-top: 10px;
  background: none;
  border: 1px solid rgba(62,181,181,.3);
  border-radius: var(--radius);
  color: var(--teal-light);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 18px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.contact-close-btn:hover {
  border-color: var(--teal-light);
  background: rgba(62,181,181,.08);
}

/* ── RESPONSIVE ── */

/* ── TABLET (≤ 900px) — narrow the panel slightly ── */
@media (max-width: 900px) {
  :root { --panel-w: 300px; }
}

/* ── MOBILE (≤ 640px) — rail becomes bottom bar, panel becomes bottom sheet ── */
@media (max-width: 640px) {
  :root {
    --panel-w:      100vw;
    --mob-nav-h:    60px;
  }

  /* ── Header: remove left rail offset ── */
  .brand-sub { display: none; }
  .header-time { display: none; }
  .site-header {
    padding: 0 12px;
  }

  /* ── Rail → horizontal scrolling bottom nav bar ── */
  .overlay-rail {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--mob-nav-h);
    flex-direction: row;
    align-items: center;
    padding: 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-top: 1px solid rgba(42,138,138,.25);
    gap: 2px;
  }
  /* Right-edge fade for horizontal scroll */
  .overlay-rail::after {
    display: block;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--ocean-mid));
  }

  /* Show text labels on mobile bottom bar */
  .overlay-btn span {
    display: block;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  /* Hide tooltips on mobile */
  .overlay-btn::after {
    display: none;
  }
  /* Compact buttons for horizontal bar */
  .overlay-btn {
    flex-shrink: 0;
    width: 56px;
    height: 50px;
    flex-direction: column;
    gap: 3px;
  }
  .overlay-btn svg {
    width: 18px;
    height: 18px;
  }
  /* Active indicator: bottom edge stripe instead of left edge */
  .overlay-btn.panel-active {
    box-shadow: inset 0 -3px 0 var(--teal-light);
  }
  /* Hide section dividers in horizontal bar */
  .rail-accent,
  .rail-group-label,
  .rail-divider { display: none; }

  /* ── Map: full width, stop above bottom bar ── */
  #map {
    left: 0;
    bottom: var(--mob-nav-h);
  }

  /* ── Map style toggle: move above bottom bar ── */
  .map-style-btn {
    margin-bottom: 0;
  }

  /* ── Attribution footer: hide to avoid overlap ── */
  .map-footer { display: none; }
  .leaflet-bottom.leaflet-right { bottom: 4px; }

  /* ── News banner: above bottom nav on mobile ── */
  .news-banner {
    left: 0;
    bottom: 60px;
    height: 30px;
    font-size: 10px;
  }
  .news-alert { font-size: 10px; }
  .news-banner-close { width: 18px; height: 18px; font-size: 9px; }

  /* ── Info panel → tall bottom sheet, sits above bottom nav ── */
  .info-panel {
    top: auto;
    height: 78vh;
    width: 100%;
    right: 0;
    bottom: var(--mob-nav-h);
    transform: translateY(100%);
    border-left: none;
    border-top: 1px solid rgba(42,138,138,.25);
    border-radius: 14px 14px 0 0;
  }
  .info-panel.open { transform: translateY(0); }

  /* Smooth momentum scrolling in panel */
  .panel-content { -webkit-overflow-scrolling: touch; }

  /* ── Contact modal: full-width bottom sheet ── */
  .contact-modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    transform: none;
    overflow-y: auto;
  }
  .contact-overlay.open .contact-modal {
    transform: none;
  }

  /* ── Data cards: single column ── */
  .wx-detail-grid {
    grid-template-columns: 1fr;
  }

  /* ── Tide events: tighter layout ── */
  .tide-event { font-size: 11px; }

  /* ── Shop / dining / mural cards ── */
  .shop-card,
  .dining-card,
  .mural-card {
    padding: 10px 12px;
  }
}

/* ── TRAILS ── */

.trail-marker {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(62,181,181,.15);
  border: 1.5px solid rgba(62,181,181,.5);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.trail-marker:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 12px rgba(62,181,181,.35);
}
.trail-marker.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(62,181,181,.3), 0 4px 12px rgba(62,181,181,.4);
}

.trail-item {
  background: var(--ocean-surf);
  border: 1px solid rgba(62,181,181,.15);
  border-radius: var(--radius);
  padding: 12px 14px 10px;
  margin-bottom: 8px;
  transition: border-color var(--transition), background var(--transition);
}
.trail-item.has-location { cursor: pointer; }
.trail-item.has-location:hover {
  border-color: rgba(62,181,181,.4);
  background: rgba(62,181,181,.04);
}
.trail-item.focused {
  border-color: var(--teal);
  background: rgba(62,181,181,.07);
}

/* ── TIDES ── */

.tide-marker {
  background: rgba(91, 196, 212, 0.18);
  border: 1.5px solid var(--teal-light);
  border-radius: 14px;
  color: var(--teal-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 3px 8px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.tide-current-card {
  border-left: 3px solid var(--teal);
}

.tide-height {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tide-trend-icon {
  font-size: 22px;
  line-height: 1;
}
.tide-trend-icon.tide-rising  { color: #5bc4d4; }
.tide-trend-icon.tide-falling { color: #a0b4c0; }

.tide-predictions {
  margin-top: 4px;
}

.tide-day-group {
  margin-bottom: 14px;
}

.tide-day-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid rgba(42,138,138,.2);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.tide-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(201,196,184,.06);
  font-family: var(--mono);
  font-size: 12px;
}

.tide-event-type {
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 600;
  min-width: 52px;
}
.tide-high  { color: #5bc4d4; }
.tide-low   { color: #6b8a9a; }

.tide-event-height {
  color: var(--fog);
  min-width: 46px;
}

.tide-event-time {
  color: var(--fog-dim);
  flex: 1;
  text-align: right;
}

/* ── DARK LEAFLET POPUPS ── */

.leaflet-popup-content-wrapper {
  background: rgba(13, 31, 45, 0.95) !important;
  border: 1px solid rgba(42, 138, 138, 0.35) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  color: var(--fog) !important;
}

.leaflet-popup-content {
  margin: 10px 14px !important;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--fog) !important;
}

.leaflet-popup-tip-container .leaflet-popup-tip {
  background: rgba(13, 31, 45, 0.95) !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  color: var(--teal-light) !important;
  font-size: 16px !important;
  top: 4px !important;
  right: 6px !important;
}
.leaflet-popup-close-button:hover {
  color: #fff !important;
}

/* ── MARKER CLUSTER (Leaflet.markercluster) ── */

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(13, 31, 45, 0.85) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: rgba(42, 138, 138, 0.7) !important;
  color: #fff !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: left 0.3s ease-out, top 0.3s ease-out !important;
}


/* Custom cluster icon (used by shopping + dining markerClusterGroup) */
.cluster-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13, 31, 45, 0.9);
  border: 2px solid var(--teal);
  color: var(--teal-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ── MAP STYLE TOGGLE BUTTON ── */

.map-style-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(13, 31, 45, 0.88);
  border: 1px solid rgba(42, 138, 138, 0.4);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-light);
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: border-color .2s, background .2s;
  user-select: none;
  margin-bottom: 8px;
}
.map-style-btn:hover {
  background: rgba(13, 31, 45, 0.96);
  border-color: var(--teal-light);
}
.map-style-icon { font-size: 13px; line-height: 1; }
.map-style-label { letter-spacing: .08em; }

/* Weather tile error notice */
.weather-tile-error {
  font-family: var(--mono);
  font-size: 11px;
  color: #e8b630;
  background: rgba(232,182,48,.08);
  border: 1px solid rgba(232,182,48,.25);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 8px 0 4px;
  line-height: 1.5;
}

/* ── WEATHER PANEL ── */

/* Alerts */
.wx-alerts {
  margin-bottom: 10px;
}
.wx-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(232, 102, 50, 0.12);
  border: 1px solid rgba(232, 102, 50, 0.4);
  border-radius: 7px;
  padding: 9px 11px;
  margin-bottom: 6px;
}
.wx-alert-icon {
  font-size: 16px;
  line-height: 1.3;
  flex-shrink: 0;
  color: #e86632;
}
.wx-alert-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: #e86632;
  letter-spacing: .03em;
}
.wx-alert-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-dim);
  margin-top: 2px;
}

/* Current conditions hero */
.wx-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wx-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.wx-current-main { flex: 1; }
.wx-temp {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--fog);
  line-height: 1;
}
.wx-temp-unit {
  font-size: 22px;
  color: var(--fog-dim);
  vertical-align: super;
  margin-left: 2px;
}
.wx-cond {
  font-size: 13px;
  color: var(--teal-light);
  text-transform: capitalize;
  margin-top: 3px;
}
.wx-feels {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-dim);
  margin-top: 2px;
}

/* Detail grid */
.wx-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(201,196,184,.08);
  border: 1px solid rgba(201,196,184,.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.wx-detail-item {
  background: rgba(13,31,45,.6);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wx-detail-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.wx-detail-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fog);
}
.wx-uvi { font-weight: 600; }

/* Section labels */
.wx-section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid rgba(42,138,138,.2);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

/* Hourly strip */
.wx-hourly-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
  padding-bottom: 2px;
}
.wx-hourly-strip::-webkit-scrollbar { display: none; }
.wx-hourly-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(13,31,45,.5);
  border: 1px solid rgba(201,196,184,.08);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 52px;
}
.wx-hourly-time {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fog-dim);
  white-space: nowrap;
}
.wx-hourly-icon { width: 28px; height: 28px; }
.wx-hourly-temp {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fog);
}
.wx-hourly-pop {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-dim);
}
.wx-hourly-pop.wet { color: #5bc4d4; }

/* Daily forecast */
.wx-daily-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}
.wx-daily-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(13,31,45,.4);
  border: 1px solid rgba(201,196,184,.06);
  font-family: var(--mono);
  font-size: 12px;
}
.wx-daily-day {
  width: 36px;
  flex-shrink: 0;
  color: var(--teal-light);
  font-weight: 600;
  font-size: 11px;
}
.wx-daily-icon { width: 28px; height: 28px; flex-shrink: 0; }
.wx-daily-desc {
  flex: 1;
  color: var(--fog-dim);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-daily-pop {
  color: var(--fog-dim);
  font-size: 11px;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}
.wx-daily-pop.wet { color: #5bc4d4; }
.wx-daily-temps { flex-shrink: 0; color: var(--fog); }
.wx-daily-temps .hi { color: var(--fog); }
.wx-daily-temps .lo { color: var(--fog-dim); }

/* ── Map ↔ Panel Sync: Bounds Filter Bar ───────────────────────────────── */
.bounds-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin: 0 0 10px;
  background: rgba(42, 138, 138, 0.1);
  border: 1px solid rgba(42, 138, 138, 0.25);
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bounds-filter-text {
  color: var(--teal, #3eb5b5);
}
.bounds-filter-reset {
  background: none;
  border: 1px solid rgba(42, 138, 138, 0.4);
  border-radius: 4px;
  color: var(--teal, #3eb5b5);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.bounds-filter-reset:hover {
  background: rgba(42, 138, 138, 0.15);
  border-color: rgba(42, 138, 138, 0.6);
}


/* ── PANEL SEARCH ── */
.panel-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  flex-shrink: 0;
}

.panel-search-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(42,138,138,.2);
  border-radius: 4px;
  padding: 7px 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fog);
  outline: none;
  transition: border-color var(--transition);
}
.panel-search-input::placeholder { color: var(--fog-dim); opacity: 0.5; }
.panel-search-input:focus { border-color: var(--teal-light); }

.panel-search-clear {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--fog-dim); cursor: pointer;
  font-size: 11px; border-radius: 50%;
  transition: all var(--transition);
}
.panel-search-clear:hover { color: var(--fog); background: rgba(255,255,255,.08); }

/* ── CATEGORY FILTER CHIPS ── */
.panel-chip-bar {
  display: flex;
  gap: 5px;
  padding: 6px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.panel-chip-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(42,138,138,.25);
  background: transparent;
  color: var(--fog-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.filter-chip:hover {
  border-color: var(--teal);
  color: var(--fog);
}
.filter-chip.active {
  background: rgba(42,138,138,.2);
  border-color: var(--teal-light);
  color: var(--teal-light);
}
.chip-count {
  font-size: 8px;
  opacity: 0.6;
  margin-left: 2px;
}

/* ── OPEN NOW BADGE ── */
.open-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}
.open-now-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.open-now-badge.open {
  color: #4cca80;
  background: rgba(76,202,128,.12);
  border: 1px solid rgba(76,202,128,.25);
}
.open-now-badge.closed {
  color: var(--fog-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}

/* ── SKELETON LOADER ── */
.skeleton-loader {
  padding: 4px 0;
}
.skel-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(42,138,138,.1);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.skel-bar {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  margin-bottom: 8px;
}
.skel-bar:last-child { margin-bottom: 0; }
.skel-bar-lg { width: 50%; height: 10px; margin-bottom: 14px; }
.skel-bar-md { width: 65%; height: 14px; }
.skel-bar-sm { width: 35%; height: 10px; }
.skel-bar-full { width: 100%; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── WEATHER FORECAST TEXT FIX ── */
.wx-daily-desc {
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

/* ── MURAL LOCATION TEXT FIX ── */
.mural-location {
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.mural-desc {
  white-space: normal;
  word-break: break-word;
}

/* ── MOBILE PANEL IMPROVEMENTS ── */
@media (max-width: 640px) {
  /* Fix nav overflow */
  .overlay-rail {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 4px 8px;
    gap: 0;
    justify-content: flex-start;
  }
  .overlay-rail::after { display: none; }
  .overlay-rail .rail-accent { display: none; }

  .overlay-btn {
    scroll-snap-align: start;
    min-width: 54px;
    flex-shrink: 0;
    padding: 6px 4px 4px;
    font-size: 7.5px;
  }

  /* Panel half/full toggle */
  .info-panel {
    top: auto;
    bottom: 56px;
    left: 0; right: 0;
    width: 100%;
    height: 50vh;
    transform: translateY(100%);
    border-left: none;
    border-top: 1px solid rgba(42,138,138,.25);
    border-radius: 12px 12px 0 0;
    transition: height 300ms cubic-bezier(.4,0,.2,1), transform 300ms cubic-bezier(.4,0,.2,1);
  }
  .info-panel.open {
    transform: translateY(0);
  }
  .info-panel.mobile-expanded {
    height: calc(100vh - 56px - var(--header-h));
  }

  .mobile-panel-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .mobile-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.2);
  }
  .mobile-panel-handle:active .mobile-handle-bar { background: var(--teal-light); }

  /* Map area when panel is open */
  #map {
    bottom: calc(50vh + 56px);
  }
  .info-panel.mobile-expanded ~ #map,
  .info-panel.mobile-expanded + #map {
    bottom: calc(100vh - var(--header-h));
  }

  .panel-search-input { font-size: 16px; } /* prevent iOS zoom */

  /* Scroll fade on nav */
  .overlay-rail::before {
    content: '';
    position: fixed;
    right: 0; bottom: 0;
    width: 40px; height: 56px;
    background: linear-gradient(to right, transparent, var(--ocean-mid));
    pointer-events: none;
    z-index: 901;
  }
}

/* Hide mobile handle on desktop */
@media (min-width: 641px) {
  .mobile-panel-handle { display: none; }
}

/* ── KEYBOARD FOCUS STYLES ── */
.dining-card.focused,
.shop-card.focused,
.hotel-card.focused,
.mural-card.focused,
.trail-item.focused,
.event-card.focused {
  outline: 2px solid var(--teal-light);
  outline-offset: -2px;
}

/* ── BOUNDS FILTER BAR — always show ── */
.bounds-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin: -16px -16px 12px;
  background: rgba(42,138,138,.06);
  border-bottom: 1px solid rgba(42,138,138,.12);
  position: sticky;
  top: -16px;
  z-index: 10;
}

.bounds-filter-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--fog-dim);
  text-transform: uppercase;
}

.bounds-filter-reset {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--teal-light);
  background: none;
  border: 1px solid rgba(62,181,181,.3);
  border-radius: 3px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.bounds-filter-reset:hover {
  background: rgba(42,138,138,.15);
  border-color: rgba(62,181,181,.5);
}

/* ── KOZT RADIO — header button + floating mini-bar ── */
.header-radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: none;
  border: 1px solid rgba(42,138,138,.3);
  border-radius: 4px;
  color: var(--fog-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all var(--transition);
}
.header-radio-btn:hover {
  color: var(--teal-light);
  border-color: rgba(62,181,181,.5);
  background: rgba(42,138,138,.1);
}
.header-radio-btn.active {
  color: var(--teal-light);
  border-color: var(--teal-light);
  background: rgba(42,138,138,.15);
}
.header-radio-btn.active svg {
  animation: pulse 2.4s ease-in-out infinite;
}

/* ── Floating mini-bar ── */
.radio-minibar {
  position: fixed;
  bottom: 16px;
  left: calc(var(--rail-w) + 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(13, 31, 45, .95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(62, 181, 181, .3);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.2);
  z-index: 950;
  animation: slideUp 250ms ease both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.radio-mini-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(62, 181, 181, .15);
  border: 1px solid rgba(62, 181, 181, .4);
  border-radius: 50%;
  color: var(--teal-light);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.radio-mini-play:hover {
  background: rgba(62, 181, 181, .3);
  border-color: var(--teal-light);
}

.radio-mini-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.radio-mini-station {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--teal-light);
  letter-spacing: .05em;
}
.radio-mini-now {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fog-dim);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Animated EQ bars */
.radio-mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}
.radio-mini-eq span {
  width: 3px;
  background: var(--teal-light);
  border-radius: 1px;
  height: 4px;
  transition: height 0.1s;
}
.radio-mini-eq.animating span:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite 0s; }
.radio-mini-eq.animating span:nth-child(2) { animation: eqBar 0.6s ease-in-out infinite 0.15s; }
.radio-mini-eq.animating span:nth-child(3) { animation: eqBar 0.7s ease-in-out infinite 0.3s; }
.radio-mini-eq.animating span:nth-child(4) { animation: eqBar 0.9s ease-in-out infinite 0.1s; }

@keyframes eqBar {
  0%, 100% { height: 4px; }
  50%      { height: 16px; }
}

.radio-mini-popout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid rgba(42,138,138,.25);
  border-radius: 4px;
  color: var(--fog-dim);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.radio-mini-popout:hover {
  color: var(--teal-light);
  border-color: rgba(62, 181, 181, .5);
  background: rgba(42,138,138,.1);
}

.radio-mini-close {
  background: none;
  border: none;
  color: var(--fog-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.radio-mini-close:hover {
  color: var(--fog);
  background: rgba(255,255,255,.08);
}

@media (max-width: 640px) {
  .radio-minibar {
    left: 8px;
    right: 8px;
    bottom: calc(var(--mob-nav-h, 60px) + 8px);
  }
  .header-radio-btn span { display: none; }
}

/* ── SEO CONTENT (visually hidden, crawlable) ── */
.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
