/* Keep the SVG within the viewport and avoid filtered surfaces on phones. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .weather-page .weather-map-scroll {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .weather-page .weather-map {
    min-width: 0;
  }

  .weather-page .weather-map,
  .weather-page .weather-district,
  .weather-page .weather-district:hover,
  .weather-page .weather-district:focus-visible,
  .weather-page .weather-district.active,
  .weather-page .weather-city-tooltip,
  .weather-page .weather-anchor-marker {
    filter: none;
    transition: none;
  }

  .weather-page .weather-day-tabs,
  .weather-page .weather-map-reset {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .weather-page .weather-map-legend {
    position: static;
    justify-content: end;
    padding-block: 8px;
  }

  .weather-page .weather-map-reset {
    top: 0;
    left: 0;
    min-height: 44px;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* Selecting the district or town already opens the detailed forecast. */
  .weather-page .weather-city-dot:not(:focus-visible) .weather-city-tooltip {
    display: none;
  }
}
