.banner-map-container {
    width: 100%;
    margin: 20px 0;
}

.banner-map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.banner-map-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-map-filter label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 13px;
    color: #444;
}

.banner-map-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.banner-map-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
}

/* Кастомный dropdown */
.banner-map-custom-dropdown {
    position: relative;
    min-width: 200px;
}

.banner-map-dropdown-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    padding: 8px 14px !important;
    background: #fff !important;
    border: 1px solid var(--wd-form-brd-color, #ddd) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: clamp(13px, 1.5vw, 14px) !important;
    gap: 16px;
    text-transform: initial !important;
    color: #333 !important;
    font-weight: 400 !important;
}

.banner-map-dropdown-toggle:hover {
    border-color: #999;
}

.banner-map-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s;
    display: inline-flex;
}

.banner-map-dropdown-arrow svg {
    width: 1em;
}

.banner-map-custom-dropdown.active .banner-map-dropdown-arrow {
    transform: rotate(180deg);
}

.banner-map-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.banner-map-dropdown-menu.active {
    display: block;
}

.banner-map-dropdown-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: normal;
}

.banner-map-dropdown-menu label:hover {
    background: #f5f5f5;
}

.banner-map-dropdown-menu input[type="checkbox"] {
    margin: 0;
}

/* Поиск по адресу */
.banner-map-search-wrapper {
    position: relative;
    width: 100%;
}

