html{--map-mode-height:64px}
#mapModes{height:var(--map-mode-height);display:flex;justify-content:center;align-items:stretch;gap:clamp(10px,5vw,42px);background:#fff;color:#155c3e;box-sizing:border-box}
#mapModes button{display:grid;justify-items:center;align-content:center;gap:3px;min-width:80px;padding:4px;border:0;border-radius:0;background:none;color:inherit;font:500 11px system-ui,sans-serif;cursor:pointer}
#mapModes button[aria-pressed=true] span{font-weight:800;text-decoration:underline;text-underline-offset:3px}
#mapModes svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#map{height:calc(100% - var(--map-mode-height) - 64px - env(safe-area-inset-bottom,0px))}
html.mapV2 #map{height:calc(100% - var(--map-mode-height) - 64px - env(safe-area-inset-bottom,0px))}
html #stato,html.mapV2 #stato{top:calc(var(--map-mode-height) + 12px)!important;max-width:calc(100vw - 24px);overflow:hidden;text-overflow:ellipsis}
#mapGroupPanel,#mapGroupManage{position:absolute;z-index:1300;top:calc(var(--map-mode-height) + 48px);left:50%;transform:translateX(-50%);font:14px system-ui,sans-serif;color:#155c3e}
#mapGroupPanel{width:min(400px,calc(100vw - 30px));box-sizing:border-box;max-height:min(48dvh,380px);overflow:auto;padding:12px;border:1px solid #dce6dd;border-radius:12px;background:#fff;box-shadow:0 4px 16px #0002}
#mapGroupPanel h2{font-size:16px;margin:0}
#mapGroupPanel button,#mapGroupManage,#mapGroupPanel input,#mapGroupPanel select{font:inherit}
#mapGroupPanel button:disabled{opacity:.5;cursor:default}
#mapGroupPanel>div,#mapGroupForm>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px}
#mapGroupPanel>div:first-child{justify-content:space-between}
#mapGroupPanel select,#mapGroupName{width:100%;box-sizing:border-box;margin-bottom:8px;padding:6px}
#mapGroupStatus:empty{display:none}
html #routeV2Panel{top:calc(var(--map-mode-height) + 55px)}

#mapGroupRestaurants>div,#mapGroupSearch>div{display:flex;justify-content:space-between;align-items:center;gap:8px}
#mapGroupSearch input{min-width:0;flex:1;padding:6px}
