/* Страница карты и панель организаций. */

.map_layout {
    display: flex;
    gap: 20px;
    width: 100%;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    z-index: 1;
}
.leaflet-container {
    z-index: 0;
}

/* Список организаций. */

.map_restaurants {
    width: 350px;
    min-width: 350px;
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--color-standart-shadow);
    background: var(--color-background-card);
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
}

.map_restaurants_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.map_restaurants_header h2 {
    margin: 0;
}

#selectedRestaurantsCount {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 28px;

    padding: 0 8px;

    border-radius: 14px;

    background: var(--map-counter-surface);

    font-size: 14px;
    font-weight: 600;
}

.map_search {
    margin-bottom: 15px;
}

.map_search input {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid var(--map-search-border);
    border-radius: 8px;

    font-size: 14px;

    outline: none;

    transition: all .4s;
}

.map_search input:focus {
    border-color: var(--color-primary);
}

.map_restaurants_list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.map_restaurant_item {
    width: 100%;

    border: 1px solid var(--map-list-border);
    border-radius: 8px;

    background: var(--color-surface);

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.map_restaurant_item.expanded {
    border-color: var(--map-list-active-border);

    box-shadow:
        0 2px 8px var(--map-list-active-shadow-color);
}

.map_restaurant_main {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 48px;

    padding: 10px 12px;

    cursor: pointer;
}

.map_restaurant_main:hover {
    background: var(--map-list-hover-surface);
}

.map_restaurant_name {
    flex: 1;

    min-width: 0;

    font-size: 14px;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

.map_restaurant_arrow {
    flex-shrink: 0;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--color-text-subtle);

    font-size: 18px;
    line-height: 1;

    transform: rotate(0deg);

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.map_restaurant_arrow.expanded {
    transform: rotate(180deg);

    color: var(--color-primary-text);
}

.map_restaurant_toggle {
    position: relative;

    display: inline-block;

    width: 42px;
    height: 24px;

    flex-shrink: 0;
}

/* Штатный флажок скрыт, но остаётся элементом управления. */
.map_restaurant_toggle input {
    width: 0;
    height: 0;

    opacity: 0;
}

.map_restaurant_slider {
    position: absolute;

    inset: 0;

    cursor: pointer;

    border-radius: 24px;

    background: var(--map-toggle-track);

    transition: 0.2s;
}

.map_restaurant_slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: var(--color-surface);

    transition: 0.2s;
}

.map_restaurant_toggle input:checked + .map_restaurant_slider {
    background: var(--color-primary);
}

.map_restaurant_toggle input:checked + .map_restaurant_slider::before {
    transform: translateX(18px);
}

.map_restaurant_details {
    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 0 12px 12px 12px;

    border-top: 1px solid var(--color-border-soft);

    background: var(--map-details-surface);
}

.map_restaurant_details_image {
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--map-control-hover-surface);
}

.map_restaurant_details_image img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.map_restaurant_info_row {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding-top: 4px;
}

.map_restaurant_info_label {
    width: 120px;
    min-width: 120px;

    color: var(--color-text-subtle);

    font-size: 12px;
    line-height: 1.4;
}

.map_restaurant_info_value {
    flex: 1;

    min-width: 0;

    color: var(--color-text);

    font-size: 13px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.map_pagination {
    gap: 5px;
    margin-top: 15px;
}

.map_pagination button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    transition: all 0.5s;
}

.map_pagination button:disabled {
    opacity: 0.75;

    cursor: default;
}

.map_route_button {
    width: 100%;

    margin-top: 10px;

    padding: 11px 15px;

    border: 1px solid var(--color-primary);
    border-radius: 8px;

    background: var(--color-surface);
    color: var(--color-text);

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.5s;
}

.map_route_button:hover {
    background: var(--color-primary);
    border-color: transparent;
    color: var(--color-text-white);
}
.map_route_reset_button {
    width: 100%;
    margin-top: 10px;
    padding: 11px 15px;
    border: 1px solid orange;
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.5s;
}
.map_route_reset_button:hover {
    background: orange;
    border-color: transparent;
    color: var(--color-text-white);
}
.map_route_driver_button {
    width: 100%;
    margin-top: 10px;
    padding: 11px 15px;
    border: 1px solid green;
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.5s;
}
.map_route_driver_button:hover {
    background: green;
    border-color: transparent;
    color: var(--color-text-white);
}

/* Область карты. */

.map_container {
    flex: 1;

    min-width: 0;

    height: 600px;

    border-radius: 10px;

    overflow: hidden;
}

.map_restaurants_error {
    padding: 15px;

    border: 1px solid var(--color-border);
    border-radius: 8px;

    text-align: center;

    font-size: 14px;
}

