@import url('assets/fonts/fonts.css');
:root{color-scheme:dark;--bg:#05080c;--ink:#f0f5fb;--muted:#8998a9;--line:#20303e;--cyan:#91d5fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;overflow:hidden}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;border:1px solid var(--line);background:#0c131c;min-height:44px;border-radius:7px;padding:10px 16px;transition:background .2s,border-color .2s}button:hover{background:#142433;border-color:#5b839d}button:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}button[hidden],[hidden]{display:none!important}header{height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid #17212c;position:relative;z-index:5}#brand{display:flex;align-items:center;gap:17px;color:white;text-decoration:none;font-size:17px;font-weight:600;letter-spacing:.12em}#brand img{width:54px;height:54px}#brand small{display:block;font-size:12px;font-weight:400;letter-spacing:.04em;color:var(--muted);margin-top:7px}.header-right{display:flex;align-items:center;gap:30px}.prototype{color:#93aac0;font-size:11px;letter-spacing:.18em}#fullscreen{font-size:13px;background:transparent}main{height:calc(100dvh - 148px);display:grid;grid-template-columns:310px minmax(0,1fr) 76px;padding:0 42px;gap:20px;position:relative}.intro{padding-top:55px;position:relative;z-index:4;display:flex;flex-direction:column;align-items:flex-start}.eyebrow{font-size:11px;letter-spacing:.2em;color:#8eb7d5;margin:0 0 22px;font-weight:600}h1{font-family:Manrope,sans-serif;font-weight:500;font-size:clamp(40px,4.7vw,72px);line-height:1.07;letter-spacing:-.06em;margin:0 0 20px}.intro-copy{color:#9eacba;font-size:15px;line-height:1.8;margin:0 0 25px}.primary{border:1px solid #b1dffa;background:#b1dffa;color:#10202d;font-weight:600;font-size:14px}.primary:hover{background:#d0ecfd}.primary span{margin-left:20px}.quiet{background:transparent;margin-top:9px;border:0;color:#aebdca;font-size:13px;padding-left:0}.searchbox{margin-top:34px;width:100%;position:relative}.searchbox label{display:block;font-size:10px;letter-spacing:.18em;color:#8b9bad;margin-bottom:12px}.input-wrap{height:48px;display:flex;align-items:center;border:1px solid #253341;background:#0b1119;border-radius:7px;padding:0 10px;gap:9px}.input-wrap>span{font-size:27px;color:#9bb1c5}input{border:0;background:none;color:white;min-width:0;outline:none;width:100%;font-size:13px}kbd{color:#697888;border:1px solid #2b3742;border-radius:3px;padding:2px 5px;font-size:11px}#results:not(:empty){position:absolute;top:82px;background:#101923;border:1px solid #314454;border-radius:8px;max-height:300px;overflow:auto;width:350px;box-shadow:0 20px 60px #0009;z-index:20}#results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #263440;border-radius:0;font-size:14px;padding:14px;background:none}#results button:hover{background:#233a4c}#results small{display:block;color:#9cabb9;font-size:12px;margin-top:4px}.empty{padding:16px;font-size:14px;color:#acb9c7}.reference{margin-top:auto;margin-bottom:24px;border-top:1px solid #1c2934;padding-top:20px;display:flex;gap:12px;align-items:center}.reference img{width:75px;height:59px;object-fit:cover;border-radius:5px;opacity:.8}.reference div{font-size:13px;color:#c0ccd8}.reference small{display:block;color:#6e8193;font-size:11px;margin-top:6px}.scene{position:relative;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 50% 54%,#13233355,transparent 64%)}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:pointer}.scene-top{position:absolute;top:30px;left:14px;right:14px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.18em;color:#b1c2d2;pointer-events:none}.view-meta{color:#637b91}.scene-caption{position:absolute;bottom:29px;left:0;right:0;text-align:center;pointer-events:none;font-size:12px;color:#8c9eaf}.scene-caption #scene-status{display:block;color:#b3d5ec;margin-top:8px;font-size:11px}.floor-nav{padding-top:26px;display:flex;align-items:center;flex-direction:column;gap:12px;z-index:4}.floor-nav>span{font-size:10px;letter-spacing:.15em;color:#6a8093}#floors{display:flex;flex-direction:column;gap:3px}#floors button{font-size:13px;width:46px;min-height:34px;height:34px;padding:5px;border-color:transparent;background:transparent;color:#8a9fb1;border-radius:5px}#floors button:hover{background:#152936;color:#d3efff}#floors button.active{background:#b3dfff;color:#092034;box-shadow:0 0 22px #85c9ff22}#stack{width:46px;padding:5px;font-size:24px;line-height:22px;background:none}#stack small{display:block;font-size:9px;color:#8198ab;letter-spacing:.12em}.map-controls{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);display:flex;background:#0b151fe8;border:1px solid #263746;border-radius:9px;box-shadow:0 7px 35px #0008}.map-controls button{border:0;background:none;font-size:18px}#fit{font-size:12px;border-left:1px solid #263746}.room-card{position:absolute;right:128px;top:74px;width:275px;border:1px solid #344b5e;border-radius:12px;background:#0c1722f5;backdrop-filter:blur(20px);box-shadow:0 20px 50px #0008;z-index:5;padding:24px}.close{position:absolute;right:12px;top:10px;min-height:34px;width:34px;padding:0;background:none;border:0;font-size:24px;color:#a6bdcf}.room-card .eyebrow{margin-bottom:15px}.room-card h2{font-family:Manrope,sans-serif;font-size:28px;letter-spacing:-.04em;margin:0 0 5px}.room-card h3{font-size:15px;line-height:1.5;color:#adc7da;margin:0 0 20px;font-weight:400}.room-photo{height:115px;border:1px dashed #30495d;background:linear-gradient(120deg,#172b3c,#101c29);border-radius:6px;padding:18px}.room-photo span{font-size:9px;letter-spacing:.2em;color:#688ba4}.room-photo p{font-size:13px;line-height:1.6;color:#9fb9cc;margin:8px 0}.room-meta{display:flex;justify-content:space-between;font-size:12px;border-bottom:1px solid #263a49;padding:17px 0}.room-meta b{font-weight:400;color:#7e95a8}.room-note{color:#7d94a8;font-size:11px;line-height:1.7}.room-card>button:last-child{width:100%;font-size:12px;margin-top:5px}footer{height:48px;border-top:1px solid #17212c;padding:0 42px;display:flex;align-items:center;justify-content:space-between;color:#526b7f;font-size:10px;letter-spacing:.1em}footer button{border:0;background:none;font-size:11px;color:#7890a5;padding:0;min-height:40px;letter-spacing:0}#loading{position:absolute;top:50%;width:100%;text-align:center;color:#aac9e0;font-size:14px}dialog{background:#0c1722;color:#d8e7f3;border:1px solid #385166;border-radius:14px;padding:38px;max-width:560px}dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}dialog h2{font-family:Manrope;font-size:28px}dialog p:not(.eyebrow){font-size:15px;line-height:1.8;color:#9cb1c3}body.floor-view .reference{opacity:.5}body.floor-view .scene{background:radial-gradient(ellipse,#0b1a2644,transparent 70%)}
@media(min-height:950px){#floors button{height:45px;min-height:45px}.floor-nav{gap:20px}}@media(max-height:760px){header{height:76px}main{height:calc(100dvh - 114px)}footer{height:38px}.intro{padding-top:27px}.eyebrow{margin-bottom:15px}h1{font-size:47px}.intro-copy{margin-bottom:15px}.searchbox{margin-top:22px}.reference{margin-bottom:15px}.reference img{height:44px;width:56px}#floors{gap:0}#floors button{min-height:29px;height:29px}.floor-nav{padding-top:20px;gap:9px}}
@media(max-width:1000px){header{padding:0 22px}main{padding:0 20px;grid-template-columns:230px minmax(0,1fr) 54px;gap:10px}h1{font-size:46px}.intro-copy{font-size:13px}.view-meta{display:none}.room-card{right:83px;width:240px}.prototype{display:none}footer{padding:0 22px}.reference small{font-size:10px}}
@media(max-width:700px){header{height:72px;padding:0 16px}#brand{font-size:13px;gap:10px}#brand img{width:40px;height:40px}#brand small{font-size:9px}#fullscreen{font-size:11px;padding:7px}main{height:calc(100dvh - 108px);padding:0 10px;display:block}.intro{position:absolute;left:20px;top:17px;padding:0;width:210px;pointer-events:none}.intro>*{pointer-events:auto}.intro .eyebrow{font-size:9px;margin-bottom:9px}h1{font-size:35px;margin-bottom:10px}.intro-copy{display:none}.intro .primary{font-size:12px;min-height:38px;padding:7px 11px}.searchbox{position:fixed;top:87px;right:16px;width:160px;margin:0}.searchbox label{display:none}input{font-size:11px}kbd{display:none}#results:not(:empty){right:0;top:55px;width:280px}.reference{display:none}.scene{height:100%;margin-right:42px;padding-top:110px}.scene-top{display:none}.floor-nav{position:absolute;right:8px;top:100px;padding:0;gap:6px}#floors button{height:31px;min-height:31px;width:38px}.floor-nav>span{display:none}#stack{min-height:40px;width:38px}.scene-caption{bottom:16px;font-size:10px}.map-controls{bottom:47px}.room-card{top:auto;bottom:85px;right:63px;width:220px;padding:16px}.room-card .room-photo,.room-card .room-note,.room-card .room-meta{display:none}.room-card h2{font-size:22px}.room-card h3{font-size:12px;margin-bottom:10px}.room-card .eyebrow{font-size:9px;margin-bottom:10px}.room-card>button:last-child{min-height:36px}footer{height:36px;padding:0 15px;font-size:8px}footer>span:nth-child(2){display:none}footer button{font-size:10px}body.floor-view .intro h1{font-size:28px}body.floor-view .intro .eyebrow{display:none}#home{font-size:11px;margin:0;padding:0;min-height:32px}dialog{margin:20px;padding:25px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#map-theme{font-size:12px;border-left:1px solid #263746}.floor-nav{max-height:100%;padding-bottom:18px}#floors{overflow-y:auto;min-height:0}#floors button{min-height:44px;height:44px;flex-shrink:0}@media(max-width:700px){.floor-nav{bottom:45px}#floors button{min-height:40px;height:40px}.map-controls{white-space:nowrap}.map-controls button{padding:10px 12px}#map-theme{font-size:11px}}

/* Treat the icon, input and shortcut as one focused search control. */
.input-wrap:focus-within{border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan);outline:none}
.input-wrap input:focus,.input-wrap input:focus-visible{outline:none}

/* Handoff usability pass: navigation, recovery, and optional kiosk controls. */
.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}
#home-top{background:transparent;font-size:13px}
.header-right{gap:16px}
#home{font-size:14px;min-height:44px}
#loading{width:min(390px,90%);left:50%;transform:translate(-50%,-50%);padding:20px;border:1px solid #304858;border-radius:12px;background:#0c1722f5;z-index:3;line-height:1.7}
#loading p{margin:0}#retry-load{margin-top:14px}
/* Modifier-assisted mouse gestures must not outline the entire map. */
canvas:focus,canvas:focus-visible{outline:none}
.pan-controls{position:absolute;left:10px;bottom:65px;z-index:2}
#pan-toggle{font-size:12px;background:#0b151fe8}
#pan-buttons{position:absolute;bottom:54px;left:0;width:156px;padding:6px;background:#0c1722;border:1px solid #304858;border-radius:9px;display:grid;grid-template-columns:1fr 1fr;gap:4px}
#pan-buttons button{font-size:13px;min-height:44px;padding:8px}
#selected-label{position:absolute;top:60px;left:50%;transform:translateX(-50%);border:1px solid #557f99;border-radius:20px;padding:7px 15px;background:#0d2234;color:#c2eaff;font-size:14px;white-space:nowrap;pointer-events:none}
.demo-settings{border-top:1px solid #304858;margin:20px 0;padding-top:16px}
.demo-settings label{display:flex;align-items:center;gap:12px;font-size:15px;min-height:44px;cursor:pointer}
.demo-settings input{width:20px;height:20px;accent-color:#91d5fa}
.demo-settings p{font-size:13px!important}.demo-settings button{margin:0 0 10px}
.idle-actions{display:flex;gap:12px;flex-wrap:wrap}
#idle-countdown{color:#d6efff;font-variant-numeric:tabular-nums}
dialog{max-height:90dvh;overflow:auto}.room-card{max-height:calc(100% - 95px);overflow-y:auto}
.noscript-note{position:fixed;inset:40% 15% auto;background:#142433;padding:30px;z-index:10}
@media(max-width:1100px){.pan-controls{bottom:119px}.map-controls{max-width:100%}}
@media(max-width:700px){
  .header-right{gap:5px}#home-top,#fullscreen{font-size:11px;padding:8px;min-height:44px}
  #brand small{display:none}#brand{font-size:11px;letter-spacing:.06em}
  #home{font-size:12px;min-height:44px}.pan-controls{bottom:99px;left:5px}
  #selected-label{top:122px;font-size:12px}.map-controls{bottom:47px}
  #pan-toggle{font-size:11px;padding:8px}.room-card{max-height:45%;bottom:150px}
  .room-card .close{min-height:44px;width:44px;right:0;top:0}
  .room-card h2{padding-right:25px}
}
@media(max-height:640px) and (min-width:701px){
  .intro{padding-top:16px}.intro .eyebrow{margin-bottom:10px}h1{font-size:36px;margin-bottom:12px}
  .intro-copy{display:none}.searchbox{margin-top:16px}.reference{display:none}
  .room-card{top:24px;max-height:calc(100% - 45px)}
}

/* Functional copy and expandable exterior reference. */
button.reference{width:100%;text-align:left;justify-content:flex-start;border:0;border-top:1px solid #1c2934;border-radius:0;padding:20px 0 0;background:transparent}
.reference span{font-size:13px;color:#c0ccd8}.reference small{font-size:12px;color:#91a5b6}
button.reference:hover img{opacity:1}body.floor-view .reference{opacity:1}
#exterior-dialog{width:min(1100px,92vw);max-width:none;padding:24px}
#exterior-dialog h2{font-size:20px;margin:0 40px 20px 0}
#exterior-dialog img{display:block;width:100%;max-height:72dvh;object-fit:contain;border-radius:5px}
#exterior-dialog p{font-size:12px;margin-bottom:0}
#exterior-dialog .close{min-height:44px;width:44px;top:10px;right:10px}
@media(max-width:700px){
  .reference{display:flex!important;margin:10px 0 0!important;padding:0!important;border:0!important;width:auto!important;min-height:44px}
  .reference img{width:40px;height:32px}.reference span{font-size:11px}.reference small{display:none}
  body.floor-view .reference{display:none!important}
  #exterior-dialog{margin:auto;padding:18px}
}
/* Keep instructions readable over both white and dark map artwork. */
body.floor-view .scene-caption{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:95%;bottom:14px;padding:8px 12px;border:1px solid #263746;border-radius:8px;background:#0b151ff2;color:#b9cbd9;line-height:1.5}
body.floor-view .scene-caption #scene-status{margin-top:3px;color:#b3dfff}
#scene-status:empty{display:none}
.map-controls{bottom:86px}.pan-controls{bottom:86px}
@media(max-width:1100px){.pan-controls{bottom:140px}}
@media(max-width:700px){.map-controls{bottom:82px}.pan-controls{bottom:136px}body.floor-view .scene-caption{font-size:10px}.room-card{bottom:195px}}

/* Bounded map navigation and a compact, collapsible floor overview. */
#home{padding:10px 14px;min-height:44px;border:1px solid var(--line);border-radius:7px;background:transparent;text-align:center}
#home:hover{background:#142433;border-color:#5b839d}
#home:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
#minimap{position:absolute;left:14px;top:64px;width:154px;z-index:2;border:1px solid #365266;border-radius:9px;background:#0c1722f5;box-shadow:0 5px 25px #0005;overflow:hidden}


#minimap-map{display:block;width:calc(100% - 16px);height:154px;margin:0 8px;cursor:crosshair;touch-action:manipulation}

@media(max-width:1100px){#minimap{width:122px}#minimap-map{height:120px}}
@media(max-width:700px){#minimap{top:164px;left:5px;width:105px}#minimap-map{height:104px}}
@media(max-height:640px) and (min-width:701px){#minimap{width:110px;top:58px}#minimap-map{height:96px}}
#floor-name{font-size:18px;color:#a9c5da;margin:0 0 18px}
#minimap-map:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
@media(max-width:700px){#floor-name{font-size:13px;margin:0 0 5px}}
/* Canvas intrinsic dimensions must not enlarge the grid beyond the screen. */
main{grid-template-rows:minmax(0,1fr)}
.intro,.scene{min-height:0}
.reference{flex-shrink:0}
/* Keep one clear level heading; remove repeated labels and counts. */
footer{justify-content:flex-end}
/* Free the bottom of the canvas for the plan; directions are optional. */
.map-controls,.pan-controls{bottom:20px}
#scene-status.status-notice{position:absolute;bottom:78px;left:50%;transform:translateX(-50%);max-width:90%;padding:12px 16px;border:1px solid #365266;border-radius:8px;background:#0c1722;color:#d8e7f3;font-size:14px;text-align:center;z-index:3}
@media(max-width:1100px){.pan-controls{bottom:76px}}

/* Escape navigation is visually quiet; Tab restores normal focus rings. */
.escape-focus:focus-visible{outline:none!important;box-shadow:none!important}

/* Responsive directory: search in the header, room details outside the canvas. */
header{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,400px) minmax(0,1fr);gap:24px;z-index:10}
.header-right{justify-self:end;gap:10px;white-space:nowrap}
header .searchbox{position:relative;inset:auto;width:100%;margin:0;min-width:0}
header .searchbox label{display:block}
header #results:not(:empty){top:calc(100% + 8px);left:0;right:auto;width:100%;max-height:min(380px,55dvh);overscroll-behavior:contain}
main{grid-template-columns:270px minmax(0,1fr) 64px;gap:20px}
.intro{padding-top:28px;padding-bottom:20px;gap:0}
.intro>*{flex-shrink:0}
.intro h1{font-size:48px}
.room-card{position:relative;inset:auto;width:100%;max-height:100%;min-height:0;flex-shrink:1;margin:24px 0 0;padding:22px;overflow-y:auto;overscroll-behavior:contain;box-shadow:none;backdrop-filter:none;z-index:auto}
.room-card .eyebrow{padding-right:24px;font-size:10px;line-height:1.6}
.room-card h3{margin-bottom:16px}
.room-card .close{width:44px;min-height:44px;right:2px;top:2px}
.room-selected .reference{display:none!important}
.room-selected .intro h1{font-size:40px}
#minimap{top:16px}
#selected-label{top:18px}
@media(max-width:1200px){
 header{grid-template-columns:minmax(0,1fr) minmax(240px,340px) minmax(0,1fr);gap:18px;padding:0 24px}
 #brand{font-size:14px;gap:10px}#brand small{font-size:10px}#brand img{width:44px;height:44px}
 main{grid-template-columns:230px minmax(0,1fr) 54px;padding:0 24px;gap:14px}
 .intro h1{font-size:42px}.room-card{padding:18px}.room-card h2{font-size:26px}
}
@media(min-width:701px) and (max-width:950px){
 header{grid-template-columns:minmax(0,1fr) minmax(220px,300px) auto;gap:14px;padding:0 18px}
 #brand{font-size:12px}#brand small{display:none}#brand img{width:38px;height:38px}
 .header-right{gap:6px}#home-top,#fullscreen{font-size:12px;padding:8px}
 main{grid-template-columns:190px minmax(0,1fr) 46px;padding:0 18px;gap:10px}
 .intro h1,.room-selected .intro h1{font-size:34px}#floor-name{font-size:16px}
 .room-card{padding:16px}.room-card h2{font-size:24px}.room-card .eyebrow{font-size:9px}
}
@media(max-width:700px){
 body{height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) 32px}
 header{height:auto;min-height:120px;padding:10px 14px;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px}
 #brand{font-size:12px;gap:9px}#brand img{width:36px;height:36px}#brand small{display:none}
 .header-right{grid-column:2;grid-row:1;gap:5px}#home-top,#fullscreen{font-size:11px;padding:7px}
 header .searchbox{grid-column:1 / -1;grid-row:2;justify-self:center;max-width:460px}
 header .input-wrap{height:44px}header input{font-size:16px}
 main{height:auto;min-height:0;padding:0 10px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;gap:0}
 .intro{position:relative;inset:auto;width:100%;padding:10px 4px 6px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;pointer-events:auto;grid-column:1;grid-row:1;min-height:0}
 .intro h1,body.floor-view .intro h1,.room-selected .intro h1{font-size:26px;margin:0;grid-column:1;grid-row:1}
 #floor-name{font-size:13px;margin:2px 0 0;grid-column:1;grid-row:2}
 #home{grid-column:2;grid-row:1 / 3;margin:0;padding:8px 12px;min-height:44px;font-size:12px}
 #explore{grid-column:1;grid-row:1;justify-self:start;min-height:44px;font-size:12px}
 .intro .reference{grid-column:2;grid-row:1;margin:0!important;padding:0!important;justify-self:end}
 .reference img{width:36px;height:30px}.reference span{font-size:11px}
 .floor-nav{position:relative;inset:auto;grid-column:1;grid-row:2;padding:4px 0 8px;max-height:none;min-width:0;display:flex;flex-direction:row;gap:6px;overflow:hidden}
 .floor-nav>span{display:none}#floors{flex:1;min-width:0;flex-direction:row;gap:2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
 #floors button{width:44px;height:44px;min-height:44px;flex-shrink:0}
 #stack{width:44px;min-height:44px;flex-shrink:0;font-size:21px}#stack small{font-size:8px;line-height:10px}
 .scene{grid-column:1;grid-row:3;min-height:0;height:auto;margin:0;padding:0}
 .room-card{position:relative;inset:auto;grid-column:1;grid-row:4;width:100%;max-height:min(30dvh,220px);margin:8px 0;padding:14px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;border-radius:10px}
 .room-card .eyebrow{grid-column:1 / -1;margin:0 30px 0 0;padding:0;font-size:9px}
 .room-card h2{grid-column:1;grid-row:2;font-size:24px;margin:0;padding:0}
 .room-card h3{grid-column:1;grid-row:3;font-size:14px;margin:0}
 .room-card #room-fit{grid-column:2;grid-row:2 / 4;width:auto;margin:0;min-height:44px;padding:8px 14px}
 .room-card .close{position:absolute;right:0;top:0;width:44px;min-height:44px}
 #minimap{top:10px;left:8px;width:105px}#minimap-map{height:104px}
 #selected-label{top:12px;left:auto;right:8px;transform:none;font-size:12px;padding:7px 10px}
 .map-controls{bottom:10px;max-width:calc(100% - 8px);white-space:nowrap}
 .map-controls button{min-height:44px;padding:8px 12px}#fit,#map-theme{font-size:12px}
 .pan-controls{bottom:66px;left:8px}
 footer{height:32px;padding:0 14px}footer button{min-height:30px}
}
/* Keep search centered even when the brand and actions have different widths. */
@media(min-width:701px) and (max-width:950px){header{grid-template-columns:minmax(0,1fr) minmax(220px,300px) minmax(0,1fr)}}
.map-controls{width:max-content;white-space:nowrap}
@media(min-width:701px) and (max-height:520px){
 body.floor-view .intro{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr);align-content:start;align-items:start;padding:10px 0;gap:4px}
 body.floor-view .intro h1{grid-column:1;grid-row:1;font-size:23px;margin:8px 0 0}
 body.floor-view #floor-name{grid-column:1 / -1;grid-row:2;font-size:13px;margin:0}
 body.floor-view #home{grid-column:2;grid-row:1;font-size:11px;padding:6px;margin:0}
 body.floor-view .room-card{grid-column:1 / -1;grid-row:3;margin:8px 0 0;max-height:calc(100% - 8px);padding:14px;width:100%}
 body.floor-view .room-card .eyebrow{margin-bottom:8px}
 body.floor-view .reference{display:none!important}
}
/* Published room content is optional; omit each empty field independently. */
#room-content{margin:14px 0;min-width:0;grid-column:1 / -1;grid-row:4}
#room-photos{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
#room-photos figure{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start}
#room-photos img{display:block;width:100%;max-height:190px;object-fit:contain;border-radius:6px;background:#08111a}
#room-photos figcaption{font-size:12px;color:#9fb9cc;margin-top:8px;line-height:1.5}
#room-description{font-size:14px;line-height:1.6;color:#bdcedc;white-space:pre-line;overflow-wrap:anywhere;margin:14px 0}
#room-capacity{display:flex;justify-content:space-between;gap:16px;font-size:13px;padding:12px 0;border-top:1px solid #263a49}
#room-capacity strong{font-weight:500}
@media(max-width:700px){.room-card:has(#room-content:not([hidden])){max-height:min(36dvh,300px)}#room-content{margin:8px 0 0}#room-photos img{max-height:170px}}

/* Always-open overview: artwork and viewport highlight only. */
#minimap-content{padding:10px 0}
/* Bring the institution name closer to the heading's visual weight. */
#brand small{font-size:17px;font-weight:500;line-height:1.3;color:#c4d1df;letter-spacing:.01em}
@media(min-width:951px) and (max-width:1200px){#brand small{font-size:15px}}

/* Directory and sharing occupy dialogs, never the selected map area. */
footer{justify-content:space-between}.room-actions{display:flex;gap:8px;grid-column:1/-1;grid-row:5;margin-top:12px}.room-actions button{flex:1;font-size:13px}#room-links{display:grid;gap:8px;margin:12px 0}#room-links a{color:#b1dffa;padding:10px;border:1px solid #345166;border-radius:6px;overflow-wrap:anywhere}
#directory-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;padding:26px;max-height:85dvh}#directory-dialog h2,#share-dialog h2{margin:0 35px 22px 0;font-size:24px}.directory-filters{display:grid;grid-template-columns:minmax(0,1.5fr) 1fr 1fr;gap:12px}.directory-filters label,#share-dialog label{font-size:12px;color:#a9bfd0}.directory-filters input,.directory-filters select,#share-url{display:block;width:100%;margin-top:7px;min-height:44px;font:inherit;font-size:14px;background:#071019;color:#edf6ff;padding:10px;border:1px solid #345166;border-radius:6px;box-sizing:border-box}.directory-filters input:focus-visible,.directory-filters select:focus-visible,#share-url:focus-visible{outline:2px solid #91d5fa;outline-offset:2px}#directory-count{font-size:12px!important;margin:12px 0}#directory-results{max-height:55dvh;overflow:auto;display:grid;gap:6px;overscroll-behavior:contain}#directory-results button{text-align:left;display:flex;flex-direction:column;gap:5px}#directory-results button span{font-size:13px;color:#a9bfd0}#share-dialog{width:min(460px,calc(100vw - 32px));max-height:90dvh;overflow:auto}#share-qr svg{width:240px;max-width:100%;display:block;margin:0 auto 20px}#share-note,#share-feedback{font-size:13px!important;line-height:1.5!important}#share-copy{width:100%}
@media(max-width:700px){#directory-dialog,#share-dialog{margin:auto;padding:20px}.directory-filters{grid-template-columns:1fr 1fr}.directory-filters label:first-child{grid-column:1/-1}.room-actions{margin-top:6px;grid-column:1/-1;grid-row:5}.room-actions button{min-height:40px}}
/* Short phones scroll the page instead of squeezing the map behind its controls. */
@media(max-width:700px) and (max-height:700px){
 body{height:auto;min-height:100dvh;overflow-y:auto;grid-template-rows:auto auto 32px}
 main{grid-template-rows:auto auto 300px auto}
}

/* Floor context replaces the exterior photograph in floor and room views. */
#level-preview{display:flex;align-items:center;justify-content:flex-start;width:100%;margin-top:auto;padding:16px 0 0;border:0;border-radius:0;background:transparent;min-height:0;flex-shrink:0}
#level-preview-image{display:block;width:164px;height:180px}
#level-preview-image [data-level]{cursor:pointer;outline:none}
#level-preview-image [data-level] polygon{transition:fill .13s,stroke .13s}
#level-preview-image [data-level][data-selected="false"]:hover polygon,#level-preview-image [data-level][data-selected="false"]:focus-visible polygon{fill:#51778d;stroke:#a3c8df}
#level-preview-image [data-level]:focus-visible polygon{stroke:#e6f6ff;stroke-width:4}
#level-preview-image>line,#level-preview-image>rect,#level-preview-image>text{pointer-events:none}
body.floor-view #view-exterior{display:none!important}
@media(min-width:701px) and (max-height:640px){
 #level-preview{padding-top:6px}#level-preview-image{width:112px;height:100px}
}
@media(min-width:701px) and (max-height:520px){
 body.floor-view .intro{grid-template-rows:auto auto minmax(0,1fr) 64px}
 #level-preview{grid-column:1/-1;grid-row:4;padding:0;border:0;height:64px}
 #level-preview-image{width:90px;height:64px}
}
@media(max-width:700px){
 body.floor-view .intro{grid-template-columns:60px minmax(0,1fr) auto;column-gap:8px}
 body.floor-view .intro h1{grid-column:2}body.floor-view #floor-name{grid-column:2}
 body.floor-view #home{grid-column:3}
 #level-preview{grid-column:1;grid-row:1/3;width:60px;height:74px;margin:0;padding:0;border:0}
 #level-preview-image{width:60px;height:74px}
}
@media(min-width:701px) and (min-height:641px){
 .room-selected #level-preview-image{width:140px;height:140px}
 .room-selected .room-card{margin-bottom:12px}
}

/* B–5: overview sits higher in the open left side of the map scene. */
@media(min-width:701px){
 .overview-openarea #minimap{left:44px;right:auto;top:76%;transform:translateY(-50%);width:124px;max-width:calc(100% - 58px);box-shadow:none}
 .overview-openarea #minimap-map{width:calc(100% - 12px);height:auto;aspect-ratio:1;margin:0 6px}
 .overview-openarea #minimap-content{padding:6px 0}
}
@media(min-width:701px) and (max-height:640px){
 .overview-openarea #minimap{width:100px}
}

/* Three independent controls: zoom pair, fit, and theme. */
.map-controls{gap:8px;background:transparent;border:0;box-shadow:none;border-radius:0}
.zoom-group{display:flex;background:#0b151ff2;border:1px solid #263746;border-radius:9px;box-shadow:0 5px 20px #0004;overflow:hidden}
.zoom-group button{min-width:44px;border:0;border-radius:0;background:transparent}
.zoom-group button+button{border-left:1px solid #263746}
.map-controls #fit,.map-controls #map-theme{border:1px solid #263746;border-radius:9px;background:#0b151ff2;box-shadow:0 5px 20px #0004}
.map-controls button:hover{background:#1b3041}
.zoom-group button:focus-visible{outline:2px solid var(--cyan);outline-offset:-4px}

/* Compact room details reserve more of the desktop grid for the map. */
.room-actions{display:block}
.room-card .room-actions #room-fit{display:block;width:100%;margin:0}
.room-card h2,.room-card h3{overflow-wrap:anywhere}
@media(min-width:1201px){
 body.floor-view{--sidebar-space-gain:50px}
 body.floor-view main{grid-template-columns:220px minmax(0,1fr) 64px}
 body.floor-view .room-card{padding:18px}
}
@media(min-width:951px) and (max-width:1200px){
 body.floor-view{--sidebar-space-gain:30px}
 body.floor-view main{grid-template-columns:200px minmax(0,1fr) 54px}
 body.floor-view .room-card{padding:16px}
}
@media(min-width:701px) and (max-width:950px){
 body.floor-view{--sidebar-space-gain:10px}
 body.floor-view main{grid-template-columns:180px minmax(0,1fr) 46px}
}
@media(min-width:701px){
 .overview-openarea #minimap{left:calc(44px + var(--sidebar-space-gain,0px))}
}

/* Client-approved quiet controls: no focus halos or footer hover blocks. */
*:focus,*:focus-visible{outline:none!important;box-shadow:none!important}
.input-wrap:focus-within{border-color:#253341;box-shadow:none}
#floors button.active{box-shadow:none}
footer button:hover,footer button:active,footer button:focus{background:transparent;box-shadow:none}
footer button:hover{color:#c4d9e8}
#view-exterior{border-top:0}
.zoom-group button{box-sizing:border-box;flex:0 0 48px;width:48px;min-width:48px;height:46px;min-height:46px;padding:0;display:grid;place-items:center;line-height:1}
.zoom-group button+button{border-left:0;box-shadow:inset 1px 0 #263746}
.header-right #home-top,.header-right #fullscreen{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;flex:0 0 44px}
.header-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.building-controls{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:3}
.building-controls button{background:#0b151ff2;border:1px solid #263746;border-radius:9px;min-height:44px;padding:10px 16px;white-space:nowrap}
.building-controls #rotate-left,.building-controls #rotate-right{width:44px;padding:0;font-size:23px}
.building-controls #reset-building{font-size:12px}
.building-controls button:hover{background:#1b3041}
@media(max-width:700px){.building-controls{bottom:12px;gap:6px}.building-controls button{padding:8px 12px}}

.building-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}#rotate-right svg{transform:scaleX(-1)}

/* Space name preview; never intercept map gestures or clicks. */
#room-tooltip{position:fixed;z-index:100;pointer-events:none;background:#000;color:#fff;border:1px solid #ffffff24;border-radius:6px;padding:8px 11px;font:500 13px/1.35 "DM Sans",sans-serif;max-width:min(240px,calc(100vw - 16px));overflow-wrap:anywhere;box-shadow:0 3px 12px #0005}
#room-tooltip[hidden]{display:none}

@media(min-width:701px){#selected-label{display:none}}

/* Keep the floor heading and optional floor name a compact pair. */
@media(min-width:701px){
 body.floor-view .intro h1{font-size:36px;margin-bottom:8px;line-height:1.12}
 body.floor-view #floor-name{margin:0 0 14px}
}

/* Mobile levels stay on the right, beside the map. */
@media(max-width:700px){
 main{grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:auto minmax(300px,1fr) auto;column-gap:4px;padding:0 6px}
 .intro{grid-column:1 / -1;grid-row:1}
 .scene{grid-column:1;grid-row:2}
 .floor-nav{grid-column:2;grid-row:2;flex-direction:column;align-items:center;padding:4px 0;gap:6px;min-height:0;max-height:100%;overflow:hidden}
 #floors{flex:1;min-height:0;width:44px;flex-direction:column;gap:1px;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none}
 #floors button{width:44px;height:36px;min-height:36px}
 #stack{min-height:44px;height:44px;margin:0}
 .room-card{grid-column:1 / -1;grid-row:3}
 .map-controls{gap:5px}.map-controls button{padding:8px 9px}
}
@media(max-width:700px) and (max-height:700px){main{grid-template-rows:auto 360px auto}}

/* Prevent iPhone focus zoom and keep map gestures independent of page scale. */
@media(max-width:700px){
 html,body{touch-action:pan-x pan-y}
 input,select,textarea,.directory-filters input,.directory-filters select,#share-url{font-size:16px}
 #scene{touch-action:none}
 dialog{max-width:calc(100vw - 24px)}
}

@media(max-width:700px){body.floor-view .intro h1{align-self:end}body.floor-view #floor-name{align-self:start}}

.header-right #map-theme{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;flex:0 0 44px;background:transparent;border:1px solid var(--line)}
#map-theme[data-theme="light"] .theme-sun,#map-theme[data-theme="dark"] .theme-moon{display:none}
@media(max-width:380px){header{padding-left:10px;padding-right:10px;column-gap:8px}#brand{font-size:10.5px;gap:7px}#brand img{width:30px;height:30px}}

@media(max-width:700px){.floor-nav{padding-bottom:10px}#stack{height:48px;min-height:48px;border-radius:9px;border-color:#263746;background:#0b151ff2}}

#explore{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:116px;min-width:116px;min-height:40px;padding:8px 12px;font-size:13px;line-height:20px}
#explore span{margin:0;font-size:16px;line-height:20px}
.map-controls #fit{min-width:48px}
@media(max-width:700px){#explore{min-height:44px}}

/* Image-only exterior reference on both building views. */
#view-exterior{width:fit-content;max-width:100%;padding:0;min-height:0}
#view-exterior img{display:block;width:180px;height:142px;max-width:100%;border-radius:7px;opacity:1}
@media(max-width:700px){#view-exterior img{width:72px;height:57px}}

.fit-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.map-controls #fit{width:48px;min-width:48px;padding:10px;display:grid;place-items:center}
.room-card .room-actions #room-fit{display:grid;place-items:center}
