.map-fullscreen-button {
  position: absolute;
  right: calc(64px + env(safe-area-inset-right, 0px));
  bottom: calc(var(--map-attribution-height, 22px) + 10px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #506343;
  border-radius: 24px;
  background: #14271df5;
  color: var(--lime);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 3px 10px #0004;
}
.map-fullscreen-button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-fullscreen-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.has-map-fullscreen .map-locate { right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(var(--map-attribution-height, 22px) + 10px); }
.map-wrap.has-map-fullscreen:not(.drawing) .map-hint {
  bottom: calc(var(--map-attribution-height, 22px) + 4px);
  max-width: calc(100% - 224px);
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.3;
  white-space: normal;
}
.has-map-fullscreen .ndvi-legend,
.has-map-fullscreen .wx-panel { bottom: calc(var(--map-attribution-height, 22px) + 64px); }
.has-map-fullscreen.weather .ndvi-legend { bottom: calc(var(--map-attribution-height, 22px) + 140px); }
.has-map-fullscreen.drawing .draw-bar { bottom: calc(var(--map-attribution-height, 22px) + 10px); }
.has-map-fullscreen.drawing .map-hint { bottom: calc(var(--map-attribution-height, 22px) + 74px); }
.has-map-fullscreen.drawing .map-locate,
.has-map-fullscreen.drawing .map-fullscreen-button { bottom: calc(var(--map-attribution-height, 22px) + 136px); }
html.map-fullscreen-open,
body.map-fullscreen-open { overflow: hidden !important; overscroll-behavior: none; }
body.map-fullscreen-open #app { z-index: 40 !important; }
body .map-wrap.is-map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.map-wrap.is-map-fullscreen #map { width: 100%; height: 100% !important; min-height: 0 !important; }
.map-wrap.is-map-fullscreen .leaflet-top { top: env(safe-area-inset-top, 0px); }
.map-wrap.is-map-fullscreen .map-draw { top: calc(10px + env(safe-area-inset-top, 0px)); }
.map-wrap.is-map-fullscreen .map-layers { top: calc(52px + env(safe-area-inset-top, 0px)); }
.map-wrap.is-map-fullscreen .leaflet-control-attribution { padding-bottom: env(safe-area-inset-bottom, 0px); }
