:root {
  --bg: #070809;
  --bg-alt: #101214;
  --panel: #101214;
  --panel-raised: #171a1d;
  --field: #0b0d0f;
  --map-bg: #151719;
  --ink: #f2f4f5;
  --muted: #9aa3aa;
  --soft: #c4c9cc;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #d8dde0;
  --accent-ink: #0b0d0f;
  --accent-soft: rgba(216, 221, 224, 0.16);
  --accent-wash: rgba(216, 221, 224, 0.05);
  --selection: rgba(216, 221, 224, 0.22);
  --primary-top: #f7f8f8;
  --primary-bottom: #cfd5d8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --shadow-tight: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  color-scheme: dark;
}

body {
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: var(--selection);
}

.app-shell {
  display: grid;
  grid-template-areas: "sidebar map";
  grid-template-columns: clamp(330px, 34vw, 390px) minmax(0, 1fr);
  height: 100dvh;
  min-height: 620px;
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  grid-area: sidebar;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--accent-wash), transparent 34%),
    var(--panel);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
  opacity: 1;
  transform: translateX(0);
}

.app-shell.sidebar-collapsed .sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 18px));
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-title {
  position: relative;
  min-width: 0;
}

.brand-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 1.8vw, 1.72rem);
  line-height: 1.08;
}

.help-button {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #c9ced2;
  cursor: pointer;
  font-size: 0.78rem;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.help-button:hover,
.help-button:focus-visible,
.help-button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.help-popover {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: 6px;
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-tight);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  backdrop-filter: blur(14px);
}

.help-popover strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.help-popover span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.brand-title:hover .help-popover,
.brand-title:focus-within .help-popover,
.help-popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.icon-button,
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.icon-button {
  width: 40px;
  flex: 0 0 40px;
}

.secondary-button,
.primary-button {
  padding: 0 13px;
  font-weight: 700;
}

.primary-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, var(--primary-top), var(--primary-bottom));
  color: var(--accent-ink);
}

.icon-button:hover,
.secondary-button:hover,
.primary-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.secondary-button.active {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--accent-soft), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px var(--accent-soft);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 12px 9px;
  border-right: 1px solid var(--line);
  text-align: center;
  background: rgba(255, 255, 255, 0.018);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input::placeholder {
  color: #6f7880;
}

.search-field {
  position: relative;
  grid-column: 1 / -1;
}

.search-field i {
  position: absolute;
  left: 13px;
  bottom: 10px;
  color: #7d858b;
  pointer-events: none;
}

.search-field input {
  padding: 0 12px 0 38px;
}

.field select {
  padding: 0 36px 0 10px;
}

.filter-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field.wide {
  grid-column: 1 / -1;
}

.button-row {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
}

.map-note {
  display: grid;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.map-note h2 {
  margin: 0;
  color: #f7f8f8;
  font-size: 0.86rem;
  line-height: 1.2;
}

.map-note p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.legend {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.legend::-webkit-scrollbar {
  display: none;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-wash);
  color: #c5cbd0;
  font-size: 0.7rem;
  font-weight: 700;
}

.legend-dot,
.row-icon,
.popup-icon {
  --marker-color: #d7dadd;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #22262a;
  color: #d5d9dc;
  font-size: 0.72rem;
}

.landmark-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  scrollbar-color: #3c4247 transparent;
  outline: none;
}

.landmark-list.collapsed {
  display: none;
}

.landmark-list.list-flash {
  background: linear-gradient(180deg, var(--accent-wash), transparent 72%);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.landmark-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.landmark-row.group-row {
  grid-template-columns: 32px 1fr auto;
  align-items: center;
}

.landmark-row:hover,
.landmark-row:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.row-count {
  display: inline-grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.24);
  color: #d7dadd;
  font-size: 0.86rem;
}

.row-title {
  display: block;
  color: #f4f6f7;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.row-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.map-pane {
  grid-area: map;
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--map-bg);
}

