/* Keep iOS from magnifying the whole map page when a search field receives focus. */
@media (max-width: 1120px) {
  .map-page #topbarSearchForm #topbarSearchInput,
  .map-page #mapFilterPanel #mainSearchInput,
  .map-page #mapFilterPanel #originInput {
    font-size: 16px !important;
  }
}

/* A mobile keyboard may shrink the visual viewport without changing the map camera. */
@media (max-width: 1120px) {
  .map-page .map-layout {
    height: var(--map-viewport-height, var(--app-viewport-height, 100dvh)) !important;
  }
}

/* Avoid document scrolling when the full-size map extends below the keyboard. */
@media (max-width: 1120px) {
  body.map-page.map-search-keyboard-lock:not(.embedded-event-editor):not(:has(dialog[open])) {
    height: var(--app-viewport-height);
    overflow-y: hidden !important;
    overscroll-behavior-y: none;
  }
}
