
/* RentOgorod compact listing detail */

.ro-detail-page {
    min-width:0;
}

.ro-detail-page .ro-detail-navigation {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px 16px;
    margin:0 0 16px;
}

.ro-detail-navigation .back-link {
    display:inline-flex;
    font-size:12px;
    font-weight:600;
    margin:0;
    padding:0;
    color:#316746;
}

.ro-detail-navigation .profile-breadcrumbs {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
    margin:0;
    padding:0;
    font-size:11px;
    line-height:1.5;
    min-width:0;
}

.ro-detail-page .object-heading.ro-detail-heading {
    display:grid;
    gap:10px;
    position:relative;
    padding:0;
    margin:0 0 16px;
    min-height:0;
}

.ro-detail-title {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    min-width:0;
}

.ro-detail-page .object-heading h1 {
    font-size:clamp(21px,2.2vw,28px);
    font-weight:750;
    line-height:1.22;
    letter-spacing:-.025em;
    margin:0;
    padding:0;
    min-width:0;
    overflow-wrap:anywhere;
}

.ro-detail-title .favorite-control {
    position:static;
    inset:auto;
    flex:none;
    margin:0;
    transform:none;
}

.ro-detail-title .favorite-control form {
    margin:0;
}

.ro-detail-title .favorite-btn {
    box-sizing:border-box;
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    min-width:34px;
    min-height:34px;
    padding:0;
    border:1px solid #cbd9c9;
    box-shadow:none;
    background:#fff;
}

.ro-detail-title .favorite-btn svg {
    width:18px;
    height:18px;
}

.ro-detail-title .favorite-btn:hover {
    background:#e9f0e6;
    border-color:#98b397;
}

.ro-detail-meta {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px 12px;
    font-size:12px;
    line-height:1.5;
}

.ro-detail-page .ro-detail-meta .listing-type {
    display:inline-flex;
    align-items:center;
    padding:4px 8px;
    margin:0;
    border-radius:5px;
    font-size:11px;
    line-height:16px;
}

.ro-detail-page .ro-detail-meta .listing-meta {
    display:inline-flex;
    align-items:center;
    gap:5px;
    font-size:12px;
    margin:0;
    min-width:0;
}

.ro-detail-meta .listing-meta svg {
    width:16px;
    height:16px;
    flex:none;
    color:#bd7447;
    stroke:#bd7447;
}

.ro-detail-meta .listing-meta span {
    overflow-wrap:anywhere;
}

.ro-detail-map {
    display:inline-flex;
    align-items:center;
    font-size:12px;
    font-weight:650;
    color:#316746;
    border-bottom:1px dashed #a0b59e;
    text-decoration:none;
}

.ro-detail-map:hover {
    color:#204b31;
    border-color:#204b31;
}

.ro-detail-map-note {
    font-size:10px;
    color:#657369;
}

.ro-detail-page .object-grid {
    margin-top:0;
    gap:16px;
    align-items:start;
}

.ro-detail-page .object-main,
.ro-detail-page .object-sidebar {
    min-width:0;
}

.ro-detail-page .object-sidebar .object-panel {
    padding:16px;
    border:1px solid #d1ddcf;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(35,60,39,.04);
}

.ro-detail-page .object-sidebar .object-price {
    font-size:26px;
    line-height:1.25;
    margin:6px 0 12px;
    overflow-wrap:anywhere;
}

.ro-detail-page .object-sidebar .object-price small {
    font-size:12px;
}

.ro-detail-page .object-sidebar .object-contact {
    gap:8px;
    margin:12px 0;
    padding:12px 0;
}

.ro-detail-page .object-contact h3 {
    font-size:13px;
    margin:0;
}

.ro-detail-page .object-contact .listing-author-link {
    display:flex;
    align-items:center;
    gap:9px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:9px;
    margin:0 0 4px;
    border:1px solid #d4dfd1;
    border-radius:9px;
    background:#f6f9f4;
    color:#26382b;
    box-shadow:none;
}

.ro-detail-page .object-contact .listing-author-link:hover {
    background:#e9f1e5;
    border-color:#a3bba3;
}

.ro-detail-page .listing-author-avatar {
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    flex:0 0 34px;
    border-radius:50%;
    background:#e2ecde;
    font-size:14px;
    font-weight:700;
    color:#316746;
}

