body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  overflow: hidden;
}

#map {
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 1;
}

/* Custom Map Controls */
.custom-drop-control {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin-left: 15px !important;
}

.custom-drop-control::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.custom-drop-control:hover::before {
  left: 100%;
}

.custom-drop-control:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.custom-drop-control:active {
  transform: translateY(0) scale(0.95);
}

.custom-drop-control svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.custom-drop-control:hover svg {
  transform: scale(1.1);
}

/* Enhanced Zoom Controls */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  width: 48px !important;
  height: 48px !important;
  line-height: 44px !important;
  margin: 4px !important;
  font-size: 20px !important;
  font-weight: bold !important;
  color: #374151 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  color: #667eea !important;
}

.leaflet-control-zoom a:active {
  transform: translateY(0) scale(0.95) !important;
}

/* Layer Control Styling */

.leaflet-control-layers-toggle {
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  width: 48px !important;
  height: 48px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.leaflet-control-layers-toggle:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Geocoder Styling */
.leaflet-control-geocoder {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

.leaflet-control-geocoder-form input {
  background: transparent !important;
  border: none !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  color: #374151 !important;
  outline: none !important;
}

.leaflet-control-geocoder-form input::placeholder {
  color: #9ca3af !important;
}

/* User Location Icon Animation */
.user-location-icon {
  background: transparent !important;
  border: none !important;
}

/* Loading Animation */
.lds-dual-ring {
  display: inline-block;
  width: 40px;
  height: 40px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 32px;
  height: 32px;
  margin: 4px;
  border-radius: 50%;
  border: 3px solid var(--loader-color, #667eea);
  border-color: var(--loader-color, #667eea) transparent var(--loader-color, #667eea) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced Error Banner */
.error-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(239, 68, 68, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 20px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.error-banner button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.error-banner button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Floating Action Button Style for Drop Control */
.custom-drop-control.active {
  background: linear-gradient(135deg, #FFA502 0%, #FF8717 100%) !important;
  color: white !important;
  box-shadow: 0 8px 32px rgba(255, 165, 2, 0.4) !important;
}

.custom-drop-control.active svg {
  filter: brightness(0) invert(1);
}

/* Smooth Transitions */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .custom-drop-control {
    width: 48px;
    height: 48px;
    margin: 6px;
  }

  .custom-drop-control svg {
    width: 20px;
    height: 20px;
  }

  .leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 36px !important;
    font-size: 18px !important;
  }
}

/* Enhanced Marker Bounce Animation */
@keyframes markerBounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -8px, 0);
  }

  70% {
    transform: translate3d(0, -4px, 0);
  }

  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Pulse Animation for User Location */
@keyframes userLocationPulse {
  0% {
    r: 8;
    opacity: 0.8;
  }

  50% {
    r: 16;
    opacity: 0.4;
  }

  100% {
    r: 24;
    opacity: 0;
  }
}

/* Gradient Overlay for Map Container */
#map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1000;
}

.leaflet-control-geocoder-icon {
  border-radius: 4px;
  width: 26px;
  height: 26px;
  border: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M10.5 3a7.5 7.5 0 015.93 12.06l4.25 4.25a1 1 0 11-1.42 1.42l-4.25-4.25A7.5 7.5 0 1110.5 3zm0 2a5.5 5.5 0 100 11 5.5 5.5 0 000-11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  cursor: pointer;
}
