/* Keep Houzez block, review and related-listing styles on the pilot. */
.ru-property-page,
.ru-property-dialog {
    --ru-ficha-ink: #22252a;
    --ru-ficha-muted: #545960;
    --ru-ficha-link: #a72849;
    --ru-ficha-strong: #85203b;
    --ru-ficha-line: #e4e1e3;
    --ru-ficha-bg: #f8f6f7;
}
.ru-property-page { --ru-ficha-section-gap: clamp(1.4rem, 2.25vw, 2.1rem); }

.ru-property-page :is(.property-section-wrap, .ru-property-room, #ru-property-map-canvas, #property-virtual-tour-wrap) {
    scroll-margin-top: 6rem;
}
.ru-property-page [hidden], .ru-property-dialog [hidden] { display: none !important; }

.ru-property-page .property-navigation-wrap:not(.nav-fixed) { display: none; }
.ru-property-page .page-title-wrap { margin-bottom: .35rem; padding-block-end: .6rem; }
.ru-property-page .page-title { min-width: 0; overflow-wrap: anywhere; }
.ru-property-page .property-item-tools { flex: 0 0 auto; }
.ru-property-page .property-labels-wrap { flex-wrap: wrap; }
.ru-property-header-details,
.ru-property-heading-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem 1rem;
}
.ru-property-header-details { justify-content: space-between; }
.ru-property-city, .ru-property-rating { display: inline-flex; align-items: center; gap: .35rem; }
.ru-property-city .houzez-icon { color: var(--ru-ficha-link); }
.ru-property-rating .houzez-icon { color: #a25a00; }
.ru-property-heading-meta :is(a, .ru-property-city) { color: var(--ru-ficha-ink); }
.ru-property-heading-meta a:hover { color: var(--ru-ficha-link); text-decoration: underline; }
.ru-property-header-price { max-width: 100%; text-align: end; overflow-wrap: anywhere; }
.ru-property-header-price strong { font-size: clamp(1.12rem, 1.65vw, 1.4rem); }
.ru-property-header-price a { display: block; font-size: .91rem; }
.ru-property-header-price a,
.ru-property-address a,
.ru-property-media-tour { color: var(--ru-ficha-link); }
.ru-property-compare-control { margin: 0; background: transparent; }
.ru-property-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .4rem .75rem;
    border: 1px solid var(--ru-ficha-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ru-ficha-link);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.ru-property-compare:hover, .ru-property-compare[aria-pressed="true"] { background: #fbf3f5; border-color: #e4c8d1; }

.ru-property-description-toggle,
.ru-property-centres button,
.ru-property-centres-toggle {
    min-height: 44px;
    padding: .3rem 0;
    border: 0;
    background: transparent;
    color: var(--ru-ficha-link);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.ru-property-description-toggle:hover,
.ru-property-centres button:hover,
.ru-property-centres-toggle:hover { text-decoration: underline; }

.ru-property-page .property-top-wrap { margin-bottom: 0; }
.ru-property-page .ru-property-layout { margin-block-start: 1.1rem; }
.ru-property-page .property-top-wrap + .ru-property-layout { margin-block-start: clamp(1.5rem, 3.5vw, 3.125rem); }
.ru-property-page .property-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ru-ficha-section-gap); }
.ru-property-page .property-view .block-wrap { margin-block: 0; padding-block: 0; border-block-start: 0; background: transparent; }
.ru-property-page .property-view .block-title-wrap { border-block-end: 0; padding-block-end: 0; margin-block-end: .8rem; }
.ru-property-page .property-view .block-title-property-doc { margin-block-start: 1rem; margin-block-end: .65rem !important; }
.ru-property-page .property-view > .property-review-wrap { margin-block-start: 0 !important; padding-inline: 30px; }
.ru-property-page .property-review-wrap .review-title-wrap { white-space: normal; }
.ru-property-page .property-review-wrap #property-review-form { margin-block-start: 1.1rem; padding-inline: 0; }
.ru-property-gallery { position: relative; }
.ru-property-gallery-labels { position: absolute; inset: .7rem .7rem auto; pointer-events: none; }
.ru-property-gallery-labels a { pointer-events: auto; }
.ru-property-gallery-labels .property-labels-wrap > .label {
    display: inline-flex;
    align-items: center;
    min-block-size: 26px;
    margin: 0 !important;
    padding: .18rem .45rem;
    font-size: .71rem;
    line-height: 1.2;
}
.ru-property-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    height: clamp(260px, 38vw, 470px);
    border-radius: 16px;
    background: var(--ru-ficha-bg);
}
.ru-property-photo {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.ru-property-photo.is-main { grid-row: span 2; }
.ru-property-photo:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.ru-property-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ru-property-mosaic-1 { grid-template-columns: 1fr; }
.ru-property-mosaic-2, .ru-property-mosaic-3 { grid-template-columns: 2fr 1fr; }
.ru-property-mosaic-2 .ru-property-photo:nth-child(2),
.ru-property-mosaic-4 .ru-property-photo:nth-child(2) { grid-row: span 2; }

.ru-property-media-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem;
}
.ru-property-gallery.has-photos .ru-property-media-actions {
    position: absolute;
    inset: auto .75rem .75rem .75rem;
    pointer-events: none;
}
.ru-property-gallery-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 44px;
    padding: .42rem .72rem;
    border: 1px solid var(--ru-ficha-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px #1b24302b;
    color: var(--ru-ficha-ink);
    font-size: .9rem;
    font-weight: 650;
    pointer-events: auto;
}
.ru-property-gallery-link:hover { color: var(--ru-ficha-link); }
.ru-property-play {
    width: 0;
    height: 0;
    border-block: .32em solid transparent;
    border-inline-start: .54em solid currentColor;
}

