html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

:root {
  --bottom-menu-height: 80px;
  --info-bar-height: 72px;
}

#map_canvas {
  height: 100%;
  z-index: 1;
  cursor: crosshair;
}


.buttons_bar {
  position: absolute;
  bottom: 88px;
  max-height: calc(100vh - 180px);
  width: 76px;
  background-color: rgba(0, 0, 0, 0.95);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 8px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

#info_bar {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.85);
  min-height: var(--info-bar-height);
  width: 100%;
  bottom: var(--bottom-menu-height);
  text-align: center;
  color: white;
  font: bold 13px Arial;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
}

#bottom_menu {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  height: var(--bottom-menu-height);
  width: 100%;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-sizing: border-box;
}

.app-status-message {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 640px);
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: rgba(33, 33, 33, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  text-align: center;
}

.app-status-message.warning { background: rgba(239, 108, 0, 0.96); }
.app-status-message.error { background: rgba(198, 40, 40, 0.96); }

@media (max-width: 768px) {
  :root {
    --bottom-menu-height: 70px;
    --info-bar-height: 64px;
  }
}

@media (max-width: 480px) {
  :root {
    --bottom-menu-height: 60px;
    --info-bar-height: 60px;
  }

  .app-status-message {
    top: 58px;
    font-size: 13px;
  }
}

@keyframes blink {
  50% {
    opacity: 0.0;
  }
}
@-webkit-keyframes blink {
  50% {
    opacity: 0.0;
  }
}
.state-located{
  color: #6666ff; }
.state-loc-disabled{
  opacity: 0.2;
  color: #000000; }
.state-locating{
  animation: blink 1s step-start 0s infinite;
  -webkit-animation: blink 1s step-start 0s infinite;
  color: #000000; }
.state-loc-ready{
  color: #000000; }
