.realty-map {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: var(--border-radius-4);
}

.realty-map-hint {
    margin-top: 10px;
    font-size: 13px;
    opacity: .75;
}

/* Balloon контент */
.realty-balloon {
    width: 280px;
    box-sizing: border-box;
    padding: 12px;
}

.realty-balloon__img {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    margin-bottom: 10px;
}

.realty-balloon__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.realty-balloon__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
}

.realty-balloon__price {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
}

.realty-balloon__text {
    font-size: 13px;
    opacity: .85;
    margin: 0 0 10px;
}

.realty-balloon__link {
    display: inline-block;
    font-size: 13px;
    text-decoration: none;
}


.rm-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #fff;
    border-radius: 16px;
    padding: 8px 12px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    border: 1px solid rgba(0, 0, 0, .06);

    white-space: nowrap;
    transform: translateZ(0);
}

.rm-pill__icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex: 0 0 16px;

    /* простая “иконка дома” через SVG data-uri */
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 10.5L12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6h-4v6H5a1 1 0 0 1-1-1v-9.5Z' stroke='%23111' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
    opacity: .9;
}

.rm-pill__price {
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    color: #111;
}

/* “хвостик” вниз, как у подсказки */
.rm-pill:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 6px 6px 14px rgba(0, 0, 0, .08);
    border-right: 1px solid rgba(0, 0, 0, .06);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.ymaps-2-1-79-map-copyrights-promo {
    display: none;
}

.realty-map {
    position: relative;
}

.realty-map__popup {
    position: absolute;
    left: 60px;
    top: 16px;
    width: 280px;
    max-width: calc(100% - 32px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
    z-index: 1000;
}

.realty-map__popup[hidden] {
    display: none;
}


/* ===== Skeleton popup ===== */
.realty-balloon--skeleton {
    padding: 16px;
}

.rb-skel {
    background: linear-gradient(100deg,
            #f0f0f0 40%,
            #f7f7f7 50%,
            #f0f0f0 60%);
    background-size: 200% 100%;
    animation: rb-skeleton 1.2s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.rb-skel--img {
    width: 100%;
    height: 140px;
    border-radius: 12px;
}

.rb-skel--title {
    height: 20px;
    width: 80%;
}

.rb-skel--price {
    height: 16px;
    width: 40%;
}

.rb-skel--text {
    height: 14px;
    width: 100%;
}

.rb-skel--text.short {
    width: 70%;
}

@keyframes rb-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.rm-pill,
.rm-pill * {
    pointer-events: none;
}

/* Контейнер карты */
.realty-map {
    position: relative;
}

/* Общий оверлей */
.rm-infra {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

/* Фильтры снизу */
.rm-infra__filters {
    position: absolute;
    right: 5%;
    bottom: 20px;
    display: flex;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    pointer-events: auto;
    max-width: calc(100% - 24px);
    overflow: auto;
}

/* Кнопка-фильтр */
.rm-infra-filter {
    border: 0;
    background: #fff;
    color: #111;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.rm-infra-filter__cnt {
    font-size: 12px;
    opacity: .7;
}

.rm-infra-filter.is-active {
    background: #2f2f2f;
    color: #fff;
}

.rm-infra-filter:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

/* Список слева */
.rm-infra__list {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 280px;
    max-height: calc(100% - 28px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    pointer-events: auto;
    padding: 10px;
}

.rm-infra-empty {
    padding: 14px 12px;
    color: #666;
    font-size: 14px;
}

/* Элемент списка */
.rm-infra-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    cursor: default;
}

.rm-infra-row:last-child {
    border-bottom: 0;
}

.rm-infra-row__main {
    min-width: 0;
}

.rm-infra-row__title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
    margin-bottom: 4px;
}

.rm-infra-row__addr {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    word-break: break-word;
}

.rm-infra-row__dist {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

/* Адаптив */
@media (max-width: 1023px) {
    .rm-infra {
        display: none;
    }
}

@media (max-width:860px) {
    .realty-map {
        height: 525px;
    }
}