@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-1: #ffffff;
    --bg-2: #f1f5f9;
    --bg-3: #e2e8f0;
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --radius: 12px;
    --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-1: #0f172a;
        --bg-2: #1e293b;
        --bg-3: #334155;
        --text-1: #f1f5f9;
        --text-2: #94a3b8;
        --text-3: #64748b;
        --border: #334155;
        --shadow: 0 1px 3px rgba(0,0,0,.3);
    }
}

:root[data-theme="dark"] {
    --bg-1: #0f172a;
    --bg-2: #1e293b;
    --bg-3: #334155;
    --text-1: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --border: #334155;
    --shadow: 0 1px 3px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-2);
    color: var(--text-1);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}
.site-logo { font-size: 20px; font-weight: 800; color: var(--accent); text-decoration: none; }
.header-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text-1);
    outline: none;
}
.header-search button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.header-search button:hover { background: var(--accent-hover); }
.header-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .15s;
}
.header-nav a:hover { background: var(--bg-2); color: var(--text-1); }
.btn-post-ad {
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 16px !important;
    font-weight: 600;
}
.btn-post-ad:hover { background: var(--accent-hover) !important; }
.theme-toggle {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
    color: var(--text-2);
    display: flex;
    align-items: center;
}
.theme-toggle:hover { color: var(--text-1); }

/* Categories bar */
.categories-bar {
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar { display: none; }
.cats-inner { display: flex; gap: 4px; padding: 8px 0; white-space: nowrap; }
.cat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    transition: background .15s;
}
.cat-link:hover { background: var(--bg-2); color: var(--text-1); }
.cat-link svg { opacity: .7; }

/* Footer */
.site-footer {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    padding: 32px 0 24px;
    margin-top: 48px;
}
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--text-3); text-decoration: none; font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: var(--text-1); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .15s, opacity .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.btn-outline:hover { background: var(--bg-2); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

/* Form */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-1);
    color: var(--text-1);
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.form-input:focus { border-color: var(--accent); }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.req { color: #ef4444; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error, .alert-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

/* Listings grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.listings-grid.list-view {
    grid-template-columns: 1fr;
}

/* Listing card */
.listing-card {
    background: var(--bg-1);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-1);
    display: block;
    transition: box-shadow .2s, transform .2s;
}
.listing-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.listing-card-img {
    aspect-ratio: 4/3;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-body { padding: 12px 14px; }
.listing-card-price { font-size: 17px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.listing-card-title { font-size: 13px; color: var(--text-1); margin-bottom: 6px; line-height: 1.4; }
.listing-card-meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.listing-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.listing-badge-top { background: #7c3aed; }
.listing-badge-vip { background: #d97706; }
.listing-badge-urgent { background: #ef4444; }
.listing-badge-new { background: var(--accent); }
.listing-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-3);
    transition: color .15s;
}
.listing-card-fav.favorited { color: #ef4444; }
.listing-card-fav:hover { color: #ef4444; }

/* Gallery */
.listing-gallery { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--bg-2); }
.gallery-main { position: relative; aspect-ratio: 16/9; background: var(--bg-3); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}
.gallery-thumbs { display: flex; gap: 4px; padding: 4px; background: var(--bg-3); }
.gallery-thumb { width: 64px; height: 48px; cursor: pointer; border-radius: 4px; overflow: hidden; opacity: .6; border: 2px solid transparent; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: var(--text-3); gap: 10px; }

/* Listing detail */
.listing-detail-card { background: var(--bg-1); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
.listing-meta-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.listing-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.listing-address { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.listing-price-wrap { text-align: right; }
.listing-price { font-size: 24px; font-weight: 800; color: var(--accent); }
.listing-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-2); border-radius: 8px; }
.spec-val { font-weight: 700; display: block; }
.spec-lbl { font-size: 11px; color: var(--text-3); display: block; }
.listing-fields { margin: 16px 0; }
.listing-fields h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-item { padding: 8px 12px; background: var(--bg-2); border-radius: 8px; }
.field-label { font-size: 12px; color: var(--text-3); display: block; }
.field-value { font-weight: 500; font-size: 13px; }
.listing-description { margin: 16px 0; }
.listing-description h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.description-text { line-height: 1.8; color: var(--text-2); white-space: pre-wrap; }
.listing-footer-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-3); padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.report-btn { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 13px; padding: 0; }
.report-btn:hover { color: #ef4444; }

/* Contact card */
.contact-card { background: var(--bg-1); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
.seller-info { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seller-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.seller-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--text-3); flex-shrink: 0; }
.seller-name { font-weight: 600; font-size: 15px; }
.seller-type { font-size: 12px; color: var(--text-3); }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--accent); background: rgba(37,99,235,.1); padding: 2px 8px; border-radius: 20px; margin-top: 4px; }
.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #22c55e;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    transition: background .15s;
}
.btn-call:hover { background: #16a34a; }
.btn-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-2);
    transition: background .15s;
}
.btn-favorite:hover, .btn-favorite.favorited { color: #ef4444; background: #fff0f0; border-color: #fca5a5; }

/* Similar listings */
.similar-listings h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.similar-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text-1); }
.similar-item:last-child { border-bottom: none; }
.similar-item img, .similar-no-photo { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--bg-3); }
.similar-title { font-size: 13px; margin-bottom: 2px; }
.similar-price { font-size: 13px; font-weight: 600; color: var(--accent); }

