/* The showroom stays in the existing light Monaco palette. Layer order:
   wash 0, WebGL 1, drag surface 2, facts/content 3, controls 4. */
#detail{--surface:#f0f3f1;--text:#213b38;--muted:#526761;--edge:#879e9566;--accent:#6a714f;color:var(--text);font-family:Futura,sans-serif}
#experience{min-height:0;height:100dvh}
#detail [hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.showroom-wash{position:absolute;inset:0;background:linear-gradient(120deg,#edf3f3ed,#e1e8e399 55%,#edf0e9e8);opacity:0;transition:opacity 250ms var(--ease);pointer-events:none}
#detail[data-revealed=true] .showroom-wash{opacity:1}
#detail #building-stage{z-index:1;pointer-events:none}
#model-interaction{position:absolute;inset:19% 40% 19% 4%;z-index:2;cursor:grab;touch-action:none;border-radius:16px}
#model-interaction:active{cursor:grabbing}
#detail[data-mode=photos] #model-interaction,#detail[data-mode=details] #model-interaction{inset:22% 51% 22% 4%}
.showroom-heading{position:absolute;z-index:3;top:clamp(28px,4.5vh,58px);left:clamp(24px,4.5vw,86px);pointer-events:none;opacity:0;transform:translateY(10px);transition:opacity 240ms var(--ease),transform 240ms var(--ease)}
.showroom-heading p{font-size:13px;margin:0 0 12px;color:var(--muted)}
.showroom-heading h2{font:400 clamp(38px,4.7vw,80px)/1.03 Futura,sans-serif;letter-spacing:-.055em;max-width:75vw;margin:0}
#detail .close{z-index:4;top:30px;right:36px;background:#f0f3f1;border-color:var(--edge);color:var(--text);width:48px;height:48px}
#detail[data-revealed=true] .showroom-heading{opacity:1;transform:translateY(0)}
#spatial-facts{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;transition:opacity 200ms var(--ease)}
#detail[data-revealed=true][data-mode=building] #spatial-facts{opacity:1}
#detail:not([data-mode=building]) #spatial-facts{visibility:hidden}
#fact-connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#fact-connections path{fill:none;stroke:var(--edge);stroke-width:1;vector-effect:non-scaling-stroke}
#fact-connections .fact-signal{stroke:#506857;stroke-width:1.8;stroke-dasharray:8 92;animation:showroom-signal 2.8s linear infinite}
#fact-connections circle{fill:#f0f3f1;stroke:#526d5e;stroke-width:1}
@keyframes showroom-signal{to{stroke-dashoffset:-100}}
#detail:not([data-mode=building]) .fact-signal,#detail:not([data-revealed=true]) .fact-signal{animation:none}
.spatial-fact{position:absolute;left:0;top:0;text-align:left;width:clamp(170px,17vw,250px);padding:12px 0;background:transparent;border:0;border-radius:0;pointer-events:auto;color:var(--text);transform-origin:left center}
.spatial-fact>span:first-child{display:block;font-size:12px;margin-bottom:9px;color:var(--muted)}
.spatial-fact strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-weight:400;font-size:clamp(20px,2.1vw,34px);line-height:1.12;letter-spacing:-.035em;text-wrap:balance;max-width:100%}
.spatial-fact[data-topic=architecture] strong{font-size:clamp(17px,1.65vw,25px)}
.spatial-fact .fact-action{display:block;font-size:11px;letter-spacing:.02em;margin-top:12px;color:var(--muted);opacity:.8;transition:transform 180ms var(--ease),opacity 180ms}
.spatial-fact:focus-visible,#model-interaction:focus-visible{outline:2px solid var(--accent);outline-offset:6px}
#photo-preview{position:absolute;z-index:3;left:4.5vw;bottom:172px;width:145px;padding:0;background:none;border:0;text-align:left;opacity:0;transform:translateY(8px);transition:opacity 220ms var(--ease),transform 220ms var(--ease)}
#photo-preview img{display:block;width:100%;height:86px;object-fit:cover;border-radius:10px;background:#d6dfda}
#photo-preview span{display:block;font-size:11px;margin-top:8px;color:var(--muted)}
#detail[data-revealed=true][data-mode=building] #photo-preview{opacity:1;transform:translateY(0)}
#detail:not([data-mode=building]) #photo-preview{visibility:hidden}
#detail[data-closeup=true] #spatial-facts,#detail[data-closeup=true] #photo-preview{opacity:0;visibility:hidden;pointer-events:none}
.showroom-panel{position:absolute;z-index:3;right:4.5vw;top:clamp(140px,23vh,220px);bottom:172px;width:43vw;min-height:0;opacity:1;scrollbar-width:thin;overscroll-behavior:contain}
.showroom-panel h3{font:400 24px/1.2 Futura,sans-serif;letter-spacing:-.025em;margin:0}
#showroom-photos{display:flex;flex-direction:column;gap:16px}
#showroom-photos figure{margin:0;min-height:0;flex:1;display:flex;flex-direction:column;gap:10px}
#showroom-photos #photo{width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;border-radius:12px;background:#dce4df66;flex:1}
#photo-caption{font-size:12px;color:var(--muted);flex:none;line-height:1.35}
.gallery-navigation{display:flex;gap:14px;align-items:center;flex:none}
.gallery-navigation>button{width:42px;height:42px;flex:none;background:var(--surface);border:1px solid var(--edge);border-radius:50%;font-size:20px}
.gallery-navigation>button,#photo-thumbs button{min-width:44px;min-height:44px;display:grid;place-items:center}
#photo-thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:3px;flex:1;min-width:0}
#photo-thumbs button{padding:0;border:2px solid transparent;background:transparent;border-radius:8px;flex:none;opacity:.55;transition:opacity 160ms,border-color 160ms}
#photo-thumbs button[aria-pressed=true]{border-color:var(--accent);opacity:1}
#photo-thumbs img{width:55px;height:40px;object-fit:cover;border-radius:5px;display:block}
#photo-error{font-size:13px;margin:0}
#showroom-details{overflow-y:auto;padding:26px 28px;border-radius:16px;background:#f3f5f2f5;box-shadow:0 18px 60px #263e3710;border:1px solid #ffffffa6}
.details-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:26px}
#source-link{font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.detail-section{padding:0 0 26px;scroll-margin-top:10px}
.detail-section:last-child{padding-bottom:0}
.detail-section h4{font:400 13px Futura,sans-serif;color:var(--muted);margin:0 0 12px}
.detail-section p{font-size:15px;line-height:1.6;margin:0 0 12px;max-width:65ch}
.detail-section p:last-child{margin-bottom:0}
.detail-metrics{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:26px}
.detail-metrics div{min-width:0}
.detail-metrics dt{font-size:12px;color:var(--muted);margin-bottom:8px}
.detail-metrics dd{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.025em}
.detail-metrics dd.long{font-size:16px;line-height:1.5;letter-spacing:0}
.detail-section[data-emphasis=true]{border-left:2px solid var(--accent);padding-left:14px}
.showroom-bottom{position:absolute;z-index:4;left:4.5vw;right:4.5vw;bottom:28px;pointer-events:none;opacity:0;transform:translateY(12px);transition:opacity 240ms var(--ease),transform 240ms var(--ease)}
#detail[data-revealed=true] .showroom-bottom{opacity:1;transform:translateY(0)}
.showroom-bottom button,.showroom-bottom a{pointer-events:auto}
.showroom-offer{position:absolute;right:0;bottom:84px;display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:18px;row-gap:5px;text-align:right;max-width:50%}
.showroom-offer>span{font-size:12px;color:var(--muted)}
.showroom-offer strong{font:400 clamp(21px,2vw,32px)/1.1 Futura,sans-serif;letter-spacing:-.025em}
.showroom-offer a{grid-column:1/-1;justify-self:end;font-size:12px;min-height:28px;line-height:28px;text-decoration:underline;text-underline-offset:5px}
.showroom-dock{position:relative;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:40px;width:fit-content;max-width:100%;padding:7px;background:#f2f5f1f5;border:1px solid #ffffffcf;border-radius:50px;box-shadow:0 6px 30px #314a3712;pointer-events:auto}
.view-switch,.market-switch{display:flex;gap:4px}
.market-switch{padding-left:14px;border-left:1px solid var(--edge)}
.showroom-dock button{border:0;background:transparent;border-radius:50px;padding:13px 24px;min-height:46px;font-size:14px;white-space:nowrap;color:var(--text);transition:background 180ms,color 180ms,transform 140ms var(--ease)}
.view-switch button[aria-pressed=true]{background:var(--text);color:#f4f6f2}
.market-switch button[aria-pressed=true]{background:#dce3d4;color:#263c32}
.market-switch button:disabled{background:#e5e9e6;color:#78827c;opacity:1;cursor:default;transform:none}
.showroom-panel:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(hover:hover) and (pointer:fine){
 .spatial-fact:hover .fact-action{opacity:1;transform:translateX(4px)}
 #photo-preview:hover{transform:translateY(-3px)}
 .showroom-dock button:not(:disabled):not([aria-pressed=true]):hover{background:#e0e7df}
 #photo-thumbs button:hover{opacity:1}
}
@media(max-height:680px) and (min-width:761px){
 .showroom-heading{top:24px}.showroom-heading h2{font-size:42px}.showroom-heading p{margin-bottom:7px}
 .showroom-panel{top:125px;bottom:148px}.showroom-bottom{bottom:18px}
 #photo-preview{bottom:155px;width:115px}#photo-preview img{height:65px}
 .showroom-offer{bottom:76px}
 .spatial-fact{width:175px}.spatial-fact strong{font-size:23px}.spatial-fact[data-topic=architecture] strong{font-size:18px}
}
@media(max-width:760px){
 #detail .close{right:18px;top:20px;width:42px;height:42px}
 .showroom-heading{top:22px;left:20px;right:70px}.showroom-heading p{font-size:11px;margin-bottom:8px}.showroom-heading h2{font-size:clamp(28px,7vw,42px);max-width:100%}
 #model-interaction{inset:16% 4% 44%}
 #detail[data-mode=photos] #model-interaction,#detail[data-mode=details] #model-interaction{inset:15% 12% 62%}
 #fact-connections{display:none}
 #spatial-facts{inset:auto 20px 185px;display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;align-items:start}
 .spatial-fact{position:relative;width:auto;transform:none!important;padding:0;min-height:50px}
 .spatial-fact[data-topic=architecture]{grid-column:1/-1;border-bottom:1px solid var(--edge);padding-bottom:12px}
 .spatial-fact[data-topic=architecture] strong{font-size:17px;max-width:100%;text-wrap:initial}
 .spatial-fact>span:first-child{font-size:10px;margin-bottom:5px}.spatial-fact strong{font-size:22px}.spatial-fact .fact-action{display:none}
 #photo-preview{display:none}
 .showroom-panel{top:39%;bottom:168px;left:16px;right:16px;width:auto;border-radius:14px}
 #showroom-details{padding:20px}.details-heading{margin-bottom:20px}.showroom-panel h3{font-size:21px}.detail-metrics{gap:18px}
 #showroom-photos{gap:8px;background:#f0f3f1;padding:15px}#showroom-photos h3{display:none}#photo-caption{font-size:13px}
 #photo-thumbs img{width:44px;height:32px}.gallery-navigation{gap:6px}.gallery-navigation>button{width:36px;height:36px}
 .showroom-bottom{left:16px;right:16px;bottom:max(14px,env(safe-area-inset-bottom))}
 .showroom-dock{display:grid;grid-template-columns:1fr auto;gap:4px;padding:5px;width:100%;border-radius:35px}
 .showroom-dock button{padding:10px 11px;min-height:44px;font-size:12px}.view-switch{gap:0;justify-content:space-between}.market-switch{padding-left:5px;gap:0}
 .showroom-offer{bottom:62px;max-width:100%;left:0;right:0;padding:10px 0;grid-template-columns:auto 1fr;gap:2px 10px;border-top:1px solid var(--edge)}
 .showroom-offer strong{font-size:22px}.showroom-offer>span{text-align:left}.showroom-offer a{font-size:11px;line-height:24px;min-height:24px}
}
@media(max-width:380px){.showroom-dock button{font-size:11px;padding:10px 8px}.showroom-heading h2{font-size:28px}.detail-metrics{grid-template-columns:1fr}}
@media(max-height:560px) and (min-width:761px){
 .showroom-heading{top:16px}.showroom-heading h2{font-size:32px}.showroom-heading p{font-size:11px;margin-bottom:5px}
 #detail .close{top:16px;right:24px;width:38px;height:38px}
 .showroom-panel{top:90px;bottom:120px}.showroom-panel h3{font-size:18px}
 #showroom-photos{gap:6px}#showroom-photos>h3{display:none}#showroom-photos figure{gap:4px}#photo-caption{font-size:13px;max-height:36px;overflow:auto}
 #photo-thumbs img{height:26px;width:39px}.gallery-navigation{gap:6px}.gallery-navigation>button{width:32px;height:32px}
 #showroom-details{padding:16px}.details-heading{margin-bottom:14px}
 .showroom-bottom{bottom:12px}.showroom-dock{padding:4px;gap:16px}.showroom-dock button{min-height:36px;padding:9px 18px;font-size:12px}
 .showroom-offer{bottom:54px}.showroom-offer strong{font-size:20px}.showroom-offer a{font-size:10px;line-height:20px;min-height:20px}
 #photo-preview{display:none}
 .spatial-fact{width:165px;padding:5px 0}.spatial-fact strong{font-size:18px}.spatial-fact[data-topic=architecture] strong{font-size:16px}.spatial-fact .fact-action{margin-top:6px;font-size:10px}
}
/* Keep the view switch in its existing right-aligned desktop position. */
@media(min-width:1000px){
 .showroom-bottom{display:flex;align-items:center;justify-content:flex-end;gap:20px}
 .showroom-dock{margin:0}
}
@media(prefers-reduced-transparency:reduce){.showroom-wash{background:#e5ece8}.showroom-dock,#showroom-details{background:#f0f3f1}}
@media(prefers-reduced-motion:reduce){#detail *,#detail *::before{animation:none!important;transition:none!important}}
body.keyboard #detail *,body.keyboard #detail *::before{animation:none!important;transition:none!important}

/* Targeted brand-preserving evolution: variance 4, motion 3, density 4.
   A real information surface (layer 3), not labels pinned over the facade.
   Model interaction and the bottom controls keep their own hit areas. */
#summary-sheet{position:absolute;z-index:3;top:clamp(148px,20vh,205px);right:4.5vw;bottom:132px;width:clamp(300px,32vw,480px);overflow:hidden;pointer-events:none;border-radius:14px}
#building-summary{position:absolute;inset:0;min-height:0;pointer-events:auto;padding:0;overscroll-behavior:contain;background:#f0f3f1f5;border:1px solid #ffffffb8;border-radius:14px;opacity:0;transform:translateY(8px);transition:opacity 200ms var(--ease),transform 240ms var(--ease),top 240ms var(--ease)}
#detail[data-revealed=true][data-mode=building] #building-summary{opacity:1;transform:none}
#building-summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#summary-content:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#building-summary h3{margin:0;font:400 17px/1.3 Futura,sans-serif;letter-spacing:-.02em}
.summary-header{display:flex;align-items:center;justify-content:space-between;gap:12px;height:60px;flex:none;padding:7px 18px 7px 26px;box-sizing:border-box}
#summary-toggle{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--edge);border-radius:50%;background:transparent;color:var(--text);cursor:pointer;scale:1}
#summary-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#summary-toggle svg{transition:transform 200ms var(--ease)}
#summary-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;padding:6px 26px 24px}
/* Clip the sliding card at its original bottom edge. Only its reachable
   header remains; neither the dock nor the model is covered by a hidden body. */
#detail[data-revealed=true][data-mode=building][data-summary-collapsed=true] #building-summary{top:calc(100% - 60px);transform:none;overflow:hidden}
#detail[data-summary-collapsed=true] #summary-body{visibility:hidden;pointer-events:none}
#detail[data-summary-collapsed=true] #building-summary #photo-strip{visibility:hidden;pointer-events:none}
#detail[data-summary-collapsed=true] #summary-toggle svg{transform:rotate(180deg)}
#detail[data-summary-instant=true] #building-summary,#detail[data-summary-instant=true] #summary-toggle svg{transition:none}
#detail[data-mode=building][data-summary-collapsed=true] #model-interaction{inset:19% 4% 19%}
@media(hover:hover) and (pointer:fine){#summary-toggle:hover{background:#e0e7df}}
.summary-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 22px;margin:0}
.summary-metrics>div,.summary-history-metrics>div{min-width:0}
.summary-metrics dt,.summary-history-metrics dt{margin-bottom:6px;color:var(--muted);font:400 12px/1.4 Futura,sans-serif}
.summary-metrics dd,.summary-history-metrics dd{margin:0;overflow-wrap:anywhere}
.summary-history-metrics{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin:0}
.summary-value{display:block;font:400 clamp(20px,1.4vw,22px)/1.3 Futura,sans-serif;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* Each complete price range owns a full row. Its type scales with the actual
   reading width; qualifiers remain separate, wrapping source text below it. */
#building-summary{display:flex;flex-direction:column;overflow:hidden}
#building-summary h3{flex:none}
#summary-content{container-type:inline-size;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--edge) transparent;padding-right:4px}
.summary-metrics>[data-summary-field=buyPrice],.summary-metrics>[data-summary-field=rentPrice]{grid-column:1/-1}
.summary-metrics>[data-summary-field=buyPrice] .summary-value,.summary-metrics>[data-summary-field=rentPrice] .summary-value{font-size:clamp(16px,6cqw,22px);line-height:1.3;white-space:nowrap;overflow-wrap:normal}
.summary-metrics>[data-market-unavailable=true] .summary-value{font-size:16px;line-height:1.4;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;color:var(--muted)}
.summary-note{display:block;margin-top:7px;font:400 11px/1.5 Futura,sans-serif;letter-spacing:0;color:var(--muted);overflow-wrap:anywhere}
.summary-date{margin:20px 0 0;color:var(--muted);font:400 10px/1.5 Futura,sans-serif;overflow-wrap:anywhere}
.summary-section{padding-top:20px;margin-top:20px;border-top:1px solid var(--edge)}
.summary-section h4{margin:0 0 9px;font:400 12px/1.4 Futura,sans-serif;color:var(--muted)}
.summary-section p{margin:0 0 9px;font:400 14px/1.55 Futura,sans-serif;overflow-wrap:anywhere}
.summary-section p:last-child{margin-bottom:0}
/* The map's attribution footer is positioned globally; this card footer
   stays in normal reading flow, including inside the embedded mobile map. */
#summary-footer{position:static;display:block;flex:none;inset:auto;margin-top:14px;padding-top:10px;border-top:1px solid var(--edge);color:inherit}
.summary-footer a{display:inline-flex;align-items:center;min-height:44px;font:400 13px/1.5 Futura,sans-serif;text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
.summary-footer a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#detail[data-mode=building] .showroom-offer>span,#detail[data-mode=building] .showroom-offer>strong{display:none}
#detail[data-mode=building] .showroom-offer{bottom:70px}
#detail[data-closeup=true] #building-summary{opacity:1;visibility:visible}
@media(max-width:1100px) and (min-width:761px){
 #summary-sheet{right:24px;width:32vw;min-width:270px;bottom:200px}
 .summary-header{padding-left:20px;padding-right:12px}#summary-body{padding:4px 20px 20px}
 .summary-metrics{gap:20px 16px}.summary-value{font-size:20px}
 #detail[data-mode=building] .showroom-offer{bottom:130px}
}
@media(max-height:680px) and (min-width:761px){
 #summary-sheet{top:112px;bottom:117px}
 .summary-header{padding-left:22px;padding-right:14px}#summary-body{padding:0 22px 18px}
 .summary-metrics{gap:16px}.summary-value{font-size:20px}
 .summary-section{padding-top:16px;margin-top:16px}.summary-section p{font-size:13px}
 #detail[data-mode=building] .showroom-offer{bottom:57px}
}
@media(max-width:760px){
 #detail[data-mode=building] #model-interaction{inset:16% 4% 58%}
 #summary-sheet{top:44%;left:16px;right:16px;bottom:123px;width:auto;min-width:0}
 .summary-header{padding-left:20px;padding-right:12px}#summary-body{padding:0 20px 18px}
 #building-summary h3{font-size:15px}.summary-metrics{gap:18px 20px}.summary-value{font-size:21px}
 #detail[data-mode=building][data-summary-collapsed=true] #model-interaction{inset:16% 4% 123px}
 .summary-section{padding-top:16px;margin-top:16px}.summary-section p{font-size:13px}
 #detail[data-mode=building] .showroom-offer{bottom:59px;border-top:0;padding:0}
}
@media(max-height:560px) and (min-width:761px){#summary-sheet{top:92px;bottom:104px}#detail[data-mode=building] .showroom-offer{bottom:48px}}
@media(max-width:760px) and (max-height:560px){
 #summary-sheet{top:38%;bottom:104px}
 .summary-header{padding-left:16px;padding-right:8px}#summary-body{padding:0 16px 14px}
 #summary-footer{margin-top:10px;padding-top:8px}
 #detail[data-mode=building] #model-interaction{bottom:62%}
 #detail[data-mode=building][data-summary-collapsed=true] #model-interaction{bottom:104px}
}
/* Keep the facts scroller usable on short phones and landscape screens;
   reduce empty padding, never the arrow/link touch targets or text size. */
@media(max-height:680px){
 #summary-body{padding-bottom:12px}
 #summary-footer{margin-top:10px;padding-top:8px}
}
@media(prefers-reduced-transparency:reduce){#building-summary{background:var(--surface)}}
/* The embedded host keeps its own exit above the iframe: reserve its origin
   without changing the standalone showroom, typography or model/gallery layout. */
html[data-embed=true] .showroom-heading{left:240px}
@media(max-width:750px){html[data-embed=true] .showroom-heading{left:76px}}

/* Building page 2026-10-23 (owner's approved draft): one way back, photos before facts,
   the overview card only as tall as its content, Buy/Rent inside it, no bottom bar. */
#detail #close{left:clamp(16px,2.2vw,32px);right:auto;top:clamp(14px,2.2vh,28px);display:inline-flex;align-items:center;gap:12px;width:auto;height:52px;padding:0 22px 0 10px;border:0;border-radius:999px;background:rgba(34,30,32,.9);color:#fff;font:400 14px/1 Futura,sans-serif;letter-spacing:.1em;text-transform:uppercase;box-shadow:0 10px 30px rgba(34,30,32,.18)}
#detail #close span:first-child{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:#221e20;font-size:18px;letter-spacing:0}
#detail .showroom-heading{top:clamp(84px,11vh,112px)}
/* Long landmark names stay beside the facts sheet, never underneath it. */
@media(min-width:761px){
 #detail[data-architecture-only=true] .showroom-heading{max-width:calc(100vw - clamp(300px,32vw,480px) - 11vw)}
 #detail[data-architecture-only=true] .showroom-heading h2{max-width:100%;font-size:clamp(32px,4vw,64px);text-wrap:balance}
}
#detail-map-exit,#photo-preview,.showroom-bottom{display:none!important}
#summary-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#detail .summary-header{justify-content:space-between}
#summary-toggle{margin-left:auto}
#detail .summary-header .market-switch{display:inline-flex;gap:0;padding:4px;border-radius:999px;background:#e3e7e1}
#detail .summary-header .market-switch button{min-height:36px;padding:8px 18px;border:0;border-radius:999px;background:none;font:400 14px/1 Futura,sans-serif;color:#4f5a55}
#detail .summary-header .market-switch button[aria-pressed=true]{background:#221e20;color:#fff}
/* Bound the card by this sheet's actual responsive top, not a second desktop
   top calculation. The inner facts scroll while the actions stay in view. */
#summary-sheet{bottom:max(40px,env(safe-area-inset-bottom));max-height:none;overflow:hidden}
#building-summary{position:relative;inset:auto;top:0;max-height:100%;overflow:hidden}
#detail .summary-section[data-summary-field=bedrooms]{display:none}
#summary-footer{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;align-items:center}
#summary-footer[hidden]{display:none}
#summary-footer #offer-link,#offer-enquiry{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:0 14px;border-radius:999px;font:400 13px/1.2 Futura,sans-serif;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:normal;text-align:center}
#summary-footer #offer-link{background:#221e20;color:#fff}
#offer-enquiry{border:1px solid #221e20;color:#221e20}
#offer-enquiry[hidden],#summary-footer #offer-link[hidden]{display:none}
#summary-more{grid-column:1/-1;justify-self:start;padding:4px 0;border:0;border-bottom:1px solid currentColor;background:none;font:400 13px/1.2 Futura,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#221e20;cursor:pointer}
#photo-strip{position:absolute;z-index:3;left:clamp(24px,4.5vw,86px);bottom:28px;display:flex;gap:12px;opacity:0;transform:translateY(8px);transition:opacity 220ms var(--ease),transform 220ms var(--ease)}
#detail[data-revealed=true][data-mode=building] #photo-strip{opacity:1;transform:none}
#detail:not([data-mode=building]) #photo-strip{visibility:hidden}
#photo-strip[hidden]{display:none}
#photo-strip button{width:clamp(110px,10vw,168px);aspect-ratio:3/2;padding:0;border:0;border-radius:12px;overflow:hidden;background:#d6dfda;box-shadow:0 10px 26px rgba(34,30,32,.18);cursor:pointer;transition:transform 160ms var(--ease)}
#photo-strip img{display:block;width:100%;height:100%;object-fit:cover}
#photo-strip button:active{transform:scale(.97)}
#photo-strip button:focus-visible{outline:2px solid #221e20;outline-offset:3px}
/* Gallery: a large photo over a dark veil, with arrows and the row of all photos. */
#detail[data-mode=photos] #showroom-photos{position:fixed;inset:0;z-index:20;display:grid;place-content:center;justify-items:center;gap:14px;max-width:none;width:auto;height:auto;margin:0;padding:72px 96px 28px;border:0;border-radius:0;background:rgba(24,22,23,.9);color:#fff}
#detail[data-mode=photos] #showroom-photos figure{margin:0}
#detail[data-mode=photos] #showroom-photos #photo{width:auto;max-width:min(1100px,calc(100vw - 200px));max-height:calc(100dvh - 220px);border-radius:14px;object-fit:contain}
#detail[data-mode=photos] #photos-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#detail[data-mode=photos] #photo-caption{color:rgba(255,255,255,.8)}
.panel-close{position:absolute;top:24px;right:28px;display:grid;place-items:center;width:52px;height:52px;border:0;border-radius:50%;background:#fff;color:#221e20;font-size:20px;cursor:pointer}
#detail[data-mode=details] #showroom-details{position:fixed;z-index:20;top:40px;bottom:40px;left:50%;right:auto;width:min(760px,calc(100vw - 32px));transform:translateX(-50%);overflow:auto;padding:30px 32px;border-radius:22px;background:#f8f7f2;box-shadow:0 30px 90px rgba(24,22,23,.35)}
#detail[data-mode=details] .details-heading{position:relative;padding-right:64px}
#detail[data-mode=details] .details-heading .panel-close{top:-6px;right:0;background:#221e20;color:#fff}
@media(max-width:760px){
 #summary-sheet{bottom:max(16px,env(safe-area-inset-bottom))}
 #detail #close{height:44px;padding:0 14px 0 6px;font-size:12px}
 #detail #close span:first-child{width:30px;height:30px}
 #detail .showroom-heading{top:76px}
 #building-summary #photo-strip{position:static;display:flex;flex:0 0 auto;gap:10px;margin:14px 0 4px;padding:0 20px;overflow-x:auto;scrollbar-width:none;opacity:1;transform:none;visibility:visible}
 #building-summary #photo-strip button{flex:none;width:132px;box-shadow:none}
 /* German action labels must fit the existing two-column mobile card. */
 html[lang=de] #summary-footer{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
 html[lang=de] #summary-footer #offer-link,html[lang=de] #summary-footer #offer-enquiry{min-width:0;padding:8px 12px;white-space:normal;text-align:center}
 #detail[data-mode=photos] #showroom-photos{padding:72px 12px 20px}
 #detail[data-mode=photos] #showroom-photos #photo{max-width:calc(100vw - 24px)}
}
/* Short landscape cannot fit photos, header, facts and actions at once.
   Scroll the bounded whole card instead of squeezing the facts to zero. */
@media(max-height:560px){
 #building-summary{overflow-y:auto}
 #summary-body,#summary-content{flex:none}
 #summary-content{overflow:visible}
}
