/* Leaflet Map Styles */
.leaflet-container {
  height: 100%;
  width: 100%;
  background: #f8fafc;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
  margin: 0;
  padding: 0;
}

.leaflet-popup-tip {
  background: white;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaflet-tooltip {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  padding: 6px 8px;
}

.leaflet-tooltip-top:before {
  border-top-color: rgba(0, 0, 0, 0.8);
}

.leaflet-tooltip-bottom:before {
  border-bottom-color: rgba(0, 0, 0, 0.8);
}

.leaflet-tooltip-left:before {
  border-left-color: rgba(0, 0, 0, 0.8);
}

.leaflet-tooltip-right:before {
  border-right-color: rgba(0, 0, 0, 0.8);
}

/* Marker Cluster Styles */
.marker-cluster-small {
  background-color: rgba(59, 130, 246, 0.6);
  border: 2px solid rgba(59, 130, 246, 0.8);
}

.marker-cluster-small div {
  background-color: rgba(59, 130, 246, 0.8);
  color: white;
  font-weight: bold;
}

.marker-cluster-medium {
  background-color: rgba(16, 185, 129, 0.6);
  border: 2px solid rgba(16, 185, 129, 0.8);
}

.marker-cluster-medium div {
  background-color: rgba(16, 185, 129, 0.8);
  color: white;
  font-weight: bold;
}

.marker-cluster-large {
  background-color: rgba(245, 158, 11, 0.6);
  border: 2px solid rgba(245, 158, 11, 0.8);
}

.marker-cluster-large div {
  background-color: rgba(245, 158, 11, 0.8);
  color: white;
  font-weight: bold;
}

/* Custom marker styles */
.custom-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Map controls */
.leaflet-control-zoom a {
  background-color: white;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: bold;
}

.leaflet-control-zoom a:hover {
  background-color: #f9fafb;
  color: #111827;
}

/* Dark mode map styles */
.dark .leaflet-container {
  background: #1f2937;
}

.dark .leaflet-popup-content-wrapper {
  background: #374151;
  color: white;
}

.dark .leaflet-popup-tip {
  background: #374151;
}

.dark .leaflet-control-zoom a {
  background-color: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

.dark .leaflet-control-zoom a:hover {
  background-color: #4b5563;
  color: white;
}

/* Animation for markers */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.leaflet-marker-icon.pulse {
  animation: pulse 2s infinite;
}

/* Custom popup styles */
.custom-popup {
  min-width: 200px;
}

.custom-popup .popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.custom-popup .popup-title {
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.custom-popup .popup-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-popup .popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.custom-popup .popup-label {
  color: #6b7280;
  font-weight: 500;
}

.custom-popup .popup-value {
  color: #111827;
  font-weight: 600;
}

/* Dark mode popup styles */
.dark .custom-popup .popup-header {
  border-bottom-color: #4b5563;
}

.dark .custom-popup .popup-title {
  color: #f9fafb;
}

.dark .custom-popup .popup-label {
  color: #9ca3af;
}

.dark .custom-popup .popup-value {
  color: #f9fafb;
}
