
/* RentOgorod marketplace design v2 */

body {
    --ink:#20242a;
    --muted:#636b73;
    --line:#e0e3e7;
    --soft:#f3f4f6;
    background:#ffffff;
    color:var(--ink);
}

#categories {
    margin-top:24px;
    margin-bottom:26px;
}

#categories .section-heading h2,
#catalog .section-heading h2 {
    color:#20242a;
    font-size:25px;
    line-height:1.25;
    letter-spacing:-.025em;
}

#categories .section-heading p,
#catalog .section-heading p {
    color:#636b73;
}

#categories .category-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

#categories .category-card {
    display:block;
    position:relative;
    isolation:isolate;
    box-sizing:border-box;
    width:100%;
    height:132px;
    min-height:132px;
    padding:0;
    overflow:hidden;
    border:1px solid transparent;
    border-radius:17px;
    background:#f2f3f5;
    box-shadow:none;
    text-decoration:none;
    color:#20242a;
    transform:none;
    transition:background .18s,border-color .18s;
}

#categories .category-card:nth-child(1) {
    background:#f4eee7;
}

#categories .category-card:nth-child(2) {
    background:#edf1e8;
}

#categories .category-card:nth-child(3) {
    background:#e9f1f7;
}

#categories .category-card:nth-child(4) {
    background:#f8eee8;
}

#categories .category-card:nth-child(5) {
    background:#f6f1df;
}

#categories .category-card:nth-child(6) {
    background:#eeedf6;
}

#categories .category-card:hover {
    border-color:#aeb9c4;
    box-shadow:none;
    transform:none;
    filter:brightness(.98);
}

#categories .category-card.is-active,
#categories .category-card:focus-visible {
    outline:2px solid #287a49;
    outline-offset:-2px;
}

#categories .category-card .category-label {
    position:absolute;
    z-index:2;
    top:14px;
    left:14px;
    display:block;
    width:calc(100% - 28px);
    min-height:0;
    padding:0;
    background:transparent;
    border:0;
}

#categories .category-label strong {
    display:block;
    max-width:100%;
    font-size:17px;
    font-weight:650;
    line-height:1.25;
    letter-spacing:-.02em;
    color:#20242a;
}

#categories .category-label .icon {
    display:none;
}

#categories .category-card .category-photo {
    position:absolute;
    z-index:1;
    right:4px;
    bottom:0;
    width:60%;
    max-width:185px;
    height:73%;
    min-height:0;
    aspect-ratio:auto;
    object-fit:contain;
    object-position:right bottom;
    background:transparent;
    border:0;
    border-radius:0;
    transition:transform .2s;
}

#categories .category-card:hover .category-photo {
    transform:scale(1.04);
}

#catalog .listing-card {
    background:#fff;
    border:1px solid #e0e3e7;
    box-shadow:none;
}

#catalog .listing-card:hover {
    border-color:#b5bec6;
    box-shadow:0 4px 14px #20242a0b;
}

#catalog .listing-card .listing-price {
    color:#17191d;
}

#catalog .listing-card .listing-type {
    background:#edf4ee;
    color:#287044;
}

#catalog .listing-card .listing-open {
    background:#287a49;
    border-color:#287a49;
    color:#fff;
}

#catalog .listing-card .listing-open:hover {
    background:#20633b;
    border-color:#20633b;
}

.owner-panel {
    background:#f3f4f6;
    border-color:#e0e3e7;
    box-shadow:none;
}

.ro-catalog-search,
.ro-map-page .map-results-panel,
.ro-detail-page .object-sidebar .object-panel {
    border-color:#e0e3e7;
    box-shadow:none;
}

.ro-catalog-search select,
.ro-catalog-search .ro-range input {
    border-color:#d7dce1;
}

@media(max-width:700px) {
    #categories .category-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    #categories .category-card {
        height:118px;
        min-height:118px;
        border-radius:13px;
    }

    #categories .category-label strong {
        font-size:14px;
    }

    #categories .category-card .category-label {
        top:11px;
        left:11px;
        width:calc(100% - 22px);
    }

    #categories .category-card .category-photo {
        width:76%;
        height:70%;
    }
}

@media(prefers-reduced-motion:reduce) {
    #categories .category-card,
    #categories .category-photo {
        transition:none;
    }
}

/* Compact categories v3 */

#categories {
    margin-top:18px;
    margin-bottom:22px;
}

#categories .section-heading {
    margin-bottom:12px;
}

#categories .section-heading h2 {
    font-size:22px;
    margin:0;
}

#categories .category-grid {
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:8px;
}

#categories .category-card {
    height:100px;
    min-height:100px;
    border-radius:12px;
}

#categories .category-card .category-label {
    top:10px;
    left:10px;
    width:calc(100% - 20px);
}

#categories .category-label strong {
    font-size:13px;
    font-weight:650;
    line-height:1.2;
}

#categories .category-card .category-photo {
    right:3px;
    bottom:0;
    width:78%;
    height:68%;
    max-width:130px;
}

@media(max-width:1000px) {
    #categories .category-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:520px) {
    #categories .category-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    #categories .category-card {
        height:90px;
        min-height:90px;
    }
}

/* Red report flag */

.ro-report-link {
    color:#636b73;
}

.ro-report-link svg {
    color:#dc3545;
    stroke:#dc3545;
    stroke-width:1.8;
}

.ro-report-link:hover {
    color:#dc3545;
}