@media (max-width: 900px) {

    .map_layout {
        flex-direction: column;
    }

    .map_restaurants {
        width: 100%;
        min-width: 0;
    }

    .map_container {
        flex: none;

        width: 100%;
        height: 400px;

        min-height: 400px;

        border-radius: 8px;
    }
}

@media (max-width: 600px) {

    .map_layout {
        gap: 15px;
    }

    .map_restaurants_header {
        margin-bottom: 12px;
    }

    .map_restaurants_header h2 {
        font-size: 20px;
    }

    .map_search {
        margin-bottom: 12px;
    }

    .map_search input {
        height: 42px;

        padding: 10px 12px;

        font-size: 15px;
    }

    .map_restaurant_main {
        min-height: 44px;

        padding: 10px;
    }

    .map_restaurant_name {
        font-size: 14px;

        overflow-wrap: anywhere;
    }

    .map_restaurant_toggle {
        width: 46px;
        height: 26px;
    }

    .map_restaurant_slider::before {
        width: 20px;
        height: 20px;

        left: 3px;
        top: 3px;
    }

    .map_restaurant_toggle input:checked + .map_restaurant_slider::before {
        transform: translateX(20px);
    }

    .map_restaurant_details {
        gap: 7px;

        padding: 0 10px 10px 10px;
    }

    .map_restaurant_info_row {
        flex-direction: column;

        gap: 2px;
    }

    .map_restaurant_info_label {
        width: auto;
        min-width: 0;

        font-size: 11px;
    }

    .map_restaurant_info_value {
        font-size: 13px;
    }

    .map_pagination {
        flex-wrap: wrap;

        margin-top: 12px;
    }

    .map_pagination button {
        width: 36px;
        height: 36px;
    }

    .map_route_button {
        min-height: 44px;

        margin-top: 12px;

        font-size: 15px;
    }

    .map_container {
        height: 400px;

        border-radius: 8px;
    }
}

.restaurant_marker {
    background: transparent;

    border: none;
}

.restaurant_marker_number {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--map-marker-surface);
    color: var(--color-text-white);

    font-size: 14px;
    font-weight: 600;

    box-sizing: border-box;

    border: 2px solid var(--map-marker-border);

    box-shadow:
        0 2px 6px var(--color-standart-shadow);
}

.map_organization_popup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 240px;
}

.map_organization_popup_image {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--map-popup-placeholder);
}

.map_organization_popup_title {
    color: var(--tg-message-bg);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.map_organization_popup_address {
    color: var(--tg-surface-secondary);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.select_region_rest_container {
    width: 100%;
}
.select_region_rest {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text);
    border: 1px solid var(--color-grey-light);
    border-radius: 8px;
    transition: all .4s;
    outline: none;
    margin-bottom: 15px;
}
.select_region_rest option {
    padding: 10px;
}
.select_region_rest:hover {
    border: 1px solid var(--color-primary);
}
.select_region_rest:focus {
    border: 1px solid var(--color-primary);
}

.map_restaurants_actions {
    margin-bottom: 12px;
}

.map_add_restaurant_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 28px;
    margin: 0 10px;
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    background: var(--map-confirm-action);
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .4s;
}

.map_add_restaurant_button:hover {
    background: var(--map-confirm-action-hover);
}

.map_add_restaurant_button:active {
    transform: scale(0.98);
}

/* Добавление и редактирование организации. */

.map_modal {
    z-index: 5000;
}

.map_modal_overlay {
    background: var(--map-overlay);
}

.map_modal_content {
    position: relative;
    width: min(520px, calc(100% - 30px));
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    box-shadow: 0 15px 50px var(--map-modal-shadow-color);
    z-index: 1;
}

.map_modal_header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border-soft);
}

.map_modal_header h2 {
    font-size: 20px;
}

.map_modal_close {
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-secondary);
}

.map_modal_close:hover {
    color: var(--color-text);
}

.map_organization_type_modal_group {
    margin-bottom: 18px;
}

.map_organization_type_modal {
    display: flex;
    gap: 8px;

    width: 100%;
}

.map_organization_type_modal_option {
    position: relative;

    flex: 1;

    height: 42px;

    cursor: pointer;
    user-select: none;
}

.map_organization_type_modal_option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

/* Видимый переключатель типа организации связан со скрытым полем выбора. */

.map_organization_type_modal_option span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    border: 1px solid var(--map-choice-border);
    border-radius: 9px;

    background: var(--color-surface-soft);

    color: var(--color-text-secondary);

    font-size: 13px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.map_organization_type_modal_option:hover span {
    background: var(--map-control-hover-surface);

    color: var(--color-text-heading);

    border-color: var(--map-choice-border-hover);
}

