/* Base Resets & Utility Configs */
body {
  height: 100dvh; /* Avoid address bar jumps in mobile browsers */
  height: -webkit-fill-available;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

html {
  height: -webkit-fill-available;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Safe areas padding helper for modern notches/home indicators */
.pb-safe {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Custom CSS Animations */
@keyframes slideInDown {
  from {
    transform: translate3d(0, -100%, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.animate-slide-in-down {
  animation: slideInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s infinite ease-in-out;
}

/* Map Style Custom Overrides */
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-left {
  opacity: 0.5;
  transform: scale(0.85);
  transform-origin: bottom right;
  z-index: 1 !important;
}

/* Leaflet Custom Reset */
.leaflet-control-zoom {
  display: none !important; /* Hide zoom controls to keep screen clean */
}
.leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #94a3b8 !important;
  font-family: inherit !important;
  font-size: 8px !important;
  backdrop-filter: blur(4px);
  border-top-left-radius: 4px;
}
.leaflet-control-attribution a {
  color: #fbbf24 !important;
}

/* Transparent wrapper classes for Custom HTML Markers */
.leaflet-marker-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Custom Marker Styling */
.vendor-marker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vendor-marker-container:hover,
.vendor-marker-container.active {
  transform: scale(1.22);
  z-index: 999 !important;
}

/* Pulsing aura for vendor markers */
.vendor-marker-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35); /* brand green tint */
  animation: pinPulse 2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes pinPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Custom SVG Pins */
.vendor-marker-pin {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* The actual icon inside the pin, rotated back */
.vendor-marker-icon {
  transform: rotate(45deg);
  font-size: 16px;
}

/* Active/selected vendor pin style change */
.vendor-marker-container.active .vendor-marker-pin {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); /* Amber gradient */
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.8);
}

/* User Location Pin "You are here" Styling */
.user-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.user-marker-dot {
  width: 14px;
  height: 14px;
  background: #3b82f6; /* Blue marker */
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
  z-index: 2;
}

.user-marker-pulse {
  position: absolute;
  width: 42px;
  height: 42px;
  background: rgba(59, 130, 246, 0.25);
  border-radius: 50%;
  animation: userPulse 2s infinite ease-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes userPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Bottom Sheet Drag Interactivity state */
#bottom-sheet.dragging,
#suggest-sheet.dragging {
  transition: none !important; /* Temporarily disable transition during gestures for ultra fluid tracking */
}

/* Custom form utilities */
.border-slate-850 {
  border-color: rgba(30, 41, 59, 0.75);
}

/* Admin Card Hover effects */
.admin-card {
  transition: transform 0.2s ease-out, border-color 0.2s ease-out, shadow 0.2s ease-out;
}
.admin-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.35); /* Slight green hover glow */
}

