/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 999;
  background: var(--blue, #1565c0);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* === h1 in logo (no visual change) === */
.logo-heading {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0;
  line-height: inherit;
}

:root {
  --green: #1a8c3f;
  --yellow: #d4a017;
  --orange: #d45317;
  --red: #c62828;
  --gray: #78909c;
  --blue: #1565c0;
  --bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5f6b7a;
  --border: #e2e8f0;
  --panel-bg: #ffffff;
  --header-h: 56px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.12);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Header === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* === Search === */
#search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

#search {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
  background: var(--bg);
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

#search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
}

#search-results li {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#search-results li:last-child { border-bottom: none; }

#search-results li:hover,
#search-results li.active {
  background: #f0f5ff;
}

.result-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.search-truncated {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  cursor: default;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}

.hidden { display: none !important; }

/* === Map === */
#map {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
}

.maplibregl-ctrl-attrib { font-size: 10px !important; }

/* === Legend === */
#legend {
  position: fixed;
  bottom: 24px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.2s;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-compliance { background: var(--green); }
.dot-at-risk    { background: var(--orange); }
.dot-failing    { background: var(--red); }
.dot-unknown    { background: var(--gray); }

.legend-count {
  margin-left: auto;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.data-freshness {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-freshness-stale {
  color: var(--orange);
  font-weight: 600;
}
.stale-warning {
  color: var(--orange);
  font-weight: 600;
}

/* === Panel (bottom sheet) === */
.panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--panel-bg);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  z-index: 90;
  transform: translateY(calc(100% - 0px));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: calc(100% - var(--header-h) - 8px);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.panel.peek {
  transform: translateY(calc(100% - 180px));
}

.panel.open {
  transform: translateY(0);
}

.panel-drag {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  cursor: grab;
  flex-shrink: 0;
}

.panel-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  -webkit-overflow-scrolling: touch;
}

/* === Panel Content === */
.panel-intro {
  text-align: center;
  padding: 24px 8px;
  color: var(--text-muted);
}

.panel-intro p { margin-bottom: 8px; }
.muted { color: var(--text-muted); font-size: 13px; }

.system-header {
  margin-bottom: 16px;
}

.system-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.system-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 4px;
}