/* Promo banner */
.promo-banner {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}
.promo-top { background: #7c3aed22; color: #7c3aed; }
.promo-vip { background: #d9770622; color: #d97706; }
.promo-urgent { background: #ef444422; color: #ef4444; }

/* Create/edit form */
.create-card { background: var(--bg-1); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; }
.create-section-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.deal-type-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color .15s;
}
.deal-type-chip.selected, .deal-type-chip:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.deal-type-chip input { position: absolute; opacity: 0; pointer-events: none; }
.photo-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
}
.photo-upload-zone:hover, .photo-upload-zone.drag-over { border-color: var(--accent); color: var(--accent); }
.upload-link { color: var(--accent); text-decoration: underline; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photo-thumb { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--bg-3); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.6);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
}

/* Filters sidebar */
.filters-sidebar { width: 240px; flex-shrink: 0; }
.filter-card { background: var(--bg-1); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px; position: sticky; top: 80px; }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filter-header h3 { font-size: 15px; font-weight: 700; }
.filter-reset { font-size: 12px; color: var(--text-3); text-decoration: none; }
.filter-reset:hover { color: var(--accent); }
.filter-section { padding: 12px 0; border-bottom: 1px solid var(--border); }
.filter-section:last-of-type { border-bottom: none; }
.filter-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 8px; display: block; }
.radio-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 13px; }
.room-chip {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    color: var(--text-2);
    transition: background .15s;
    text-decoration: none;
    display: inline-block;
}
.room-chip.active, .room-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.view-toggle { background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px; padding: 6px 9px; cursor: pointer; color: var(--text-3); display: flex; align-items: center; }
.view-toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 24px; }
.page-link, .page-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
}
.page-link { border: 1px solid var(--border); color: var(--text-2); }
.page-link:hover { background: var(--bg-2); }
.page-current { background: var(--accent); color: #fff; font-weight: 600; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Empty state */
.empty-state-box { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state-box h3 { font-size: 18px; font-weight: 600; color: var(--text-2); margin: 16px 0 8px; }
.empty-state-box a, .empty-state-box button { margin-top: 16px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 999; }
.modal-box { background: var(--bg-1); border-radius: var(--radius); padding: 24px; max-width: 480px; width: calc(100% - 32px); max-height: 90vh; overflow-y: auto; }
.modal-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }

/* Cabinet */
.cabinet-nav { background: var(--bg-1); border-radius: var(--radius); border: 1px solid var(--border); padding: 8px; }
.cabinet-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-2);
    font-size: 14px;
    transition: background .15s;
}
.cabinet-nav-item:hover { background: var(--bg-2); color: var(--text-1); }
.cabinet-nav-item.active { background: var(--accent); color: #fff; }
.cabinet-stat-card {
    background: var(--bg-1);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}
.cabinet-stat-val { font-size: 28px; font-weight: 700; color: var(--accent); }
.cabinet-stat-lbl { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.cabinet-listing-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-1);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px;
}
.cabinet-listing-img { width: 100px; height: 75px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

/* Notifications */
.notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--bg-1); border-radius: var(--radius); border: 1px solid var(--border); }
.notif-unread { border-left: 3px solid var(--accent); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }

/* Company cards */
.company-card-link { text-decoration: none; color: var(--text-1); }
.company-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-1);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    transition: box-shadow .2s;
}
.company-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.company-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); flex-shrink: 0; }
.company-logo-placeholder { background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); }

/* Homepage hero */
.hero { background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%); padding: 48px 0; color: #fff; text-align: center; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .85; margin-bottom: 24px; }
.hero-search { display: flex; gap: 0; max-width: 560px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.hero-search input { flex: 1; border: none; padding: 14px 18px; font-size: 15px; color: #0f172a; outline: none; }
.hero-search button { background: var(--accent); color: #fff; border: none; padding: 0 24px; font-size: 15px; font-weight: 600; cursor: pointer; }
.hero-search button:hover { background: var(--accent-hover); }

/* Auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-2); padding: 20px; }
.auth-card { background: var(--bg-1); border-radius: 16px; border: 1px solid var(--border); padding: 36px; width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-card p { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-input { width: 48px; height: 56px; font-size: 22px; font-weight: 700; text-align: center; border: 2px solid var(--border); border-radius: 10px; background: var(--bg-2); color: var(--text-1); outline: none; }
.otp-input:focus { border-color: var(--accent); background: var(--bg-1); }
.resend-link { color: var(--accent); cursor: pointer; font-size: 13px; background: none; border: none; padding: 0; }
.resend-link:disabled { color: var(--text-3); cursor: default; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-active { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef9c3; color: #a16207; }
.badge-rejected { background: #fee2e2; color: #dc2626; }
.badge-closed { background: #f1f5f9; color: #64748b; }

/* Responsive */
@media (max-width: 900px) {
    .filters-sidebar { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .listing-meta-top { flex-direction: column; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 24px; }
    .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cabinet-listing-row { flex-direction: column; }
    .cabinet-listing-img { width: 100%; height: 160px; }
    main[style*="flex:2"] { order: 1; }
    aside[style*="flex:1"] { order: 2; }
}
@media (max-width: 400px) {
    .listings-grid { grid-template-columns: 1fr; }
}
