.county-map-panel {
  margin-top: 2rem;
}

.county-map-panel p {
  color: var(--ga-slate);
  margin-top: 0.5rem;
}

.county-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.county-map-wrap {
  position: relative;
  min-height: 360px;
}

.county-map {
  border: 1px solid var(--ga-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  min-height: 360px;
}

.county-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.county-map-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ga-slate);
}

.county-map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  max-width: 240px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.county-map-tooltip.is-visible {
  opacity: 1;
}

.county-map-legend {
  display: grid;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ga-slate);
}

.county-map-legend .legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--ga-border);
}

.legend-swatch.base {
  background: #f1f5f9;
}

.legend-swatch.covered {
  background: #dbeafe;
}

.legend-swatch.msa {
  background: #f1f5f9;
  border: 2px solid var(--ga-gold);
}

.county-shape {
  fill: #f1f5f9;
  stroke: #e2e8f0;
  stroke-width: 0.6px;
  cursor: pointer;
}

.county-shape.has-schools {
  fill: #dbeafe;
}

.county-shape.msa {
  stroke: var(--ga-gold);
  stroke-width: 1.4px;
}

.county-shape.is-active {
  stroke: var(--ga-blue);
  stroke-width: 1.2px;
}

@media (max-width: 900px) {
  .county-map-grid {
    grid-template-columns: 1fr;
  }
}
