/* Moo-Earth v23: compact, touch-first Google 3D navigation controls.
 * Never hide Google's/Cesium's legally required attribution.
 */
#moo-v23-controls{
  position:fixed;right:82px;bottom:calc(104px + env(safe-area-inset-bottom,0px));
  z-index:18500;display:flex;flex-direction:column;align-items:flex-end;gap:7px;
  font-family:Inter,system-ui,-apple-system,sans-serif;
}
#moo-v23-controls .moo-v23-stack{display:flex;flex-direction:column;gap:7px;align-items:center}
#moo-v23-controls button{
  appearance:none;display:grid;place-items:center;width:44px;height:44px;
  border:1px solid rgba(221,231,245,.85);border-radius:14px;
  background:rgba(255,255,255,.96);color:#193049;
  box-shadow:0 5px 16px rgba(0,17,38,.28);
  font:700 21px/1 system-ui,-apple-system,sans-serif;
  cursor:pointer;touch-action:manipulation;user-select:none;
}
#moo-v23-controls button:hover{background:#e9f3ff}
#moo-v23-controls button:focus-visible{outline:3px solid #2184f5;outline-offset:2px}
#moo-v23-controls button[disabled]{opacity:.5;cursor:default}
#moo-v23-controls button.moo-v23-primary{background:#1769d4;color:white;border-color:#1769d4}
#moo-v23-controls button.moo-v23-primary:hover{background:#0e53b1}
#moo-v23-controls .moo-v23-more{display:none;position:absolute;right:54px;bottom:0;
  width:min(246px,calc(100vw - 88px));padding:10px;
  background:rgba(9,30,50,.96);border:1px solid #63839e;
  border-radius:16px;box-shadow:0 12px 28px rgba(0,0,0,.45);
  color:white;backdrop-filter:blur(12px);
}
#moo-v23-controls.moo-v23-expanded .moo-v23-more{display:block}
#moo-v23-controls .moo-v23-more-title{font:700 12px/1.3 system-ui;margin:1px 3px 8px}
#moo-v23-controls .moo-v23-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;justify-items:center}
#moo-v23-controls .moo-v23-more button{width:100%;height:42px;border-radius:10px;font-size:16px}
#moo-v23-controls .moo-v23-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
#moo-v23-controls .moo-v23-actions button{font-size:12px;line-height:1.15;padding:5px}
#moo-v23-controls .moo-v23-help{margin:8px 3px 0;font:11px/1.35 system-ui;color:#c8d9e8}
#moo-v23-controls [hidden]{display:none!important}
#moo-v23-route-close{display:none}
@media(max-width:760px), (max-height:480px) and (pointer:coarse){
  html,body{overflow:hidden!important}
  #search-shell{
    position:fixed!important;left:10px!important;right:10px!important;
    top:calc(9px + env(safe-area-inset-top,0px))!important;
    width:auto!important;max-width:none!important;z-index:20010!important;
  }
  #search-shell .search-bar{height:52px!important;min-height:52px!important;
    padding:4px 8px 4px 14px!important;border-radius:28px!important;
    box-shadow:0 5px 20px rgba(0,0,0,.27)!important;
  }
  #search-shell .search-bar input{font-size:16px!important;padding:8px 2px!important}
  #search-shell .icon-btn{width:37px!important;height:37px!important;flex:0 0 37px!important}
  #search-shell .chips{display:none!important}
  #search-shell #dropdown{max-height:min(50dvh,360px)!important;overflow:auto!important}
  /* These two large panels caused the screenshot's overlap. Keep them available on demand. */
  #moo-google-toolbar{display:none!important}
  body.moo-google-mode #moo-google-toolbar{display:none!important}
  #moo-3d-nav,body.moo-google-mode #moo-3d-nav,
  body.moo-google-navigating.moo-v22-tools-open #moo-3d-nav{display:none!important}
  body.moo-google-mode.moo-v23-route-open #moo-3d-nav,
  body.moo-google-navigating.moo-v23-route-open #moo-3d-nav{
    display:block!important;position:fixed!important;
    top:calc(72px + env(safe-area-inset-top,0px))!important;
    left:9px!important;right:9px!important;bottom:auto!important;
    width:auto!important;max-width:none!important;
    max-height:min(58dvh,430px)!important;
    overflow-y:auto!important;overscroll-behavior:contain!important;
    padding:13px!important;z-index:20005!important;
    box-shadow:0 14px 32px rgba(0,0,0,.48)!important;
  }
  body.moo-google-navigating.moo-v23-route-open #moo-3d-nav{
    top:calc(126px + env(safe-area-inset-top,0px))!important;
    max-height:45dvh!important;
  }
  #moo-v23-route-close{display:grid;float:right;place-items:center;
    width:36px;height:36px;border:1px solid #93a8b9;border-radius:10px;
    background:#174568;color:#fff;font-size:20px;cursor:pointer}
  #moo-v22-tools-toggle,#moo-v22-mode-label,#moo-oblique-3d,
  #map-controls,.earth-badge{display:none!important}
  #moo-google-attribution{left:8px!important;bottom:calc(30px + env(safe-area-inset-bottom,0px))!important;
    max-width:calc(100vw - 90px)!important;font-size:10px!important}
  #moo-v23-controls{
    right:calc(10px + env(safe-area-inset-right,0px));
    bottom:calc(62px + env(safe-area-inset-bottom,0px));z-index:19000;
  }
  #moo-v23-controls button{width:43px;height:43px;border-radius:14px}
  #moo-v23-controls .moo-v23-more{right:52px}
  #moo-v23-controls .moo-v23-more button{height:41px;width:100%}
  /* Preserve turn instructions, GPS telemetry and the provider's original attribution. */
  body.moo-google-navigating #search-shell{display:none!important}
  body.moo-google-navigating #moo-v23-controls{bottom:calc(95px + env(safe-area-inset-bottom,0px))}
  body.moo-google-navigating #nav-header{z-index:20020!important}
  body.moo-google-navigating #telemetry{z-index:19010!important}
  body.moo-v23-typing #moo-v23-controls{display:none!important}
}
@media(max-width:390px){
  #search-shell{left:8px!important;right:8px!important}
  #search-shell .search-bar{gap:6px!important}
  #moo-v23-controls .moo-v23-more{width:min(228px,calc(100vw - 75px))}
}
@media(prefers-reduced-motion:reduce){#moo-v23-controls *{transition:none!important}}