.sidebar-restore {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 850;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-tight);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
  backdrop-filter: blur(12px);
}

.sidebar-restore:hover,
.sidebar-restore:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--panel-raised);
  outline: none;
  transform: translateY(-7px);
}

.app-shell.sidebar-collapsed .sidebar-restore {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.app-shell.sidebar-collapsed .sidebar-restore:hover,
.app-shell.sidebar-collapsed .sidebar-restore:focus-visible {
  transform: translateY(-1px);
}

#map {
  width: 100%;
  height: 100%;
  background: var(--map-bg);
}

.openmap {
  background: var(--map-bg);
}

.openmap .leaflet-container,
.leaflet-container {
  font: inherit;
  background: var(--map-bg);
}

.leaflet-tile {
  filter: none;
}

.leaflet-control-zoom a,
.leaflet-bar a {
  border-color: var(--line) !important;
  background: rgba(17, 19, 21, 0.92) !important;
  color: #f1f3f4 !important;
}

.leaflet-control-zoom a:hover,
.leaflet-bar a:hover {
  background: #252a2e !important;
}

.leaflet-control-attribution {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 10, 11, 0.72) !important;
  color: #aeb5ba !important;
}

.leaflet-control-attribution a {
  color: #d5dadd !important;
}

.openmap-marker-wrap {
  border: 0;
  background: transparent;
}

.openmap-landmark-marker,
.openmap-city-marker {
  display: grid;
  justify-items: center;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease;
}

.openmap-landmark-marker {
  grid-template-rows: 28px auto;
  width: 96px;
}

.openmap-landmark-marker img {
  display: block;
  width: 46px;
  height: 30px;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.72));
}

.openmap-landmark-marker > span {
  display: -webkit-box;
  max-width: 92px;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
  text-shadow:
    -1px -1px 0 #0b0d0f,
    1px -1px 0 #0b0d0f,
    -1px 1px 0 #0b0d0f,
    1px 1px 0 #0b0d0f,
    0 3px 5px rgba(0, 0, 0, 0.62);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.openmap-city-marker {
  width: 86px;
}

.openmap-group-marker {
  width: 104px;
}

.openmap-marker-wrap:hover .openmap-landmark-marker,
.openmap-marker-wrap:focus-visible .openmap-landmark-marker,
.openmap-marker-wrap:hover .openmap-city-marker,
.openmap-marker-wrap:focus-visible .openmap-city-marker {
  transform: scale(1.12);
}

.openmap-popup .leaflet-popup-content {
  max-height: min(300px, calc(56dvh - 112px));
  margin: 12px;
  overflow: auto;
  scrollbar-color: #3c4247 transparent;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow-tight);
}

.leaflet-popup-close-button {
  color: #d7dadd !important;
}

.leaflet-popup-close-button:hover {
  color: #fff !important;
}

.city-miniature {
  position: relative;
  display: block;
  width: 52px;
  height: 38px;
}

.city-miniature img {
  display: block;
  width: 52px;
  height: 36px;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.72));
}

.city-miniature strong {
  position: absolute;
  right: -5px;
  bottom: 0;
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, #4f555a, #1e2225);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.42);
}

.city-marker-label,
.city-marker-hint {
  display: -webkit-box;
  max-width: 84px;
  overflow: hidden;
  line-height: 1.08;
  text-shadow:
    -1px -1px 0 #0b0d0f,
    1px -1px 0 #0b0d0f,
    -1px 1px 0 #0b0d0f,
    1px 1px 0 #0b0d0f,
    0 3px 5px rgba(0, 0, 0, 0.62);
  -webkit-box-orient: vertical;
}

.city-marker-label {
  margin-top: 1px;
  opacity: 0;
  font-size: 0.68rem;
  font-weight: 900;
  -webkit-line-clamp: 1;
  transition: opacity 0.16s ease;
}

.city-marker-hint {
  display: none;
}

