@media (max-width: 999px) {
    .meteone-live-stations {
        --meteone-page-header-height: 54px;
    }

    .meteone-station-menu__toggle {
        display: grid;
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    .meteone-station-menu__panel {
        display: none;
    }

    .meteone-station-menu__panel.is-open {
        display: block;
    }

}

@media (max-width: 767px) {
    .meteone-live-stations__map-shell {
        --meteone-mobile-footer-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        --meteone-mobile-footer-font-size: clamp(10.5px, 3vw, 12px);
        --meteone-mobile-footer-logo-offset: clamp(3px, calc(9px - 1.25vw), 5px);
        --meteone-mobile-footer-padding-x: clamp(4px, 1.5vw, 8px);
    }

    .meteone-live-stations .leaflet-top.leaflet-right > .meteone-map-tools-control {
        bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    }

    .meteone-live-stations .leaflet-bottom.leaflet-left {
        right: auto;
        left: 10px;
    }

    .meteone-live-stations .meteone-map-control-button {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        line-height: 44px;
    }

    .meteone-live-stations .leaflet-top.leaflet-left > .meteone-station-menu {
        bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    }

    .meteone-station-search__input {
        height: 44px;
    }

    .meteone-station-search__panel {
        top: calc(100% + 8px);
        right: 0;
        width: min(300px, calc(100vw - 20px));
    }

    .meteone-basemap-control__option {
        min-height: 44px;
    }

    .meteone-map-tools-control__item,
    .meteone-map-tools-control__option {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
    }

    .meteone-map-tools-control__panel,
    .meteone-map-tools-control__basemaps {
        width: 44px;
    }

    .meteone-live-stations .meteone-station-menu__history-date {
        height: 40px;
    }

    .meteone-live-stations .meteone-station-count {
        width: max-content;
        max-width: calc(100vw - 20px);
        min-height: 33px;
        padding: 7px var(--meteone-mobile-footer-padding-x);
        margin: 0;
        font: 650 var(--meteone-mobile-footer-font-size)/1.35 var(--meteone-map-font);
        white-space: nowrap;
    }

    .meteone-live-stations .leaflet-popup-content {
        width: min(calc(100vw - 52px), 320px) !important;
        margin: 0;
    }

    .meteone-map-brand {
        right: 10px;
        bottom: calc(var(--meteone-mobile-footer-bottom) + var(--meteone-mobile-footer-logo-offset));
        width: clamp(78px, 24vw, 96px);
    }

    .meteone-radar-status {
        right: auto;
        bottom: var(--meteone-mobile-footer-bottom);
        left: 50%;
        flex-wrap: nowrap;
        gap: 0;
        width: max-content;
        max-width: none;
        min-height: 33px;
        padding: 7px var(--meteone-mobile-footer-padding-x);
        font: 650 var(--meteone-mobile-footer-font-size)/1.35 var(--meteone-map-font);
        transform: translateX(-50%);
    }

    .meteone-radar-status__warning {
        display: none;
    }

    .meteone-live-stations__map-shell.has-radar-status .meteone-map-brand {
        bottom: calc(var(--meteone-mobile-footer-bottom) + var(--meteone-mobile-footer-logo-offset));
    }

    .meteone-live-stations__map-shell.has-radar-status-warning .meteone-map-brand {
        bottom: calc(var(--meteone-mobile-footer-bottom) + var(--meteone-mobile-footer-logo-offset));
    }
}

@media (max-width: 999px) and (max-height: 500px) {
    .meteone-station-menu__panel {
        max-height: calc(100% - 156px);
        overflow-y: auto;
    }
}

@media (hover: none), (pointer: coarse) {
    .meteone-map-control-tooltip {
        display: none !important;
    }

    .meteone-live-stations .meteone-station-menu__toggle {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .meteone-live-stations .meteone-station-menu__toggle:hover,
    .meteone-live-stations .meteone-station-menu__toggle:focus:not(:focus-visible) {
        background: rgb(255 255 255 / 96%);
        box-shadow: 0 3px 16px rgb(19 43 58 / 22%);
        color: #123b52;
        outline: 0;
    }

    .meteone-live-stations .meteone-station-menu__toggle:active {
        background: #eaf5fa;
        color: #00669c;
    }

    .meteone-live-stations .meteone-station-menu__toggle.is-touch-pressed {
        background: #eaf5fa !important;
        color: #00669c !important;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button {
        border: 0 !important;
        border-radius: 10px !important;
        background: #fff;
        color: #123b52;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:hover,
    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:focus:not(:focus-visible) {
        background: #fff !important;
        background-image: none !important;
        color: #123b52;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:hover::before,
    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:focus:not(:focus-visible)::before {
        background: transparent !important;
        box-shadow: none !important;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:active {
        color: #00669c;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:active::before {
        background: #eaf5fa !important;
        box-shadow: inset 0 0 0 100px #eaf5fa !important;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:focus:not(:focus-visible) {
        outline: 0;
        box-shadow: none;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:focus-visible {
        background: #fff !important;
        background-image: none !important;
    }

    .meteone-live-stations .meteone-zoom-control a.meteone-map-control-button:focus-visible::before {
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .meteone-station-marker__pin,
    .meteone-geolocation-control__icon,
    .meteone-screenshot-control__icon {
        animation: none;
        transition: none;
    }
}

@media (forced-colors: active) {
    .meteone-station-marker__pin {
        border-color: CanvasText;
        background: Highlight;
    }

    .meteone-station-count {
        border: 1px solid CanvasText;
    }

    .meteone-radar-status {
        border: 1px solid CanvasText;
    }

    .meteone-user-location-icon span {
        border-color: Canvas;
        background: Highlight;
        forced-color-adjust: none;
    }

    .meteone-station-menu__panel,
    .meteone-station-menu__toggle {
        border: 1px solid CanvasText;
    }
}
