.geography-map-widget .map-and-list-container {
    display: flex;
    height: 700px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}

.geography-map-widget .map-section {
    flex: 1;
    position: relative;
}

.geography-map-widget .sidebar-section {
    width: 380px;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.geography-map-widget .sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #F8FAFC;
}

.geography-map-widget .search-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

/* Переопределяем стили для AutoComplete внутри виджета */
.geography-map-widget .input-search {
    width: 100%;
    padding: 10px 10px 10px 36px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.geography-map-widget .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.geography-map-widget .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: bold;
}

.geography-map-widget .sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.geography-map-widget .terminal-card {
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.geography-map-widget .terminal-card:hover {
    background-color: #f9f9f9;
}

.geography-map-widget .terminal-card-header {
    display: flex;
    align-items: flex-start;
}

.geography-map-widget .terminal-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.geography-map-widget .terminal-title .type {
    display: block;
}

.geography-map-widget .schedule-row {
    display: flex;
    justify-content: space-between;
    color: #555;
}

ul.map__filter {
    padding-inline-start: 0;
}


.map__filter .map-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map__filter .map-filter-icon {
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
}

.map__filter .filter-toggle {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 16px;
    min-width: 0;
    color: #111;
    text-decoration: none;
}

.map__filter .filter-toggle__slider {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    margin-left: auto;
    border-radius: 24px;
    background-color: #ccc;
    transition: background-color 0.2s;
}

.map__filter .filter-toggle__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    transition: transform 0.2s;
}

/* Фильтр включён */
.map__filter .filter-toggle.in .filter-toggle__slider {
    background-color: #4694d1;
}

.map__filter .filter-toggle.in .filter-toggle__slider::before {
    transform: translateX(20px);
}

.map__filter .filter-toggle:focus-visible {
    outline: 2px solid #236da6;
    outline-offset: 3px;
}

.terminal-card .type {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 16px;
}

.terminal-card .card-type-icon {
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
}

.terminal-card .address {
    display: block;
    margin-top: 8px;
}

.terminal-card .schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
}

.terminal-card .schedule-row > span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Дополнение к существующим стилям карты, карточек и переключателей. */
.geography-map {
    position: relative;
}

.map-kit-marker {
    width: 40px;
    height: 40px;
    line-height: 1;
}

.map-kit-marker > .icon-kit {
    display: block;
    font-size: 40px;
    line-height: 1;
}

.map-processing {
    position: absolute;
    z-index: 2000;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100% - 80px);
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 14px #0002;
    font-size: 14px;
    pointer-events: none;
}

.map-processing[hidden], .map-city-suggestions[hidden] {
    display: none;
}

.map-processing__spinner {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid #dceaf5;
    border-top-color: #4694d1;
    border-radius: 50%;
    animation: map-spinner 0.75s linear infinite;
}

@keyframes map-spinner {
    to {
        transform: rotate(360deg);
    }
}

.map-filters-busy {
    opacity: 0.65;
    pointer-events: none;
}

.map-search {
    position: relative;
}

.map-city-suggestions {
    position: absolute;
    z-index: 3000;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px #0002;
    max-height: 280px;
    overflow-y: auto;
}

.map-city-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: #fff;
    text-align: left;
    font: inherit;
    color: #222;
    cursor: pointer;
}

.map-city-option:hover, .map-city-option.is-active {
    background: #edf6fd;
}

.map-city-option:focus-visible, .map-list-more:focus-visible {
    outline: 2px solid #236da6;
    outline-offset: -2px;
}

.map-list-status {
    padding: 8px 12px;
    color: #6b7280;
    font-size: 13px;
}

.map-list-more {
    display: block;
    width: calc(100% - 24px);
    margin: 12px;
    padding: 10px;
    background: #edf6fd;
    border: 1px solid #d7e8f7;
    border-radius: 8px;
    color: #236da6;
    font: inherit;
    cursor: pointer;
}

#map_city_search + .input-clean {
    top: 13px;
}

.geography-map-widget .sidebar-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.geography-map-widget .sidebar-header {
    flex-shrink: 0;
}

.geography-map-widget .sidebar-list {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
}

.geography-map-widget .sidebar-list--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.geography-map-widget .map-empty-state {
    width: 100%;
    max-width: 350px;
    padding: 24px 12px;
    box-sizing: border-box;
    text-align: center;
}

/* Пустой служебный блок не занимает место над списком. */
.geography-map-widget .map-list-status:empty {
    display: none;
}

.geography-map-widget .schedule-block[hidden],
.geography-map-widget .terminal-schedule[hidden] {
    display: none !important;
}

