/* public/fleet/fleet-trips-map.css */

/* Map container inside trip card */
.ft-map-container {
  height: 350px;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid var(--border, #334155);
  overflow: hidden;
  background: #0f172a;
}

/* Pulsing blue marker for active trip */
.ft-pulsing-marker {
  background: #3b82f6;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0.7);
  animation: ft-pulse 1.5s ease-out infinite;
}

@keyframes ft-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Theme toggle button on the map */
.ft-map-theme-toggle {
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border, #475569);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.ft-map-theme-toggle:hover {
  background: rgba(30, 41, 59, 0.9);
}

/* Leaflet overrides – polish the zoom controls */
.ft-map-container .leaflet-control-zoom a {
  background: rgba(15, 23, 42, 0.85) !important;
  color: var(--text-primary, #e2e8f0) !important;
  border: 1px solid var(--border, #475569) !important;
  border-radius: 4px !important;
}
.ft-map-container .leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.75) !important;
  color: var(--text-muted, #64748b) !important;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
}