/* 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:#07376d; }
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 #dbe7ed; border-radius:12px; background:white; color:#07376d; 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 #087cff; outline-offset:3px; }
.map-more__options { position:absolute; top:50px; right:0; width:210px; padding:6px; border:1px solid #dbe7ed; border-radius:14px; background:#fff; box-shadow:0 8px 28px #12385825; }
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:#526e89; }
.map-search-scope[hidden] { display:none; }
.map-results-toggle { display:none; }
body .place em { border:1px solid #dbe7ed; 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:#07376d; 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:#f4f8fc; color:#07376d; font-family:inherit; font-size:12px; text-align:left; border-bottom:1px solid #dbe7ed; }
 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 #e1e8ef; border-radius:0; }
 body.has-selection .map-search-scope { display:none; }
 body #detail .close { width:44px; height:44px; }
 body[data-map-browse='all'] .floor-place:not(.selected),
 body[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; }
