
:root {
    color-scheme:light;
    --page:#f7f7fa; --surface:#fff; --panel:#eeedf6; --line:#dcdce6;
    --ink:#24263d; --muted:#5e6073; --accent:#4f4787; --button:#534888;
    --control:#b6b6c8; --focus:#6960ab; --hero-base:#26263b;
}
* {box-sizing:border-box}
body {margin:0;background:var(--page);color:var(--ink);font:1rem/1.5 Inter,"Segoe UI",Arial,sans-serif}
main,footer {width:min(1240px,92%);margin:auto}
main {padding-block:2rem 4rem;min-height:68vh}
footer {border-top:1px solid var(--line);padding-block:1.5rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem}
a {color:var(--accent);text-underline-offset:.2em}
h1,h2 {color:var(--ink);letter-spacing:-.035em;line-height:1.15;text-wrap:balance}
h1 {font-size:clamp(2.1rem,4vw,3.6rem);margin:.2em 0 .55em}
h2 {font-size:clamp(1.4rem,2.3vw,2rem)}
[dir=rtl] :is(h1,h2) {letter-spacing:normal;line-height:1.4}
:where(a,button,input,select,summary):focus-visible {outline:3px solid var(--focus);outline-offset:3px}
form,.card,.agency-showroom {background:var(--surface);border:1px solid var(--line);border-radius:16px}
form {padding:clamp(1rem,2.2vw,1.55rem);display:flex;flex-wrap:wrap;align-items:end;gap:1rem}
form label {display:grid;gap:.4rem;flex:1 1 10rem;min-width:0;font-size:.94rem;font-weight:550}
input,select,button {font:inherit}
form :is(input,select) {width:100%;min-width:0;min-height:44px;padding:.55rem .7rem;border:1px solid var(--control);border-radius:9px;background:var(--surface);color:var(--ink)}
button {border:0;cursor:pointer;background:var(--button);color:white;border-radius:10px;padding:.65rem 1rem}
button:disabled {opacity:.55;cursor:default}
.listing-search {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10.5rem),1fr));gap:1rem}
.home-search .listing-search {border:0}
.listing-search .search-actions {grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:end;gap:.65rem;padding-block-start:.85rem;border-top:1px solid var(--line)}
.search-actions button {display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;font-weight:650}
.search-actions .secondary {border:1px solid var(--control);background:var(--surface);color:var(--ink)}
.grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15.5rem),1fr));gap:clamp(.85rem,1.6vw,1.35rem);margin-block:1.2rem 2rem}
.section-title,.section-heading {margin-block:2.25rem .9rem}
.section-heading {display:flex;gap:.75rem 1.4rem;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.section-heading h2 {margin:0}
.section-heading a,.property-seller {font-weight:600}
.card {min-width:0;overflow:hidden}
a.card {padding:1.25rem;text-decoration:none}
.property-card {display:flex;flex-direction:column}
.listing-picture {display:block;position:relative}
.listing-picture img,.agency-cover {width:100%;aspect-ratio:1.85;display:block;object-fit:cover}
.listing-picture span {position:absolute;inset-block-start:.75rem;inset-inline-start:.75rem;padding:.18rem .65rem;border-radius:100px;background:#faf9ffef;color:#362e51;font-size:.8rem;font-weight:650}
.property-body,.agency-body {padding:1rem 1.15rem}
.property-body {display:flex;flex:1;flex-direction:column;align-items:start}
.property-card h2,.agency-card h2 {font-size:1.32rem;margin:.3rem 0 .65rem}
.card h2 a {text-decoration:none;color:var(--ink)}
.card h2 a:hover {text-decoration:underline}
.property-body small,.agency-body small {color:var(--muted);font-size:.87rem}
.property-body strong,.price {font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums}
.property-seller {align-self:stretch;margin-top:auto;border-top:1px solid var(--line);padding-top:.7rem;font-size:.9rem}
.property-body strong {margin-block-end:.85rem}
.agency-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr))}
.agency-card {display:flex;flex-direction:column}
.agency-identity {display:flex;align-items:center;gap:.85rem}
.agency-logo,.agency-initial {flex:none;width:54px;height:54px;border-radius:12px;background:#fff;object-fit:contain;border:1px solid var(--line);padding:.22rem}
.agency-initial {display:grid;place-items:center;background:var(--panel);color:var(--accent);font-size:1.5rem;font-weight:700}
.agency-identity h2 {margin-bottom:0}
.agency-tools {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;margin-top:auto;padding:.75rem 1rem;border-top:1px solid var(--line)}
.agency-tools>span {margin-inline-end:auto;color:var(--muted);font-size:.9rem}
.agency-tools a {min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;background:var(--panel);border-radius:2rem;text-decoration:none;padding:.45rem .65rem;overflow-wrap:anywhere}
.agency-showroom {margin-bottom:1.4rem;overflow:hidden}
.agency-showroom .agency-cover {aspect-ratio:4.4;max-height:19rem}
.agency-showroom .agency-logo {width:70px;height:70px}
.agency-showroom h1 {margin:0;font-size:clamp(1.75rem,3.8vw,3.2rem)}
.agency-showroom p {margin:.55rem 0 0}
.fiction {font-weight:650}
@media(max-width:640px){
    main {padding-top:1rem}
    .listing-search {grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
    .listing-search .search-actions {justify-content:stretch}
    .listing-search .search-actions button {flex:1 1 auto}
    .agency-showroom .agency-cover {aspect-ratio:2.4}
}
@media(max-width:360px){.listing-search {grid-template-columns:1fr}}