.ru-property-rooms { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.ru-property-room {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--ru-ficha-line);
    border-radius: 12px;
}
.ru-property-room-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .25rem .65rem;
}
.ru-property-room-heading h3 { font-size: 1.08rem; margin: 0; overflow-wrap: anywhere; }
.ru-property-room-heading p { font-weight: 700; margin: 0; }
.ru-property-room-attributes, .ru-property-services {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    list-style: none;
    padding: 0;
    margin: .55rem 0 0;
}
.ru-property-room-attributes li, .ru-property-services li {
    padding: .22rem .55rem;
    border-radius: 7px;
    color: var(--ru-ficha-muted);
    background: var(--ru-ficha-bg);
    font-size: .9rem;
}
.ru-property-room-details { margin-top: .7rem; }
.ru-property-room-details summary { min-height: 44px; align-content: center; color: var(--ru-ficha-link); cursor: pointer; }
.ru-property-room-extra { font-size: .94rem; color: var(--ru-ficha-muted); overflow-wrap: anywhere; }
.ru-property-room-extra img { display: block; max-width: 100%; height: auto; max-height: 220px; object-fit: contain; border-radius: 8px; }
.ru-property-room-extra p:last-child { margin-bottom: .45rem; }
.ru-property-nearby h3 { font-size: 1rem; margin-bottom: .35rem; }

.ru-property-page .sidebar-wrap:has(> .ru-property-form) { padding-top: 0; }
.ru-property-form { border: 1px solid var(--ru-ficha-line); border-radius: 16px; box-shadow: 0 3px 16px rgb(33 17 27 / 5%); }
.ru-property-page .ru-property-form .ru-request-card { border: 0; margin: 0; padding: 0; box-shadow: none; }

