/* ResQAlert Custom Styling */

/* Custom pulse animations for critical emergency alerts */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.critical-pulse {
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* High-Contrast Dark Tactical Map Theme (No API Key Required) */
.leaflet-tile-pane {
  filter: brightness(0.65) invert(1) contrast(2.6) hue-rotate(200deg) saturate(0.35);
}

/* Leaflet Dark Popup Customization */
.leaflet-popup-content-wrapper {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
}

.leaflet-container {
  background-color: #020617 !important;
}

/* Custom Marker Pins */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: white;
  font-size: 13px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.custom-pin:hover {
  transform: scale(1.25);
  z-index: 1000 !important;
}

.pin-critical {
  background: radial-gradient(circle, #f43f5e 40%, #be123c 100%);
  animation: pulse-ring 1.8s infinite;
}

.pin-high {
  background: radial-gradient(circle, #f59e0b 40%, #b45309 100%);
}

.pin-offer {
  background: radial-gradient(circle, #10b981 40%, #047857 100%);
}

.pin-claimed {
  background: radial-gradient(circle, #38bdf8 40%, #0369a1 100%);
}
