/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Fix Leaflet map z-index overlaying nav/sidebar on mobile */
.leaflet-container {
  z-index: 0 !important;
  position: relative;
  isolation: isolate;
}

.leaflet-pane {
  z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
  z-index: 2 !important;
}

/* Ensure nav elements always sit above maps */
[data-sidebar-target="overlay"] {
  z-index: 9998 !important;
}

[data-sidebar-target="sidebar"] {
  z-index: 9999 !important;
}