.ru-property-address { display: flex; flex-wrap: wrap; gap: .2rem .85rem; align-items: baseline; margin-bottom: .75rem; }
.ru-property-address p { margin: 0; }
.ru-property-map-canvas { width: 100%; height: clamp(16rem, 32vw, 23rem); border-radius: 12px; background: #edeef0; isolation: isolate; }
.ru-property-map-popup.leaflet-popup { background: transparent; }
.ru-property-map-popup .leaflet-popup-content-wrapper { border-radius: 10px !important; }
.ru-property-map-popup-copy { padding: .8rem 1.9rem .8rem 1rem; font-size: .89rem; line-height: 1.4; overflow-wrap: anywhere; }
.ru-property-map-popup .leaflet-popup-content strong { display: block; color: var(--ru-ficha-ink); }
.ru-property-map-popup .leaflet-popup-content small { display: block; margin-top: .22rem; font-size: .85rem; color: var(--ru-ficha-muted); }
.ru-property-map-marker { border: 2px solid #fff; background: #a72849; box-shadow: 0 1px 5px #18202e55; border-radius: 50%; }
.ru-property-map-marker.is-campus { background: #275b78; }
.ru-property-map [data-ru-map-status] { margin: .5rem 0; font-size: .9rem; }
.ru-property-nearby { margin-top: 1rem; }
.ru-property-centres { list-style: none; margin: 0; padding: 0; }
.ru-property-centres li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem 0;
}
.ru-property-centres li span { display: block; color: var(--ru-ficha-muted); font-size: .9rem; margin-top: .12rem; }
.ru-property-centres button { flex-shrink: 0; font-size: .9rem; }
.ru-property-centres-toggle { margin-top: .35rem; }

.ru-property-media-photos { display: grid; gap: .65rem; }
.ru-property-media-frame { position: relative; }
.ru-property-media-frame > a:first-child { display: block; }
.ru-property-media-photos img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ru-property-all-photos { position: absolute; inset: auto .7rem .7rem auto; max-inline-size: calc(100% - 1.4rem); }
.ru-property-media-tour { display: inline-block; margin-top: .6rem; }
.ru-property-media-photos ~ .ru-property-inline-video { margin-top: 1.25rem; }
.ru-property-inline-video h3 { font-size: 1.05rem; }
.ru-property-video-surface { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 10px; background: #262329; }
.ru-property-video-surface iframe, .ru-property-video-preview { display: grid; place-items: center; width: 100%; height: 100%; border: 0; }
.ru-property-video-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); }
.ru-property-video-preview .ru-property-gallery-link { position: relative; }
.ru-property-video-preview:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.ru-property-alternatives { margin-block-start: var(--ru-ficha-section-gap); }
.ru-property-alternatives-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-block-end: .7rem; }
.ru-property-alternatives-heading h2 { margin: 0; }
.ru-property-alternatives-heading a { color: var(--ru-ficha-link); }
.ru-property-alternatives .slick-list { max-width: 100%; overflow: hidden; }

.ru-property-mobile-bar { display: none; }
.ru-property-dialog {
    width: min(920px, calc(100% - 1.2rem));
    max-height: calc(100dvh - 1.2rem);
    overflow-y: auto;
    border: 0;
    border-radius: 14px;
    padding: clamp(.75rem, 2vw, 1.2rem);
    background: #fff;
}

