/* Reset básico e mapa em tela cheia */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

#map {
  height: 100vh;
  width: 100vw;
}

/* Cursor personalizado (efeito nuvem) */
#cursorCloud {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 100%;
  width: 60px;
  height: 60px;
  opacity: 1;
  transform: translate(-50%, -50%);
  z-index: 9999;
  animation: floatCloud 5s ease-in-out infinite;
}

@keyframes floatCloud {
  0% {
    transform: translate(-50%, -50%) scale(0.35);
  }
  50% {
    transform: translate(-50%, -50%) scale(0.40);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.35);
  }
}

/* Botão toggle para abrir menu - centralizado na parte inferior */
#toggle-menu-btn {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background-color: #4caf50;
  border: 2px solid white;  /* borda branca fina */
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
  transition: background-color 0.3s ease;
}

#toggle-menu-btn:hover {
  background-color: #388e3c;
}

/* Barra de botões (menu) — posicionada embaixo, escondida por padrão */
#sidebar-buttons {
  position: fixed;
  bottom: 68px; /* 48px botão + 10px margin + 10px padding */
  left: 0;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  white-space: normal;
  z-index: 1050;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.7);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* Quando menu está aberto */
#sidebar-buttons.open {
  max-height: 200px; /* ajuste conforme a altura necessária */
  opacity: 1;
  pointer-events: auto;
}

/* Botões dentro da barra */
#sidebar-buttons button {
  background-color: #333;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
}

#sidebar-buttons button:hover {
  background-color: #4caf50;
  color: white;
}

/* Menu aberto: altura fixa e scroll vertical em telas pequenas */
@media (max-width: 600px) {
  #sidebar-buttons.open {
    max-height: 250px; /* altura fixa menor no celular */
    overflow-y: auto;  /* habilita scroll vertical */
  }
}
