/* UI skin v001: dark glass over the picture. Loaded last, so it restyles the controls without touching how the
   viewer works. Colours and shapes apply everywhere; positions only on the standalone page (the embeds keep theirs). */
:root{
 --ui-bg:rgba(13,18,23,.58);--ui-bg-solid:rgba(13,18,23,.84);--ui-line:rgba(255,255,255,.14);
 --ui-text:#fff;--ui-muted:rgba(255,255,255,.66);--ui-accent:#e9c891;--ui-ink:#0e151b;
 --ui-shadow:0 10px 40px rgba(0,0,0,.28);--ui-blur:blur(22px) saturate(1.5);
}
body{font:14px/1.45 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--ui-text);background:#0e151b}
button:focus-visible,a:focus-visible,#orbitCanvas:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Brand: lettering on the picture, no box. */
.brand{font:600 12px/1 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.32em;color:#fff;background:none;padding:10px 4px;border-radius:8px;text-shadow:0 1px 12px rgba(0,0,0,.55);-webkit-backdrop-filter:none;backdrop-filter:none}
header{justify-content:flex-start;gap:12px}
.study{display:none}

/* Glass surfaces. */
#backBuilding,#orbitTools,#resetInteriorLook,#floorPlanButton,.context,#roomNav,#floorNav,.status{
 background:var(--ui-bg);border:1px solid var(--ui-line);color:var(--ui-text);box-shadow:var(--ui-shadow)}
#unitCard,#nearby,#hoverLabel{background:var(--ui-bg-solid);border:1px solid var(--ui-line);color:var(--ui-text);box-shadow:var(--ui-shadow)}

/* Back to the building: only when there is somewhere to come back from. */
#backBuilding{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:8px 14px 8px 10px;font-size:12px;font-weight:500}
body:not([data-interior=true]):not([data-selected-floor]) #backBuilding,body:not([data-interior=true])[data-selected-floor=""] #backBuilding{display:none}

/* Toolbar: one capsule of icons. */
#orbitTools{gap:2px;padding:4px;border-radius:999px;align-items:center}
.toolbar{gap:8px;align-items:center}
.toolbar #orbitTools button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ui-text);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;font-size:0;transition:background-color .15s ease,color .15s ease,transform .12s var(--mz-ease)}
.toolbar #orbitTools button[aria-pressed=true]{background:#fff;color:var(--ui-ink)}
#resetInteriorLook,#floorPlanButton{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:8px 14px 8px 11px;font-size:12px;font-weight:500;min-height:0}

