.dealers-wrap {
    width: 1170px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
    padding: 40px 0 20px;
}

.dealers-map {
    height: 420px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    background: #e8eef2;
}

.dealers-filter {
    margin: 28px 0 8px;
}

.dealers-filter__box {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.dealers-filter__select {
    min-width: 240px;
    height: 48px;
    border: 1px solid #e2e6e7;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.dealers-filter__btn {
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: #ee3430;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.dealers-filter__btn:hover {
    background: #d42b28;
}

.dealers-filter__count {
    margin: 12px 0 0;
    color: #666;
    font-size: 13px;
}

.dealers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 24px;
}

.dealer-card {
    background: #fff;
    border: 1px solid #eceff1;
    border-radius: 14px;
    padding: 22px 22px 20px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
    display: flex;
    flex-direction: column;
}

.dealer-card__title {
    margin: 0 0 14px;
    color: #ee3430;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dealer-card__row {
    margin: 0 0 10px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.dealer-card__row a {
    color: #444;
}

.dealer-card__icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    background: #ee3430;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.dealer-card__icon--pin {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

.dealer-card__icon--phone {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1l-2.2 2.9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1l-2.2 2.9z'/%3E%3C/svg%3E");
}

.dealer-card__map-btn {
    margin-top: auto;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #ee3430;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    cursor: pointer;
}

.dealer-card__map-btn:hover {
    background: #d42b28;
}

.dealers-empty {
    text-align: center;
    color: #777;
    padding: 30px 0;
}

.dealer-marker {
    background: transparent;
    border: 0;
}

.dealer-marker__pin {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    background: #ee3430;
    transform: rotate(-45deg);
    box-shadow: 0 6px 12px rgba(238, 52, 48, 0.35);
    position: relative;
}

.dealer-marker__pin:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    top: 9px;
    left: 9px;
}

.dealer-popup .leaflet-popup-content-wrapper {
    border-radius: 14px;
    text-align: center;
}

.dealer-popup .leaflet-popup-content {
    margin: 18px 22px 16px;
    width: 360px !important;
    font-size: 15px;
    line-height: 1.5;
}

.dealer-popup__body strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.dealer-popup__body p {
    margin: 0 0 6px;
}

.dealer-directions {
    display: block;
    width: fit-content;
    margin: 14px auto 0;
    padding: 10px 18px;
    border-radius: 8px;
    background: #ee3430;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.dealer-directions:hover {
    background: #d42b28;
    color: #fff !important;
}

@media screen and (max-width: 1189px) {
    .dealers-wrap {
        width: 750px;
    }

    .dealers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dealers-map {
        height: 340px;
    }
}

@media screen and (max-width: 767px) {
    .dealers-wrap {
        width: 100%;
        max-width: 462px;
    }

    .dealers-grid {
        grid-template-columns: 1fr;
    }

    .dealers-map {
        height: 280px;
        border-radius: 12px;
    }

    .dealer-popup .leaflet-popup-content {
        width: 260px !important;
    }

    .dealers-filter__select,
    .dealers-filter__btn {
        width: 100%;
    }
}
