.map-search-header[hidden],.map-search-panel[hidden],.map-route-context[hidden],.map-browse-toolbar[hidden]{display:none!important}
.map-selected[hidden]{display:none!important}
.map-sheet-toggle[hidden]{display:none!important}
.map-search-field{position:relative}
.map-search-field>.lucide{display:none}
.mall-map-page .map-main{width:100%;max-width:none;padding:0 0 45px}
.mall-map-page .map-main>.map-layout{width:min(1324px,calc(100% - 120px));margin:8px auto 0}
.map-page-actions{width:min(1324px,calc(100% - 120px));margin:12px auto 0;display:flex;align-items:center;justify-content:flex-end}
.map-page-actions>a{min-height:44px;max-width:100%}
@media(max-width:800px){.mall-map-page .map-main>.map-layout,.map-page-actions{width:calc(100% - 96px)}}
.map-navigation{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.map-navigation .map-topbar{flex:1;min-width:0;padding:0;border:0}
.map-navigation .floor-browser{border-bottom:0;gap:8px}
.map-navigation .floor-browser>button{display:inline-flex;align-items:center;justify-content:center;width:46px;min-width:46px;height:46px;min-height:46px;padding:0;border-radius:50%;line-height:1.2}
.map-navigation .map-view-controls{flex:none;align-self:flex-start;margin:0 0 0 auto;min-height:46px}
.map-navigation .map-view-controls>button{min-height:44px;line-height:1.2}
.map-navigation .map-view-controls .lucide{display:block;flex:none}
.map-navigation .map-floor-select{height:46px;min-height:46px;line-height:1.3}
/* Align actions with fields, rather than the combined label-and-field height. */
.map-main .map-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:stretch}
.map-main .map-filter-row>button{justify-content:center;min-height:44px;padding:8px 6px;line-height:1.3}
.map-main .map-search-scope{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.map-main .map-search-scope>label{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:6px;margin:0;text-align:left}
.map-main .map-search-scope select{width:100%;min-height:44px;line-height:1.3}
.map-main .map-search-scope>.map-clear-filters{display:inline-flex;align-items:center;justify-content:center;align-self:end;min-height:44px;padding:8px 10px;line-height:1.3;white-space:nowrap}
.map-route-context{display:none}
.map-browse-toolbar{display:flex;justify-content:flex-end;gap:4px;padding:8px 0;border-bottom:1px solid var(--line)}
.map-browse-toolbar .map-interaction,.map-browse-toolbar .map-recentre{position:static;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:6px;box-shadow:none}
.map-browse-toolbar .map-interaction[hidden]{display:none}
.map-browse-toolbar .map-interaction span,.map-browse-toolbar .map-recentre span{display:none}
.map-browse-toolbar .map-interaction{order:-2}
.map-browse-toolbar .map-recentre{order:-1}
.route-floor-stage .route-stage-toolbar{justify-content:flex-end;gap:4px;padding:8px 0;margin:0;border-bottom:1px solid var(--line)}
.route-stage-toolbar .map-interaction{order:-2}
.route-stage-toolbar .map-recentre{order:-1}
.route-stage-toolbar .map-zoom{gap:4px;margin:0}
.route-playback-footer{justify-content:center;border-top:0;padding:8px 0}
.route-playback-controls button[data-route-playback="pause"]{background:var(--orange);border-color:var(--orange);color:#191919}
.route-playback-status{margin:0}
.route-floor-stage{padding-bottom:0}
.route-floor-stage-header{margin-bottom:6px}
.route-source-links{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px}
.route-source-links .official-map-link{margin:0;font-size:12px}
.map-sheet-toggle [data-map-sheet-icon]{display:flex;flex:none}
.map-sheet-toggle .map-sheet-caption{flex:1;min-width:0;white-space:normal}
.map-sheet-caption>[data-map-sheet-label]{display:block;overflow-wrap:anywhere;white-space:normal;line-height:1.4}
.map-sheet-caption>small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:var(--muted)}
.map-sheet-caption>small[hidden]{display:none}
@media(max-width:1100px){.map-navigation{flex-wrap:wrap}.map-navigation .map-topbar{flex-basis:100%}}
@media(max-width:780px){
  .mall-map-page .map-main{padding:0 0 24px}
  .mall-map-page .map-main>.map-layout{width:100%;margin-top:8px;border-inline:0;border-radius:0}
  .map-page-actions{width:calc(100% - 24px);margin-top:8px}
  .mall-map-page .map-workspace{padding:0;gap:0}
  .mall-map-page .map-workspace{scroll-margin-top:calc(var(--header-offset,56px) + 8px)}
  .map-search-header{display:block;margin:0 12px 8px}
  .map-search-field{display:block!important;margin:0}
  .map-search-field>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .map-search-field>.lucide{position:absolute;left:12px;top:13px;display:block;width:20px;height:20px;color:var(--muted);pointer-events:none}
  .map-search-field>input{width:100%;height:46px;min-width:0;padding:8px 10px 8px 40px;border:1px solid #c8c4bd;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
  .map-search-panel{padding-top:8px}
  .map-search-panel .map-filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 6px}
  .map-search-panel .map-filter-row button{min-height:44px;padding:6px;font-size:12px}
  .map-main[data-map-mode="route"] .map-search-panel .map-browse-results{display:block}
  .map-search-panel .map-browse-results>summary{display:none}
  .map-search-panel .map-search-results{max-height:220px;margin:0}
  .map-navigation{display:flex;flex-wrap:nowrap;margin:0 12px;padding:0 0 8px;gap:8px;min-height:52px}
  .map-navigation .map-topbar{flex:0 1 116px;min-width:64px;flex-basis:116px}
  .map-navigation .map-floor-select{width:100%;font-size:14px;padding:8px}
  .map-navigation .map-view-controls{margin-left:auto;min-width:0}
  .map-navigation .map-view-controls button{padding:6px 9px;font-size:12px;gap:4px}
  .map-navigation .map-view-controls .lucide{width:16px;height:16px}
  .map-main[data-map-selected="true"][data-map-mode="plan"] .map-view-controls{display:none}
  .map-main[data-map-selected="true"][data-map-mode="plan"] .map-navigation .map-topbar{flex:0 0 68px}
  .map-navigation .map-destination{flex:1;min-width:0;display:flex;flex-wrap:nowrap;gap:8px;padding:0;margin:0;border:0}
  .map-destination-details{flex:1;min-width:0}
  .map-directions-here{flex:none;padding:8px 10px;font-size:12px}
  .map-directions-here .lucide{width:18px;height:18px}
  .mall-map-page .map-floor-heading{display:none}
  .map-main[data-route-ready="true"] .map-navigation{display:none}
  .map-route-context{display:flex;align-items:center;gap:8px;padding:0 12px 8px}
  .map-route-context-details{flex:1;min-width:0;display:grid;gap:2px;overflow-wrap:anywhere}
  .map-route-context-details strong{font-size:15px;line-height:1.4}
  .map-route-context-details span{font-size:12px;color:var(--muted)}
  .map-route-context button{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #c8c4bd;border-radius:6px;background:#fff;color:var(--ink);cursor:pointer}
  .map-route-context .lucide{width:20px;height:20px}
  .map-main .official-map.gesture-map,.map-main .route-floor-stage .route-stage-map.gesture-map,.map-main .map-viewport{height:clamp(220px,calc(100dvh - 400px),560px);min-height:220px;max-height:none;border-inline:0}
  /* Reserve room for search, route context and both tool rows. */
  .map-main[data-route-ready="true"] .route-floor-stage .route-stage-map.gesture-map{height:clamp(220px,calc(100dvh - var(--header-offset,56px) - 424px - env(safe-area-inset-bottom)),560px)}
  .map-browse-toolbar,.route-floor-stage .route-stage-toolbar{padding:8px 12px}
  .map-main[data-map-mode="route"] .multi-floor-route{padding:0}
  .route-playback-toolbar{margin:0 12px 4px;min-height:20px}
  .route-playback-status{font-size:12px;line-height:1.4}
  .route-playback-progress{margin:0 12px 4px;width:calc(100% - 24px)}
  .route-floor-stage-header{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .route-playback-footer{padding:8px 12px;border-bottom:1px solid var(--line)}
  .route-playback-controls{width:100%;grid-template-columns:repeat(3,44px) minmax(80px,1fr);gap:8px}
  .map-main[data-map-mode="route"] .map-workspace>.map-sidebar{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0}
  .map-main[data-map-mode="route"] .map-sheet-toggle{background:#fff;color:var(--ink);min-height:56px;padding:8px 12px}
  .map-sheet-toggle{padding:8px 12px;min-height:52px}
  .map-sheet-toggle [data-map-sheet-icon]{flex:0 0 20px}
  .map-sheet-toggle .map-sheet-caption{overflow:visible}
  .map-main[data-map-mode="route"] .route-overview{margin:0;padding:0 0 12px}
  .map-main[data-map-mode="route"] .map-sheet-content{padding:12px}
  .map-main[data-map-mode="plan"] .map-sheet-content{padding:12px;border-top:0}
  .map-main[data-map-mode="plan"][data-map-selected="false"] .map-sidebar{display:none}
  .map-main .official-map-link{margin:6px 12px 8px;font-size:11px}
  .route-source-links .official-map-link{margin:0}
  .map-disclaimer,.map-legend{margin-inline:12px}
}
@media(min-width:361px) and (max-width:780px){
  .map-search-panel .map-filter-row{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:640px){
  /* Reclaim the former 70px quick-action bar in the mobile route viewport. */
  .map-main[data-route-ready="true"] .route-floor-stage .route-stage-map.gesture-map{height:clamp(220px,calc(100dvh - var(--header-offset,56px) - 354px - env(safe-area-inset-bottom)),560px)}
}
@media(max-width:360px){
  .map-navigation .map-view-controls button{padding:6px;font-size:11px}
  .map-navigation .map-view-controls .lucide{display:none}
  .map-main[data-map-selected="true"] .map-directions-here{width:44px;height:44px;padding:0;font-size:0;gap:0}
  .route-playback-controls{gap:4px}
}
/* Highlight only the selected printed symbol, without covering it or intercepting map gestures. */
.facility-plan-marker{position:absolute;box-sizing:border-box;width:24px;height:24px;padding:0;border:2px solid #bf3308;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #fff;pointer-events:none;transform:translate(-50%,-50%);z-index:3}
.gesture-map .facility-plan-marker{transform:translate(-50%,-50%) scale(calc(1 / var(--map-scale,1)))}
.official-map-markers>.tenant-plan-marker{z-index:4}
.map-directions-here[hidden]{display:none!important}
