.reference-mode .head-chat{display:none}
.ref-description p{white-space:pre-line;overflow-wrap:anywhere;max-width:80ch}
.ref-gallery[data-count="1"],.ref-gallery[data-count="2"]{grid-template-rows:1fr}
.ref-gallery[data-count="1"]{grid-template-columns:1fr}.ref-gallery[data-count="2"]{grid-template-columns:1fr 1fr}
.ref-gallery[data-count="1"] button:first-child,.ref-gallery[data-count="2"] button:first-child{grid-row:auto}
.ref-gallery[data-count="3"]{grid-template-columns:2fr 1fr}.ref-gallery[data-count="4"] button:nth-child(4){grid-column:span 2}
.demo-houses-heading{margin-top:36px}.ref-editor{max-width:900px}.photo-editor{margin:0;min-width:0;border:1px solid var(--line);padding:13px;border-radius:9px}
.photo-editor legend{padding-inline:5px;font-weight:650}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(155px,100%),1fr));gap:12px;margin:12px 0}
.edit-photo{min-width:0;background:#f1f1e9;border-radius:8px;padding:7px}.edit-photo img{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:5px}
.edit-photo strong{display:block;padding:3px 0;font-size:12px}.photo-actions{display:flex;flex-wrap:wrap;gap:4px}
.photo-actions button{border:1px solid var(--line);background:#fffefa;border-radius:4px;padding:2px 6px;font-size:12px}
@media(max-width:540px){.ref-gallery[data-count]{grid-template-columns:1fr}}
.ref-tools{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:stretch;margin:22px 0 30px}
.ref-tools .booking-form{max-width:none}.ref-tools h2{font-size:28px;margin:0}.ref-tools .ref-chat h2{margin:0 0 6px}
.ref-chat{display:flex;flex-direction:column;overflow:hidden;padding:0}.ref-chat header{padding:20px 20px 12px;border-bottom:1px solid var(--line)}
.chat-body{display:flex;flex-direction:column;min-height:0;flex:1}
.ref-chat .message-list{height:170px;min-height:120px;flex:1 1 0;overflow:auto}
.ref-request .receipt{padding:12px 14px;background:#eef2e7;border-radius:7px;font-size:14px;overflow-wrap:anywhere}
.ref-request .receipt a{text-decoration:underline}.ref-request .receipt p{margin:5px 0}
@media(max-width:760px){.ref-tools{grid-template-columns:minmax(0,1fr);gap:14px}.ref-chat .message-list{flex:auto;height:160px}.reference-mode .nav-wrap{height:auto;min-height:66px;padding-block:9px;flex-wrap:wrap}.reference-mode .top nav{flex-wrap:wrap}}
.ref-hero{position:relative;isolation:isolate;background:#32515f;color:white;overflow:hidden}.ref-hero picture,.ref-hero:after{position:absolute;inset:0;z-index:-1}.ref-hero picture img{height:100%;width:100%;object-fit:cover;object-position:center 55%}.ref-hero:after{content:'';background:linear-gradient(90deg,#16282edb,#182f3559 58%,transparent)}
.ref-hero .hero-inner{min-height:330px;padding-block:48px}.ref-hero h1{font-size:clamp(46px,6vw,80px);line-height:1}.ref-hero h1 em{color:#f5e6bd}
.reference-page{padding-block:36px 65px}.reference-page .section-heading{align-items:center}.reference-page #ref-count,.ref-source{font-size:13px;color:#637163}.ref-source{margin:9px 0 22px}
.ref-filters{display:grid;grid-template-columns:1.1fr 1.2fr 1fr .65fr auto;gap:14px;align-items:end;padding:17px;margin:0 0 25px;background:#f0f0e7;border-radius:12px}.ref-filters label{display:grid;gap:4px;font-weight:600;font-size:13px}.ref-filters select,.ref-filters input{width:100%;min-width:0;font:400 14px var(--sans);border:1px solid #cbd3c5;border-radius:6px;padding:9px;background:#fffefa;color:var(--ink);min-height:39px}.ref-filters button{padding-bottom:9px}
.ref-card{display:flex;flex-direction:column}.ref-card .card-content{display:flex;flex-direction:column;flex:1}.ref-card .card-foot{margin-top:auto}.ref-card .house-meta{padding-bottom:15px}.ref-card .card-photo{aspect-ratio:1.6;flex:none}.ref-card h3{font-size:24px}
.ref-detail h1{font-size:clamp(31px,4.2vw,57px)}.ref-detail .detail-head{align-items:flex-end}.ref-price{white-space:nowrap;color:var(--muted);font-size:14px}.ref-price strong{font:600 29px var(--serif);color:var(--ink)}
.ref-gallery{display:grid;position:relative;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:5px;aspect-ratio:2.55;overflow:hidden;border-radius:14px;background:#d8d9cd}.ref-gallery button[data-open]:not(.ref-all){padding:0;min-width:0;min-height:0;overflow:hidden}.ref-gallery button:first-child{grid-row:span 2}.ref-gallery img{width:100%;height:100%;object-fit:cover;transition:filter .15s}.ref-gallery button:hover img{filter:brightness(.92)}
.ref-all{position:absolute;right:14px;bottom:14px;display:flex;align-items:center;gap:7px;padding:8px 12px;background:#fffdf6f5;color:#254331;box-shadow:0 2px 8px #16291e42;border-radius:6px;font-weight:600;font-size:13px}
.ref-facts{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 30px}.ref-facts div{background:#f1f1e8;padding:10px 16px;border-radius:7px;text-align:center;min-width:90px;display:flex;flex-direction:column-reverse}.ref-facts dt{font-size:12px;color:var(--muted)}.ref-facts dd{font:600 23px var(--serif);margin:0}.ref-detail section h2{font-size:30px;margin-bottom:17px}
body.viewing-photos{overflow:hidden}.ref-dialog{padding:0;border:0;color:#f9faf7;background:#16221d;border-radius:14px;width:min(1120px,95vw);max-width:98vw;height:min(850px,92dvh);max-height:98dvh}.ref-dialog::backdrop{background:#101b16d6}
.ref-dialog-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.ref-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px}.ref-dialog header strong{font-size:16px}.ref-dialog header small{display:block;font-size:12px;color:#c3d5c7}.ref-dialog header button,.ref-stage button{color:white;background:#2c3e33;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;flex:none}
.ref-stage{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;justify-items:center;gap:8px;min-height:0;padding:0 8px}.ref-slide{object-fit:contain;width:100%;height:100%;min-height:0;touch-action:pan-y}.ref-thumbs{display:flex;overflow-x:auto;gap:7px;padding:12px;scrollbar-width:thin}.ref-thumbs button{flex:none;width:73px;height:53px;padding:2px;border:2px solid transparent;border-radius:6px}.ref-thumbs button[aria-current]{border-color:#f1d597}.ref-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:3px}
@media(max-width:760px){.ref-hero .hero-inner{min-height:240px}.ref-filters{grid-template-columns:1fr 1fr;gap:9px}.ref-filters .text-btn{justify-self:start}.ref-card h3{font-size:21px}.ref-detail .detail-head{align-items:flex-start}.ref-detail .ref-source{font-size:12px}.ref-dialog header{padding:10px 12px}.ref-gallery{aspect-ratio:2}.ref-stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px;padding:0 4px}.ref-stage button{width:30px;height:30px}}
@media(max-width:540px){.ref-gallery{grid-template-columns:1fr;grid-template-rows:1fr;aspect-ratio:1.55}.ref-gallery button:first-child{grid-row:auto}.ref-gallery button[data-open]:not(:first-child):not(.ref-all){display:none}.ref-thumbs button{width:52px;height:40px}.ref-dialog{width:98vw}.ref-facts div{min-width:72px;padding:8px 10px}.reference-page{padding-top:27px}.reference-page #ref-count{white-space:nowrap}.ref-hero .hero-inner{min-height:210px}.ref-detail .detail-head{flex-direction:column;gap:10px}.top nav{gap:8px}body:not(.reference-mode) .top #nav-demo{display:none}}