/* Inside an apartment the building tools do nothing. */
body[data-interior=true] .toolbar #orbitTools{display:none}
@media(pointer:coarse){.toolbar #orbitTools #orbitIn,.toolbar #orbitTools #orbitOut{display:none}}

/* Floors: a slim rail. */
#floorNav{gap:1px;padding:4px;border-radius:999px}
#floorNav button,#floorNav button[data-floor="9"]{width:30px;height:30px;border-radius:50%;font-size:11px;font-weight:500;color:var(--ui-muted);background:transparent;font-variant-numeric:tabular-nums;transition:background-color .15s ease,color .15s ease,transform .12s var(--mz-ease)}
#floorNav button[data-floor="9"]{font-size:9px}
#floorNav button:focus-visible{background:rgba(255,255,255,.14);color:#fff;outline:2px solid var(--ui-accent);outline-offset:1px}
#floorNav button[aria-pressed=true]{background:#fff;color:var(--ui-ink)}

/* Context card. */
.context{padding:13px 18px 14px;border-radius:18px}
.eyebrow{font-size:10px;font-weight:600;letter-spacing:.2em;color:var(--ui-accent)}
h1{font:600 19px/1.25 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-.01em;margin:5px 0 2px}
.context p{font-size:12px;color:var(--ui-muted)}
.designNote{background:none;color:rgba(255,255,255,.62);font-size:10px;text-shadow:0 1px 8px rgba(0,0,0,.6)}

/* Rooms. */
#roomNav{gap:2px;padding:4px;border-radius:999px;flex-wrap:nowrap;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none}#roomNav::-webkit-scrollbar{display:none}
#roomNav button{flex:none}
#roomNav button{border:0;background:transparent;color:var(--ui-muted);border-radius:999px;padding:9px 15px;min-height:40px;font-size:12px;font-weight:500;transition:background-color .15s ease,color .15s ease,transform .12s var(--mz-ease)}
#roomNav button[aria-current=true]{background:#fff;color:var(--ui-ink)}





/* Apartment card and the neighbourhood list. */
#unitCard{border-radius:22px}
#unitCard h2{font:600 24px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-.015em}
#unitCard p{color:var(--ui-muted)}#unitCard small{color:rgba(255,255,255,.45)}
#closeCard{color:var(--ui-muted);border-radius:50%;width:32px;height:32px;padding:0;background:rgba(255,255,255,.08)}
.primary{background:#fff;color:var(--ui-ink);border-radius:14px;font-weight:600;box-shadow:none}
#unitSun{background:rgba(233,200,145,.09);border-color:rgba(233,200,145,.24);color:var(--ui-muted)}
#unitSun strong{color:var(--ui-accent)}#unitSun b{color:#fff}#unitSun i.none,#unitSun em{color:rgba(255,255,255,.45)}
#hoverLabel{border-radius:14px}
#nearby{border-radius:18px}
#nearby .nearbyClose,#nearby li i{color:var(--ui-muted)}
#nearby .nearbyCat{border-top-color:rgba(255,255,255,.1)}
#nearby small{color:rgba(255,255,255,.45)}
.status{border-radius:12px;font-size:12px}
#loading{background:rgba(13,18,23,.45);color:#fff}
#loading span{border-color:rgba(255,255,255,.25);border-top-color:#fff}

/* Hover only where there is a real pointer. */
@media(hover:hover) and (pointer:fine){
 .toolbar #orbitTools button:not([aria-pressed=true]):hover,#floorNav button:not([aria-pressed=true]):hover,#roomNav button:not([aria-current=true]):hover{background:rgba(255,255,255,.14);color:#fff;outline:0}
 #backBuilding:hover,#resetInteriorLook:hover,#closeCard:hover{background:rgba(255,255,255,.18)}
 .primary:hover{background:var(--ui-accent)}
}

/* Glass blur on larger screens only: over a turning picture it costs frames on phones. */
@media(min-width:701px){
 #backBuilding,#orbitTools,#resetInteriorLook,#floorPlanButton,.context,#roomNav,#floorNav,.status,#unitCard,#nearby,#hoverLabel{-webkit-backdrop-filter:var(--ui-blur);backdrop-filter:var(--ui-blur)}
}

/* The controls step aside while the picture is being turned, and come back when the finger lifts. */
header,.toolbar,#floorNav,.dock,.designNote{transition:opacity .3s var(--mz-ease)}
body[data-dragging=true] header,body[data-dragging=true] .toolbar,body[data-dragging=true] #floorNav,body[data-dragging=true] .dock,body[data-dragging=true] .designNote{opacity:0;pointer-events:none;transition-duration:.18s}

/* Standalone page layout. */
body:not(.home-embed):not(.page-embed) .toolbar{top:max(20px,env(safe-area-inset-top));right:24px}
body:not(.home-embed):not(.page-embed) #floorNav{top:50%;right:24px;transform:translateY(-50%);max-height:calc(100svh - 240px)}

@media(max-width:700px){
 :root{--ui-bg:rgba(13,18,23,.74);--ui-bg-solid:rgba(13,18,23,.9);--ui-shadow:0 6px 22px rgba(0,0,0,.25)}
 .brand{font-size:11px;letter-spacing:.28em;padding:12px 2px;background:none}
 .toolbar button,.context,#roomNav{background-color:var(--ui-bg)}
 .toolbar #orbitTools button{background:transparent}
 .toolbar #orbitTools button[aria-pressed=true]{background:#fff}
 #roomNav button{background:transparent;border:0}
 #roomNav button[aria-current=true]{background:#fff}
 #backBuilding{font-size:12px;padding:7px 12px 7px 9px}
 /* With the day/night button the top-right tools reach the middle of a phone: while "‹ Building" shows, it takes the wordmark's place. */
 body[data-interior=true] .brand,body[data-selected-floor]:not([data-selected-floor=""]) .brand{display:none}
 /* Two fingers zoom on a phone: the +/- buttons would crowd the top row. */
 .toolbar #orbitTools #orbitIn,.toolbar #orbitTools #orbitOut{display:none}
 #resetInteriorLook{padding:9px}#resetInteriorLook span{display:none}
 body[data-interior=true] .dock{grid-template-columns:minmax(0,1fr)}
 body:not(.home-embed):not(.page-embed) .toolbar{top:max(12px,env(safe-area-inset-top));right:12px}
 body:not(.home-embed):not(.page-embed)[data-interior=true] .toolbar{top:max(12px,env(safe-area-inset-top));right:12px}
 body:not(.home-embed):not(.page-embed) #floorNav{top:50%;right:10px;max-height:calc(100svh - 250px)}
 body:not(.home-embed) .context h1,body:not(.home-embed)[data-interior=true] .context h1{font-size:16px}
 #unitCard h2{font-size:20px}
}
@media(prefers-reduced-motion:reduce){header,.toolbar,#floorNav,.dock,.designNote{transition:none}}

/* Price per m² (walkthrough saleOf): label + value, gold when on sale, muted for the penthouses not yet on sale. */
.sale{display:flex;align-items:baseline;gap:8px;margin:0;font-style:normal;font-variant-numeric:tabular-nums}
.sale span{font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ui-muted)}
.sale b{font-size:13px;font-weight:600;color:var(--ui-accent)}
.sale.off b{color:var(--ui-muted);font-weight:500}
.context .sale{margin-top:6px}
#hoverLabel .sale{margin-top:4px}
#unitSale{margin:10px 0 2px}
#floorNav button[data-sale=off]{color:rgba(255,255,255,.34)}
#floorNav button[data-sale=off][aria-pressed=true]{color:var(--ui-ink)}
#floorUnits small.unitSaleLine{flex-basis:100%;color:#8a5a12;font-size:11px;font-weight:600}
#floorUnits small.unitSaleLine.off{color:#7b8790;font-weight:500}
#hoverLabel .sale span{font-size:10px;opacity:1}#hoverLabel .sale b{font-size:13px}
/* Unit codes and areas (Δ1 · 47,55 τ.μ.): a quiet line under the price, and a second label on each building pin. */
.areaLine{display:block;margin:4px 0 0;font-style:normal;font-size:12px;color:var(--ui-muted);font-variant-numeric:tabular-nums}



/* Unit tags as architectural callouts: a dot on the balcony, a hairline out to a column beside the building, the label
   standing on the line. No pills, so labels never sit on the facade and never need stacking on top of each other. */
#unitTags svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#unitTags polyline{fill:none;stroke:rgba(255,255,255,.8);stroke-width:1;vector-effect:non-scaling-stroke}
#unitTags circle{fill:#fff;stroke:rgba(14,21,27,.45);stroke-width:2}
#unitTags button{position:absolute;pointer-events:auto;display:grid;grid-template-columns:auto auto;justify-content:start;column-gap:7px;row-gap:1px;margin:0;padding:4px 8px 5px;border:0;border-radius:2px;background:rgba(13,18,23,.42);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--ui-text);font:500 12px/1.3 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;letter-spacing:.01em;text-align:left;white-space:nowrap;cursor:pointer;text-shadow:0 1px 2px rgba(0,0,0,.35)}
#unitTags button[data-side=left]{justify-content:end;text-align:right}
#unitTags button[hidden]{display:none}
#unitTags button b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--ui-accent)}
#unitTags button i{grid-column:1/-1;font-style:normal;font-variant-numeric:tabular-nums;color:var(--ui-muted)}
#unitTags button:hover span,#unitTags button:focus-visible span{color:var(--ui-accent)}
#unitTags button:focus-visible{outline:1px solid var(--ui-accent);outline-offset:3px}
@media(max-width:700px){#unitTags button{font-size:11px}#unitTags button span{display:none}#unitTags button i{grid-column:auto}}

/* Floor card: two small boards in the top-left corner, glass like the dock card, the call as a white capsule. */
#hoverLabel{left:16px;top:76px;right:auto;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:auto;max-width:min(230px,calc(100% - 110px));padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#hoverLabel span,#hoverLabel small{opacity:1}
#hoverLabel>span{display:grid;gap:2px;padding:8px 12px;background:var(--ui-bg);border:1px solid var(--ui-line);border-radius:14px;box-shadow:var(--ui-shadow);-webkit-backdrop-filter:var(--ui-blur);backdrop-filter:var(--ui-blur)}
#hoverLabel .tipHead strong{font-size:16px;font-weight:600;line-height:1.2}
#hoverLabel .tipHead span{font-size:12px;color:var(--ui-muted)}
#hoverLabel .sale{margin:0;gap:6px}#hoverLabel .sale span{font-size:10px}#hoverLabel .sale b{font-size:13px}
#hoverLabel .areaLine{margin:0;font-size:12px}
#hoverLabel .tipGo{justify-self:start;margin-top:5px;padding:4px 11px;border-radius:999px;background:#fff;color:var(--ui-ink);font-size:11.5px;font-weight:600;white-space:nowrap}
body.page-embed #hoverLabel{left:12px;top:12px}
@media(max-width:700px){#hoverLabel{left:10px;top:70px;max-width:min(190px,calc(100% - 80px));gap:4px}body.page-embed #hoverLabel{left:8px;top:8px}#hoverLabel>span{padding:6px 10px;border-radius:12px}#hoverLabel .tipHead strong{font-size:14px}#hoverLabel .tipHead span,#hoverLabel .areaLine{font-size:11px}#hoverLabel .sale b{font-size:12px}#hoverLabel .tipGo{font-size:11px;padding:3px 9px;margin-top:3px}#hoverLabel .tipHead span,#hoverLabel .areaLine{display:none}#hoverLabel .sale span{font-size:9px}}