.geography-map-widget .filters-toggle .icon-Arrows_Down_arrow {
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 180ms ease;
}

.geography-map-widget
.filters-toggle[aria-expanded="true"]
.icon-Arrows_Down_arrow {
    transform: rotate(180deg);
}

.geography-map-widget .sidebar-section {
    position: relative;
}

.map-feature-details {
    position: absolute;
    inset: 0;
    z-index: 30;
    box-sizing: border-box;
    padding: 16px;
    overflow-y: auto;
    background: #fff;
    color: #111;
}

.map-feature-details[hidden],
.map-feature-details [hidden] {
    display: none !important;
}

.feature-details__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.feature-details__title {
    min-width: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
}

.feature-details__close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 32px;
    line-height: 24px;
    cursor: pointer;
}

.feature-details__address {
    font-size: 16px;
    line-height: 22px;
}

.feature-details__branch {
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
}

.feature-details__branch a {
    color: #4694d1;
    text-decoration: underline;
}

.feature-details__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.feature-details__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    box-sizing: border-box;
    border-radius: 4px;
    background: #4694d1;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.feature-details__actions a:hover {
    text-decoration: none;
    background: #4694d1;
    color: #fff;
}

.feature-details__schedule,
.feature-details__information {
    margin-top: 20px;
}

.map-feature-details h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.feature-details__schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
}

.feature-details__schedule-table th {
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
    font-weight: 400;
}

.feature-details__schedule-table td {
    padding: 4px 0;
    vertical-align: top;
}

.feature-details__schedule-table td span {
    display: block;
}

.feature-details__information-text {
    font-size: 16px;
    line-height: 22px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.feature-details__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    cursor: pointer;

    background: transparent url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.64608 3.23188C4.25556 2.84135 3.62239 2.84135 3.23187 3.23188C2.84134 3.6224 2.84135 4.25556 3.23187 4.64609L10.5858 12L3.23187 19.3539C2.84135 19.7444 2.84135 20.3776 3.23187 20.7681C3.62239 21.1586 4.25556 21.1586 4.64608 20.7681L12 13.4142L19.3539 20.7681C19.7444 21.1586 20.3776 21.1586 20.7681 20.7681C21.1586 20.3776 21.1586 19.7444 20.7681 19.3539L13.4142 12L20.7681 4.64609C21.1586 4.25557 21.1586 3.6224 20.7681 3.23188C20.3776 2.84135 19.7444 2.84135 19.3539 3.23188L12 10.5858L4.64608 3.23188Z' fill='%23B0BAC1'/%3e%3c/svg%3e") center / 24px 24px no-repeat;
}

ul.map__filter {
    padding-inline-start: 0;
}


.map__filter .map-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map__filter .map-filter-icon {
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
}

.map__filter .filter-toggle {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 16px;
    min-width: 0;
    color: #111;
    text-decoration: none;
}

.map__filter .filter-toggle__slider {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
    margin-left: auto;
    border-radius: 24px;
    background-color: #ccc;
    transition: background-color 0.2s;
}

.map__filter .filter-toggle__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    transition: transform 0.2s;
}

/* Фильтр включён */
.map__filter .filter-toggle.in .filter-toggle__slider {
    background-color: #4694d1;
}

.map__filter .filter-toggle.in .filter-toggle__slider::before {
    transform: translateX(20px);
}

.map__filter .filter-toggle:focus-visible {
    outline: 2px solid #236da6;
    outline-offset: 3px;
}

.terminal-card .type {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 16px;
}

.terminal-card .card-type-icon {
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
}

.terminal-card .address {
    display: block;
    margin-top: 8px;
}

.terminal-card .terminal-schedule,
.terminal-card .subsidy-branch {
    margin-top: 20px;
}

.terminal-card .schedule-block + .schedule-block {
    margin-top: 16px;
}

.terminal-card .schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
}

.terminal-card .schedule-row > span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Адаптивность для мобильных */
@media (max-width: 990px) {
    .geography-map-widget .map-and-list-container {
        flex-direction: column;
        height: auto;
    }

    .geography-map-widget .sidebar-section {
        width: 100%;
        order: 1;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .geography-map-widget .map-section {
        order: 2;
        height: 400px;
    }

    .geography-map-widget .sidebar-list {
        max-height: 400px; /* Чтобы список на мобилках не был бесконечным */
    }
}

.feature-details__directions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin-top: 12px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: #f5f6f7;
    color: #66717d;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.directions-modal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 460px;
    margin-right: auto;
    margin-left: auto;
}

