/* Map component styles */

/* Fix for Leaflet marker shadows in dark mode */
.leaflet-shadow-pane {
  display: none;
}

/* Ensure popups are readable in dark mode */
.leaflet-popup-content-wrapper {
  background-color: #f8f9fa;
  color: #212529;
}

.leaflet-popup-tip {
  background-color: #f8f9fa;
}

/* Make the map container responsive */
.leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 0.375rem;
}

/* Ensure controls are visible on dark backgrounds */
.leaflet-control-zoom a {
  background-color: var(--color-background-card) !important;
  color: var(--color-foreground) !important;
  border-color: var(--color-border) !important;
  font-weight: bold !important;
  font-size: 18px !important;
  font-family: 'Lucida Console', Monaco, monospace !important;
  text-indent: 1px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
}

/* Ensure attribution is readable */
.leaflet-control-attribution {
  background-color: rgba(255, 255, 255, 0.8) !important;
  color: #212529 !important;
  font-size: 10px !important;
}

/* Fix for map container in dark mode */
[data-map-target="container"] {
  background-color: #1f2937;
  border-radius: 0.375rem;
  overflow: hidden;
}

/* Device marker styles */
.device-marker {
  z-index: 850 !important; /* Above map tiles but below controls */
  background: transparent !important;
  border: none !important;
}

/* Fix for device icon container */
.device-icon-container {
  position: relative;
  width: 32px !important;
  height: 32px !important;
  display: block !important;
}

/* Fix for inner black circle */
.device-icon-container > div:nth-child(2) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Fix for SVG in device markers */
.device-marker svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px !important;
  height: 16px !important;
}

/* Remove default Leaflet icon styles for our custom markers */
.device-marker.leaflet-marker-icon {
  background: transparent !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  margin-left: -16px !important;
  margin-top: -16px !important;
} 