html, body, #map {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font: 13px/1.4 "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* Tile seams: Chrome leaves subpixel gaps between 256 px tiles at fractional device
   pixel ratios. Overlap each tile by half a pixel and match the background to the
   OpenStreetMap land colour. */
.leaflet-container {
  background: #f2efe9;
}

/* 256.5px tile overlap removed: it caused visible seams (measured 2026-10-07) */
.leaflet-tile {
  outline: 1px solid transparent;
}

/* divIcon wrappers: no Leaflet default white box */
.sm-icon {
  background: none;
  border: none;
}

.sm-icon svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
}

.sm-popup-title {
  font-weight: bold;
}

.sm-popup-note {
  color: #757575;
  font-size: 11px;
  margin-top: 2px;
}

.sm-popup-link {
  display: inline-block;
  margin-top: 4px;
  color: #0288D1;
  font-weight: bold;
}

.sm-legend {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding: 6px 8px;
  line-height: 1.2;
  color: #333;
}

.sm-legend-row {
  display: flex;
  align-items: center;
  margin: 2px 0;
}

.sm-legend-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.sm-legend-icon svg {
  display: block;
}

.sm-legend-count {
  color: #757575;
  margin-left: 4px;
}

.sm-legend-error {
  color: #b00020;
  margin-top: 4px;
}
