:root {
  --top-bar-height: 44px;
  --bottom-bar-height: 40px;
  --blue-primary: #1e3190;
  --blue-border: rgba(43, 58, 171, 0.45);
  --gold: #f5a800;
  --bg-bar: rgba(28, 28, 28, 0.72);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'B612 Mono', ui-monospace, monospace;
  text-transform: uppercase;
  background: #0a0a0a;
  overflow: hidden;
}

#map {
  position: absolute;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  bottom: var(--bottom-bar-height);
  background: #000;
}

@media (max-width: 640px) {
  :root { --bottom-bar-height: 78px; }
}

/* ─── Leaflet zoom control (top-right) ────────────────────── */

.leaflet-control-zoom {
  border: 1px solid var(--blue-border) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  overflow: hidden;
  margin-top: 10px !important;
  margin-right: 10px !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  background: var(--bg-bar) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: 'B612 Mono', ui-monospace, monospace !important;
  font-size: 16px !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  border: none !important;
  border-bottom: 1px solid var(--blue-border) !important;
  display: block !important;
  transition: background 0.12s, color 0.12s !important;
}

.leaflet-control-zoom-out {
  border-bottom: none !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background: rgba(43, 58, 171, 0.35) !important;
  color: var(--gold) !important;
}

/* Override Leaflet attribution styling */
.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ─── Placement cursor mode ──────────────────────────────────── */
/* Forces crosshair on the map and all interactive Leaflet elements
   while a draw tool is placing waypoints. */
.leaflet-container.cursor-placing,
.leaflet-container.cursor-placing .leaflet-interactive {
  cursor: crosshair !important;
}
/* Except the WP dot markers on the active route/mission — show pointer
   to signal that they are draggable/editable. */
.leaflet-container.cursor-placing .route-wp-marker,
.leaflet-container.cursor-placing .opm-wp-marker,
.leaflet-container.cursor-placing .em-wp-marker {
  cursor: pointer !important;
}
