/*
 * Zoomable chart map (templates/partials/chart_map*.html, js/chartmap.js).
 * Kept apart from styles.css, which is copied as-is from each PHP design revision.
 * The map canvas keeps .map-placeholder, so its size still comes from styles.css.
 */

/* Map canvas: Google Maps fills it once chartmap.js runs */
.chart-map {
  position: relative;
  overflow: hidden;
}
.chart-map-warning {
  padding: 24px;
  text-align: center;
}

/* Chart group checkboxes, beside the map in .map-search-text */
.chart-map-options {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.chart-map-options legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
}
.chart-map-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
}
.chart-map-option input {
  margin: 0;
}
/* Color key, matches the polygon colors in chartmap.js */
.chart-map-swatch {
  flex: none;
  width: 6px;
  height: 14px;
}

/* Lat/lng readout chartmap.js adds at the top of the map */
.coordBox {
  margin-top: 5px;
  padding: 2px 4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .25);
  font: 12px/16px Arial, Helvetica, sans-serif;
  overflow: auto;
}
.coordVal {
  float: left;
  width: 78px;
  margin-left: 3px;
}

/* Chart hover popup (google.maps.InfoWindow) */
.chartmap_info {
  font: 12px/16px Arial, Helvetica, sans-serif;
  max-width: 220px;
}
/* Let the mouse pass through the hover popup so it can't steal the polygon's hover */
.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-tc {
  pointer-events: none;
}