.ru-property-dialog::backdrop { background: rgb(20 21 26 / 78%); }
.ru-property-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.ru-property-dialog h2 { font-size: 1.2rem; margin: 0; }
.ru-property-dialog figure { margin: 0; }
.ru-property-dialog figure img { display: block; width: 100%; height: clamp(14rem, 61dvh, 44rem); border-radius: 8px; object-fit: contain; background: var(--ru-ficha-bg); }
.ru-property-dialog figcaption { margin-top: .4rem; color: var(--ru-ficha-muted); font-size: .88rem; }
.ru-property-dialog button { min-width: 44px; min-height: 44px; border-radius: 8px; background: #fff; border: 1px solid var(--ru-ficha-line); color: var(--ru-ficha-ink); padding: .3rem .6rem; }
.ru-property-dialog-header button { font-size: 1.45rem; }
.ru-property-photo-navigation { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.ru-property-dialog iframe { display: block; border: 0; width: 100%; aspect-ratio: 16/9; }
.ru-property-dialog [data-ru-player] a { display: inline-block; margin-top: .55rem; color: var(--ru-ficha-link); text-decoration: underline; }


@media (min-width: 768px) {
    .ru-property-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ru-property-room-details[open] summary { display: none; }
}

@media (min-width: 992px) {
    .ru-property-page [data-ru-sticky-form].is-sticky { position: sticky; top: var(--ru-property-sticky-top); }
}

@media (max-width: 991.98px) {
    .ru-property-pilot:has(.ru-property-mobile-bar) { padding-bottom: var(--ru-property-dock-height, calc(64px + env(safe-area-inset-bottom, 0px))); }
    .ru-property-page:has(.ru-property-mobile-bar) .ru-property-header-price { display: none; }
    .ru-property-mobile-bar {
        position: fixed;
        inset: auto 0 0;
        z-index: 1030;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: .28rem .55rem;
        padding: .55rem max(.75rem, env(safe-area-inset-right), var(--ru-property-dock-right, 0px))
            calc(.55rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left), var(--ru-property-dock-left, 0px));
        background: #fff;
        border-top: 1px solid var(--ru-ficha-line);
    }
    .ru-property-mobile-bar.ru-property-dock-with-language { justify-content: flex-end; }
    .ru-property-mobile-bar strong { font-size: .94rem; line-height: 1.25; overflow-wrap: anywhere; }
    .ru-property-mobile-bar .btn { align-content: center; min-height: 44px; margin-inline-start: auto; padding-inline: .7rem; font-size: .88rem; }
    .ru-property-pilot #compare-property-panel.ru-compare-panel .compare-property-label {
        top: auto;
        bottom: calc(var(--ru-property-dock-height, 0px) + .5rem);
        right: calc(100% + .65rem);
        border-radius: 999px;
        background: #fff;
        color: #343036;
        border: 1px solid #ded9dd;
        box-shadow: 0 2px 8px rgb(30 23 28 / 12%);
        font-weight: 600;
    }
}

@media (max-width: 767.98px) {
    .ru-property-page :is(.page-title-wrap > .container, .property-top-wrap > .container, .ru-property-layout) { padding-inline: 1rem; }
    .ru-property-page .property-header-wrap .property-item-tools { display: none !important; }
    .ru-property-page .page-title { margin-inline-end: 0 !important; }
    .ru-property-page .page-title h1 { font-size: clamp(1.34rem, 5.4vw, 1.85rem); }
    .ru-property-heading-meta { width: 100%; gap: .25rem .6rem; font-size: .875rem; }
    .ru-property-compare-control { margin-inline-start: auto; }
    .ru-property-compare { min-width: 44px; padding: 0; }
    .ru-property-compare-copy { display: none; }
    .ru-property-header-price { text-align: start; }
    .ru-property-header-price a { display: inline; margin-inline-start: .35rem; }
    .ru-property-mosaic { display: block; height: auto; }
    .ru-property-photo.is-main { width: 100%; aspect-ratio: 16/11; }
    .ru-property-photo:not(.is-main) { display: none; }
    .ru-property-gallery.has-photos .ru-property-media-actions { inset: auto .5rem .5rem .5rem; gap: .3rem; }
    .ru-property-gallery-labels { inset: .5rem .5rem auto; }
    .ru-property-gallery-link { padding-inline: .52rem; font-size: .8rem; }
    .ru-property-centres li { gap: .45rem; }
    .ru-property-layout > .row { margin-inline: 0; }
    .ru-property-layout > .row > :is(.bt-content-wrap, .bt-full-width-content-wrap) { padding-inline: 0; }
    .ru-property-page .property-view .block-wrap,
    .ru-property-page .property-view > .property-review-wrap { padding-inline: 0; }
    .ru-property-alternatives .ru-listing-grid { --bs-gutter-x: 0; margin-inline: 0; }
    .ru-property-page .review-title-wrap > .d-flex,
    .ru-property-page .review-title-wrap .sort-by > .d-flex { flex-wrap: wrap; max-width: 100%; }
    .ru-property-page .review-title-wrap :is(.sort-by, .bootstrap-select) { max-width: 100%; }
}

@media (scripting: none) {
    .ru-property-map-canvas { display: none; }
}