.banner-map-search-input {
    width: 100% !important;
    padding: 8px 14px !important;
    border: 1px solid var(--wd-form-brd-color, #ddd) !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.banner-map-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.banner-map-search-suggestions.active {
    display: block;
}

.banner-map-search-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.banner-map-search-suggestion-item:last-child {
    border-bottom: none;
}

.banner-map-search-suggestion-item:hover {
    background: #f5f5f5;
}

.banner-map-search-suggestion-address {
    font-weight: 500;
    margin-bottom: 4px;
}

.banner-map-search-suggestion-city {
    font-size: 12px;
    color: #666;
}

/* Кнопка экспорта */
.banner-map-export-btn,
.banner-map-export-excel-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.banner-map-export-btn:hover,
.banner-map-export-excel-btn:hover {
    background: #005a87;
}

.banner-map-export-excel-btn {
    background: #28a745 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    text-transform: initial !important;
    border-radius: 4px !important;
}

.banner-map-export-excel-btn:hover {
    background: #1d8735 !important;
}

.banner-map-export-excel-btn:hover {
    background: #218838;
}

.banner-map-export-btn.loading,
.banner-map-export-excel-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Лоадер */
.banner-map-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: banner-map-spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes banner-map-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Лоадер карты */
.banner-map-map-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.banner-map-map-loader .banner-map-loader {
    width: 40px;
    height: 40px;
    border-width: 4px;
    margin-bottom: 15px;
}

.banner-map-map-loader p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Лоадер попапа */
.banner-map-popup-loader {
    padding: 30px;
    text-align: center;
}

.banner-map-popup-loader .banner-map-loader {
    width: 30px;
    height: 30px;
    border-width: 3px;
    margin: 0 auto 15px;
    display: block;
}

.banner-map-popup-loader p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Лоадер поиска */
.banner-map-search-loader {
    padding: 15px;
    text-align: center;
    color: #666;
}

.banner-map-search-loader .banner-map-loader {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin-right: 8px;
}

/* Сообщение об отсутствии результатов */
.banner-map-no-results {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.banner-map-no-results p {
    margin: 0;
    font-size: 16px;
    color: #666;
    padding: 20px;
    text-align: center;
}

/* Карта */
.banner-map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.banner-map {
    width: 100%;
    height: 100%;
}

/* Маркеры */
.banner-map-marker-wrapper {
    background: transparent;
    border: none;
}

.banner-map-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Попап */
.banner-map-popup {
    max-width: 400px;
}

/* Балун Яндекс.Карт */
.ymaps-balloon {
    max-width: 400px !important;
}

.ymaps-balloon__content {
    padding: 0 !important;
}

.banner-map-popup-content {
    padding: 0;
    max-width: 320px;
}

.banner-map-popup-header {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.banner-map-popup-header h3 {
    margin: 0;
    font-size: 16px;
}

.banner-map-popup-body {
    padding: 8px 0px;
}

.banner-map-popup-image-wrapper {
    margin-bottom: 15px;
}

.banner-map-popup-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.banner-map-popup-info {
    font-size: 14px;
    line-height: 1.6;
}

.banner-map-popup-info p {
    margin: 8px 0;
}

.banner-map-side-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.banner-map-side-selector-label {
    font-weight: 600;
    color: #444;
}

.banner-map-side-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.banner-map-side-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}

.banner-map-side-option input {
    margin: 0;
}

.banner-map-side-option input:checked+span,
.banner-map-side-option input:checked~span {
    font-weight: 600;
    color: var(--wd-primary-color, #0088cc);
}

.banner-map-popup-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0px;
}

.banner-map-popup-side-toggle {
    padding: 8px 16px !important;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-transform: initial !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background 0.2s !important;
}

.banner-map-popup-side-toggle:hover {
    background: #e5e5e5;
}

.banner-map-popup-order-btn {
    padding: 8px 16px;
    background: var(--wd-primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
    display: inline-flex;
    font-family: inherit;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

.banner-map-popup-order-btn:hover {
    background: #005a87;
    color: #fff;
}

.banner-map-filter-city {
    width: 100%;
    flex: 0 0 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}

.banner-map-filter-city .banner-map-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.banner-map-filter-city .banner-map-radio-group label {
    font-size: clamp(14px, 2vw, 16px);
    transition: .3s;
    font-weight: 600;
}

.banner-map-filter-city .banner-map-radio-group label:hover {
    color: var(--wd-primary-color);
}

.banner-map-filter-city .banner-map-radio-group label:has(:checked) {
    color: var(--wd-primary-color);
    text-decoration: underline;
}

.banner-map-filter-city .banner-map-radio-group input {
    display: none;
}

.banner-map-filter-format,
.banner-map-filter-location,
.banner-map-filter-district,
.banner-map-filter-search {
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: left;
    gap: 0;
}

.c-cbox [type="checkbox"] {
    appearance: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--wd-form-brd-color, #ddd);
    transition: .3s;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}

.c-cbox:hover [type="checkbox"] {
    border-color: var(--wd-primary-color);
}

.c-cbox [type="checkbox"]:checked {
    border-color: var(--wd-primary-color);
}

.c-cbox [type="checkbox"]:checked:after {
    content: '';
    width: 66%;
    height: 66%;
    mask: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+PHBhdGggZD0iTSAyMC4yOTI5NjkgNS4yOTI5Njg4IEwgOSAxNi41ODU5MzggTCA0LjcwNzAzMTIgMTIuMjkyOTY5IEwgMy4yOTI5Njg4IDEzLjcwNzAzMSBMIDkgMTkuNDE0MDYyIEwgMjEuNzA3MDMxIDYuNzA3MDMxMiBMIDIwLjI5Mjk2OSA1LjI5Mjk2ODggeiIvPjwvc3ZnPg==') no-repeat center/contain;
    background: var(--wd-primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.c-cbox {
    font-size: clamp(14px, 1.5vw, 14px);
    cursor: pointer;
}

.banner-map-filter-export {
    margin-left: auto;
}

.banner-map-filter-search {
    max-width: 630px;
    width: 100%;
    flex: 0 0 100%;
}

.banner-map-filter-search-btn {
    display: flex;
    align-items: flex-end;
}

.banner-map-search-btn {
    padding: 8px 24px !important;
    background: var(--wd-primary-color, #0073aa) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
    text-transform: initial !important;
    white-space: nowrap;
    min-width: 100px;
}

.banner-map-search-btn:hover {
    background: var(--wd-primary-color-hover, #005a87) !important;
}

.banner-map-search-btn:active {
    transform: translateY(1px);
}


.banner-map-custom-dropdown [type="checkbox"] {
    appearance: none;
    width: 1em;
    flex: 0 0 1em;
    height: 1em;
    border: 1px solid var(--wd-form-brd-color, #ddd);
    position: relative;
    transition: .3s;
    border-radius: 2px;
    cursor: pointer;
}

.banner-map-custom-dropdown label:hover [type="checkbox"] {
    border-color: var(--wd-primary-color);
}

.banner-map-custom-dropdown [type="checkbox"]:checked {
    border-color: var(--wd-primary-color);
}

.banner-map-custom-dropdown [type="checkbox"]:checked:after {
    content: '';
    width: 77%;
    height: 77%;
    mask: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0cHgiIGhlaWdodD0iMjRweCI+PHBhdGggZD0iTSAyMC4yOTI5NjkgNS4yOTI5Njg4IEwgOSAxNi41ODU5MzggTCA0LjcwNzAzMTIgMTIuMjkyOTY5IEwgMy4yOTI5Njg4IDEzLjcwNzAzMSBMIDkgMTkuNDE0MDYyIEwgMjEuNzA3MDMxIDYuNzA3MDMxMiBMIDIwLjI5Mjk2OSA1LjI5Mjk2ODggeiIvPjwvc3ZnPg==') no-repeat center/contain;
    background: var(--wd-primary-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[class$="balloon__content"] {
    margin-right: 12px !important;
}

[class$="balloon__close-button"] {
    height: 30px !important;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgZmlsbD0iI2ZmZiI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTQgLjdsLS43LS43TDcgNi4zLjcgMCAwIC43IDYuMyA3IDAgMTMuM2wuNy43TDcgNy43bDYuMyA2LjMuNy0uN0w3LjcgN3oiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==') no-repeat center/50% !important;
    background-color: #000 !important;
}

@media (max-width: 768px) {
    .banner-map-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-map-filter {
        width: 100%;
    }

    .banner-map-custom-dropdown {
        width: 100%;
    }

    .banner-map-search-wrapper {
        width: 100%;
    }

    .c-cbox [type="checkbox"] {
        width: 24px;
        height: 24px;
    }
}

.wd-product .custom-price-text {
    font-size: 12px;
}

.c-statuses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
}

.c-statuses__item {
    border: 1px solid #999;
    text-align: center;
    font-size: 12px;
}

.c-statuses__period {
    padding: 6px 8px;
    background: #ddd;
    font-weight: bold;
    color: #222;
}

.c-statuses__status {
    padding: 6px 8px;
}

.c-statuses__item--0 .c-statuses__period {
    background: #abf753;
}