#map-menu-toggle,#map-menu{display:none}
@media(max-width:767px){
 .map-header{display:grid;grid-template-columns:28px minmax(0,1fr) 44px 44px;align-items:center;gap:4px;left:calc(12px + var(--safe-left));right:calc(12px + var(--safe-right));top:calc(12px + var(--safe-top));width:auto;max-width:none;padding:8px!important;z-index:40}
 .map-header .identity-row{display:contents}
 .map-header .brand{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;min-height:44px}
 .map-header .brand img{width:26px;height:26px}
 .map-header .map-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .map-header .search-box{grid-column:2;grid-row:1;min-width:0}
 .map-header #search{height:40px!important;min-height:40px;min-width:0;font-size:16px;padding-left:30px;padding-right:6px}
 .map-header .search-icon{left:9px;top:12px!important;width:16px;height:16px}
 .map-header #share{grid-column:3;grid-row:1;width:44px;height:44px}
 .map-header #map-menu-toggle{display:grid;grid-column:4;grid-row:1;width:44px;height:44px}
 .map-header .suggestions{position:fixed;top:calc(80px + var(--safe-top));left:calc(12px + var(--safe-left));right:calc(12px + var(--safe-right));max-height:min(350px,calc(var(--visual-height,100dvh) - 100px - var(--safe-top)));font-size:14px}
 .map-header>.layer-controls,.map-experience>.map-tools{display:none!important}
 #map-menu:not([hidden]){display:block;position:absolute;top:calc(100% + 8px);left:0;right:0;padding:12px 16px 16px;max-height:calc(var(--visual-height,100dvh) - 102px - var(--safe-top) - var(--safe-bottom));overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface-overlay);box-shadow:var(--shadow-overlay)}
 .map-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
 .map-menu-heading h2{font-family:var(--font-editorial);font-size:22px;font-weight:500;line-height:1.2}
 #map-menu-close{width:44px;height:44px;margin-right:-8px}
 .map-menu-context{font-size:11px;color:var(--sec);margin-top:0}
 #map-menu .layer-controls{display:flex;position:static;flex-direction:column;align-items:stretch;gap:8px;margin:16px 0;padding:0;min-width:0}
 #map-menu .control-caption{font-size:12px}
 #map-menu .layer-controls select{flex:none;width:100%;min-height:44px;font-size:16px;margin:0}
 #map-menu #candidate-picker{width:100%;margin:0}
 #map-menu .clear-selection{width:100%;min-height:44px;margin:0}
 #map-menu .map-tools{display:flex;position:static;flex-direction:column;align-items:stretch;width:100%;margin:0;padding:8px 0 0;background:none;border:0;border-top:1px solid var(--line);box-shadow:none;border-radius:0;overflow:visible}
 #map-menu .map-tools button{display:flex;justify-content:flex-start;width:100%;min-height:44px;margin:0;padding:0 4px;border:0;border-radius:var(--radius-control);gap:10px;font-size:14px}
 #map-menu .map-tools button span{display:inline}
 #map-menu .map-tools svg{width:18px;height:18px;flex:none}
}

@media(max-width:767px) and (max-height:500px) and (orientation:landscape){
 body:has(#panel:not([hidden])) .map-header{width:auto}
}
