/* Dark background for map container */
.leaflet-container {
  background: #0f172a !important;
}

/* Leaflet tile gap fix - prevents white borders between map tiles */
.leaflet-tile {
  outline: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.leaflet-tile-container img {
  margin: -0.5px !important;
  padding: 0 !important;
  outline: 1px solid transparent !important;
  border: none !important;
}

.leaflet-tile-container {
  transform: translate3d(0, 0, 0);
}

.leaflet-tile-pane {
  transform-style: flat !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Dark theme for Leaflet controls */
.leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #94a3b8 !important;
}

.leaflet-control-attribution a {
  color: #94a3b8 !important;
}

.leaflet-control-coordinates {
  background: rgba(30, 41, 59, 0.9) !important;
  color: #e0e0e0 !important;
  border: 1px solid rgba(147, 51, 234, 0.3) !important;
}

.leaflet-control-zoom a {
  background-color: #1e293b !important;
  color: #e0e0e0 !important;
  border-color: rgba(147, 51, 234, 0.3) !important;
}

.leaflet-control-zoom a:hover {
  background-color: #334155 !important;
}

.leaflet-bar {
  border-color: rgba(147, 51, 234, 0.3) !important;
}