.map_organization_type_modal_option:has(input:checked) span {
    background: var(--map-choice-active);

    border-color: var(--map-choice-active);

    color: var(--color-text-white);

    box-shadow:
        0 3px 8px var(--map-choice-shadow-color);
}

/* При редактировании тип организации нельзя изменить. */

.map_organization_type_modal.is-disabled {
    opacity: 0.75;

    pointer-events: none;
}

.map_organization_type_modal.is-disabled
.map_organization_type_modal_option span {
    cursor: default;
}

.map_restaurant_form {
    padding: 20px;
}

.map_form_group {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin-bottom: 15px;
}

.map_form_group label {
    font-size: 14px;

    font-weight: 600;

    color: var(--color-text-heading);
}

.map_form_group input,
.map_form_group textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid var(--map-field-border);

    border-radius: 7px;

    font-family: inherit;

    font-size: 14px;

    outline: none;
}

.map_form_group input:focus,
.map_form_group textarea:focus {
    border-color: var(--map-field-focus);
}

.map_form_group textarea {
    resize: vertical;
}

.map_form_hint {
    font-size: 12px;

    color: var(--map-hint-text);
}

#restaurantImageGroup[hidden],
.map_organization_image_preview[hidden] {
    display: none;
}

.map_organization_image_preview {
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    border: 1px solid var(--map-preview-border);
    border-radius: 9px;
    background: var(--color-surface-soft);
}

.map_organization_image_preview img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.map_organization_image_input {
    width: 100%;
    padding: 6px;
    border: 1px solid var(--map-field-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text-medium);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.map_organization_image_input::file-selector-button {
    margin-right: 12px;
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    background: var(--map-choice-active);
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.map_organization_image_input::file-selector-button:hover {
    background: var(--map-upload-hover);
}

.map_form_error {
    display: none;

    margin-bottom: 15px;

    padding: 10px 12px;

    border-radius: 7px;

    background: var(--map-error-surface);

    color: var(--map-error-text);

    font-size: 13px;
}

.map_form_error.active {
    display: block;
}

.map_modal_actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 20px;
}

.map_modal_cancel,
.map_modal_save {
    padding: 10px 18px;

    border-radius: 7px;

    font-size: 14px;

    cursor: pointer;
}

.map_modal_cancel {
    border: 1px solid var(--map-secondary-border);

    background: var(--color-surface);

    color: var(--color-text-heading);
}

.map_modal_save {
    border: none;

    background: var(--map-confirm-action);

    color: var(--color-text-white);

    font-weight: 600;
}

.map_modal_save:hover {
    background: var(--map-confirm-action-hover);
}

.map_modal_delete {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 100px;
    height: 40px;

    padding: 0 16px;

    border: 1px solid var(--map-danger-action);
    border-radius: 8px;

    background: var(--color-surface);

    color: var(--map-danger-text);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.map_modal_delete:hover {
    background: var(--map-danger-action);
    border-color: var(--map-danger-action);
    color: var(--color-text-white);

    box-shadow:
        0 3px 8px var(--map-danger-shadow-color);
}

.map_modal_delete:active {
    transform: translateY(1px);
}

@media (max-width: 600px) {

    .map_modal_content {
        width: calc(100% - 20px);

        max-height: calc(100vh - 20px);
    }

    .map_modal_header {
        padding: 15px;
    }

    .map_restaurant_form {
        padding: 15px;
    }

}

.map_restaurant_edit_button {
    width: calc(100% - 20px);

    margin: 0 10px 10px;

    padding: 9px 12px;

    border: 1px solid var(--map-secondary-border);

    border-radius: 7px;

    background: var(--color-surface);

    color: var(--color-text-heading);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.map_restaurant_edit_button:hover {
    background: var(--color-surface-soft);

    border-color: var(--map-secondary-border-hover);
}

.map_organization_type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    width: 100%;
    margin-bottom: 20px;
}

.map_organization_type_option {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 140px;
    height: 44px;

    cursor: pointer;
    user-select: none;
}

.map_organization_type_option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.map_organization_type_option span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 0 20px;

    border: 1px solid var(--map-choice-border);
    border-radius: 10px;

    background: var(--color-surface-soft);

    color: var(--color-text-secondary);

    font-size: 14px;
    font-weight: 600;

    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.map_organization_type_option:hover span {
    background: var(--map-control-hover-surface);
    border-color: var(--map-choice-border-hover);
    color: var(--color-text-heading);
}

.map_organization_type_option:active span {
    transform: translateY(1px);
}

.map_organization_type_option:has(input:checked) span {
    background: var(--map-choice-active);
    border-color: var(--map-choice-active);

    color: var(--color-text-white);

    box-shadow:
        0 4px 10px var(--map-choice-shadow-strong);
}

.map_organization_type_option:has(input:checked):hover span {
    background: var(--map-choice-active-hover);
    border-color: var(--map-choice-active-hover);
}

.map_organization_popup_remove {
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;

    border: 1px solid var(--map-danger-action);
    border-radius: 6px;

    background: var(--color-surface);
    color: var(--map-danger-text);

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.2s ease;
}

.map_organization_popup_remove:hover {
    background: var(--map-danger-action);
    color: var(--color-text-white);
}

@media (max-width: 768px) {

    .map_organization_type {
        gap: 8px;
    }

    .map_organization_type_option {
        min-width: 120px;
        height: 42px;
    }

    .map_organization_type_option span {
        padding: 0 16px;

        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .map_organization_type {
        gap: 8px;
    }

    .map_organization_type_option {
        flex: 1;

        min-width: 0;
        height: 42px;
    }

    .map_organization_type_option span {
        padding: 0 8px;

        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 350px) {

    .map_organization_type {
        gap: 6px;
    }

    .map_organization_type_option {
        height: 40px;
    }

    .map_organization_type_option span {
        padding: 0 5px;

        font-size: 12px;
    }
}

/* Назначение водителя для маршрута. */

#driverRouteModal {
    z-index: 1000;
}

#driverRouteModal .base-modal-content {
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    padding: 20px;

    display: flex;
    flex-direction: column;

    border-radius: 10px;

    background: var(--color-background-card);
}

/* Ширина ограничена только для окна выбора водителя. */

#driverRouteModal .base-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

#driverRouteModal .base-modal-header h2 {
    margin: 0;

    font-size: 20px;
    font-weight: 500;

    color: var(--color-text);
}

#driverRouteModal .base-modal-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: var(--map-overlay);

    z-index: 0;

    cursor: pointer;
}

