/* POIs & Geofences Enhanced Styling */

/* ============================================
   LEAFLET POPUP STYLING
   ============================================ */

/* Enhanced Popup Wrapper - Leaflet */
.poi-popup-enhanced .leaflet-popup-content-wrapper,
.geofence-popup-enhanced .leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(7, 29, 74, 0.1);
}

.poi-popup-enhanced .leaflet-popup-content,
.geofence-popup-enhanced .leaflet-popup-content {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}

.poi-popup-enhanced .leaflet-popup-tip,
.geofence-popup-enhanced .leaflet-popup-tip {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MAPBOX GL POPUP STYLING
   ============================================ */

/* Enhanced Popup Content - Mapbox GL */
.mapboxgl-popup.poi-popup-enhanced .mapboxgl-popup-content,
.mapboxgl-popup.geofence-popup-enhanced .mapboxgl-popup-content {
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(7, 29, 74, 0.1) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ============================================
   POPUP CONTENT STYLING (Both Leaflet & Mapbox GL)
   ============================================ */

/* POI & Geofence Popup Content */
.poi-popup-content,
.geofence-popup-content {
  padding: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  min-width: 260px;
  max-width: 320px;
}

/* Enhanced Marker Animations */
.poi-marker-enhanced,
.geofence-label-marker {
  animation: markerFadeIn 0.3s ease-out;
}

@keyframes markerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse Animation for POI Markers */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Multi-Select Category Filter Styling */
.category-checkbox-label {
  transition: all 0.2s ease;
}

.category-checkbox-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* POI Cluster Marker Styling */
.poi-cluster-marker {
  animation: clusterPulse 2s ease-in-out infinite;
}

@keyframes clusterPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Geofence Label Marker Styling */
.geofence-label-marker {
  animation: markerFadeIn 0.3s ease-out;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
  .poi-popup-content,
  .geofence-popup-content {
    min-width: 240px !important;
    max-width: 280px !important;
    padding: 12px !important;
  }

  .poi-popup-content h3,
  .geofence-popup-content h3 {
    font-size: 14px !important;
  }
}

