/* HKA_MAP_MOBILE_CONTROLS_V100
   Dashboard maps use a card, not the legacy full-screen canvas/dock. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  html body.hka-spatial-dashboard #hdsMapSlot > #map {
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
  html body.hka-spatial-dashboard #hdsMapSlot #map > .leaflet-control-container > .leaflet-bottom {
    position: absolute !important;
    top: auto !important;
    bottom: var(--hmc-bottom-inset, 0px) !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }
  html body.hka-spatial-dashboard #hdsMapSlot #map > .leaflet-control-container > .leaflet-bottom.leaflet-left {
    left: 0 !important;
    right: auto !important;
  }
  html body.hka-spatial-dashboard #hdsMapSlot #map > .leaflet-control-container > .leaflet-bottom.leaflet-right {
    left: auto !important;
    right: 0 !important;
    max-width: calc(100% - var(--hmc-scale-space, 112px)) !important;
  }
  html body.hka-spatial-dashboard #hdsMapSlot .leaflet-control-attribution {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2px 5px !important;
    font-size: 9px !important;
    line-height: 12px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: right;
    background: rgba(255,255,255,.9);
  }
  html body.hka-spatial-dashboard #hdsMapSlot .leaflet-control-attribution svg {
    width: 12px !important;
    height: 8px !important;
    stroke: none !important;
  }
  html body.hka-spatial-dashboard #hdsMapSlot .leaflet-control-scale {
    margin: 0 0 5px 7px !important;
  }
  html body.hka-spatial-dashboard #hdsMapSlot .leaflet-control-scale-line {
    font-size: 10px !important;
    line-height: 12px !important;
  }
  html body.hka-spatial-dashboard #hkaSpatialDashboard .hds-map-footer {
    bottom: max(24px, var(--hmc-footer-gap, 40px)) !important;
  }
  html body.hka-spatial-dashboard .hds-map-card.hds-expanded {
    --hmc-bottom-inset: env(safe-area-inset-bottom, 0px);
  }
}
