/* ─── BASE STYLES ─── */
:root {
  --bg: #ffffff;
  --bg2: #f5f5f5;
  --card: #ffffff;
  --border: #53006c;
  --border-light: #d0bada;
  --text: #53006c;
  --muted: #7a3a8a;
  --accent: #53006c;
  --accent-dark: #35004a;
  --radius: 0px;
  --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  min-height: 100vh;
  height: 100vh;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ─── */
header {
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.logo span {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  letter-spacing: 0.04em;
  text-transform: none;
}

header .spacer { flex: 1; }

.header-logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.header-logo-link:hover { opacity: 0.8; }

.badge {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ─── LAYOUT ─── */
.app-body {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
  min-height: 0;
}

/* ─── SIDEBAR ─── */
.sidebar {
  background: var(--bg);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  height: calc(100vh - 52px);
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-light); }

.sidebar-section {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-section h3 {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.city-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  padding: 0;
  background: var(--bg);
}

.city-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.city-meta { font-size: 10px; color: var(--muted); margin-top: 2px; }
.city-source { font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; opacity: 0.85; }

.score-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin-left: auto;
}
.score-ring-wrap canvas { width: 72px !important; height: 72px !important; display: block; }
.score-val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
}
.score-val .score-sub {
  font-size: 7px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1;
}
.score-label { font-size: 9px; color: var(--muted); text-align: center; letter-spacing: 0.08em; text-transform: uppercase; }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 999px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.cat-grid::-webkit-scrollbar { width: 0; height: 0; background: transparent; }

.cat-grid-wrap {
  position: relative;
}
.cat-grid-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border-light);
  color: var(--accent);
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
  z-index: 5;
  opacity: 0.85;
  transition: opacity 120ms ease, background 120ms ease;
  user-select: none;
}
.cat-grid-arrow:hover {
  opacity: 1;
  background: var(--bg2);
}
.cat-grid-arrow.up   { top: -14px; }
.cat-grid-arrow.down { bottom: -14px; }
.cat-grid-arrow[hidden] { display: none !important; }

.cat-btn {
  background: var(--bg);
  border: 1px solid var(--border-light);
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-radius: 4px !important;
}

.cat-btn:hover {
  border-color: var(--border);
  background: var(--bg2);
}

.cat-btn.active {
  border-color: #6b2a85;
  background: #6b2a85;
  color: var(--bg);
  box-shadow:
    0 1px 2px rgba(83, 0, 108, 0.15),
    0 2px 6px rgba(83, 0, 108, 0.10);
}

.cat-btn.active svg path,
.cat-btn.active svg rect,
.cat-btn.active svg circle,
.cat-btn.active svg line,
.cat-btn.active svg polyline,
.cat-btn.active svg polygon {
  stroke: #ffffff;
  fill: none;
}

.cat-btn.active svg .fill-black {
  fill: #ffffff;
  stroke: none;
}

.cat-icon-svg { width: 22px; height: 22px; display: block; }

.legend-bar {
  height: 18px;
  background: linear-gradient(90deg,
              rgba(34, 197, 94, 0.85) 0%,
              rgba(34, 197, 94, 0.85) 25%,
              rgba(234, 179, 8, 0.85) 25%,
              rgba(234, 179, 8, 0.85) 50%,
              rgba(239, 68, 68, 0.85) 50%,
              rgba(239, 68, 68, 0.85) 95%,
              rgba(156, 163, 175, 0.80) 95%,
              rgba(156, 163, 175, 0.80) 100%);
  border: 1px solid rgba(83, 0, 108, 0.18);
  border-radius: 999px !important;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 1px 2px rgba(83, 0, 108, 0.10),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(83, 0, 108, 0.05);
}
.legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  padding: 0 2px;
}

/* ─── Legend mode toggle ─── */
.legend-toggle {
  display: flex;
  margin-top: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  user-select: none;
}
.legend-toggle-opt {
  flex: 1;
  text-align: center;
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.12s, color 0.12s;
}
.legend-toggle-opt + .legend-toggle-opt { border-left: 1px solid var(--border-light); }
.legend-toggle-opt:hover { background: var(--bg2); }
.legend-toggle-opt.active {
  background: var(--accent-dark);
  color: #fff;
}

/* ─── Steps pill toggle (segmented control) ─── */
.controls-row {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.steps-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

.opacity-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  width: 70%;
  align-self: center;
}
.opacity-slider-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--border-light) 50%, var(--accent) 100%);
  outline: none;
  cursor: pointer;
  border: 1px solid var(--border-light);
}
.opacity-slider-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  cursor: pointer;
}
.opacity-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  cursor: pointer;
  border-radius: 0;
}
.opacity-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.steps-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}

.steps-pill {
  display: flex;
  background: linear-gradient(180deg,
              rgba(83, 0, 108, 0.06) 0%,
              rgba(83, 0, 108, 0.10) 100%);
  border: 1px solid rgba(83, 0, 108, 0.18);
  padding: 2px;
  user-select: none;
  border-radius: 999px !important;
  overflow: hidden;
  width: 70%;
  align-self: center;
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  box-shadow:
    inset 0 1px 2px rgba(83, 0, 108, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
}

.steps-pill::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  background:
    linear-gradient(180deg,
      rgba(140, 80, 175, 0.92) 0%,
      rgba(105, 50, 140, 0.92) 50%,
      rgba(95, 40, 130, 0.94) 100%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  backdrop-filter: blur(6px) saturate(160%);
  border-radius: 999px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(60, 0, 90, 0.35),
    0 1px 2px rgba(60, 0, 90, 0.18),
    0 3px 8px rgba(83, 0, 108, 0.22);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0%);
  z-index: 0;
  pointer-events: none;
}
.steps-pill[data-pos="1"]::before {
  transform: translateX(100%);
}

.steps-pill-opt {
  flex: 1;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: color 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px !important;
  text-align: center;
  position: relative;
  z-index: 1;
}

.steps-pill-opt:hover:not(.active) {
  color: var(--accent);
}

.steps-pill-opt.active {
  background: transparent;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(40, 0, 60, 0.25);
}

/* ─── MAIN ─── */
.main-content {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  --charts-h: 160px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-thumb { background: var(--border-light); }

#map {
  width: 100%;
  height: calc(100vh - 52px - var(--charts-h));
  min-height: 120px;
  flex-shrink: 0;
  position: relative;
}

/* ─── BOTTOM PANEL (charts + POI) ─── */
.bottom-panel {
  display: flex;
  align-items: stretch;
  min-height: 60px;
  border-top: 2px solid var(--border);
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
}

