.dealer-map-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.dealer-map-filters .form-control {
    min-width: 0;
    width: 100%;
    height: 34px;
    border-radius: 4px;
    font-size: 13px;
    line-height: normal;
    text-overflow: ellipsis;
}

.city_map .map-points-wrapper {
    border-radius: 4px;
    font-family: Tahoma, Verdana, Geneva, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.city_map .map-points-list {
    margin: 0;
    padding-left: 24px;
}

.city_map .map-points-list li {
    padding-left: 4px;
    margin-bottom: 12px;
}

.city_map .map-points-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 479px) {
    .dealer-map-filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
}

.dealer-map-wrapper {
    position: relative;
}

#dealer-map {
    width: 100%;
    height: 400px;
}

.dealer-map-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f5f5f5;
    text-align: center;
}

.dealer-map-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dealer-map-zoom button {
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.dealer-map-address {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.dealer-map-address:focus:not(:focus-visible) {
    outline: none;
}

.dealer-map-address:focus-visible {
    outline: 2px solid #2877cc;
    outline-offset: 2px;
    border-radius: 2px;
}

.dealer-map-marker {
    position: relative;
}

.dealer-map-marker-button {
    position: absolute;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #2877cc;
    box-shadow: 0 1px 5px #555;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.dealer-map-marker-button.is-dealer {
    background: #d83b36;
}

.dealer-map-marker.is-selected .dealer-map-marker-button {
    box-shadow: 0 0 0 3px #333;
}

.dealer-map-popup {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 240px;
    max-width: 70vw;
    padding: 18px 28px 18px 16px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 10px #777;
    color: #333;
    font: 14px/1.4 Arial, sans-serif;
    overflow-wrap: break-word;
    transform: translateX(-50%);
}

.dealer-map-popup-close {
    position: absolute;
    top: 2px;
    right: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}
