/* Sento's document geometry and menu behavior, shared with Traffic Right. */
body.is-map { --map-menu-offset: var(--tb-h, 145px); }
body.is-map .toolbar { position: fixed; left: 0; right: 0; transform: translateY(0); }
.map-view { max-width: none; margin: 0; padding: 0; overflow-anchor: none; }
.map-frame {
  position: relative; z-index: 0; isolation: isolate; overflow: hidden;
  height: calc(100vh - var(--tb-h, 140px));
  height: calc(100svh - var(--tb-h, 140px));
  height: calc(100dvh - var(--tb-h, 140px) + var(--map-bleed, 0px));
  margin-bottom: calc(-1 * var(--map-bleed, 0px));
  min-height: 0; max-height: none;
}
.map-canvas { position: absolute; inset: 0; }
body.is-map .map-frame {
  height: calc(100vh + 2 * var(--map-bleed, 0px));
  height: calc(100dvh + 2 * var(--map-bleed, 0px));
}
body.is-map .map-menu-toggle, body.is-map .map-reset {
  position: fixed; top: calc(12px + var(--safe-area-top));
  transform: translateY(var(--map-menu-offset));
  transition: transform .22s cubic-bezier(.2, 0, 0, 1);
}
.toolbar.menu-animating { overflow: hidden; }
body.is-map.map-menu-hidden .toolbar { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.is-map.map-menu-hidden { --map-menu-offset: 0px; background: transparent; }
.toolbar[hidden], body.is-map .toolbar[hidden] { display: none; }
body.is-map.map-menu-hidden .map-frame { overflow: visible; isolation: auto; }
body.map-menu-hidden .map-menu-toggle svg { transform: rotate(180deg); }
.map-view .leaflet-bottom { bottom: var(--map-bleed, 0px); }
.map-view .leaflet-bottom.leaflet-left .leaflet-control-attribution {
  margin: 0 0 calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  border: 0; border-radius: 0; box-shadow: none;
  font-size: .6875rem; line-height: 1.5; padding: 1px 3px;
  background: transparent; color: var(--ink-2, #3f5a7a);
  text-shadow: 0 1px 2px #fff, 0 0 3px #fff;
}
.map-view .leaflet-container .leaflet-control-attribution a { color: inherit; text-decoration: none; }
.map-view .leaflet-container .leaflet-control-attribution a:hover,
.map-view .leaflet-container .leaflet-control-attribution a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
