/* MapLibre editor surfaces: the service-zone boundary editor, the geofence circle/polygon
   editor, the transit-stop location picker, and their failure state. */

.mapev2-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.35));
  touch-action: none;
}

.mapev2-marker:active,
.mapev2-marker.mapev2-dragging {
  cursor: grabbing;
}

.mapev2-marker svg {
  display: block;
}

/* The editor containers are sized by the razor markup; MapLibre needs the class to fill them. */
.maplibregl-map {
  font-family: inherit;
}

.mapev2-map-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  min-height: 8rem;
  padding: 1.5rem;
  text-align: center;
  color: #7f1d1d;
  background: #fef2f2;
}

.dark .mapev2-map-error {
  color: #fecaca;
  background: #450a0a;
}

.mapev2-map-retry {
  padding: 0.5rem 0.875rem;
  border: 1px solid #b91c1c;
  border-radius: 0.5rem;
  color: #ffffff;
  background: #b91c1c;
  cursor: pointer;
}

.mapev2-map-retry:hover,
.mapev2-map-retry:focus-visible {
  background: #991b1b;
}

/* The editors sit inside cards/modals with a rounded, clipping shell. */
#zoneEditorMap,
[id^='stop-picker-'],
#geofence-map {
  position: relative;
}

#zoneEditorMap .maplibregl-canvas,
#geofence-map .maplibregl-canvas {
  outline: none;
}
