.scorecard-choropleth {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.scorecard-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

#scorecard-map {
  width: 100%;
  height: 68vh;      /* Good desktop height; tweak as needed */
  min-height: 420px; /* Ensure usable space on short screens */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.legend {
  background: rgba(255,255,255,0.92);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  width: max-content;
  font-size: 0.9rem;
}

.legend .scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.legend .swatch {
  width: 22px; height: 14px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
}

.status {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Hover highlight */
.leaflet-interactive.hovered {
  stroke: #111;
  stroke-width: 2;
}
