/* Compatibility layer for the "map-legend-health" naming used in the SEC 2026 asset + integrity overlay. */

.map-legend-health {
  /* Alias to existing data health legend styling */
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(19, 23, 32, 0.88);
  border: 1px solid rgba(165, 193, 216, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  line-height: 1.4;
  min-width: 190px;
  color: var(--text);
}

.map-legend-health h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 700;
}

.map-legend-health .legend-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.map-legend-health .legend-line {
  width: 28px;
  height: 0;
  border-top: 3px solid var(--text);
  margin-right: 8px;
  opacity: 0.85;
}

.map-legend-health .legend-line.solid { border-top-style: solid; }
.map-legend-health .legend-line.dashed { border-top-style: dashed; }

.map-legend-health .integrity-badge {
  margin-top: 8px;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px solid rgba(165, 193, 216, 0.18);
}

.map-legend-health .integrity-high { color: #2ecc71; }
.map-legend-health .integrity-medium { color: #f39c12; }
.map-legend-health .integrity-low { color: #e74c3c; }

/* If the existing legend class is used, keep it identical. */
.data-health-legend { }