.ro-detail-page .listing-author-link > span:nth-child(2) {
    display:flex;
    flex-direction:column;
    gap:2px;
    flex:1;
    min-width:0;
}

.ro-detail-page .listing-author-link small {
    font-size:10px;
    margin:0;
    color:#657369;
    line-height:1.3;
}

.ro-detail-page .listing-author-link strong {
    font-size:13px;
    line-height:1.4;
    overflow-wrap:anywhere;
}

.ro-detail-page .author-arrow {
    flex:none;
    margin-left:auto;
    font-size:18px;
    color:#316746;
}

.ro-detail-page .object-contact .btn {
    min-height:40px;
    padding:9px 10px;
    border-radius:8px;
    font-size:12px;
    font-weight:650;
}

.ro-detail-page .object-sidebar .object-date {
    font-size:11px;
    line-height:1.5;
    margin:5px 0;
}

.ro-detail-page .object-sidebar .contact-tip {
    font-size:11px;
}

@media(max-width:850px) {

    .ro-detail-page .object-grid {
        grid-template-columns:minmax(0,1fr);
        gap:12px;
    }

    .ro-detail-page .object-main {
        display:contents;
    }

    .ro-detail-page .object-gallery {
        order:-2;
    }

    .ro-detail-page .object-sidebar {
        order:-1;
        grid-row:auto;
        position:static;
    }

    .ro-detail-page .ro-detail-navigation {
        margin-bottom:12px;
    }
}

@media(max-width:620px) {

    .ro-detail-page .ro-detail-title {
        gap:8px;
    }

    .ro-detail-page .object-heading h1 {
        font-size:22px;
    }

    .ro-detail-title .favorite-btn {
        width:36px;
        height:36px;
        min-width:36px;
        min-height:36px;
    }

    .ro-detail-page .ro-detail-meta {
        gap:6px 9px;
    }

    .ro-detail-map-note {
        flex-basis:100%;
    }

    .ro-detail-page .object-sidebar .object-panel {
        padding:13px;
    }
}

/* Compact map page */

.ro-map-page {
    min-width:0;
}

.ro-map-page .profile-breadcrumbs,
.ro-map-page .breadcrumbs,
.ro-map-page > nav {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    font-size:11px;
    line-height:1.5;
    margin:0 0 12px;
    padding:0;
}

.ro-map-page .page-heading,
.ro-map-page .map-heading,
.ro-map-page :has(> h1) {
    margin:0 0 14px;
    padding:0;
    min-height:0;
}

.ro-map-page h1 {
    font-size:clamp(21px,2.2vw,28px);
    font-weight:750;
    line-height:1.22;
    letter-spacing:-.025em;
    margin:0 0 6px;
    padding:0;
}

.ro-map-page h1 + p {
    font-size:12px;
    line-height:1.5;
    color:#657369;
    margin:0;
}

.ro-map-page .surface:has(> form[method="get"]) {
    padding:12px;
    margin:0 0 14px;
    border:1px solid #d1ddcf;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(35,60,39,.04);
}

.ro-map-page form[method="get"] {
    gap:9px;
    align-items:end;
    margin:0;
}

.ro-map-page form .field > span {
    font-size:11px;
    font-weight:600;
    margin-bottom:3px;
}

.ro-map-page form select,
.ro-map-page form .btn {
    box-sizing:border-box;
    height:36px;
    min-height:36px;
    padding:0 10px;
    border-radius:7px;
    font-size:12px;
}

.ro-map-page .map-catalog-layout {
    gap:14px;
    margin-top:0;
}

.ro-map-page .map-results-panel {
    padding:12px;
    border:1px solid #d1ddcf;
    border-radius:10px;
}

.ro-map-page .map-results-panel h2 {
    font-size:16px;
    line-height:1.3;
    margin:0 0 6px;
}

.ro-map-page .map-result {
    padding:10px 3px;
}

.ro-map-page .map-result strong {
    font-size:14px;
}

.ro-map-page .map-result span {
    font-size:12px;
}

.ro-map-page .map-result small,
.ro-map-page #map-status {
    font-size:11px;
}

.ro-map-page .map-results-panel .btn {
    min-height:36px;
    padding:8px 10px;
    font-size:12px;
    border-radius:7px;
}

@media(max-width:620px) {
    .ro-map-page h1 {
        font-size:22px;
    }

    .ro-map-page form select,
    .ro-map-page form .btn {
        height:40px;
        min-height:40px;
    }
}
