/* Primary actions: floor, projection and search. Secondary tools live under More. */
body .floor-controls, body.embed-preview .floor-controls { overflow:visible; max-width:none; gap:5px; }
body .floor-controls > span { display:block; order:0; padding:0 3px; font-size:11px; color:#064c52; }
body .floor-controls button, body.embed-preview .floor-controls button { min-width:44px; width:44px; height:44px; padding:0; font-size:12px; }
body .floor-controls button::after, body .floor-controls [data-floor='0']::after, body.embed-preview .floor-controls [data-floor='0']::after { content:none!important; }
body .floor-controls [data-floor='0'], body.embed-preview .floor-controls [data-floor='0'] { order:-1; min-width:84px; width:auto; padding:0 12px; font-size:11px; }
body .view-controls, body.embed-preview > .view-controls { gap:5px; }
body .view-controls button, body .view-controls #mode3d, body .view-controls #plan { width:44px; height:44px; }
.map-more { position:relative; order:6; }
.map-more summary { display:flex; align-items:center; justify-content:center; list-style:none; min-height:44px; min-width:56px; padding:0 10px; border:1px solid #d6e9ea; border-radius:12px; background:white; color:#064c52; font-size:12px; cursor:pointer; box-sizing:border-box; }
.map-more summary::-webkit-details-marker { display:none; }
.map-more summary:focus-visible { outline:3px solid #0b7076; outline-offset:3px; }
.map-more__options { position:absolute; top:50px; right:0; width:210px; padding:6px; border:1px solid #d6e9ea; border-radius:14px; background:#fff; box-shadow:0 8px 28px #0d3c4025; }
body .view-controls .map-more__options button { display:flex; align-items:center; gap:12px; width:100%; height:auto; min-height:44px; padding:10px; border:0; box-shadow:none; text-align:left; }
body .map-more__options button::after { content:attr(aria-label); font-size:12px; line-height:1.4; }
body .map-more__options svg, body .map-more__options img { flex:0 0 20px; width:20px; height:20px; }
body.embed-preview .map-more { display:none; }
body .map-tools button, body.embed-preview .map-tools button { width:44px; height:44px; }
body .searchbox #clear { flex-basis:44px; width:44px; height:44px; display:grid; place-items:center; }
body .searchbox { padding:0 6px 0 12px; min-height:46px; }
body .chips button { min-height:40px; }
.map-search-scope { padding:0 18px 10px; margin:0; flex-shrink:0; font-size:11px; color:#477276; }
.map-search-scope[hidden] { display:none; }
.map-results-toggle { display:none; }
body .place em { border:1px solid #d6e9ea; border-radius:6px; min-width:24px; padding:3px; text-align:center; }
body .floor-walk { left:calc(var(--sidebar) + 16px); bottom:16px; transform:none; min-height:44px; box-sizing:border-box; }
body .tour-floor-controls button { min-width:44px; min-height:44px; padding:8px; }
.tour-floor-controls > span { padding:0 8px; color:#064c52; font-size:12px; }
body .wayfinding-marker:not(.wf-zone) { width:32px; height:32px; display:grid; place-items:center; }
body .wayfinding-marker:not(.wf-zone) svg { width:21px; height:21px; }
body .wf-zone { width:150px; }
body .wf-zone span { width:150px; max-width:none; font-size:11px; line-height:1.35; overflow-wrap:normal; word-break:normal; }
@media(max-width:1100px) {
 body .floor-controls, body.embed-preview .floor-controls { top:10px; left:10px; right:10px; }
 body .view-controls, body.embed-preview > .view-controls { top:62px; right:10px; }
}
@media(max-width:850px) {
 body { --map-panel-height:clamp(250px,38dvh,390px); }
 body.map-results-collapsed { --map-panel-height:110px; }
 body aside { height:var(--map-panel-height); }
 body #viewport, body #labels, body #exterior-labels { inset:0 0 var(--map-panel-height); }
 body .map-results-toggle { display:block; width:100%; min-height:44px; flex-shrink:0; padding:10px 16px; background:#effafb; color:#064c52; font-family:inherit; font-size:12px; text-align:left; border-bottom:1px solid #d6e9ea; }
 body .map-results-toggle::after { content:'−'; float:right; font-size:18px; line-height:16px; }
 body.map-results-collapsed .map-results-toggle::after { content:'+'; }
 body .searchbox { margin:8px 12px 0; min-height:46px; flex-shrink:0; }
 body .chips { padding:6px 12px; }
 body .chips button { min-height:44px; }
 body .map-search-scope { padding:0 12px 6px; }
 body.map-results-collapsed aside :is(.chips,#list,#detail,.source,.map-search-scope,.results-head) { display:none!important; }
 body .map-tools { top:auto; bottom:calc(var(--map-panel-height) + 10px); right:10px; left:auto; }
 body .floor-walk { left:10px; bottom:calc(var(--map-panel-height) + 70px); padding:10px 14px; font-size:12px; }
 body #exterior-detail { bottom:calc(var(--map-panel-height) + 68px); }
 body.embed-preview #viewport, body.embed-preview #labels, body.embed-preview #exterior-labels { inset:0; }
 body.embed-preview .map-tools { top:auto; bottom:12px; left:auto; right:10px; }
 body.embed-preview #exterior-detail { bottom:70px; }
 body.is-panorama #viewport { inset:0; }
 body.is-panorama .map-tools { top:auto; bottom:12px; }
 body .wayfinding-marker:not(.wf-zone) { width:44px; height:44px; background:#ffffffd9; }
 body .wayfinding-marker:not(.wf-zone) svg { width:22px; height:22px; }
 body .wayfinding-marker span { top:44px; }
 body .wf-zone span { width:150px; font-size:10px; }
}
@media(max-width:600px) {
 body .floor-controls, body.embed-preview .floor-controls { gap:3px; }
 body .floor-controls > span { display:none; }
 body .floor-controls button, body.embed-preview .floor-controls button { min-width:40px; width:40px; height:44px; }
 body .floor-controls [data-floor='0'], body.embed-preview .floor-controls [data-floor='0'] { min-width:76px; width:76px; padding:0 6px; }
}
body.is-panorama .view-controls { top:12px; }
body.map-ui-ready[data-level] .place em { display:block; }
@media(max-width:850px) {
 body #list { display:flex; flex-direction:column; overflow-y:auto; overflow-x:hidden; gap:0; padding:0 12px 10px; }
 body .place { flex:0 0 auto; min-width:0; width:100%; min-height:56px; height:auto; margin:0; border:0; border-bottom:1px solid #daeaec; border-radius:0; }
 body.has-selection .map-search-scope { display:none; }
 body #detail .close { width:44px; height:44px; }
 body[data-level='0'][data-map-browse='all'] .floor-place:not(.selected),
 body[data-level='0'][data-map-browse='all'] .map-pin-stem:not(.selected) { display:none!important; }
}
body.embed-preview.has-inline-query #labels { display:block!important; }
body.embed-preview.has-inline-query .floor-place { display:block!important; }
body[data-map-browse='service'] .floor-place, body[data-map-browse='service'] .map-pin-stem { display:none!important; }
body.embed-preview.has-inline-query[data-map-browse='service'] .floor-place { display:none!important; }

body .map-topic-floor {
 position:absolute; z-index:5; left:12px; bottom:68px; max-width:calc(100% - 84px);
 padding:7px 12px; border:1px solid #bfdbde; border-radius:8px; background:#fff; color:#064c52;
 font:600 13px/1.4 Manrope,sans-serif; pointer-events:none;
}
body .map-topic-floor[hidden] { display:none; }
body .floor-controls button:disabled { opacity:.4; cursor:default; }
body .topic-marker { color:#07656d; background:#fff; }
body .topic-marker.wf-medical span, body .topic-marker.wf-checkin span { display:block; }
body .place em { white-space:nowrap; }
@media (max-width:850px) {
 body:not(.embed-preview) .map-topic-floor { bottom:120px; }
}

.map-topic-plan { position:absolute; inset:0; z-index:2; display:grid; place-items:center; background:#eef4f5; container-type:size; }
.map-topic-plan[hidden] { display:none; }
.map-topic-sheet { position:relative; width:min(94cqw, calc((100cqh - 120px) * 1.3333)); aspect-ratio:4/3; }
.map-topic-sheet canvas { display:block; width:100%; height:100%; }
.map-plan-pin { position:absolute; transform:translate(-50%,-50%); width:20px; height:20px; padding:0; border:3px solid white; border-radius:50%; background:#086e77; box-shadow:0 1px 4px #13393d66; }
.map-plan-pin.has-logo { width:26px; height:24px; display:block; background:white; border:1px solid #8eb7ba; border-radius:5px; }
.map-plan-pin.has-logo img { display:block; width:100%; height:100%; object-fit:contain; padding:2px; }
.map-plan-pin.has-logo[aria-pressed=true] { outline:2px solid #086e77; }
.map-plan-pin span { display:none; position:absolute; z-index:1; top:16px; left:50%; transform:translateX(-50%); width:max-content; max-width:140px; padding:3px 6px; border-radius:5px; background:white; color:#064c52; font:600 11px/1.3 Manrope,sans-serif; }
.map-plan-pin:is(:focus-visible,:hover,[aria-pressed=true]), .map-plan-pin:only-child { z-index:1; }
.map-plan-pin:is(:focus-visible,:hover,[aria-pressed=true]) span, .map-plan-pin:only-child span { display:block; }
body:has(.map-topic-plan:not([hidden])) :is(.fallback,.fallback-logo-layer,.view-controls,.map-tools,.floor-walk) { display:none!important; }

body .topic-marker.wf-gate { height:28px; padding:0 4px; border:1px solid #afd0d2; border-radius:7px; background:white; }
body .topic-marker.wf-gate svg { display:none; }
body .topic-marker.wf-gate span { position:static; transform:none; padding:0; box-shadow:none; background:transparent; color:#064c52; font-size:12px; font-weight:700; }
body .topic-marker.wf-gate::before { content:''; position:absolute; bottom:100%; left:50%; height:var(--gate-leader,0); border-left:1px solid #3f6d71; pointer-events:none; }
body .topic-marker.wf-gate.above-anchor::before { top:100%; bottom:auto; }
.map-plan-pin.align-right span { left:auto; right:0; transform:none; }
.map-plan-pin.align-left span { left:0; transform:none; }

.map-frame-view { position:absolute; inset:0; overflow:hidden; background:#e6edee; touch-action:none; cursor:grab; }
.map-frame-view:active { cursor:grabbing; }
.map-frame-view:focus-visible { outline:3px solid #0b7076; outline-offset:-3px; }
.map-frame-view img { position:absolute; max-width:none; max-height:none; user-select:none; pointer-events:none; }
body:has(.map-frame-view) .fallback { display:none!important; }
body.map-frame-loading :is(#labels,#exterior-labels) { visibility:hidden; }

.map-floor-photos[open] { position:fixed; inset:0; margin:auto; width:min(100%,1000px); height:min(100%,750px); max-width:100%; max-height:100%; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; gap:8px; padding:12px; border:0; border-radius:12px; background:#f0f5f6; color:#064c52; }
.map-floor-photos::backdrop { background:#0e3235b8; }
.map-floor-photos h2 { margin:0; font-size:18px; }
.map-photo-header,.map-floor-photos nav { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.map-photo-header { justify-content:space-between; }
.map-floor-photos button { min-height:40px; padding:6px 12px; border:1px solid #c7dcde; border-radius:8px; background:white; color:#064c52; }
.map-floor-photos button[aria-pressed=true] { background:#064c52; color:white; }
.map-floor-photos img { width:100%; height:100%; object-fit:contain; }

.map-frame-retry { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); padding:10px 16px; border:1px solid #c7dcde; border-radius:8px; background:white; color:#064c52; }