.directions-modal .modal-content {
    position: relative;
    padding: 26px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #111;
}

.directions-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.directions-modal h2 {
    margin: 0 32px 14px 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.directions-modal__address {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.directions-modal__picture {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f6f7;
}

.directions-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.directions-modal__state {
    margin: 0;
    padding: 16px;
    color: #66717d;
    font-size: 14px;
    text-align: center;
}

.directions-modal__controls {
    display: flex;
    align-items: center;
    min-height: 30px;
    margin-top: 8px;
}

.directions-modal__prev,
.directions-modal__next {
    flex-shrink: 0;
    width: 44px;
    height: 30px;
    padding: 0;
    border: 0;
    background: #f5f6f7;
    color: #66717d;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.directions-modal__prev:disabled,
.directions-modal__next:disabled {
    opacity: 0.35;
    cursor: default;
}

.directions-modal__dots {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-left: auto;
    padding: 8px;
    overflow-x: auto;
}

.directions-modal__dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dddfe2;
    cursor: pointer;
}

.directions-modal__dot.is-active {
    background: #66717d;
}

.directions-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.directions-modal__actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
}

.directions-modal__route,
.directions-modal__route:hover {
    background: #4694d1;
    color: #fff;
}

.directions-modal__share,
.directions-modal__share:hover {
    background: #f5f6f7;
    color: #66717d;
}

.directions-modal [hidden],
.feature-details__directions[hidden] {
    display: none !important;
}

.feature-details__directions {
    box-sizing: border-box;
    text-decoration: none;
}

.feature-details__directions:hover {
    color: #66717d;
    text-decoration: none;
}

.feature-details__directions[aria-disabled="true"] {
    opacity: 0.5;
    cursor: default;
}

.directions-share {
    position: relative;
}

.directions-share > .directions-modal__share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: #f5f6f7;
    color: #66717d;
    font: inherit;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
}

.directions-share__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    width: 100%;
    padding: 4px 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.directions-share__menu.is-above {
    top: auto;
    bottom: calc(100% + 4px);
}

.directions-share__menu[hidden] {
    display: none !important;
}

.directions-share__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.directions-share__menu li {
    margin: 0 !important;
}

.directions-modal .directions-share__menu a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 0;
    background: #fff;
    color: #111;
    text-align: left;
    text-decoration: none;
}

.directions-modal .directions-share__menu a:hover,
.directions-modal .directions-share__menu a:focus-visible {
    background: #f5f6f7;
}

.directions-share__menu .title-h5 {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
}

.directions-share__menu svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.directions-share__menu .icon-Interface_Link {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    padding: 4px !important;
    font-size: 20px !important;
    line-height: 20px;
}

.feature-details__close:focus-visible {
    border: none;
}

