html, body { height: 100%; margin: 0; }

/* deck.gl tooltip overlay */
.deckgl-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 320px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transform: translate(10px, 10px);
}

/* ===================================================================
   Deck.gl Legend Control
   =================================================================== */
.deck-legend-ctrl {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0,0,0,.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #333;
  min-width: 140px;
  max-width: 260px;
  overflow: hidden;
}

.deck-legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 10px;
  margin: 0;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}
.deck-legend-header:hover { background: #e4e4e4; }

.deck-legend-arrow {
  font-size: 10px;
  margin-left: 6px;
}

.deck-legend-body {
  padding: 4px 0;
}

.deck-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  cursor: default;
  white-space: nowrap;
}
.deck-legend-row:hover {
  background: #f7f7f7;
}

.deck-legend-cb {
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

/* ---------- swatch base ---------- */
.deck-legend-swatch {
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.15);
}

/* circle (default for ScatterplotLayer) */
.deck-legend-sh-circle {
  width: 12px; height: 12px;
  border-radius: 50%;
}

/* rectangle (GeoJsonLayer fill / ColumnLayer) */
.deck-legend-sh-rect {
  width: 16px; height: 12px;
  border-radius: 2px;
}

/* line (PathLayer / LineLayer) */
.deck-legend-sh-line {
  width: 20px; height: 3px;
  border-radius: 1px;
  border: none;
}

/* arc (ArcLayer — gradient swatch) */
.deck-legend-sh-arc {
  width: 24px; height: 4px;
  border-radius: 2px;
  border: none;
}

/* gradient (HeatmapLayer / HexagonLayer colorRange) */
.deck-legend-sh-gradient {
  width: 40px; height: 10px;
  border-radius: 2px;
}

.deck-legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

