/* IKZ Core — map compatibility and rescue layer.
   Loaded after the main map stylesheet. Keep this module enabled. */

.iz-centers-app,
.iz-centers-app .iz-map-layout,
.iz-centers-app .iz-map-canvas,
.iz-centers-app .leaflet-container {
  min-width: 0;
}

.iz-centers-app .iz-map-layout {
  height: var(--iz-map-height, 720px) !important;
  min-height: 520px !important;
  display: grid !important;
  overflow: hidden;
}

.iz-centers-app .iz-map-canvas,
.iz-centers-app .leaflet-container {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 420px !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1;
}

.iz-map-page .iz-centers-app,
.iz-map-page .iz-centers-app .iz-map-layout {
  height: 100% !important;
  min-height: 0 !important;
}

.iz-map-page .iz-centers-app .iz-map-canvas,
.iz-map-page .iz-centers-app .leaflet-container {
  min-height: 0 !important;
}

.leaflet-pane,
.leaflet-control,
.leaflet-top,
.leaflet-bottom {
  z-index: auto;
}

@media (max-width: 980px) {
  .iz-centers-app .iz-map-layout {
    height: max(var(--iz-map-height, 720px), 760px) !important;
  }

  .iz-map-page .iz-centers-app .iz-map-layout {
    height: 100% !important;
  }
}
