/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Top-layer native dialog animations */
dialog {
  opacity: 0;
  transform: scale(0.95);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.25s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}
dialog[open] {
  opacity: 1;
  transform: scale(1);
}
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.95);
  }
}
dialog::backdrop {
  background-color: rgba(2, 6, 23, 0);
  backdrop-filter: blur(0px);
  transition:
    display 0.25s allow-discrete,
    overlay 0.25s allow-discrete,
    background-color 0.25s ease-out,
    backdrop-filter 0.25s ease-out;
}
dialog[open]::backdrop {
  background-color: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
}
@starting-style {
  dialog[open]::backdrop {
    background-color: rgba(2, 6, 23, 0);
    backdrop-filter: blur(0px);
  }
}

/* Custom styles for Leaflet */
.leaflet-container {
  background: #0f172a !important;
}
.leaflet-bar a {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}
.leaflet-bar a:hover {
  background-color: #334155 !important;
  color: #f1f5f9 !important;
}
