/* Custom CSS Extensions & Animation Utilities for TravelHub */

@layer utilities {
  .glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  
  .glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
  }

  .glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 4s ease-in-out 2s infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
  50% { shadow: 0 0 30px rgba(16, 185, 129, 0.6); }
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite;
}

/* Custom Leaflet Map styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 4px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
  margin: 8px 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.custom-map-pin {
  background: #F59E0B;
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.custom-map-pin:hover {
  transform: scale(1.15);
  background: #D97706;
  z-index: 1000 !important;
}

.custom-map-pin.active-pin {
  background: #059669;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.6);
  transform: scale(1.15);
}