/* ─── CHARTS PANEL ─── */
.charts-panel {
  flex: 1 1 0;
  min-width: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.charts-resize-handle {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  cursor: ns-resize;
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.charts-resize-handle::before {
  content: '';
  width: 48px;
  height: 4px;
  background: var(--border);
  border-radius: 2px !important;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.charts-resize-handle:hover::before,
.charts-resize-handle.dragging::before {
  opacity: 1;
  background: var(--accent-dark);
}
body.charts-resizing {
  cursor: ns-resize !important;
  user-select: none !important;
}
body.charts-resizing * {
  cursor: ns-resize !important;
  user-select: none !important;
}

.charts-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.charts-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.charts-subtitle { font-size: 10px; color: var(--muted); }
.spacer { flex: 1; }

.charts-grid {
  flex: 0 0 auto;
  height: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0;
  overflow: hidden;
}

.charts-scroll {
}

.chart-card {
  padding: 12px 14px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}

.charts-grid .chart-card:only-child,
.poi-grid .chart-card:only-child {
  grid-column: 1 / -1;
  border-right: none;
}

.chart-card:nth-child(2),
.chart-card:nth-child(4) { border-right: none; }
.chart-card:nth-child(3),
.chart-card:nth-child(4) { border-bottom: none; }
#chartsGrid .chart-card:nth-child(1),
#chartsGrid .chart-card:nth-child(2) { border-bottom: 1px solid var(--border-light); }
#chartsGrid .chart-card:nth-child(3),
#chartsGrid .chart-card:nth-child(4) { border-bottom: none; }
#chartsGrid .chart-card:nth-child(2),
#chartsGrid .chart-card:nth-child(4),
#chartsGrid .chart-card:nth-child(6) { border-right: none; }

.chart-card-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.chart-card canvas {
  flex: 1;
  min-height: 0;
}

.stat-row {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.stat-chip {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 10px;
  flex: 1;
  text-align: center;
}

.stat-chip .val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.stat-chip .lbl { color: var(--muted); font-size: 9px; letter-spacing: 0.05em; }

.stat-chip + .stat-chip {
  border-left: 1px solid rgba(208, 186, 218, 0.45);
}

.empty-charts {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 14px;
}

.loading-overlay.hidden { display: none; }

.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border-light);
  border-top-color: var(--border);
  animation: spin 0.7s linear infinite;
  border-radius: 50% !important;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }

.leaflet-container { background: #f0f0f0 !important; }

/* ─── VIEWPORT DONUT ─── */
.viewport-donut {
  position: fixed;
  top: 68px;
  right: 18px;
  width: 110px;
  height: 110px;
  z-index: 1001;
  padding: 0;
  margin: 0;
  user-select: none;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(83, 0, 108, 0.18);
  border-radius: 50% !important;
  box-shadow:
    0 1px 2px rgba(15, 0, 30, 0.05),
    0 6px 18px rgba(15, 0, 30, 0.10),
    0 18px 38px rgba(15, 0, 30, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewport-donut--light-text {
  background: rgba(20, 12, 28, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.28),
    0 18px 38px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.viewport-donut-canvas {
  width: 110px !important;
  height: 110px !important;
  display: block;
  background: transparent;
  position: absolute;
  inset: 0;
  filter: none;
}

.viewport-donut-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 0;
}
.viewport-donut-value {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #0f0a14;
  transition: color 0.2s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.viewport-donut-label {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(15, 10, 20, 0.62);
  transition: color 0.2s ease;
  margin-top: 3px;
  text-shadow: none;
}
.viewport-donut--light-text .viewport-donut-value {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.viewport-donut--light-text .viewport-donut-label {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: none;
}

/* ─── BASEMAP SWITCHER ─── */
.basemap-switcher {
  position: fixed;
  top: 194px;
  right: 18px;
  z-index: 1001;
  transition: opacity 0.15s ease;
}
.viewport-donut.hidden-by-scroll,
.basemap-switcher.hidden-by-scroll {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.basemap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 0;
  pointer-events: auto;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    color 0.18s ease;
  background: rgba(250, 246, 252, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(83, 0, 108, 0.20);
  color: #3a1a4a;
  box-shadow:
    0 1px 2px rgba(40, 0, 60, 0.06),
    0 6px 16px rgba(40, 0, 60, 0.10),
    0 14px 32px rgba(40, 0, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.basemap-btn--dark {
  background: rgba(20, 12, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f3e8f7;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.28),
    0 18px 38px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.basemap-btn:hover {
  transform: translateY(-1px);
  background: rgba(250, 246, 252, 0.95);
  border-color: rgba(83, 0, 108, 0.38);
  box-shadow:
    0 2px 4px rgba(40, 0, 60, 0.08),
    0 10px 22px rgba(40, 0, 60, 0.14),
    0 18px 40px rgba(40, 0, 60, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.basemap-btn--dark:hover {
  background: rgba(20, 12, 28, 0.58);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.34),
    0 22px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.basemap-btn svg {
  width: 28px;
  height: 26px;
  display: block;
}

.basemap-dropdown {
  display: none;
  position: absolute;
  top: 52px;
  right: 0;
  background: #ffffff;
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border-light);
  min-width: 160px;
  z-index: 1002;
  height: 380px;
  overflow-y: scroll;
  overflow-x: hidden;
}
.basemap-dropdown::-webkit-scrollbar { width: 6px; }
.basemap-dropdown::-webkit-scrollbar-thumb { background: var(--border-light); }
.basemap-dropdown::-webkit-scrollbar-track { background: transparent; }

.basemap-dropdown.open { display: block; }

.basemap-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  user-select: none;
  transition: background 0.1s;
}

.basemap-option:last-child { border-bottom: none; }
.basemap-option:hover { background: var(--bg2); }
.basemap-option.active { background: #6b2a85; color: #fff; }
.basemap-option.active .basemap-thumb { border-color: rgba(255,255,255,0.5); }

.basemap-thumb {
  width: 28px;
  height: 20px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.basemap-thumb-light {
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 40%, #d0d0d0 100%);
}

.basemap-thumb-dark {
  background: linear-gradient(135deg, #3a3a3a 0%, #23262b 40%, #14161a 100%);
}
.basemap-thumb-osm {
  background: linear-gradient(135deg, #f2efe9 0%, #e6ede0 45%, #cfe0c3 100%);
}

.basemap-thumb-ortofoto {
  background: linear-gradient(135deg, #4a6741 0%, #3d5c38 30%, #8a7a5a 55%, #6b6b5a 80%, #a09080 100%);
  position: relative;
  overflow: hidden;
}

.basemap-thumb-agea {
  background: linear-gradient(135deg, #6b8e3d 0%, #8fa84a 25%, #c9a85a 55%, #a8884a 80%, #6b5a3a 100%);
  position: relative;
  overflow: hidden;
}
.basemap-thumb-agea::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(255,255,255,0.06) 4px, rgba(255,255,255,0.06) 5px);
}
.basemap-thumb-ortofoto::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.04) 2px, rgba(255,255,255,0.04) 4px),
    repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(0,0,0,0.05) 3px, rgba(0,0,0,0.05) 5px);
}

/* ─── POI LAYERS (basemap dropdown) ─── */
.basemap-section-title {
  padding: 6px 12px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border-light);
  margin-top: 2px;
  user-select: none;
}

.osm-labels-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 8px;
  cursor: pointer;
  user-select: none;
}
.osm-labels-row input[type=checkbox] {
  width: 13px;
  height: 13px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0 !important;
}
.osm-labels-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.osm-labels-row:hover .osm-labels-label { color: var(--accent); }

.poi-layer-list {
  overflow: visible;
}

.poi-layer-divider {
  border-top: 1px solid var(--border-light);
  margin: 1px 0;
}

.poi-layer-row {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: none;
    cursor: default;
}
.poi-layer-list .poi-layer-row {
  border-bottom: 0;
}

.poi-layer-row:last-child { border-bottom: none; }

.poi-layer-check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
  border-right: 0;
}

.poi-layer-check input[type=checkbox] {
  appearance: none;
  position: absolute;
  left: 10px;
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 1.5px solid rgba(83, 0, 108, 0.55);
  border-radius: 3px !important;
  background: #fff;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  margin: 0;
}

.poi-layer-check input[type=checkbox]:checked {
  background: #6b2a85;
  border-color: #6b2a85;
}

.poi-layer-check input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 3.5px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.poi-layer-check input[type=checkbox]:focus-visible,
.poi-subtype-row input[type=checkbox]:focus-visible {
  outline: 2px solid rgba(83, 0, 108, 0.45);
  outline-offset: 2px;
}

#neighborhoodBtnBar .neighborhood-layer-checkbox:checked {
  background: #15803d;
  border-color: #15803d;
}

.poi-layer-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin: 0 4px 0 0;
}

.poi-layer-label {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  padding: 0 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 32px;
}

.poi-layer-row.current-cat .poi-layer-label {
  font-weight: 500;
}

.poi-layer-expand {
  width: 28px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-left: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 10px;
  transition: transform 0.15s;
  user-select: none;
}

.poi-layer-expand.open { transform: rotate(180deg); }

.poi-subtype-list {
  display: none;
  background: var(--bg2);
  border-bottom: 1px solid var(--border-light);
}

.poi-subtype-list.open { display: block; }

.poi-subtype-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 36px;
  border-bottom: 1px solid rgba(208,186,218,0.4);
  cursor: pointer;
}

.poi-subtype-row:last-child { border-bottom: none; }

.poi-subtype-row:hover { background: rgba(83,0,108,0.06); }

.poi-subtype-row input[type=checkbox] {
  appearance: none;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  box-sizing: border-box;
  border: 1.5px solid rgba(83, 0, 108, 0.55);
  border-radius: 3px !important;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  margin: 0;
}

.poi-subtype-row input[type=checkbox]:checked {
  background: #6b2a85;
  border-color: #6b2a85;
}

.poi-subtype-row input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 3.5px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.poi-subtype-label {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
}

.poi-subtype-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid rgba(0, 0, 0, 0.32);
}

.poi-shelter-legend {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 18px;
  padding: 0 8px 4px 32px;
  color: var(--muted);
  font-size: 9px;
  line-height: 12px;
}

.poi-shelter-legend.is-visible { display: flex; }

.poi-shelter-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.poi-shelter-legend-pin {
  width: 8px;
  height: 11px;
  flex: 0 0 8px;
}

.poi-shelter-legend-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
}

.poi-polygon-legend {
  width: 14px;
  height: 12px;
  flex: 0 0 14px;
}

.poi-polygon-legend polygon {
  fill: #15803d;
  stroke: #14532d;
  stroke-width: 1;
}

.neighborhood-legend-line {
  width: 18px;
  height: 10px;
  flex: 0 0 18px;
}

.neighborhood-legend-line line {
  stroke: #53006c;
  stroke-width: 2;
  stroke-dasharray: 4 2;
}

#neighborhoodBtnBar.census-btnbar {
  gap: 0;
  padding: 0;
}

/* ─── POI SECTION ─── */
.poi-section {
  flex: 1 1 0;
  min-width: 0;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  margin-top: 0;
  background: var(--bg);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .bottom-panel {
    flex-direction: column;
  }

  .poi-section {
    border-top: 1px solid var(--border-light);
    border-left: none;
  }
}

.poi-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.poi-info-bar {
  display: flex;
  border-bottom: 1px solid var(--border-light);
}

.poi-stat {
  flex: 1;
  padding: 10px 16px;
  border-right: 1px solid var(--border-light);
}
.poi-stat:last-child { border-right: none; }
.poi-stat .val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.poi-stat .lbl {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

.poi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  border-top: none;
}

.poi-alpha-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 10px;
}

.poi-alpha-list::-webkit-scrollbar { width: 3px; }
.poi-alpha-list::-webkit-scrollbar-thumb { background: var(--border-light); }

.poi-alpha-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid var(--bg2);
  line-height: 1.3;
}

.poi-alpha-item:last-child { border-bottom: none; }

.poi-alpha-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-alpha-type {
  color: var(--muted);
  font-size: 9px;
  flex-shrink: 0;
}

