.map-section__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.map-section__search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    background: #fff;
}
.map-section__search-icon { width: 18px; height: 18px; color: #a2a7b3; flex-shrink: 0; }
.map-section__search-icon svg { width: 100%; height: 100%; }
.map-section__search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    min-width: 0;
}

.map-section__filter {
    padding: 12px 16px;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-dark-950);
    cursor: pointer;
}

.map-section__reset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #5b6270;
    cursor: pointer;
}
.map-section__reset svg { width: 15px; height: 15px; }

.map-section__map {
    width: 100%;
    height: 560px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.map-section__legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 32px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: #5b6270;
}
.map-section__legend-title { font-weight: 600; color: var(--color-dark-950); }
.map-section__legend-item { display: flex; align-items: center; gap: 6px; }
.map-section__legend-item i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ===== Custom Yandex placemark ===== */

.map-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.map-balloon {
    display: flex;
    gap: 12px;
    width: 280px;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.map-balloon__img { width: 90px; height: 90px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.map-balloon__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.map-balloon__rating {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
}
.map-balloon__title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--color-dark-950); text-decoration: none; }
.map-balloon__location { font-family: var(--font-sans); font-size: 12px; color: #8a90a0; }
.map-balloon__price { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--color-dark-950); }
.map-balloon__sqm { font-family: var(--font-sans); font-size: 12px; color: #8a90a0; }

/* скрываем дефолтные элементы Яндекс-балуна */
.ymaps-2-1-79-balloon__content, .ymaps-2-1-79-balloon { padding: 0 !important; box-shadow: none !important; background: none !important; }
.ymaps-2-1-79-balloon__tail { display: none !important; }

/* ===== Карусель под картой ===== */

.map-section__carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.map-section__swiper { flex: 1; min-width: 0; }

.map-section__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e4e6ea;
    background: #fff;
    color: var(--color-dark-950);
    cursor: pointer;
    flex-shrink: 0;
}
.map-section__arrow svg { width: 18px; height: 18px; }
.map-section__arrow--prev svg { transform: rotate(180deg); }
.map-section__arrow.swiper-button-disabled { opacity: 0.3; cursor: default; }

.zhk-card--compact .zhk-card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7cbd3;
    cursor: pointer;
}
.zhk-card--compact .zhk-card__fav svg { width: 15px; height: 15px; }

@media (max-width: 768px) {
    .map-section__map { height: 400px; }
}