.map-load-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, #dfe8d6 0%, #e8e4dc 45%, #d4ddd0 100%);
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.map-load-shell--done {
  opacity: 0;
}

.map-load-shell-grid {
  width: 72%;
  max-width: 220px;
  height: 120px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.15) 100%),
    repeating-linear-gradient(0deg, rgba(255, 95, 77, 0.08) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(90deg, rgba(255, 95, 77, 0.08) 0 12px, transparent 12px 24px);
  background-size: 200% 100%, auto, auto;
  animation: map-shell-shimmer 1.4s ease-in-out infinite;
}

.map-load-shell-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ff5f4d;
}

.map-retry-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: #ff5f4d;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.uber-map--loading {
  background: #e5e3df;
}

@keyframes map-shell-shimmer {
  0% {
    background-position: 200% 0, 0 0, 0 0;
  }
  100% {
    background-position: -200% 0, 0 0, 0 0;
  }
}

.map-osm-badge {
  position: absolute;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  pointer-events: none;
}

/* Leaflet reste dans la zone carte — ne recouvre pas le panneau UI */
.uber-map-wrap,
.uber-map-stage {
  isolation: isolate;
}

.uber-map .leaflet-container,
.uber-map.leaflet-container {
  width: 100%;
  height: 100%;
  background: #e5e3df;
  font: inherit;
  z-index: 0 !important;
}

.uber-map .leaflet-pane,
.uber-map .leaflet-map-pane,
.uber-map .leaflet-tile-pane,
.uber-map .leaflet-overlay-pane,
.uber-map .leaflet-shadow-pane,
.uber-map .leaflet-marker-pane,
.uber-map .leaflet-tooltip-pane,
.uber-map .leaflet-popup-pane {
  z-index: 1 !important;
}

.uber-map .leaflet-top,
.uber-map .leaflet-bottom,
.uber-map .leaflet-control {
  z-index: 3 !important;
}

.moto-leaflet-marker {
  background: transparent;
  border: none;
}

.moto-leaflet-marker span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.moto-leaflet-marker--driver span {
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #00f5ff 0%, #0099ff 100%);
  border-width: 2px;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.55);
}

.moto-leaflet-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moto-leaflet-marker--self {
  background: transparent !important;
  border: none !important;
}

.moto-leaflet-marker--self .moto-self-marker {
  transform: translate(-50%, -100%);
}

.moto-leaflet-bubble-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--moto-olive, #ff5f4d);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
