/* IKZ Core — map compatibility layer.
   Load after full-screen map.css. */

.iz-centers-app {
  --map-component-height: var(--iz-map-height);
}

.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(--map-component-height) !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;
}

.iz-centers-app :is(.leaflet-pane, .leaflet-control, .leaflet-top, .leaflet-bottom) {
  z-index: auto;
}

@media (max-width: 820px) {
  .iz-centers-app .iz-map-layout {
    height: max(var(--map-component-height), 760px) !important;
  }

  .iz-map-page .iz-centers-app .iz-map-layout {
    height: 100% !important;
  }
}

@media (max-width: 640px) {
  .iz-centers-app .iz-map-layout {
    height: auto !important;
    min-height: 0 !important;
  }

  .iz-centers-app .iz-map-canvas,
  .iz-centers-app .leaflet-container {
    min-height: 320px !important;
  }
}
