
/* ===============================
   STYLE FLOTTE VEHICULES - MAPLIBRE
   =============================== */

/* Contrôles */
.maplibregl-ctrl-group {
  background: #1f2933;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.06);
}

/* Boutons */
.maplibregl-ctrl-group button {
  width: 38px;
  height: 38px;
}

.maplibregl-ctrl-group button:hover {
  background-color: rgba(59,130,246,.15);
}

.maplibregl-ctrl-group button:active {
  background-color: rgba(59,130,246,.25);
}

/* Icônes */
.maplibregl-ctrl-icon {
  filter: invert(1);
  opacity: 0.85;
}

/* Etats GPS */
.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon,
.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon,
.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon {
  filter: invert(52%) sepia(98%) saturate(510%) hue-rotate(185deg);
}

.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon {
  filter: invert(40%) sepia(85%) saturate(550%) hue-rotate(350deg);
}

/* Positionnement */
.maplibregl-ctrl-top-left {
  top: 70px;
}

.maplibregl-ctrl-bottom-right {
  bottom: 20px;
  right: 20px;
}

/* Popup véhicule */
.maplibregl-popup-content {
  background: #111827;
  color: #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.6);
  font-size: 13px;
}

.maplibregl-popup-close-button {
  color: #9ca3af;
}

/* Badges état véhicule */
.vehicle-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.status-online { background: #16a34a; color: #fff; }
.status-stop   { background: #f59e0b; color: #000; }
.status-alert  { background: #dc2626; color: #fff; }