@media (max-width: 480px) {
    .directions-modal .modal-content {
        padding: 20px 16px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .map-processing__spinner {
        animation: none;
    }
}

/* Добавляется после существующего CSS. Порог совпадает с текущим: 990px. */
.geography-map-widget .map-mobile-title,
.geography-map-widget .map-mobile-filter-icon,
.geography-map-widget .map-mobile-filters-heading,
.geography-map-widget .map-mobile-filters-footer,
.directions-modal .directions-modal__back {
    display: none;
}

/* filters_toggle теперь button вместо div: сбрасываем браузерные стили. */
.geography-map-widget button.filters-toggle {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

@media (max-width: 990px) {
    .geography-map-widget .map-and-list-container {
        position: relative;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        height: 700px;
        height: clamp(480px, 85svh, 760px);
        min-height: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
    }

    .geography-map-widget .sidebar-section {
        position: static;
        flex: 0 0 auto;
        order: 0;
        width: 100%;
        min-width: 0;
        border: 0;
    }

    .geography-map-widget .map-section {
        order: 1;
        flex: 1 1 0;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .geography-map-widget .sidebar-header {
        padding: 0 20px;
        border: 0;
        background: #fff;
    }

    .geography-map-widget .map-search-header {
        padding-top: 20px;
    }

    .geography-map-widget .map-mobile-title {
        display: block;
        margin: 0 0 20px;
        color: #111;
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
    }

    .geography-map-widget .search-input-wrapper {
        margin: 0;
        z-index: 40;
    }

    .geography-map-widget .input-search {
        min-height: 44px;
        padding: 10px 36px;
        border-color: #cbd5de;
        font-size: 16px; /* Не вызывает автозум поля в iOS. */
        line-height: 22px;
    }

    .geography-map-widget .map-filters-header {
        padding-top: 10px;
        padding-bottom: 14px;
    }

    .geography-map-widget button.filters-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        width: auto;
        min-height: 36px;
        padding: 6px 10px;
        border-radius: 4px;
        background: #f5f6f7;
        color: #66717d;
        font-size: 12px;
        line-height: 20px;
    }

    .geography-map-widget .filters-toggle .title-h4-m {
        font: inherit;
    }

    .geography-map-widget .map-mobile-filter-icon {
        display: block;
        flex-shrink: 0;
    }

    .geography-map-widget .filters-toggle .icon-Arrows_Down_arrow,
    .geography-map-widget .sidebar-list {
        display: none;
    }

    /* Сообщения об ошибках остаются видимыми, длинного списка над картой нет. */
    .geography-map-widget .map-list-status:not(:empty) {
        position: absolute;
        z-index: 10;
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 12px;
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 2px 12px #0002;
    }

    .geography-map-widget .map-city-suggestions {
        top: calc(100% + 2px);
        max-height: 240px;
        max-height: min(280px, 42svh);
        border-radius: 0 0 4px 4px;
        overscroll-behavior: contain;
    }

    .geography-map-widget .map-city-option {
        min-height: 44px;
        overflow-wrap: anywhere;
        font-size: 14px;
        line-height: 20px;
    }

    .geography-map-widget .filters-content,
    .geography-map-widget .filters-content.collapsing {
        display: none;
    }

    .geography-map-widget .filters-content.is-mobile-open {
        position: absolute;
        inset: 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        height: auto;
        padding: 20px;
        background: #fff;
        overflow: hidden;
        transition: none;
    }

    .geography-map-widget .map-mobile-filters-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        gap: 16px;
        margin-bottom: 16px;
    }

    .geography-map-widget .map-mobile-filters-heading h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 500;
        line-height: 28px;
    }

    .geography-map-widget .filters-content .map__filter {
        flex: 1 1 auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .geography-map-widget .map-filter-item {
        min-height: 44px;
        margin: 0 0 8px !important;
        gap: 10px;
    }

    .geography-map-widget .filter-toggle {
        min-height: 44px;
        gap: 12px;
        font-size: 14px;
        line-height: 20px;
    }

    .geography-map-widget .filter-toggle__text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .geography-map-widget .map-mobile-filters-footer {
        display: block;
        flex-shrink: 0;
        padding-top: 16px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .geography-map-widget .map-mobile-filters-apply {
        display: block;
        width: 100%;
        min-height: 44px;
        padding: 10px 16px;
        border: 0;
        border-radius: 4px;
        background: #4694d1;
        color: #fff;
        font: inherit;
        font-size: 14px;
        cursor: pointer;
    }

    .geography-map-widget .map-mobile-filters-apply:disabled {
        opacity: .6;
        cursor: wait;
    }

    .geography-map-widget .map-mobile-filters-error {
        margin: 0 0 8px;
        color: #b42318;
        font-size: 14px;
    }

    .geography-map-widget .map-feature-details {
        position: absolute;
        inset: 0;
        z-index: 50;
        padding: 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
        overscroll-behavior: contain;
        overflow-wrap: anywhere;
    }

    .geography-map-widget .feature-details__title {
        font-size: 22px;
        line-height: 28px;
    }

    .geography-map-widget .feature-details__actions a,
    .geography-map-widget .feature-details__directions {
        min-height: 44px;
        font-size: 14px;
        line-height: 20px;
    }

    .geography-map-widget .feature-details__schedule-table {
        font-size: 12px;
        line-height: 20px;
    }

    .geography-map-widget .map-processing {
        z-index: 10;
        max-width: calc(100% - 24px);
    }

    /* Схема использует уже существующую Bootstrap-модалку. */
    .directions-modal .modal-dialog {
        width: 100%;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .directions-modal .modal-content {
        box-sizing: border-box;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px));
        border-radius: 0;
    }

    .directions-modal .directions-modal__back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        align-self: flex-start;
        min-height: 44px;
        margin: -8px 0 4px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #111;
        font: inherit;
        font-size: 18px;
        cursor: pointer;
    }

    .directions-modal .directions-modal__close,
    .directions-modal h2 {
        display: none;
    }

    .directions-modal .directions-modal__picture {
        flex-shrink: 0;
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    .directions-modal .directions-modal__actions a,
    .directions-modal .directions-share > .directions-modal__share {
        min-height: 44px;
        font-size: 14px;
        line-height: 20px;
    }

    .directions-modal .directions-share__menu {
        box-sizing: border-box;
    }
}
