/* --- reset & page shell -------------------------------------------------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
}
#map { width: 100%; height: 100vh; }

/* --- floating buttons ---------------------------------------------------- */
.controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.controls button {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.controls button:hover   { background: #f0f0f0; }
.controls button:active { background: #e0e0e0; }

/* --- zoom control -------------------------------------------------------- */
.zoom-control {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.zoom-control label {
  font-weight: bold;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

.zoom-slider {
  width: 100px;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #007cba;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #007cba;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.zoom-slider:hover::-webkit-slider-thumb {
  background: #005a8b;
}

.zoom-slider:hover::-moz-range-thumb {
  background: #005a8b;
}

.zoom-input {
  width: 60px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.zoom-input:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.zoom-input:invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* --- radius control ------------------------------------------------------- */
.radius-control {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.radius-control label {
  font-weight: bold;
  color: #333;
  margin: 0;
  white-space: nowrap;
}

.radius-slider {
  width: 100px;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.radius-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e74c3c;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.radius-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e74c3c;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.radius-slider:hover::-webkit-slider-thumb {
  background: #c0392b;
}

.radius-slider:hover::-moz-range-thumb {
  background: #c0392b;
}

.radius-input {
  width: 60px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.radius-input:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.radius-input:invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* --- canvas mask --------------------------------------------------------- */
.leaflet-canvas-mask {
  pointer-events: none;
}

.leaflet-blur-canvas {
  pointer-events: none;
}