.openmap.labels-visible .city-marker-label,
.openmap-marker-wrap:hover .city-marker-label,
.openmap-marker-wrap:focus-visible .city-marker-label {
  opacity: 1;
}

.city-popup-card {
  min-width: 260px;
}

.city-popup-list {
  display: grid;
  gap: 4px;
  max-height: 290px;
  overflow: auto;
  padding-right: 3px;
}

.city-popup-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.city-popup-item:hover,
.city-popup-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.city-popup-item span:last-child {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-toast {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 9;
  max-width: min(520px, calc(100% - 32px));
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 22, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.map-error {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 24px;
  background: var(--map-bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.api-key-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 10, 0.72);
  backdrop-filter: blur(10px);
}

.api-key-panel.hidden {
  display: none;
}

.api-key-card {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  box-shadow: var(--shadow);
}

.api-key-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.api-key-card p.error {
  color: #ffb4ab;
  font-weight: 700;
}

.google-result-marker {
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #2e3337;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.google-result-marker:hover,
.google-result-marker:focus-visible {
  outline: none;
  transform: scale(1.18);
}

.google-group-marker {
  display: grid;
  min-width: 76px;
  justify-items: center;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  color: #fff;
  box-shadow: var(--shadow-tight);
  cursor: pointer;
  line-height: 1.05;
}

.google-group-marker span {
  display: grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.google-group-marker strong {
  max-width: 92px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-group-marker:hover,
.google-group-marker:focus-visible {
  outline: none;
  transform: scale(1.08);
}

.popup-card {
  display: grid;
  gap: 10px;
  min-width: 240px;
  max-width: 300px;
}

.popup-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}

.popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2c3135, #171a1d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.24);
  color: #d7dadd;
  font-size: 1rem;
}

.popup-media {
  margin: 0;
}

.popup-media img {
  display: block;
  width: 100%;
  max-height: 145px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.popup-media figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.popup-media a {
  color: #d8dde0;
  text-decoration: none;
}

.popup-media a:hover {
  text-decoration: underline;
}

.popup-title {
  margin: 0;
  color: #f7f8f8;
  font-size: 1rem;
  line-height: 1.2;
}

.popup-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.popup-description {
  margin: 0;
  color: #c4cbd0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary-top), var(--primary-bottom));
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}

.gm-style .gm-style-iw-c {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
}

.gm-style .gm-style-iw-tc::after {
  background: var(--panel);
}

.hidden {
  display: none;
}

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

@media (max-width: 680px) {
  .app-shell {
    position: relative;
    display: block;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .map-pane {
    position: absolute;
    inset: 0;
  }

  .sidebar {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    max-height: min(660px, 72dvh);
    overflow: auto;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 18px;
    background:
      linear-gradient(180deg, var(--accent-wash), transparent 42%),
      var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    scrollbar-color: #3c4247 transparent;
  }

  .app-shell.sidebar-collapsed .sidebar {
    transform: translateY(calc(100% + 18px));
  }

  .sidebar-restore {
    top: auto;
    bottom: 16px;
    left: 16px;
    z-index: 1001;
  }

  .sidebar::before {
    content: "";
    position: sticky;
    top: 8px;
    z-index: 3;
    display: block;
    width: 46px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .brand {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px 10px;
    background: var(--panel);
    backdrop-filter: blur(16px);
  }

  h1 {
    font-size: 1.28rem;
  }

  .eyebrow {
    font-size: 0.62rem;
  }

  .stats div {
    padding: 10px 8px;
  }

  .stats strong {
    font-size: 1.08rem;
  }

  .stats span {
    font-size: 0.64rem;
  }

  .controls {
    padding: 12px;
  }

  .map-note {
    display: none;
  }

  .legend {
    padding: 8px 12px;
  }

  .landmark-list {
    max-height: 210px;
    flex: 0 0 auto;
  }

  .landmark-list.collapsed {
    display: none;
  }
}

@media (max-width: 430px) {
  .controls,
  .filter-grid {
    grid-template-columns: 1fr;
  }
}
