/* NEXO GIS - correccion movil sobre la base estable 20260717 */
@media (max-width: 900px) {
  /* Leaflet usa z-index internos de hasta 1000; el menu debe quedar por encima. */
  .navrail {
    z-index: 3000 !important;
  }

  .navrail.open {
    z-index: 3000 !important;
    box-shadow: 12px 0 28px rgba(11, 31, 48, 0.32);
  }

  .navrail .close-mobile {
    z-index: 3001 !important;
  }

  .topbar {
    z-index: 2100 !important;
  }

  /* Encierra los z-index de Leaflet dentro del mapa. */
  .map-layout,
  .map-wrap,
  .map-canvas {
    position: relative;
    isolation: isolate;
  }

  .map-wrap,
  .map-canvas,
  .leaflet-container {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 430px !important;
  }

  /* Las geometrías se renderizan como SVG en esta versión. */
  .leaflet-overlay-pane svg,
  .leaflet-overlay-pane svg path {
    visibility: visible !important;
  }

  .leaflet-overlay-pane svg {
    display: block !important;
    max-width: none !important;
    max-height: none !important;
  }

  .leaflet-overlay-pane path {
    vector-effect: non-scaling-stroke;
  }
}
