:root{font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#152720;background:#fafaf7;--green:#095c41;--line:#d8dfd9;--muted:#54665d}

*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit;color:inherit}
a{color:var(--green)}
header{background:#fffffff2;border-bottom:1px solid var(--line)}
.shell,.bar,footer{max-width:1512px;margin:auto;padding:0 clamp(16px,4vw,64px)}
.bar{display:flex;align-items:center;gap:2rem;min-height:72px}
.brand{display:flex;align-items:center;gap:10px;font-size:clamp(1rem,2vw,1.45rem);font-weight:720;letter-spacing:-.045em}
.brand svg{width:32px;color:var(--green)}
.bar nav,.account,.switch,.heading,.dialoghead,.pair{display:flex;align-items:center;gap:18px}
.bar nav{margin:auto}
.bar a,.switch a,.card a{text-decoration:none;color:inherit}
.bar a:hover,.card a:hover b,.back:hover{text-decoration:underline}
button,.button,.switch a,.tg-btn,.lk-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:10px;padding:9px 17px;background:white;border:1px solid var(--line);font-weight:600;cursor:pointer;text-decoration:none}
.primary,.bar .button,.chosen,.tg-btn,.lk-btn{background:var(--green)!important;color:white!important;border-color:var(--green)}
button:active,.button:active{transform:scale(.985)}
:focus-visible{outline:3px solid #147957;outline-offset:3px}

h1,h2,h3,p{margin:0}
h1,h2{letter-spacing:-.045em;line-height:1.06}
h1{font-size:clamp(32px,4.7vw,76px)}
h2{font-size:clamp(23px,2.5vw,38px)}
.hero{margin-top:18px;height:clamp(225px,27vw,395px);border-radius:22px;display:flex;align-items:center;padding:5%;color:white;background:linear-gradient(90deg,#15352ede,transparent),url(courtyard.webp) center 54%/cover}
.hero h1{max-width:13ch}
.search-head{padding:40px 0 20px}
.search-head h1,.detail h1{font-size:clamp(30px,3.3vw,54px)}
.search{position:relative;display:flex;gap:10px;align-items:end;flex-wrap:wrap;border:1px solid var(--line);background:white;border-radius:16px;padding:18px}
.floating{margin:-36px 3% 0;box-shadow:0 9px 32px #143c2b12}
.search label{display:grid;gap:5px;font-size:.79rem;font-weight:600;color:var(--muted);flex:1 1 135px}
.search label:nth-child(2){flex-grow:2}
input,select{border:1px solid var(--line);border-radius:8px;background:#fbfcfa;width:100%;min-height:44px;padding:9px;font-size:1rem}
.heading{justify-content:space-between;margin:34px 0 20px}
.switch{gap:4px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.card{min-width:0;border-radius:16px;background:white;border:1px solid var(--line);overflow:hidden}
.card.selected{outline:2px solid var(--green);outline-offset:-2px}
.card a{display:block}
.photo{position:relative;aspect-ratio:1.85;overflow:hidden;background:#e9efea}
.photo img,.gallery img{width:100%;height:100%;object-fit:cover;display:block}
.photo span{position:absolute;bottom:10px;right:10px;border-radius:20px;padding:3px 9px;background:#ffffffed;font-size:12px}
.placeholder{display:grid;place-content:center;min-height:120px;height:100%;color:var(--muted);background:linear-gradient(135deg,#e4ede7,#f6f6ef)}
.info{display:grid;gap:4px;padding:16px}
.info strong,.side strong{font-size:1.42rem;letter-spacing:-.04em}
.info p,.info small,.sub,.clabel,footer,#mapnote{color:var(--muted)}
.info p{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.89rem;overflow-wrap:anywhere}
.map-layout,.detail-layout{display:grid;grid-template-columns:minmax(260px, .85fr) minmax(0,1.35fr);gap:20px;align-items:start}
.map-layout .cards{grid-template-columns:1fr}
.map-layout .card a{display:grid;grid-template-columns:38% 1fr}
.map-layout .photo{height:100%;min-height:125px;aspect-ratio:auto}
.mapbox,.side{position:sticky;top:12px;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.map{height:clamp(300px,62vh,720px);background:#e4eae6;border-radius:14px;isolation:isolate}
.price-pin{background:white;border:1px solid #728d7b;border-radius:20px;width:max-content!important;height:auto!important;font:600 14px/1.2 system-ui;color:#18432f;padding:7px 10px;white-space:nowrap;box-shadow:0 3px 10px #142b1725}
.price-pin.active{background:var(--green);color:white}
.mapbox p,#map-choice{padding:10px 14px;font-size:.85rem}
#more{margin:20px auto;display:block}
.promos{margin:36px 0;display:flex;gap:15px;overflow:auto}
.promos article{display:flex;gap:20px;padding:20px;border-radius:16px;border:1px solid var(--line);background:white;min-width:min(100%,380px);max-width:680px}
.promos img{width:90px;height:90px;object-fit:cover;border-radius:8px}
.promos p{margin:8px 0}
.back{display:inline-block;margin:25px 0 14px}
.sub{margin:8px 0 20px}
.detail-layout{grid-template-columns:minmax(0,2fr) minmax(220px,.8fr)}
.side{padding:24px}
.side strong{font-size:1.8rem;display:block;margin-bottom:16px}
.crow,.locked{padding:10px 0}
.lk-btn,.tg-btn{margin-top:8px}
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:490px;overflow:auto;border-radius:16px}
.gallery button{padding:0;overflow:hidden;aspect-ratio:1.7}
.gallery button:first-child{grid-column:1/-1}
.detail section{margin:28px 0}
.detail section p,.description{margin:12px 0}
.description{white-space:pre-wrap;overflow-wrap:anywhere}
.detail .map{height:330px}
dialog{border:1px solid var(--line);border-radius:20px;width:min(440px,95vw);padding:24px;color:inherit}
dialog::backdrop{background:#1227206b}
.dialoghead{justify-content:space-between;margin-bottom:20px}
.pair{margin:15px 0}
.search dialog .primary{width:100%}
#viewer{width:auto;max-width:95vw;background:#15251e}
#viewer img{max-width:85vw;max-height:78vh;display:block}
#viewer button{float:right}
footer{padding-top:40px;padding-bottom:25px;font-size:.85rem}

@media(max-width:820px){.bar{flex-wrap:wrap;gap:8px 14px;padding-top:10px;padding-bottom:8px}
.bar nav{order:3;width:100%;margin:0;font-size:.9rem}
.account{margin-left:auto;gap:8px;font-size:.85rem}
.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.floating{margin:-25px 10px 0}
.map-layout,.detail-layout{grid-template-columns:1fr}
.mapbox{order:-1;position:static}
.mapbox .map{height:46vh}
.side{position:static}
.detail-layout{display:flex;flex-direction:column}
.detail-layout>div,.side{width:100%}
.hero{height:220px}
.hero h1{font-size:42px}
.heading{gap:10px}
.detail .gallery{max-height:345px}
}

@media(max-width:550px){.cards{grid-template-columns:1fr}
.bar .brand{gap:5px}
.brand svg{width:24px}
.account .button{padding:5px 10px}
.search{display:grid;grid-template-columns:1fr 1fr;padding:12px}
.search label:nth-child(2){grid-column:1/-1;grid-row:1}
.search button{padding:8px}
.hero{height:188px}
.heading{flex-wrap:wrap}
.photo{aspect-ratio:1.8}
.hero h1{font-size:36px}
.map-layout .info{padding:12px}
#sheet{margin:auto 0 0;width:100%;max-width:100%;border-radius:20px 20px 0 0;padding-bottom:max(20px,env(safe-area-inset-bottom))}
.detail-layout{display:grid}
.detail-layout>div{display:contents}
.detail-layout .side{grid-row:2}
.detail-layout .description{margin:0}
.detail section{margin:8px 0}
.shell{padding-inline:12px}
}

@media(prefers-reduced-motion:reduce){button:active,.button:active{transform:none}
}