.map-tooltip {
  background: #fff !important;
  border: 1px solid #000 !important;
  color: #000 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  padding: 10px 14px !important;
  box-shadow: 2px 2px 0 #000 !important;
}
.map-tooltip.popup-noheader {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.popup-noheader .leaflet-popup-content {
  margin: 0 !important;
  width: 260px !important;
}
.popup-noheader .leaflet-popup-content-wrapper {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.sidebar{
  min-width: 300px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  height: calc(100vh - 52px);
}

.app-body,
.app-grid,
.app-container,
.layout,
body{
  overflow-x: auto;
}

.cat-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.cat-btn{
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: visible !important;
  text-overflow: clip !important;
  height: auto !important;
  min-height: 36px;
  min-width: 0;
  line-height: 1.15;
  padding: 6px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
  border-radius: 4px !important;
  transition:
    background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn[data-cat^="shelter_"]{
  white-space: normal !important;
  font-size: 10px;
  letter-spacing: normal;
  padding-left: 6px;
  padding-right: 6px;
}

#map .leaflet-overlay-pane svg path {
  transition:
    fill 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    fill-opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    stroke 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaflet-zoom-anim .leaflet-overlay-pane svg path,
.leaflet-drag-target .leaflet-overlay-pane svg path {
  transition: none !important;
}

/* ─── CENSUS / BUILDINGS LAYER BUTTONS ─── */
.census-btnbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 8px;
}
.census-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 2px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease;
  user-select: none;
  text-align: left;
}
.census-btn:hover { opacity: 0.75; }
.census-btn:active { transform: translateY(1px); }
.census-btn.is-active { font-weight: 600; }

.census-btn-dot {
  width: 13px; height: 13px;
  flex: 0 0 auto;
  border-radius: 3px !important;
  border: 1.5px solid rgba(83, 0, 108, 0.55);
  background: #fff !important;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.census-btn.is-active .census-btn-dot {
  background: #6b2a85 !important;
  border-color: #6b2a85;
}
.neighborhood-btn.is-active .census-btn-dot {
  background: #15803d !important;
  border-color: #15803d;
}
.census-btn.is-active .census-btn-dot::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 3.5px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  z-index: 2;
}
.census-btn-label { line-height: 1; }

.census-legend {
  display: none;
  flex-direction: column;
  gap: 3px;
  margin: 6px 2px 2px 22px;
  padding: 6px 8px 7px;
  border-left: 2px solid rgba(107, 42, 133, 0.25);
  background: rgba(107, 42, 133, 0.04);
  border-radius: 0 4px 4px 0;
}
.census-btnbar:has(.census-btn.is-active) .census-legend {
  display: flex;
}
.census-legend-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  margin-bottom: 3px;
  line-height: 1.1;
}
.census-legend-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.census-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text);
}
.census-legend-sw {
  width: 12px; height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.census-legend-sw--none {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(107, 42, 133, 0.35) 0 1px,
      transparent 1px 4px
    ),
    #fff;
  border-color: rgba(107, 42, 133, 0.35);
}
.census-legend-lbl {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ─── POPUPS ─── */
.leaflet-popup-content-wrapper {
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 10px 32px rgba(83, 0, 108, 0.22),
              0 4px 10px rgba(83, 0, 108, 0.12);
  padding: 0;
  overflow: hidden;
  border-radius: 10px !important;
}
.leaflet-popup-tip {
  background: var(--bg);
  border: 1px solid var(--border);
}
.leaflet-popup-close-button {
  color: rgba(255,255,255,0.85) !important;
  font-size: 18px !important;
  padding: 6px 8px !important;
  right: 4px !important;
  top: 4px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: color 0.15s;
}
.leaflet-popup-close-button:hover { color: #fff !important; }
.leaflet-popup-content {
  margin: 0 !important;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  width: 260px !important;
}

.popup-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 12px 14px 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}
.popup-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.22);
}
.popup-icon svg { width: 18px; height: 18px; }
.popup-head-text { flex: 1; min-width: 0; padding-right: 18px; }
.popup-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  padding: 0;
  border: none;
  text-transform: none;
  line-height: 1.25;
  word-wrap: break-word;
}
.popup-subtitle {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
  font-weight: 500;
}

.popup-body { padding: 12px 14px 12px 14px; background: var(--bg); }

.popup-noheader .leaflet-popup-content-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.popup-noheader .leaflet-popup-close-button {
  display: block !important;
  color: var(--accent) !important;
  text-shadow: none;
  z-index: 1;
}
.popup-noheader .leaflet-popup-tip-container { display: none !important; }
.popup-noheader .popup-body--noheader {
  padding-top: 22px;
  border: 1px solid var(--border);
  border-radius: 10px !important;
  box-shadow: 0 10px 32px rgba(83, 0, 108, 0.22),
              0 4px 10px rgba(83, 0, 108, 0.12);
}
.popup-noheader .popup-hero .popup-big-label:first-child { opacity: 0.7; }