#driverRouteModal {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    align-items: center;
    justify-content: center;

    z-index: 9999;
}

#driverRouteModal.active {
    display: flex;
}

#driverRouteModal .base-modal-content {
    position: relative;

    z-index: 1;
}

.map_drivers_list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;

    max-height: 400px;
    overflow-y: auto;

    margin-bottom: 20px;
}

.map_driver_item {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 12px;

    border: 1px solid var(--color-grey-light);
    border-radius: 8px;

    cursor: pointer;

    transition: all .3s;
}

.map_driver_item:hover {
    border-color: var(--color-primary);
}

/* Скрытое поле выбора хранит выбранного водителя. */

.map_driver_item input[type="radio"] {
    flex-shrink: 0;

    width: 18px;
    height: 18px;

    cursor: pointer;

    accent-color: var(--color-primary);
}

.map_driver_info {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
}

.map_driver_name {
    font-size: 15px;
    font-weight: 500;

    color: var(--color-text);
}

.map_driver_email {
    font-size: 13px;
    font-weight: 300;

    color: inherit;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map_driver_item:has(
    input[type="radio"]:checked
) {
    border-color: var(--color-primary);
    background: var(--color-background);
}

#driverRouteModal .base-modal-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    width: 100%;
}

#driverRouteModal .base-modal-actions button {
    min-width: 130px;
    min-height: 40px;

    padding: 9px 16px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: all .3s;
}

#driverRouteModal .button-secondary {
    border: 1px solid var(--color-grey-light);

    background: transparent;
    color: var(--color-text);
}

#driverRouteModal .button-secondary:hover {
    border-color: var(--color-primary);

    color: var(--color-primary-text);
}

#driverRouteModal .button-primary {
    border: 1px solid var(--color-primary);

    background: var(--color-primary);
    color: var(--color-text-white);
}

#driverRouteModal .button-primary:hover:not(:disabled) {
    opacity: .85;
}

#driverRouteModal .base-modal-actions button:active:not(:disabled) {
    transform: translateY(1px);
}

#sendRouteButton:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 600px) {

    #driverRouteModal .base-modal-content {
        width: calc(100% - 20px);
        max-width: none;

        max-height: 90vh;

        padding: 15px;
    }

    #driverRouteModal .base-modal-header {
        margin-bottom: 15px;
    }

    #driverRouteModal .base-modal-header h2 {
        font-size: 18px;
    }

    .map_drivers_list {
        max-height: 50vh;

        margin-bottom: 15px;
    }

    .map_driver_item {
        padding: 12px 10px;
    }

    #driverRouteModal .base-modal-actions {
        flex-direction: column-reverse;

        gap: 8px;
    }

    #driverRouteModal .base-modal-actions button {
        width: 100%;

        min-height: 44px;
    }
}

/* Затемнение слоя карты в тёмной теме. */
:root[data-theme="dark"] #map .leaflet-tile-pane {
    filter:
        brightness(0.72)
        saturate(0.85)
        contrast(1.05);
}