/* Map Container Styles */
#incident-map {
  position: relative;
}

/* Custom Marker Styles */
.custom-marker {
  background: transparent;
  border: none;
}

.map-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s;
}

.map-marker:hover {
  transform: scale(1.2);
}

/* Cluster Marker Styles */
.marker-cluster-custom {
  background: transparent;
  border: none;
}

.cluster-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.cluster-marker:hover {
  transform: scale(1.1);
}

.cluster-small {
  width: 40px;
  height: 40px;
  background-color: #CC7722;
  font-size: 14px;
}

.cluster-medium {
  width: 50px;
  height: 50px;
  background-color: #CC7722;
  font-size: 16px;
}

.cluster-large {
  width: 60px;
  height: 60px;
  background-color: #CC7722;
  font-size: 18px;
}

/* Popup Styles */
.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  width: 280px !important;
}

.map-popup {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.map-popup-header {
  padding: 12px;
  background-color: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}

.map-popup-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

.map-popup-body {
  padding: 12px;
}

.map-popup-address,
.map-popup-date {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #6B7280;
  margin: 8px 0;
}

.inline-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
}

.map-popup-footer {
  padding: 12px;
  background-color: #F9FAFB;
  border-top: 1px solid #E5E7EB;
}

.map-popup-link {
  display: inline-block;
  color: #CC7722;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.map-popup-link:hover {
  color: #000000;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-green {
  background-color: #D1FAE5;
  color: #065F46;
}

.badge-blue {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.badge-red {
  background-color: #FEE2E2;
  color: #991B1B;
}

.badge-gray {
  background-color: #F3F4F6;
  color: #4B5563;
}

/* Message Styles */
.map-no-data,
.map-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.map-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #9CA3AF;
}

.map-error .map-icon {
  color: #EF4444;
}

.map-no-data p,
.map-error p {
  margin: 0;
  color: #6B7280;
  font-size: 14px;
}

/* Leaflet Control Styles */
.leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-control-zoom a {
  color: #CC7722;
  border: none;
}

.leaflet-control-zoom a:hover {
  background-color: #CC7722;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .leaflet-popup-content {
    width: 240px !important;
  }

  .map-popup-title {
    font-size: 14px;
  }

  .map-popup-address,
  .map-popup-date {
    font-size: 12px;
  }
}
