/* Layout */
html, body {
  height: 100%;
  margin: 0;
}

#map {
  width: 100%;
  height: 100%;
}

/* prevent iframe scroll weirdness (iOS fix) */
body {
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* bigger zoom controls for mobile */
.leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 20px;
}

/* tap-to-interact hint */
#tapHint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 1000;
  pointer-events: none;
  user-select: none;
}

.soft-points {
  filter: blur(0.4px);
}

.map-label {
  background: transparent;
  border: none;
  box-shadow: none;
  font-weight: bold;
  color: #333;
  text-shadow: 1px 1px 1px #fff; 
  pointer-events: none;
  white-space: nowrap;
}

.legend {
    color: #333;
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 200px;
}

.legend-title {
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    font-size: 13px;
}

.legend-scale {
    display: flex;
    justify-content: center;
    gap: 0px; 
}

.legend i {
    width: 20px;
    height: 15px;
    display: block;
    opacity: 0.8;
}

.legend-label {
    font-size: 12px;
    padding: 0 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* remove blue outline when clicking on shape */
.leaflet-interactive:focus {
    outline: none !important;
}

/* remove highlight when tapping on mobile */
path.leaflet-interactive {
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

/* keeps cursor a normal arrow instead of a hand */
.leaflet-interactive {
    cursor: default !important;
}