.realty-map {
    width: 100%;
    height: 70vh;
}

.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: 4px;

    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: 10;
}

.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;
}


.rm-dot-hit {
    width: 48px;
    height: 48px;
    position: relative;
    pointer-events: auto;
}

.rm-dot-vis {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6d28d9;
    border: 2px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* PILL active */
.rm-pill--active {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.rm-pill--active .rm-pill__price {
    color: #fff;
}

.rm-pill--active {
    background: #6d28d9;
    pointer-events: none;
    /* пример */
}

/* DOT active */
.rm-dot-vis--active {
    pointer-events: none;
    background: #ef4444;
    /* пример: красный */
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.2);
}

.footer {
    border-radius: 0 !important;
}