/* The picture floats directly over the page, with only two visible arrows. */
html.gallery-open{overflow:hidden}
body.reference-design .photo-dialog[open]{display:block;position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;overflow:hidden;border:0;border-radius:0;background:transparent;color:white;box-shadow:none;outline:0}
body.reference-design .photo-dialog::backdrop{background:#111419cc;backdrop-filter:blur(3px)}
body.reference-design .photo-dialog-stage{display:grid;place-items:center;width:100%;height:100%;min-height:0;padding:24px 68px;background:transparent;overflow:hidden}
body.reference-design .photo-dialog .photo-dialog-stage img{display:block;position:static;width:auto;height:auto;min-height:0;max-width:calc(100vw - 136px);max-height:calc(100dvh - 48px);padding:0;margin:0;object-fit:contain;border-radius:16px}
body.reference-design .photo-dialog .dialog-controls{display:block;position:absolute;inset:0;margin:0;padding:0;border:0;background:transparent;pointer-events:none}
body.reference-design .photo-dialog .dialog-controls .icon-button{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);width:52px;height:64px;min-height:44px;margin:0;padding:0;pointer-events:auto;background:transparent;color:#fff;border:0;border-radius:0;box-shadow:none}
body.reference-design .photo-dialog .dialog-controls [data-gallery-prev]{left:12px}
body.reference-design .photo-dialog .dialog-controls [data-gallery-next]{right:12px}
body.reference-design .photo-dialog .dialog-controls .icon-button:hover{background:transparent;color:#e7cf9b;border:0;box-shadow:none}
body.reference-design .photo-dialog .dialog-controls .icon-button:focus-visible{outline:1px solid #fff;outline-offset:2px;border-radius:6px}
body.reference-design .photo-dialog .dialog-controls .walin-icon{width:28px;height:28px;stroke-width:1.7;filter:drop-shadow(0 2px 5px #0008)}
body.reference-design .photo-dialog .gallery-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Property detail component. Loaded after shared styles; responsive rules live here. */
body.reference-design .property-title{padding:28px 0 24px;max-width:1290px;width:calc(100% - 64px)}
body.reference-design .property-title .breadcrumb{margin-bottom:18px}
body.reference-design .property-title .detail-heading{gap:24px}
body.reference-design .property-title .detail-heading h1{font-size:clamp(28px,3vw,40px)!important;margin:10px 0;letter-spacing:-.025em}
body.reference-design .property-title .detail-price{font-size:26px;color:#a6803b;margin:0 0 12px;white-space:normal}
body.reference-design .property-actions .icon-button{border-radius:50px;min-height:40px;padding:8px 14px;font-size:12px;gap:7px}
body.reference-design .property-gallery[data-property-carousel]{position:relative;display:block;isolation:isolate;width:calc(100% - 64px);max-width:1290px;margin:0 auto;padding:0;border-radius:22px;overflow:hidden}
body.reference-design .property-hero-track{display:grid;grid-auto-flow:column;grid-auto-columns:66%;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;touch-action:pan-x pan-y;cursor:grab;background:#f4f2ec}
body.reference-design .property-hero-track::-webkit-scrollbar{display:none}
body.reference-design .property-hero-track>button{display:block;width:100%;height:440px;padding:0;margin:0;border:0;border-radius:0;overflow:hidden;background:#f4f2ec;scroll-snap-align:start;cursor:inherit}
body.reference-design .property-gallery .property-hero-track img{display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none;transition:transform .45s}
body.reference-design .property-gallery[data-property-carousel]>button.hero-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff85;border-radius:50%;background:#fff;color:#102c46;box-shadow:0 4px 20px #071e3433;cursor:pointer}
body.reference-design .hero-gallery-prev{left:16px}
body.reference-design .hero-gallery-next{right:16px}
body.reference-design .hero-gallery-arrow:disabled{opacity:.35;cursor:default}
body.reference-design .hero-gallery-arrow:not(:disabled):hover{background:#ead7b1}
body.reference-design .hero-photo-count{position:absolute;bottom:18px;right:20px;padding:8px 14px;border-radius:40px;background:#0a223bde;color:#fff;font-size:12px;pointer-events:none}
body.reference-design .property-content{padding-top:20px}
body.reference-design .property-content .detail-anchor{position:sticky;top:78px;z-index:5;display:flex;flex-wrap:nowrap;gap:8px;padding:10px;background:#fff;border:1px solid #e8e8e1;border-radius:50px;box-shadow:0 5px 20px #102c4609;overflow-x:auto;scrollbar-width:none}
body.reference-design .detail-anchor::-webkit-scrollbar{display:none}
body.reference-design .property-content .detail-anchor a{flex-shrink:0;padding:9px 16px;font-size:13px;line-height:1.5;border-radius:30px;white-space:nowrap;border:0}
body.reference-design .detail-anchor a:is(:hover,[aria-current]){background:#102c46;color:#fff}
body.reference-design .property-content .detail-layout{grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:28px;margin:28px 0 56px}
body.reference-design .property-content .detail-panel{border:1px solid #e8e7e1;border-radius:20px;padding:28px;margin:0 0 24px;background:#fff;box-shadow:0 6px 22px #102c4604;scroll-margin-top:160px}
body.reference-design .property-content .detail-panel h2,body.reference-design .property-content .detail-main>section>h2{font-size:22px!important;font-weight:500!important;line-height:1.4!important;letter-spacing:-.02em;margin:0 0 20px}
body.reference-design .detail-kicker{font-size:10px;letter-spacing:.12em;line-height:1.5;color:#a6803b;margin:0 0 7px}
body.reference-design .detail-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
body.reference-design .property-content .detail-section-heading h2{margin:0}
body.reference-design .detail-status{font-size:12px;padding:7px 12px;border-radius:30px;background:#102c46;color:#fff;white-space:nowrap}
body.reference-design .property-fact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 24px}
body.reference-design .property-fact-grid>div{position:relative;display:grid;gap:4px;padding:18px 16px;background:#f7f4ed;border-radius:14px;min-width:0}
body.reference-design .property-fact-grid .overview-icon{position:absolute;right:12px;top:14px;width:26px;height:26px;border:0;border-radius:0;color:#a6803b}
body.reference-design .property-fact-grid .overview-icon svg{width:22px;height:22px}
body.reference-design .property-fact-grid dd{padding-right:26px;margin:0;font-size:26px;line-height:1.3;color:#102c46;font-weight:500;overflow-wrap:anywhere}
body.reference-design .property-fact-grid dt{font-size:12px;color:#617185;font-weight:400}
body.reference-design .single-fact-overview{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px;align-items:center}
body.reference-design .single-fact-overview .property-fact-grid{grid-template-columns:1fr;margin:0}
body.reference-design .single-fact-overview .detail-metadata{border-top:0;padding-top:0}
body.reference-design .detail-metadata{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0;padding-top:20px;border-top:1px solid #e8e5dc}
body.reference-design .detail-metadata>div{border:0;padding:0}
body.reference-design .detail-metadata dt{font-size:12px;margin:0 0 4px;color:#718091}
body.reference-design .detail-metadata dd{font-size:14px;font-weight:500;color:#102c46;margin:0}
body.reference-design .detail-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;padding:0;margin:0;list-style:none}
body.reference-design .detail-feature-grid li{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.5;min-width:0}
body.reference-design .detail-feature-grid svg{flex-shrink:0;width:23px;height:23px;padding:3px;border-radius:50%;background:#f5efe1;color:#a6803b}
body.reference-design .property-content .description{font-size:14px;line-height:1.85;color:#53667a}
body.reference-design .property-content .text-button{display:inline-flex;min-height:42px;align-items:center;padding:8px 16px;margin-top:16px;background:#f7f4ed;color:#102c46;border:0;border-radius:30px;font-size:13px}
body.reference-design .detail-address-line{font-size:14px;margin-bottom:18px;color:#53667a}
body.reference-design .detail-location .property-map{width:100%;height:310px;border:0;border-radius:14px;margin:0;background:#f3f4f4}
body.reference-design .property-content .detail-location .text-link{font-size:12px;white-space:nowrap;border:0}
body.reference-design .property-sidebar{position:sticky;top:154px;align-self:start;min-width:0;max-height:none;overflow:visible;padding:0}
body.reference-design .property-content .property-sidebar .agent-contact{padding:0;overflow:hidden;border:1px solid #dfd8c9;border-radius:20px}
body.reference-design .agent-contact-heading{padding:24px;background:radial-gradient(ellipse at top right,#244863,#102c46 70%);color:#fff;border-bottom:3px solid #c5a46b}
body.reference-design .agent-contact-heading .detail-kicker{color:#e4c991}
body.reference-design .property-content .agent-contact-heading h2{color:#fff;margin-bottom:20px}
body.reference-design .agent-contact-heading .agent-profile{display:flex;align-items:center;gap:12px;margin:0}
body.reference-design .agent-contact-heading .agent-profile img{width:58px;height:58px;flex-shrink:0;border:2px solid #c5a46b;border-radius:50%;object-fit:cover}
body.reference-design .agent-contact-heading .agent-profile :is(a,strong){color:#fff;font-size:14px;font-weight:500}
body.reference-design .agent-contact-heading .agent-profile span{display:block;color:#cbd9e5;font-size:12px;margin-top:3px}
body.reference-design .agent-contact-body{padding:22px}
body.reference-design .agent-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 10px}
body.reference-design .agent-quick-actions a{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e2e6e8;background:#fff;color:#102c46;border-radius:12px;min-height:44px;font-size:13px}
body.reference-design .agent-quick-actions a:hover{background:#f6f1e6;border-color:#c5a46b}
body.reference-design .detail-viewing-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;border:0;border-radius:12px;background:#f3ead7;color:#102c46;padding:10px 16px;font-size:13px;cursor:pointer;margin-bottom:20px}
body.reference-design .detail-viewing-button:hover{background:#ead7b1}
body.reference-design .property-sidebar .agent-contact .stack{display:grid;gap:12px;margin:0}
body.reference-design .property-sidebar .agent-contact label{display:flex;flex-direction:column;gap:5px;font-size:12px;line-height:1.5;font-weight:400;margin:0;color:#617185}
body.reference-design .property-sidebar .agent-contact :is(input,select,textarea){width:100%;margin:0;padding:10px 12px;border:1px solid #dfe4e8;border-radius:10px;background:#fcfcfa;font-size:13px;line-height:22px;color:#102c46}
body.reference-design .property-sidebar .agent-contact :is(input,select){height:44px;min-height:44px}
body.reference-design .property-sidebar .agent-contact textarea{height:98px;min-height:98px}
body.reference-design .property-sidebar .agent-contact .tour-fields{display:grid;gap:12px}
body.reference-design .property-sidebar .agent-contact .tour-fields[hidden]{display:none}
body.reference-design .property-sidebar .agent-contact .button{min-height:46px;width:100%;border-radius:40px;font-size:13px;padding:10px 16px!important}
body.reference-design .agent-contact-body>.muted{margin:12px 0 0;font-size:11px;line-height:1.6}
body.reference-design .property-content .property-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
body.reference-design .property-content .property-gallery-heading h2{margin:0}
body.reference-design .property-content h2 .muted{font-size:12px}
body.reference-design .photo-strip-controls{display:flex;gap:8px}
body.reference-design .photo-strip-controls .icon-button{display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:50%;background:white;border:1px solid #dde3e7}
body.reference-design .photo-strip-controls .icon-button:disabled{opacity:.35}
body.reference-design .property-content .photo-grid.photo-strip{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 24px)/3);gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;cursor:grab;touch-action:pan-x pan-y;padding:0;margin:0}
body.reference-design .photo-strip::-webkit-scrollbar{display:none}
body.reference-design .property-content .photo-strip>button{display:block;width:100%;aspect-ratio:4/3;scroll-snap-align:start;border:0;padding:0;margin:0;border-radius:12px;background:#f2f2ed;overflow:hidden;cursor:inherit}
body.reference-design .property-content .photo-strip img{display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none;transition:transform .25s}
body.reference-design :is(.property-hero-track,.photo-strip).is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
body.reference-design .property-content .related-listings{padding:0;border:0;background:transparent}
body.reference-design .property-sidebar .compact-property-list{margin:0}
body.reference-design .photo-dialog-close{position:absolute;z-index:2;right:18px;top:18px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff55;border-radius:50%;background:#102c46b3;color:#fff;cursor:pointer}
@media(max-width:1100px){body.reference-design .property-content .detail-layout{grid-template-columns:minmax(0,1fr) 320px;gap:20px}body.reference-design .property-content .detail-panel{padding:22px}body.reference-design .detail-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){body.reference-design .property-content .detail-layout{grid-template-columns:1fr;gap:0}body.reference-design .property-hero-track>button{height:370px}body.reference-design .property-content .detail-anchor{top:78px}body.reference-design .property-sidebar{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}}
@media(max-width:600px){
 body.reference-design .property-title{padding:20px 0;width:calc(100% - 32px)}
 body.reference-design .property-title .detail-heading{display:block}
 body.reference-design .property-title .detail-heading h1{font-size:28px!important}
 body.reference-design .property-title .detail-heading>div:last-child{margin-top:18px}
 body.reference-design .property-title .detail-price{font-size:24px;margin-bottom:10px}
 body.reference-design .property-gallery[data-property-carousel]{width:calc(100% - 32px);border-radius:16px}
 body.reference-design .property-hero-track{grid-auto-columns:100%;gap:8px}
 body.reference-design .property-hero-track>button{height:300px}
 body.reference-design .property-content .detail-anchor{padding:6px;gap:4px;top:78px}
 body.reference-design .property-content .detail-anchor a{padding:9px 12px;font-size:12px}
 body.reference-design .property-content .detail-layout{margin-top:20px}
 body.reference-design .property-content .detail-panel{padding:20px;border-radius:16px;margin-bottom:20px}
 body.reference-design .property-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.reference-design .property-fact-grid dd{font-size:24px}
 body.reference-design .detail-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.reference-design .detail-feature-grid li{font-size:12px}
 body.reference-design .detail-metadata{gap:16px}
 body.reference-design .single-fact-overview{grid-template-columns:1fr;gap:20px}
 body.reference-design .detail-section-heading{align-items:start;gap:10px}
 body.reference-design .detail-status{font-size:11px;padding:6px 10px}
 body.reference-design .detail-location .property-map{height:260px}
 body.reference-design .property-content .photo-grid.photo-strip{grid-auto-columns:calc((100% - 12px)/2)}
 body.reference-design .property-sidebar{display:block}
 body.reference-design .photo-dialog-stage{padding:16px 8px}
 body.reference-design .photo-dialog .photo-dialog-stage img{max-width:calc(100vw - 16px);max-height:calc(100dvh - 32px);border-radius:12px}
 body.reference-design .photo-dialog .dialog-controls [data-gallery-prev]{left:0}
 body.reference-design .photo-dialog .dialog-controls [data-gallery-next]{right:0}
 body.reference-design .photo-dialog .dialog-controls .icon-button{width:44px;height:56px}
}
@media print{body.reference-design .property-sidebar,body.reference-design .detail-anchor,body.reference-design .photo-strip-controls,body.reference-design .hero-gallery-arrow,body.reference-design .hero-photo-count{display:none}body.reference-design .property-content .detail-layout{display:block}body.reference-design .property-hero-track{grid-auto-flow:row;grid-template-columns:repeat(2,1fr);overflow:visible}body.reference-design .property-hero-track>button{height:240px}body.reference-design .property-content .photo-grid.photo-strip{display:grid;grid-auto-flow:row;grid-template-columns:repeat(3,1fr);overflow:visible}}
@media(prefers-reduced-motion:reduce){body.reference-design :is(.property-hero-track,.photo-strip) img{transition:none}}
/* Optional listing data entered in the property editor. */
body.reference-design .property-floor{border:1px solid #e4e7eb;border-radius:16px;margin:16px 0;overflow:hidden}
body.reference-design .property-floor summary{padding:18px 22px;cursor:pointer;font-size:15px;font-weight:500;list-style:disclosure-closed}
body.reference-design .property-floor summary span{float:right;color:#7b8593;font-size:13px;font-weight:400}
body.reference-design .property-floor-body{padding:0 22px 22px;font-size:14px}
body.reference-design .property-floor-body img{width:100%;height:auto;max-height:550px;object-fit:contain;border-radius:12px;background:#f7f8fa}
body.reference-design .floor-specifications{display:flex;gap:30px;flex-wrap:wrap;margin:8px 0 20px}
body.reference-design .floor-specifications dt{font-size:12px;color:#7b8593}
body.reference-design .floor-specifications dd{margin:6px 0 0;font-size:14px}
body.reference-design .property-media-stage{display:grid;place-items:center;aspect-ratio:16/9;background:#f6f7f9;border-radius:16px;overflow:hidden;margin:20px 0}
body.reference-design .property-media-stage iframe{width:100%;height:100%;border:0}
body.reference-design .admin-preview-notice{max-width:1290px;margin:20px auto;padding:12px 24px;background:#f5efe2;border-radius:12px;font-size:13px}
