/* Custom styles for Overflight Fee Calculator */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  overscroll-behavior: none;
}

/* Leaflet Overrides */
.leaflet-container {
  outline: none;
  cursor: crosshair;
  background-color: #0b1120;
}

html.light .leaflet-container {
  background-color: #dbeafe;
}

.custom-wp-marker {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-wp-marker:hover {
  transform: scale(1.15);
  z-index: 1000 !important;
}

/* Oceanic Tooltip */
.oceanic-tooltip {
  background-color: rgba(15, 23, 42, 0.9) !important;
  color: #38bdf8 !important;
  border: 1px solid #0284c7 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.5);
}

/* Pulse animation for active route calculation */
@keyframes routePulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.6; }
}

.route-calculating {
  animation: routePulse 1.5s infinite;
}

/* Ensure sidebar is completely rock-solid on desktop & tablets (>= 768px) */
@media (min-width: 768px) {
  #sidebar {
    position: relative !important;
    transform: none !important;
    width: 440px !important;
    min-width: 440px !important;
    max-width: 440px !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-shrink: 0 !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }
}

/* On mobile (< 768px), drawer sliding */
@media (max-width: 767px) {
  #sidebar.drawer-closed {
    transform: translateY(100%) !important;
  }
  #sidebar.drawer-open {
    transform: translateY(0) !important;
  }
}