.status-badge .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-compliance       { background: #e8f5e9; color: #1b5e20; }
.status-compliance .status-dot { background: var(--green); }

.status-at-risk          { background: #fff3e0; color: #e65100; }
.status-at-risk .status-dot { background: var(--orange); }

.status-failing          { background: #ffebee; color: #b71c1c; }
.status-failing .status-dot { background: var(--red); }

.status-unknown          { background: #eceff1; color: #455a64; }
.status-unknown .status-dot { background: var(--gray); }

.summary-text {
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 16px;
  color: var(--text);
}

.stat-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.stat-card {
  flex: 1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* === Contaminant sections === */
.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.contaminant-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.contaminant-card.exceeds {
  background: #fff5f5;
  border-left: 3px solid var(--red);
}

.contaminant-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.severity-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.01em;
}

.severity-badge.approaching {
  background: var(--yellow);
  color: #5a4200;
}

.contaminant-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contaminant-samples {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contaminant-context {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.contaminant-desc {
  display: block;
}

.contaminant-source {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.bar-wrap {
  position: relative;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: visible;
  margin-top: 4px;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 2px;
}

.bar-fill.safe {
  background: var(--green);
}

.bar-fill.warning {
  background: var(--yellow);
}

.bar-fill.danger {
  background: var(--red);
}

.bar-mcl {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--text);
  border-radius: 1px;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.detected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.detected-chip {
  font-size: 12px;
  padding: 4px 10px;
  background: #eef2f7;
  border-radius: 12px;
  color: var(--text);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
  line-height: 1.4;
}
.detected-chip:hover,
.detected-chip:focus-visible {
  background: #e2e8f0;
}
.detected-chip.active {
  border-color: var(--primary);
  background: #e8f0fe;
}

.chip-detail {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
}
.chip-detail.hidden {
  display: none;
}
.chip-detail-name {
  font-weight: 600;
  margin-bottom: 2px;
}
.chip-detail-value {
  color: #475569;
}
.chip-detail-tested {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.chip-detail-desc {
  margin-top: 4px;
  color: #64748b;
}
.chip-detail-source {
  margin-top: 2px;
  font-size: 12px;
  color: #94a3b8;
}

/* === System title row === */
.system-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.share-btn {
  flex-shrink: 0;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.share-btn:hover {
  background: #e2e8f0;
  color: var(--blue);
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.panel-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.panel-footer a {
  color: var(--blue);
  text-decoration: none;
}

.feedback-link {
  margin-top: 12px;
}

.feedback-link a,
.feedback-footer {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}

.feedback-link a:hover,
.feedback-footer:hover {
  text-decoration: underline;
}

/* === Map popup === */
.maplibregl-popup-content {
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: 220px;
}

.popup-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.popup-status {
  font-size: 12px;
}

/* === Desktop (side panel) === */
@media (min-width: 768px) {
  .panel {
    left: auto;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    width: 420px;
    max-height: none;
    border-radius: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .panel.peek,
  .panel.open {
    transform: translateX(0);
  }

  .panel-drag { display: none; }

  #legend {
    bottom: 24px;
    left: 12px;
  }
}

/* === Loading spinner === */
.spinner {
  display: flex;
  justify-content: center;
  padding: 32px;
}

.spinner::after {
  content: '';
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* === Loading overlay === */
#loading-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

.loading-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.loading-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Error state === */
.error-content {
  text-align: center;
  padding: 0 24px;
}

.error-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.error-message {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.error-retry {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.error-retry:hover {
  background: #0d47a1;
}

/* === Map hint === */
.map-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  max-width: 320px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  opacity: 1;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.map-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

@media (min-width: 768px) {
  .map-hint {
    bottom: 88px;
  }
}

/* === Find My Water button === */
#find-my-water-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  transition: opacity 0.3s, transform 0.3s;
}

.find-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(21,101,192,0.35);
  white-space: nowrap;
}

.find-btn:hover {
  background: #0d47a1;
  box-shadow: 0 6px 20px rgba(21,101,192,0.45);
}

.find-btn:active {
  transform: scale(0.97);
}

.find-btn:disabled {
  opacity: 0.8;
  cursor: wait;
}

.find-icon {
  flex-shrink: 0;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@media (min-width: 768px) {
  #find-my-water-wrap {
    bottom: 32px;
  }
}

/* === Reset-view button === */
.reset-btn {
  position: fixed;
  bottom: 150px;
  left: 12px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: opacity 0.25s, transform 0.25s, background 0.15s, color 0.15s;
}

.reset-btn:hover {
  background: #fff;
  color: var(--blue);
}

.reset-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* === Close button (desktop) === */
.panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  z-index: 5;
}

.panel-close:hover {
  background: #f1f5f9;
  color: var(--text);
}

/* Mobile: show close only when open */
@media (max-width: 767px) {
  .panel-close { display: none; }
  .panel.open .panel-close { display: block; }
}

/* === Educational section === */
.edu-section {
  margin: 0 0 16px;
}

.edu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
  padding: 6px 0;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.edu-toggle::-webkit-details-marker { display: none; }
.edu-toggle::marker { display: none; content: ''; }

.edu-toggle::before {
  content: '\25B6';
  font-size: 9px;
  transition: transform 0.2s;
  display: inline-block;
}

details[open] > .edu-toggle::before {
  transform: rotate(90deg);
}

.edu-content {
  padding: 12px 0 4px;
}

.edu-block {
  margin-bottom: 16px;
}

.edu-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.edu-block p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.edu-block p strong {
  color: var(--text);
}

.edu-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-status-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.edu-status-item .dot {
  margin-top: 5px;
  flex-shrink: 0;
}

.edu-status-item strong {
  color: var(--text);
}

.edu-action {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.edu-action-failing {
  background: #fff5f5;
  border-left: 3px solid var(--red);
}

.edu-action-good {
  background: #e8f5e9;
  border-left: 3px solid var(--green);
}

.edu-action-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.edu-action p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.edu-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-action-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.edu-action-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.edu-action-list li strong {
  color: var(--text);
}

.edu-action-list a {
  color: var(--blue);
  text-decoration: none;
}

.edu-action-list a:hover {
  text-decoration: underline;
}

/* === Focus-visible styles for keyboard navigation === */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.panel-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  background: #f1f5f9;
}

.find-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--blue), 0 4px 16px rgba(21,101,192,0.35);
}

.share-btn:focus-visible,
.reset-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Hide focus ring for mouse/touch users */
:focus:not(:focus-visible) {
  outline: none;
}

/* System heading focused via JS (no visible ring) */
.system-name:focus {
  outline: none;
}

/* Nearby water systems */
.nearby-section {
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nearby-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.nearby-item:hover {
  background: #f1f5f9;
}
.nearby-item:active {
  background: #e2e8f0;
}
.nearby-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nearby-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nearby-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nearby-meta {
  font-size: 0.78rem;
  color: #64748b;
}