.popup-hero {
  text-align: center;
  padding: 6px 0 10px 0;
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 10px;
}
.popup-big-label {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
}
.popup-big {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-dark);
  text-align: center;
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.popup-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.popup-badge {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 8px auto 0 auto;
  padding: 3px 9px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px !important;
  border: 1px solid transparent;
}
.popup-badge--green  { background: rgba(34,197,94,0.15);  color: #15803d; border-color: rgba(34,197,94,0.4); }
.popup-badge--yellow { background: rgba(253,224,71,0.22); color: #a16207; border-color: rgba(202,138,4,0.45); }
.popup-badge--red    { background: rgba(248,113,113,0.18); color: #b91c1c; border-color: rgba(220,38,38,0.45); }
.popup-badge--dark   { background: rgba(127,29,29,0.15);  color: #7f1d1d; border-color: rgba(127,29,29,0.5); }
.popup-badge--purple { background: rgba(83,0,108,0.12);   color: var(--accent); border-color: rgba(83,0,108,0.35); }
.popup-badge--blue   { background: rgba(14,165,233,0.15); color: #0369a1; border-color: rgba(14,165,233,0.4); }

.popup-rowlist {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  padding: 6px 0;
 border-bottom: 1px dashed rgba(208, 186, 218, 0.55);
}
.popup-row:last-child { border-bottom: none; }
.popup-row .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 5px;
}
.popup-row .ico svg { width: 12px; height: 12px; }
.popup-row .k-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.popup-row .k {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
  font-weight: 600;
}
.popup-row .v {
  color: var(--text);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  max-width: 60%;
  word-break: break-word;
}


/* Visible close X on every Leaflet popup */
.leaflet-popup .leaflet-popup-close-button,
.leaflet-popup.popup-noheader .leaflet-popup-close-button {
  display: flex !important; align-items: center; justify-content: center;
  width: 24px !important; height: 24px !important; padding: 0 !important;
  top: 5px !important; right: 5px !important; z-index: 20 !important;
  color: #53006c !important; background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(83,0,108,.25) !important; border-radius: 50% !important;
  font-size: 19px !important; line-height: 1 !important; text-shadow: none !important;
  box-shadow: 0 1px 4px rgba(83,0,108,.16) !important;
}
.leaflet-popup .leaflet-popup-close-button:hover { color:#fff !important; background:#53006c !important; }
.score-val .score-sub { max-width:64px; text-align:center; line-height:1.15; letter-spacing:.03em; }


/* CITIZEN DATA STORY - FIXED MAP AND ADDRESS SEARCH */
body.citizen-mode{--story-green:#1d6b57;--story-dark:#12483b;--story-cream:#f7f4ec;--story-ink:#18322b;--story-muted:#577168;overflow:hidden;background:var(--story-cream);color:var(--story-ink)}
body.citizen-mode header{height:76px;padding:0 32px;border:0;background:var(--story-dark);color:#fff}
body.citizen-mode .citizen-logo{
    display:flex;
    align-items:center;
    gap:12px;
}

body.citizen-mode .citizen-logo img{
    height:26px;
    width:auto;
    display:block;
    object-fit:contain;
}

body.citizen-mode .citizen-logo{
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    height:58px!important;
}

body.citizen-mode .citizen-logo img{
    height:32px!important;
    width:auto!important;
    display:block!important;
}

body.citizen-mode .citizen-logo span{
    display:flex!important;
    align-items:center!important;
    align-self:center!important;
    height:32px!important;
    margin:0!important;
    padding-top:2px!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1!important;
    color:rgba(255,255,255,.8)!important;
}body.citizen-mode .app-body{display:grid!important;grid-template-columns:450px minmax(0,1fr)!important;height:calc(100vh - 76px)!important;min-height:0!important;overflow:hidden!important}
body.citizen-mode .sidebar{position:relative!important;width:450px!important;min-width:450px!important;height:calc(100vh - 76px)!important;overflow-y:auto!important;overflow-x:hidden!important;background:var(--story-cream);border:0;box-shadow:10px 0 30px rgba(18,72,59,.12);z-index:900}
body.citizen-mode .main-content{position:relative!important;width:100%!important;height:calc(100vh - 76px)!important;min-width:0!important;overflow:hidden!important;background:#e8eee9}
body.citizen-mode #map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important}
body.citizen-mode .citizen-story{padding:28px 32px 24px;background:var(--story-dark);color:#fff} body.citizen-mode .story-kicker{font-size:10px;font-weight:800;letter-spacing:.16em;color:#a9ddca;margin-bottom:12px} body.citizen-mode .citizen-story h1{font-size:29px;line-height:1.08;letter-spacing:-.035em;margin:0 0 14px} body.citizen-mode .citizen-story p{font-size:13px;line-height:1.5;color:rgba(255,255,255,.86);margin:0 0 18px}
body.citizen-mode .address-search label{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px} body.citizen-mode .address-search-row{display:flex;gap:7px} body.citizen-mode .address-search input{min-width:0;flex:1;height:44px;border:2px solid transparent;border-radius:8px!important;padding:0 12px;font:12px var(--font);color:#1d352e;background:#fff} body.citizen-mode .address-search input:focus{outline:none;border-color:#a9ddca} body.citizen-mode .address-search button{height:44px;padding:0 16px;border:0;border-radius:8px!important;background:#a9ddca;color:#123d32;font-weight:800;cursor:pointer} body.citizen-mode .address-search button:disabled{opacity:.55;cursor:wait} body.citizen-mode .address-status{min-height:18px;margin-top:7px;font-size:10px;color:#d7eee5;line-height:1.3}
body.citizen-mode .citizen-guide{padding:22px 32px 8px} body.citizen-mode .citizen-guide h2,body.citizen-mode .citizen-about h2{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--story-dark);margin-bottom:12px} body.citizen-mode .citizen-guide ol{list-style:none;display:grid;gap:12px} body.citizen-mode .citizen-guide li{display:flex;gap:11px} body.citizen-mode .citizen-guide li>span{width:27px;height:27px;flex:0 0 27px;border-radius:50%!important;display:grid;place-items:center;background:#d9ece4;color:var(--story-dark);font-weight:800} body.citizen-mode .citizen-guide strong{display:block;font-size:12px;color:var(--story-ink)} body.citizen-mode .citizen-guide small{display:block;font-size:10px;color:var(--story-muted);margin-top:2px}
body.citizen-mode #cityInfoSection{display:none!important} body.citizen-mode #catSection,body.citizen-mode #legendSection{display:block!important;padding:18px 32px;border-bottom:1px solid rgba(18,72,59,.14)} body.citizen-mode .sidebar-section h3{color:var(--story-dark);font-size:10px;letter-spacing:.12em}
body.citizen-mode .cat-grid{grid-template-columns:1fr;gap:8px;overflow:visible} body.citizen-mode .cat-btn{min-height:48px;flex-direction:row;justify-content:flex-start;text-align:left;padding:10px 14px;border:1px solid #bfd5cc;color:var(--story-dark);background:#fff;border-radius:10px!important;font-size:12px;font-weight:700} body.citizen-mode .cat-btn.active{background:var(--story-green);border-color:var(--story-green);color:#fff;box-shadow:0 6px 18px rgba(29,107,87,.18)}
body.citizen-mode .legend-bar,body.citizen-mode .legend-labels{display:none!important} body.citizen-mode .citizen-legend{display:grid;gap:10px} body.citizen-mode .citizen-legend>div{display:flex;align-items:center;gap:10px} body.citizen-mode .citizen-legend>div>span:last-child{display:flex;flex-direction:column} body.citizen-mode .citizen-legend strong{font-size:11px;color:var(--story-ink)} body.citizen-mode .citizen-legend small{font-size:9px;color:var(--story-muted)} body.citizen-mode .legend-dot{width:15px;height:15px;border-radius:50%!important;border:2px solid #fff;box-shadow:0 0 0 1px rgba(24,50,43,.18)} body.citizen-mode .legend-dot--green{background:#22c55e} body.citizen-mode .legend-dot--red{background:#ef4444} body.citizen-mode .legend-dot--gray{background:#9ca3af}
body.citizen-mode .controls-row{margin-top:14px} body.citizen-mode .steps-wrap:first-child{display:none} body.citizen-mode .opacity-slider-wrap{width:100%;padding:0}
body.citizen-mode .citizen-about{padding:18px 32px 28px;border-top:1px solid rgba(18,72,59,.14)} body.citizen-mode .citizen-about p{font-size:10px;line-height:1.45;color:var(--story-muted)} body.citizen-mode .project-note{margin-top:7px;color:var(--story-dark)!important;font-weight:700}
body.citizen-mode .bottom-panel,body.citizen-mode .viewport-donut{display:none!important} body.citizen-mode .basemap-switcher{position:absolute!important;top:18px!important;right:18px!important}
body.citizen-mode .citizen-popup{min-width:245px;text-align:center;padding:23px 18px 18px!important} body.citizen-mode .citizen-popup-address{font-size:9px;line-height:1.35;color:var(--story-muted);padding:0 16px 9px;border-bottom:1px solid #d9e8e2;margin-bottom:10px} body.citizen-mode .citizen-popup .popup-big{display:block;font-size:31px;color:var(--story-dark)} body.citizen-mode .citizen-popup .popup-badge{display:inline-block}
@media(max-width:850px){body.citizen-mode{overflow:auto}body.citizen-mode header{height:auto;min-height:76px;padding:14px 18px}body.citizen-mode .app-body{display:flex!important;flex-direction:column;height:auto!important;overflow:visible!important}body.citizen-mode .sidebar{width:100%!important;min-width:0!important;height:auto!important;max-height:none!important}body.citizen-mode .main-content{height:65vh!important;min-height:480px!important}body.citizen-mode #map{height:100%!important}}


/* NARRATIVE CHAPTERS AND PROJECT MEDIA */
body.citizen-mode .story-chapter{padding:28px 32px;border-bottom:1px solid rgba(18,72,59,.14);background:#fff}
body.citizen-mode .story-chapter--first{border-top:1px solid rgba(18,72,59,.14)}
body.citizen-mode .story-chapter-number{font-size:10px;font-weight:900;letter-spacing:.16em;color:#1d6b57;margin-bottom:8px}
body.citizen-mode .story-chapter h2{font-size:22px;line-height:1.12;letter-spacing:-.02em;color:#12483b;margin:0 0 12px}
body.citizen-mode .story-chapter p{font-size:12px;line-height:1.6;color:#48645b;margin:0 0 14px}
body.citizen-mode .story-media{margin:18px 0 0;background:#eff5f1;border:1px solid #d6e5df;border-radius:12px!important;overflow:hidden;box-shadow:0 8px 24px rgba(18,72,59,.08)}
body.citizen-mode .story-media img{display:block;width:100%;height:auto;object-fit:cover}
body.citizen-mode .story-media--poster img{max-height:320px;object-fit:cover;object-position:center}
body.citizen-mode .story-media figcaption{padding:10px 12px;font-size:9px;line-height:1.45;color:#577168;background:#eff5f1}
body.citizen-mode .story-back-link{display:inline-flex;margin-top:18px;padding:10px 14px;border-radius:999px!important;background:#12483b;color:#fff;text-decoration:none;font-size:10px;font-weight:800;letter-spacing:.03em}
body.citizen-mode .story-back-link:hover{background:#1d6b57}
body.citizen-mode .citizen-story p strong{color:#fff}


/* REFINED INTRO AND ADDRESS AUTOCOMPLETE */
body.citizen-mode header{height:58px;padding:0 28px}
body.citizen-mode .citizen-logo{font-size:14px;display:flex;align-items:baseline;gap:10px}
body.citizen-mode .citizen-logo span{display:inline;font-size:10px;margin:0;color:rgba(255,255,255,.72)}
body.citizen-mode .app-body{height:calc(100vh - 58px)!important}
body.citizen-mode .sidebar,body.citizen-mode .main-content{height:calc(100vh - 58px)!important}
body.citizen-mode .citizen-story{padding:24px 32px 22px}
body.citizen-mode .citizen-story h1{font-size:27px;margin-bottom:10px}
body.citizen-mode .citizen-story p{margin-bottom:16px;max-width:360px}
body.citizen-mode .address-search{position:relative}
body.citizen-mode .address-suggestions{display:none;position:absolute;left:0;right:0;top:72px;z-index:3000;background:#fff;border:1px solid #b9d2c8;border-radius:8px!important;box-shadow:0 14px 32px rgba(5,39,31,.24);max-height:230px;overflow-y:auto}
body.citizen-mode .address-suggestions.is-open{display:block}
body.citizen-mode .address-suggestion{display:block;width:100%;padding:11px 12px;border:0;border-bottom:1px solid #e1ece7;background:#fff;color:#18322b;text-align:left;font:11px/1.35 var(--font);cursor:pointer}
body.citizen-mode .address-suggestion:last-child{border-bottom:0}
body.citizen-mode .address-suggestion:hover,body.citizen-mode .address-suggestion.is-active{background:#e7f3ee;color:#12483b}
body.citizen-mode .address-suggestion strong{display:block;font-size:11px;margin-bottom:2px}
body.citizen-mode .address-suggestion small{display:block;color:#687f77;font-size:9px}
body.citizen-mode .address-search-loading{padding:10px 12px;color:#577168;font-size:10px}
body.citizen-mode .story-chapter--first{border-top:0}
@media(max-width:850px){body.citizen-mode header{min-height:58px}body.citizen-mode .main-content{height:65vh!important}}


/* FINAL MAP CONTROLS: GATES, FOUNTAINS, ORTHOIMAGE AND DIRECTORY */
body.citizen-mode .cat-btn[data-cat="fountains"]{display:none!important}
body.citizen-mode .citizen-map-toolbar{position:absolute;top:18px;left:64px;z-index:1200;display:flex;padding:3px;background:rgba(255,255,255,.94);border:1px solid rgba(18,72,59,.22);border-radius:999px!important;box-shadow:0 6px 20px rgba(18,72,59,.15);backdrop-filter:blur(8px)}
body.citizen-mode .citizen-basemap-option{border:0;background:transparent;color:#36584e;padding:8px 13px;border-radius:999px!important;font:700 10px var(--font);cursor:pointer}
body.citizen-mode .citizen-basemap-option.is-active{background:#12483b;color:#fff}
body.citizen-mode .basemap-switcher{display:none!important}
body.citizen-mode .shelter-directory{position:absolute;top:18px;right:18px;z-index:1195;width:280px;max-height:calc(100% - 36px);display:flex;flex-direction:column;background:#ffea00;border:2px solid #171717;border-radius:10px!important;box-shadow:0 12px 30px rgba(0,0,0,.2);overflow:hidden;color:#171717}
body.citizen-mode .shelter-directory-head{display:flex;justify-content:space-between;align-items:center;padding:13px 14px 11px;border-bottom:2px solid #171717}
body.citizen-mode .shelter-directory-head span{display:block;font-size:8px;font-weight:900;letter-spacing:.13em}
body.citizen-mode .shelter-directory-head strong{
    font-size:20px!important;
    line-height:1.1!important;
    font-family:var(--font)!important;
    font-weight:800!important;
}body.citizen-mode .shelter-directory-head button{width:27px;height:27px;border:2px solid #171717;border-radius:50%!important;background:#ffea00;font-size:17px;font-weight:900;cursor:pointer}
body.citizen-mode .shelter-directory-body{padding:10px 12px;overflow-y:auto;min-height:0}
body.citizen-mode .shelter-group+ .shelter-group{margin-top:12px;padding-top:10px;border-top:1px solid rgba(0,0,0,.28)}
body.citizen-mode .shelter-group h3{font-size:10px;letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px}
body.citizen-mode .shelter-list{list-style:none;display:grid;gap:3px}
body.citizen-mode .shelter-list button{display:grid;grid-template-columns:20px 1fr;gap:5px;width:100%;border:0;background:transparent;text-align:left;color:#171717;padding:4px 3px;font:700 10px/1.25 var(--font);cursor:pointer;border-radius:5px!important}
body.citizen-mode .shelter-list button:hover{background:rgba(255,255,255,.55)}
body.citizen-mode .shelter-list .shelter-index{display:grid;place-items:center;width:18px;height:18px;border-radius:50%!important;background:#171717;color:#ffea00;font-size:9px}
body.citizen-mode .shelter-directory-loading{font-size:10px;padding:8px 2px}
body.citizen-mode .shelter-directory-legend{display:grid;gap:6px;padding:10px 14px;border-top:2px solid #171717;background:#ffe500;font:700 9px var(--font)}
body.citizen-mode .shelter-directory-legend span{display:flex;align-items:center;gap:7px}
body.citizen-mode .legend-gate{width:11px;height:11px;border-radius:3px!important;border:2px solid #fff;box-shadow:0 0 0 1px #171717}
body.citizen-mode .legend-gate--indoor{background:#d41473}.legend-gate--outdoor{background:#168a48}
body.citizen-mode .legend-drop{width:10px;height:14px;background:#159bd7;border:1px solid #075f88;border-radius:60% 60% 65% 65%!important;transform:rotate(45deg)}
body.citizen-mode .shelter-directory.is-collapsed{width:auto}
body.citizen-mode .shelter-directory.is-collapsed .shelter-directory-body,body.citizen-mode .shelter-directory.is-collapsed .shelter-directory-legend{display:none}
@media(max-width:1050px){body.citizen-mode .shelter-directory{width:230px}}
@media(max-width:850px){body.citizen-mode .shelter-directory{top:70px;right:10px;max-height:calc(100% - 80px)}body.citizen-mode .citizen-map-toolbar{left:58px;top:12px}}


/* FINAL CONTENT REFINEMENTS */
body.citizen-mode .citizen-logo{display:flex;align-items:center;gap:12px}
body.citizen-mode .citizen-logo img{display:block;width:auto;height:29px;max-width:145px;object-fit:contain;filter:brightness(0) invert(1)}
body.citizen-mode .citizen-logo span{font-size:12px;font-weight:700;letter-spacing:.03em;color:#fff;opacity:.82}
body.citizen-mode .shelter-directory-head strong{font-size:27px!important;line-height:1!important;letter-spacing:-.025em;margin-top:4px}
body.citizen-mode .shelter-directory-head span{font-size:8px;letter-spacing:.16em}
body.citizen-mode .cool-network-guide{display:grid;gap:10px;margin:18px 0}
body.citizen-mode .cool-network-guide article{display:grid;grid-template-columns:52px 1fr;gap:12px;padding:13px;background:#fff9b9;border:1px solid #ead800;border-radius:10px!important}
body.citizen-mode .cool-network-icon{width:48px;height:48px;border:3px solid #171717;border-radius:12px!important;display:grid;place-items:center;background:#ffea00;color:#171717;font:900 24px/1 var(--font)}
body.citizen-mode .cool-network-icon--water{font-size:13px}
body.citizen-mode .cool-network-guide h3{margin:0 0 4px;color:#171717;font-size:13px;line-height:1.15}
body.citizen-mode .cool-network-guide p{margin:0;color:#3f3a00;font-size:10px;line-height:1.45}


/* CITIZEN DATA STORY - FIXED MAP AND ADDRESS SEARCH */
body.citizen-mode{--story-green:#1d6b57;--story-dark:#12483b;--story-cream:#f7f4ec;--story-ink:#18322b;--story-muted:#577168;overflow:hidden;background:var(--story-cream);color:var(--story-ink)}
body.citizen-mode header{height:76px;padding:0 32px;border:0;background:var(--story-dark);color:#fff}
body.citizen-mode .citizen-logo{color:#fff;font-size:18px;letter-spacing:.04em} body.citizen-mode .citizen-logo span{color:rgba(255,255,255,.8);margin-top:4px}
body.citizen-mode .app-body{display:grid!important;grid-template-columns:450px minmax(0,1fr)!important;height:calc(100vh - 76px)!important;min-height:0!important;overflow:hidden!important}
body.citizen-mode .sidebar{position:relative!important;width:450px!important;min-width:450px!important;height:calc(100vh - 76px)!important;overflow-y:auto!important;overflow-x:hidden!important;background:var(--story-cream);border:0;box-shadow:10px 0 30px rgba(18,72,59,.12);z-index:900}
body.citizen-mode .main-content{position:relative!important;width:100%!important;height:calc(100vh - 76px)!important;min-width:0!important;overflow:hidden!important;background:#e8eee9}
body.citizen-mode #map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important}
body.citizen-mode .citizen-story{padding:28px 32px 24px;background:var(--story-dark);color:#fff} body.citizen-mode .story-kicker{font-size:10px;font-weight:800;letter-spacing:.16em;color:#a9ddca;margin-bottom:12px} body.citizen-mode .citizen-story h1{font-size:29px;line-height:1.08;letter-spacing:-.035em;margin:0 0 14px} body.citizen-mode .citizen-story p{font-size:13px;line-height:1.5;color:rgba(255,255,255,.86);margin:0 0 18px}
body.citizen-mode .address-search label{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px} body.citizen-mode .address-search-row{display:flex;gap:7px} body.citizen-mode .address-search input{min-width:0;flex:1;height:44px;border:2px solid transparent;border-radius:8px!important;padding:0 12px;font:12px var(--font);color:#1d352e;background:#fff} body.citizen-mode .address-search input:focus{outline:none;border-color:#a9ddca} body.citizen-mode .address-search button{height:44px;padding:0 16px;border:0;border-radius:8px!important;background:#a9ddca;color:#123d32;font-weight:800;cursor:pointer} body.citizen-mode .address-search button:disabled{opacity:.55;cursor:wait} body.citizen-mode .address-status{min-height:18px;margin-top:7px;font-size:10px;color:#d7eee5;line-height:1.3}
body.citizen-mode .citizen-guide{padding:22px 32px 8px} body.citizen-mode .citizen-guide h2,body.citizen-mode .citizen-about h2{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--story-dark);margin-bottom:12px} body.citizen-mode .citizen-guide ol{list-style:none;display:grid;gap:12px} body.citizen-mode .citizen-guide li{display:flex;gap:11px} body.citizen-mode .citizen-guide li>span{width:27px;height:27px;flex:0 0 27px;border-radius:50%!important;display:grid;place-items:center;background:#d9ece4;color:var(--story-dark);font-weight:800} body.citizen-mode .citizen-guide strong{display:block;font-size:12px;color:var(--story-ink)} body.citizen-mode .citizen-guide small{display:block;font-size:10px;color:var(--story-muted);margin-top:2px}
body.citizen-mode #cityInfoSection{display:none!important} body.citizen-mode #catSection,body.citizen-mode #legendSection{display:block!important;padding:18px 32px;border-bottom:1px solid rgba(18,72,59,.14)} body.citizen-mode .sidebar-section h3{color:var(--story-dark);font-size:10px;letter-spacing:.12em}
body.citizen-mode .cat-grid{grid-template-columns:1fr;gap:8px;overflow:visible} body.citizen-mode .cat-btn{min-height:48px;flex-direction:row;justify-content:flex-start;text-align:left;padding:10px 14px;border:1px solid #bfd5cc;color:var(--story-dark);background:#fff;border-radius:10px!important;font-size:12px;font-weight:700} body.citizen-mode .cat-btn.active{background:var(--story-green);border-color:var(--story-green);color:#fff;box-shadow:0 6px 18px rgba(29,107,87,.18)}
body.citizen-mode .legend-bar,body.citizen-mode .legend-labels{display:none!important} body.citizen-mode .citizen-legend{display:grid;gap:10px} body.citizen-mode .citizen-legend>div{display:flex;align-items:center;gap:10px} body.citizen-mode .citizen-legend>div>span:last-child{display:flex;flex-direction:column} body.citizen-mode .citizen-legend strong{font-size:11px;color:var(--story-ink)} body.citizen-mode .citizen-legend small{font-size:9px;color:var(--story-muted)} body.citizen-mode .legend-dot{width:15px;height:15px;border-radius:50%!important;border:2px solid #fff;box-shadow:0 0 0 1px rgba(24,50,43,.18)} body.citizen-mode .legend-dot--green{background:#22c55e} body.citizen-mode .legend-dot--red{background:#ef4444} body.citizen-mode .legend-dot--gray{background:#9ca3af}
body.citizen-mode .controls-row{margin-top:14px} body.citizen-mode .steps-wrap:first-child{display:none} body.citizen-mode .opacity-slider-wrap{width:100%;padding:0}
body.citizen-mode .citizen-about{padding:18px 32px 28px;border-top:1px solid rgba(18,72,59,.14)} body.citizen-mode .citizen-about p{font-size:10px;line-height:1.45;color:var(--story-muted)} body.citizen-mode .project-note{margin-top:7px;color:var(--story-dark)!important;font-weight:700}
body.citizen-mode .bottom-panel,body.citizen-mode .viewport-donut{display:none!important} body.citizen-mode .basemap-switcher{position:absolute!important;top:18px!important;right:18px!important}
body.citizen-mode .citizen-popup{min-width:245px;text-align:center;padding:23px 18px 18px!important} body.citizen-mode .citizen-popup-address{font-size:9px;line-height:1.35;color:var(--story-muted);padding:0 16px 9px;border-bottom:1px solid #d9e8e2;margin-bottom:10px} body.citizen-mode .citizen-popup .popup-big{display:block;font-size:31px;color:var(--story-dark)} body.citizen-mode .citizen-popup .popup-badge{display:inline-block}
@media(max-width:850px){body.citizen-mode{overflow:auto}body.citizen-mode header{height:auto;min-height:76px;padding:14px 18px}body.citizen-mode .app-body{display:flex!important;flex-direction:column;height:auto!important;overflow:visible!important}body.citizen-mode .sidebar{width:100%!important;min-width:0!important;height:auto!important;max-height:none!important}body.citizen-mode .main-content{height:65vh!important;min-height:480px!important}body.citizen-mode #map{height:100%!important}}


/* NARRATIVE CHAPTERS AND PROJECT MEDIA */
body.citizen-mode .story-chapter{padding:28px 32px;border-bottom:1px solid rgba(18,72,59,.14);background:#fff}
body.citizen-mode .story-chapter--first{border-top:1px solid rgba(18,72,59,.14)}
body.citizen-mode .story-chapter-number{font-size:10px;font-weight:900;letter-spacing:.16em;color:#1d6b57;margin-bottom:8px}
body.citizen-mode .story-chapter h2{font-size:22px;line-height:1.12;letter-spacing:-.02em;color:#12483b;margin:0 0 12px}
body.citizen-mode .story-chapter p{font-size:12px;line-height:1.6;color:#48645b;margin:0 0 14px}
body.citizen-mode .story-media{margin:18px 0 0;background:#eff5f1;border:1px solid #d6e5df;border-radius:12px!important;overflow:hidden;box-shadow:0 8px 24px rgba(18,72,59,.08)}
body.citizen-mode .story-media img{display:block;width:100%;height:auto;object-fit:cover}
body.citizen-mode .story-media--poster img{max-height:320px;object-fit:cover;object-position:center}
body.citizen-mode .story-media figcaption{padding:10px 12px;font-size:9px;line-height:1.45;color:#577168;background:#eff5f1}
body.citizen-mode .story-back-link{display:inline-flex;margin-top:18px;padding:10px 14px;border-radius:999px!important;background:#12483b;color:#fff;text-decoration:none;font-size:10px;font-weight:800;letter-spacing:.03em}
body.citizen-mode .story-back-link:hover{background:#1d6b57}
body.citizen-mode .citizen-story p strong{color:#fff}


/* REFINED INTRO AND ADDRESS AUTOCOMPLETE */
body.citizen-mode header{height:58px;padding:0 28px}
body.citizen-mode .citizen-logo{font-size:14px;display:flex;align-items:baseline;gap:10px}
body.citizen-mode .citizen-logo span{display:inline;font-size:10px;margin:0;color:rgba(255,255,255,.72)}
body.citizen-mode .app-body{height:calc(100vh - 58px)!important}
body.citizen-mode .sidebar,body.citizen-mode .main-content{height:calc(100vh - 58px)!important}
body.citizen-mode .citizen-story{padding:24px 32px 22px}
body.citizen-mode .citizen-story h1{font-size:27px;margin-bottom:10px}
body.citizen-mode .citizen-story p{margin-bottom:16px;max-width:360px}
body.citizen-mode .address-search{position:relative}
body.citizen-mode .address-suggestions{display:none;position:absolute;left:0;right:0;top:72px;z-index:3000;background:#fff;border:1px solid #b9d2c8;border-radius:8px!important;box-shadow:0 14px 32px rgba(5,39,31,.24);max-height:230px;overflow-y:auto}
body.citizen-mode .address-suggestions.is-open{display:block}
body.citizen-mode .address-suggestion{display:block;width:100%;padding:11px 12px;border:0;border-bottom:1px solid #e1ece7;background:#fff;color:#18322b;text-align:left;font:11px/1.35 var(--font);cursor:pointer}
body.citizen-mode .address-suggestion:last-child{border-bottom:0}
body.citizen-mode .address-suggestion:hover,body.citizen-mode .address-suggestion.is-active{background:#e7f3ee;color:#12483b}
body.citizen-mode .address-suggestion strong{display:block;font-size:11px;margin-bottom:2px}
body.citizen-mode .address-suggestion small{display:block;color:#687f77;font-size:9px}
body.citizen-mode .address-search-loading{padding:10px 12px;color:#577168;font-size:10px}
body.citizen-mode .story-chapter--first{border-top:0}
@media(max-width:850px){body.citizen-mode header{min-height:58px}body.citizen-mode .main-content{height:65vh!important}}


/* FINAL MAP / POPUP / LEGEND ALIGNMENT */
body.citizen-mode .shelter-directory-head span{text-transform:none;font-size:10px;font-weight:800;letter-spacing:.03em}
body.citizen-mode .legend-drop{display:inline-block;width:12px!important;height:17px!important;background:#159bd7!important;border:2px solid #075f88!important;border-radius:70% 70% 70% 15%!important;transform:rotate(45deg)!important;transform-origin:center}
body.citizen-mode .citizen-simple-popup{min-width:170px;padding:18px 20px!important;text-align:left}
body.citizen-mode .simple-popup-title{font-size:15px;font-weight:800;color:#12483b;text-transform:none;letter-spacing:0}
body.citizen-mode .simple-popup-name{font-size:11px;color:#526c63;margin-top:6px}
body.citizen-mode .citizen-hex-popup{text-align:center;min-width:220px;padding:18px 20px!important}
body.citizen-mode .citizen-hex-popup .simple-popup-title{font-size:14px}
body.citizen-mode .hex-popup-time{font-size:29px;font-weight:900;color:#12483b;margin:7px 0 5px}
body.citizen-mode .hex-popup-result{display:inline-block;padding:6px 11px;border-radius:999px!important;font-size:10px;font-weight:800}
body.citizen-mode .citizen-hex-popup.is-reachable .hex-popup-result{background:#dcfce7;color:#167844;border:1px solid #8ee0ad}
body.citizen-mode .citizen-hex-popup.is-far .hex-popup-result{background:#fee2e2;color:#b42318;border:1px solid #fca5a5}
body.citizen-mode .citizen-hex-popup.is-neutral .hex-popup-result{background:#eef1f3;color:#55616b}
body.citizen-mode .shelter-number-wrapper{background:transparent!important;border:0!important}
body.citizen-mode .shelter-map-number{display:grid;width:18px;height:18px;place-items:center;border-radius:50%!important;color:#fff;font:900 9px/1 var(--font);border:2px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.4)}
body.citizen-mode .shelter-map-number--outdoor{background:#168a48}
body.citizen-mode .shelter-map-number--indoor{background:#d41473}
body.citizen-mode .shelter-number-tooltip{font:700 10px var(--font);color:#12483b;border:1px solid #9bbcaf;box-shadow:0 5px 15px rgba(0,0,0,.14)}
body.citizen-mode .shelter-directory-legend .legend-gate--indoor{background:#d41473!important}
body.citizen-mode .shelter-directory-legend .legend-gate--outdoor{background:#168a48!important}


/* FINAL TARGETED UI FIXES */
body.citizen-mode .shelter-directory-head strong{
  font-family:var(--font)!important;
  font-size:22px!important;
  line-height:1.08!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
  margin-top:4px!important;
}
body.citizen-mode .shelter-directory-head span{
  font-family:var(--font)!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.02em!important;
}
body.citizen-mode .citizen-logo img{
  display:block!important;
  height:25px!important;
  width:auto!important;
  max-width:125px!important;
  object-fit:contain!important;
  filter:none!important;
}
body.citizen-mode .citizen-logo span{
  font-family:var(--font)!important;
  font-size:10px!important;
  font-weight:700!important;
  color:rgba(255,255,255,.72)!important;
}
body.citizen-mode .fountain-number-tooltip,
body.citizen-mode .shelter-number-tooltip{
  font-family:var(--font)!important;
  font-size:11px!important;
  font-weight:700!important;
  color:#12483b!important;
  background:#fff!important;
  border:1px solid #9bbcaf!important;
  border-radius:4px!important;
  box-shadow:0 5px 15px rgba(0,0,0,.14)!important;
  padding:7px 9px!important;
}


/* EXACT WALKING-TIME POPUP STYLE */
body.citizen-mode .citizen-hex-popup{
  min-width:260px!important;
  padding:18px 20px!important;
  text-align:left!important;
}
body.citizen-mode .citizen-hex-popup{
    min-width:260px!important;
    padding:18px 20px!important;
    text-align:center!important;
}

body.citizen-mode .walking-time-label{
    font-size:13px;
    line-height:1.35;
    font-weight:700;
    color:#55746a;
}
body.citizen-mode .walking-time-value{
    margin-top:12px;
    font-size:56px;
    line-height:.95;
    font-weight:900;
    color:#12483b;
    letter-spacing:-.04em;
}
/* FINAL SCROLLING CITIZEN STORY - complete layout adjustments */
html{scroll-behavior:smooth}
body.citizen-mode{height:auto!important;min-height:100vh!important;overflow-x:hidden!important;overflow-y:auto!important;display:block!important;background:var(--story-cream)!important;color:var(--story-ink)!important}
body.citizen-mode header{position:sticky!important;top:0;z-index:2000;height:58px!important;padding:0 28px!important}
body.citizen-mode .app-body{display:block!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
body.citizen-mode .sidebar{width:100%!important;min-width:0!important;height:auto!important;overflow:visible!important;border:0!important;box-shadow:none!important;background:#fff!important}
body.citizen-mode .citizen-story{min-height:calc(100vh - 58px)!important;padding:clamp(48px,7vw,96px) 32px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important}
body.citizen-mode .citizen-story>*{width:min(1500px,100%)!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
body.citizen-mode .story-kicker{font-size:clamp(18px,1.45vw,24px)!important;letter-spacing:.22em!important;margin-bottom:24px!important}
body.citizen-mode .citizen-story h1{font-size:clamp(54px,5.15vw,98px)!important;line-height:1!important;letter-spacing:-.045em!important;max-width:none!important;white-space:nowrap!important;margin-bottom:26px!important}
body.citizen-mode .citizen-story p{font-size:clamp(17px,1.35vw,23px)!important;max-width:900px!important;margin-left:auto!important;margin-right:auto!important;text-align:center!important}
body.citizen-mode .address-search{width:min(980px,100%)!important;max-width:980px!important;margin:28px auto 0!important;text-align:left!important}
body.citizen-mode .address-search>*{text-align:left!important}
body.citizen-mode .story-scroll-cue{display:inline-flex!important;width:auto!important;margin:42px auto 0!important;color:#a9ddca;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;text-align:center!important}
body.citizen-mode .story-chapter{min-height:100vh;padding:clamp(64px,8vw,112px) max(7vw,32px)!important;display:grid!important;grid-template-columns:minmax(280px,.78fr) minmax(460px,1.22fr)!important;align-content:center!important;column-gap:clamp(44px,7vw,112px)!important;row-gap:24px!important;border-bottom:1px solid #d6e5df!important}
body.citizen-mode .story-chapter>*:not(.story-media):not(.story-media-grid){grid-column:1}
body.citizen-mode .story-chapter>.story-media,body.citizen-mode .story-chapter>.story-media-grid{grid-column:2;grid-row:1 / span 14;align-self:center;width:100%;max-width:940px;margin:0!important}
body.citizen-mode .story-chapter h2{font-size:clamp(34px,4vw,56px)!important}
body.citizen-mode .story-chapter p{font-size:clamp(15px,1.25vw,18px)!important}
body.citizen-mode .story-media img{width:100%!important;height:auto!important;max-height:72vh!important;object-fit:contain!important;background:#fff}
body.citizen-mode .story-media-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:22px!important;align-items:stretch}
body.citizen-mode .story-media-grid .story-media{margin:0!important;display:flex!important;flex-direction:column!important;height:100%!important}
body.citizen-mode .story-media-grid .story-media img{display:block!important;width:100%!important;height:clamp(280px,43vh,460px)!important;max-height:none!important;object-fit:cover!important;flex:1}
body.citizen-mode .story-media-grid .story-media figcaption{display:block!important;min-height:58px}
body.citizen-mode .sidebar>.sidebar-section,body.citizen-mode .citizen-about{width:min(1180px,calc(100% - 64px));margin:0 auto;padding:28px 0!important}
body.citizen-mode .citizen-technical-hidden{display:none!important}
body.citizen-mode .map-transition{min-height:0!important;padding:28px 32px 30px!important;border-top:1px solid #b9d3ca;border-bottom:1px solid #b9d3ca;background:#fff;display:flex;align-items:center;justify-content:center}
body.citizen-mode .map-transition .story-back-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:min(560px,calc(100% - 32px))!important;min-height:58px!important;margin:0 auto!important;padding:14px 34px!important;border-radius:999px!important;background:#12483b!important;color:#fff!important;text-decoration:none!important;font-size:17px!important;font-weight:800!important;letter-spacing:.01em!important;box-shadow:0 8px 22px rgba(18,72,59,.18)!important}
body.citizen-mode .map-transition .story-back-link:hover{background:#1d6b57!important;transform:translateY(-1px)}
body.citizen-mode .main-content{position:relative!important;width:100%!important;height:100vh!important;min-height:720px!important;overflow:hidden!important;background:#e8eee9}
body.citizen-mode #map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important}
body.citizen-mode .bottom-panel{display:none!important}
body.citizen-mode .map-story-controls{position:absolute!important;left:28px!important;top:86px!important;z-index:1190!important;width:min(380px,calc(100% - 56px))!important;max-height:calc(100% - 108px)!important;overflow:auto!important;background:rgba(255,255,255,.96)!important;border:1px solid #b9d3ca!important;border-radius:12px!important;box-shadow:0 14px 36px rgba(18,72,59,.2)!important;padding:18px!important;color:#12483b!important}
body.citizen-mode .citizen-map-toolbar{top:18px!important;left:82px!important;z-index:1200!important}
body.citizen-mode .map-controls-intro{padding:0 0 14px;border-bottom:1px solid #d6e5df}
body.citizen-mode .map-controls-intro h2{font-size:28px!important;line-height:1.08!important;margin:0 0 7px!important;color:#12483b!important}
body.citizen-mode .map-controls-intro p{font-size:12px!important;line-height:1.45!important;color:#577168!important;margin:0!important}
body.citizen-mode .map-story-controls .sidebar-section{display:block!important;width:auto!important;margin:0!important;padding:16px 0 0!important;border:0!important}
body.citizen-mode .map-story-controls #catSection{border-bottom:1px solid #d6e5df!important;padding-bottom:16px!important}
body.citizen-mode .map-story-controls .cat-grid{grid-template-columns:1fr!important}
body.citizen-mode .map-story-controls .cat-btn{min-height:48px!important;flex-direction:row!important;justify-content:flex-start!important;padding:10px 14px!important;text-align:left!important;font-size:12px!important}
body.citizen-mode .shelter-directory{position:absolute!important;top:22px!important;right:22px!important;max-height:calc(100% - 44px)!important}
body.citizen-mode .viewport-donut,body.citizen-mode .basemap-switcher{position:absolute!important}
@media(max-width:1250px){body.citizen-mode .citizen-story h1{font-size:clamp(48px,6.3vw,78px)!important}}
@media(max-width:900px){body.citizen-mode .citizen-story h1{white-space:normal!important}body.citizen-mode .story-chapter{min-height:auto!important;grid-template-columns:1fr!important;padding-top:64px!important;padding-bottom:64px!important}body.citizen-mode .story-chapter>*:not(.story-media):not(.story-media-grid),body.citizen-mode .story-chapter>.story-media,body.citizen-mode .story-chapter>.story-media-grid{grid-column:1!important;grid-row:auto!important}body.citizen-mode .story-media-grid{grid-template-columns:1fr!important;margin-top:20px!important}body.citizen-mode .main-content{height:1150px!important}body.citizen-mode .citizen-map-toolbar{left:64px!important}body.citizen-mode .map-story-controls{left:16px!important;top:82px!important;width:calc(100% - 32px)!important;max-height:390px!important}body.citizen-mode .shelter-directory{top:auto!important;bottom:16px!important;right:16px!important;width:calc(100% - 32px)!important;max-height:330px!important}}

/* READABLE ABOUT THIS MAP BLOCK */
body.citizen-mode .map-transition{
  flex-direction:column!important;
  gap:30px!important;
  padding:30px 32px 34px!important;
}
body.citizen-mode .map-transition .citizen-about{
  width:min(960px,calc(100% - 32px))!important;
  margin:0 auto!important;
  padding:30px 36px!important;
  border:1px solid #b9d3ca!important;
  border-radius:12px!important;
  background:#f7fbf9!important;
  text-align:center!important;
  box-shadow:0 8px 24px rgba(18,72,59,.08)!important;
}
body.citizen-mode .map-transition .citizen-about h2{
  margin:0 0 18px!important;
  font-size:clamp(24px,2vw,32px)!important;
  line-height:1.15!important;
  text-transform:uppercase!important;
  letter-spacing:.12em!important;
  color:#12483b!important;
}
body.citizen-mode .map-transition .citizen-about p{
  max-width:820px!important;
  margin:0 auto 12px!important;
  font-size:clamp(17px,1.25vw,21px)!important;
  line-height:1.65!important;
  color:#36584e!important;
}
body.citizen-mode .map-transition .citizen-about p strong{
  color:#12483b!important;
  font-weight:800!important;
}
body.citizen-mode .map-transition .citizen-about .project-note{
  margin-top:18px!important;
  margin-bottom:0!important;
  font-size:clamp(16px,1.1vw,19px)!important;
  font-weight:800!important;
  color:#12483b!important;
}
@media(max-width:700px){
  body.citizen-mode .map-transition{padding:24px 16px 28px!important;gap:22px!important}
  body.citizen-mode .map-transition .citizen-about{width:100%!important;padding:24px 20px!important}
}

/* LARGE VERTICAL IMAGES FOR CHAPTER 03 */
body.citizen-mode #storyChapter03{
  min-height:auto!important;
  grid-template-columns:minmax(320px,.72fr) minmax(600px,1.28fr)!important;
  align-items:start!important;
  padding-top:80px!important;
  padding-bottom:80px!important;
}
body.citizen-mode #storyChapter03 .story-media-grid{
  display:flex!important;
  flex-direction:column!important;
  gap:34px!important;
  width:100%!important;
  max-width:1050px!important;
}
body.citizen-mode #storyChapter03 .story-media-grid .story-media{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:auto!important;
}
body.citizen-mode #storyChapter03 .story-media-grid .story-media img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
}
body.citizen-mode #storyChapter03 .story-media-grid .story-media figcaption{
  min-height:0!important;
  padding:14px 16px!important;
  font-size:12px!important;
  line-height:1.5!important;
}
body.citizen-mode #storyChapter03 h2{
  font-size:clamp(46px,4.2vw,68px)!important;
  line-height:1.04!important;
}
body.citizen-mode #storyChapter03 p{
  font-size:clamp(19px,1.4vw,23px)!important;
  line-height:1.65!important;
}

/* ENLARGED, MAP-CONSISTENT EXPLORE PANEL */
body.citizen-mode .map-story-controls{
  width:min(430px,calc(100% - 56px))!important;
  padding:22px!important;
}
body.citizen-mode .map-controls-intro h2{
  font-size:36px!important;
  line-height:1.06!important;
}
body.citizen-mode .map-controls-intro p{
  font-size:15px!important;
  line-height:1.55!important;
}
body.citizen-mode .map-story-controls h3{
  font-size:12px!important;
  letter-spacing:.13em!important;
}
body.citizen-mode .map-story-controls .citizen-legend{
  display:grid!important;
  gap:14px!important;
  margin-top:14px!important;
}
body.citizen-mode .map-story-controls .citizen-legend>div{
  display:grid!important;
  grid-template-columns:18px 1fr!important;
  gap:11px!important;
  align-items:start!important;
}
body.citizen-mode .map-story-controls .citizen-legend strong{
  display:block!important;
  font-size:14px!important;
  line-height:1.25!important;
  color:#12483b!important;
}
body.citizen-mode .map-story-controls .citizen-legend small{
  display:block!important;
  margin-top:3px!important;
  font-size:11px!important;
  line-height:1.35!important;
  color:#577168!important;
}
body.citizen-mode .map-story-controls .legend-dot{
  width:15px!important;
  height:15px!important;
  margin-top:2px!important;
  border:2px solid #fff!important;
  border-radius:50%!important;
  box-shadow:0 0 0 1px rgba(18,72,59,.24)!important;
}
body.citizen-mode .legend-dot--green{background:#22c55e!important}
body.citizen-mode .legend-dot--yellow{background:#eab308!important}
body.citizen-mode .legend-dot--red{background:#ef4444!important}
body.citizen-mode .legend-dot--gray{background:#9ca3af!important}
body.citizen-mode .threshold-toggle-hidden{display:none!important}
body.citizen-mode .map-story-controls .legend-labels{
  font-size:11px!important;
  margin-top:10px!important;
}
body.citizen-mode .map-story-controls .opacity-slider-wrap{
  width:100%!important;
}
@media(max-width:1050px){
  body.citizen-mode #storyChapter03{grid-template-columns:1fr!important}
  body.citizen-mode #storyChapter03>*:not(.story-media-grid),
  body.citizen-mode #storyChapter03>.story-media-grid{grid-column:1!important;grid-row:auto!important}
  body.citizen-mode #storyChapter03 .story-media-grid{margin-top:26px!important;max-width:none!important}
}

/* FINAL POLISH: address search, photo captions, directory symbols and address popup */
body.citizen-mode .address-search{width:min(1180px,100%)!important;max-width:1180px!important}
body.citizen-mode .address-search-row{gap:10px!important}
body.citizen-mode .address-search input{height:54px!important;padding:0 18px!important;font-size:15px!important}
body.citizen-mode .address-search button{height:54px!important;padding:0 24px!important;font-size:15px!important}
body.citizen-mode .address-search label{font-size:13px!important;margin-bottom:9px!important}

body.citizen-mode .story-media figcaption,
body.citizen-mode #storyChapter03 .story-media-grid .story-media figcaption{
  padding:15px 18px!important;
  font-size:14px!important;
  line-height:1.55!important;
  color:#36584e!important;
}

body.citizen-mode .shelter-directory-legend{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;padding:12px 14px!important}
body.citizen-mode .directory-symbol-row{display:grid!important;grid-template-columns:26px 1fr!important;gap:9px!important;align-items:center!important;font-size:11px!important;font-weight:800!important}
body.citizen-mode .directory-map-symbol{display:grid!important;place-items:center!important;width:24px!important;height:28px!important}
body.citizen-mode .directory-map-symbol svg{display:block!important;width:22px!important;height:27px!important;overflow:visible!important}

body.citizen-mode .citizen-hex-popup{min-width:330px!important;max-width:360px!important;padding:20px 22px!important;text-align:left!important;color:#12483b!important}
body.citizen-mode .popup-info-row{display:grid!important;gap:5px!important}
body.citizen-mode .popup-info-label{font-size:11px!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#6b8179!important}
body.citizen-mode .popup-info-address{font-size:15px!important;line-height:1.4!important;color:#12483b!important}
body.citizen-mode .popup-info-divider{height:1px!important;margin:15px 0!important;background:#d6e5df!important}
body.citizen-mode .popup-info-row--time{grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;column-gap:18px!important}
body.citizen-mode .popup-info-row--time .popup-info-label{max-width:190px!important}
body.citizen-mode .popup-info-row--time .walking-time-value{margin:0!important;font-size:34px!important;line-height:1!important;color:#53006c!important;white-space:nowrap!important}
body.citizen-mode .popup-info-row--shelter{margin-top:17px!important;padding:13px 14px!important;border-radius:9px!important;background:#eff7f4!important;border:1px solid #cbe1d9!important}
body.citizen-mode .popup-shelter-name{font-size:16px!important;line-height:1.3!important;color:#12483b!important}


/* CITIZEN-FIRST ENTRY AND RESULT FLOW */
body.citizen-mode #storyHero{min-height:calc(100vh - 52px);display:flex;flex-direction:column;justify-content:center;padding:72px clamp(22px,7vw,110px);background:linear-gradient(135deg,#f6fbf8 0%,#ffffff 55%,#f7effa 100%)}
body.citizen-mode #storyHero .story-lead{max-width:680px;margin:8px 0 32px;color:#516b62;font-size:18px}
body.citizen-mode .citizen-choice-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:20px;width:min(1080px,100%)}
body.citizen-mode .citizen-choice{position:relative;padding:28px;border:1px solid #cfe0d9;border-radius:16px!important;background:rgba(255,255,255,.92);box-shadow:0 14px 38px rgba(18,72,59,.08)}
body.citizen-mode .citizen-choice-number{display:grid;place-items:center;width:34px;height:34px;margin-bottom:18px;border-radius:50%!important;background:#53006c;color:white;font-weight:800}
body.citizen-mode .citizen-choice h2{margin:0 0 8px;color:#12483b;font-size:25px}
body.citizen-mode .citizen-choice p{color:#587067;line-height:1.55}
body.citizen-mode .address-search{margin-top:22px}
body.citizen-mode .address-search label{display:block;margin-bottom:8px;color:#12483b;font-weight:800}
body.citizen-mode .address-search-row{display:grid;grid-template-columns:1fr auto;gap:10px}
body.citizen-mode .address-search-row input{min-width:0;padding:14px 16px;border:1px solid #a9c9bd;border-radius:9px!important;font:inherit;color:#12483b;background:#fff}
body.citizen-mode .address-search-row button,body.citizen-mode .citizen-show-map{padding:13px 18px;border:0;border-radius:9px!important;background:#53006c;color:#fff;font-weight:800;cursor:pointer}
body.citizen-mode .citizen-secondary-action{margin-top:22px;padding:13px 18px;border:2px solid #53006c;border-radius:9px!important;background:#fff;color:#53006c;font-weight:800;cursor:pointer}
body.citizen-mode .citizen-shelter-result{margin-top:22px;padding:22px;border:1px solid #b9d9ce;border-radius:12px!important;background:#eff8f4}
body.citizen-mode .citizen-shelter-result[hidden]{display:none!important}
body.citizen-mode .result-eyebrow{margin-bottom:6px;color:#6b8179;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
body.citizen-mode .citizen-shelter-result h3{margin:0;color:#12483b;font-size:24px}
body.citizen-mode .result-address{margin-top:5px!important;font-size:13px}
body.citizen-mode .result-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}
body.citizen-mode .result-details>div{padding:13px;border-radius:9px!important;background:#fff}
body.citizen-mode .result-details span{display:block;margin-bottom:5px;color:#6b8179;font-size:10px;font-weight:800;text-transform:uppercase}
body.citizen-mode .result-details strong{color:#12483b;line-height:1.35}
body.citizen-mode .result-demo-note{margin:0 0 15px!important;font-size:11px!important;font-style:italic}
body.citizen-mode .address-status{min-height:20px;margin-top:10px;color:#516b62;font-weight:700}
body.citizen-mode .citizen-map-closed{display:none!important}
@media(max-width:820px){body.citizen-mode .citizen-choice-grid{grid-template-columns:1fr}body.citizen-mode .result-details{grid-template-columns:1fr}body.citizen-mode .address-search-row{grid-template-columns:1fr}}

/* FINAL CITIZEN HOME REFINEMENTS */
body.citizen-mode #storyHero{padding-top:52px!important;padding-bottom:58px!important;justify-content:flex-start!important}
body.citizen-mode #storyHero .story-kicker{font-size:clamp(34px,3.2vw,54px)!important;line-height:1!important;letter-spacing:.12em!important;color:#12483b!important;margin:34px 0 18px!important;font-weight:900!important}
body.citizen-mode #storyHero h1{font-size:clamp(42px,4.5vw,76px)!important;line-height:1.04!important;color:#53006c!important;opacity:1!important;white-space:normal!important;max-width:1200px!important;margin-bottom:18px!important}
body.citizen-mode #storyHero .story-lead{font-size:clamp(18px,1.35vw,23px)!important;margin-bottom:30px!important}
body.citizen-mode .citizen-choice-grid{width:min(1500px,100%)!important;grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr)!important}
body.citizen-mode .citizen-choice{min-height:330px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
body.citizen-mode .citizen-choice--map .citizen-secondary-action{align-self:center!important}
body.citizen-mode .cat-btn[data-cat="shelter_indout_2027"]{display:none!important}
@media(max-width:820px){body.citizen-mode #storyHero{padding-top:30px!important}body.citizen-mode .citizen-choice-grid{grid-template-columns:1fr!important}body.citizen-mode .citizen-choice{min-height:0!important}}


/* CURRENT NETWORK ONLY: simplified map */
body.citizen-mode #catSection{display:none!important}
body.citizen-mode .map-controls-intro{border-bottom:0!important;padding-bottom:0!important}
body.citizen-mode .shelter-directory-legend{cursor:default!important}
body.citizen-mode .shelter-directory-body .shelter-list button{grid-template-columns:28px 1fr!important;padding:8px 5px!important;font-size:12px!important}
body.citizen-mode .shelter-index{width:24px!important;height:24px!important}
