* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: Arial, sans-serif;
  overflow:hidden;
  height:100vh;
  background-color:#000;
  position: relative;
}

/* ---------- Imagem inicial ---------- */
#imagem-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: black;
}

#imagem-inicial {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
  object-position: center center;
  transform: translate(-50%, -50%) scale(0.85) translateY(-30px);
  transition: transform 1.2s ease, opacity 1.2s ease, filter 1.2s ease;
}

#imagem-inicial.esconder {
  transform: translate(-50%, -50%) scale(1.15) translateY(0);
  opacity: 0.3;
  filter: blur(8px);
}

#imagem-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Logo ---------- */
#logo-small {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 120px;
  z-index: 20;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}
#logo-small.animado {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Botão iniciar ---------- */
.Iniciar {
  background-color: #4863f7;
  color: #fff;
  font-size: 30px;
  border: none;
  border-radius: 8px;
  padding: 20px 80px;
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%) scale(1);
  cursor: pointer;
  z-index: 30;
  transition: all 0.5s ease, opacity 0.5s ease;
}
.Iniciar:hover {
  background-color: #3657d5;
  transform: translateX(-50%) scale(1.05);
}
.Iniciar.esconder {
  opacity: 0;
  transform: translateX(-50%) translateY(50px) scale(0.95);
}

/* ---------- Container do mapa ---------- */
#map-container {
  display:none;
  position: relative;
  width:100vw;
  height:100vh;
  z-index:10;
}
#map-container img {
  width:100%;
  height:auto;
  display:block;
}

/* ---------- Pontos ---------- */
.click-point {
  position:absolute;
  width:22px;
  height:22px;
  border-radius:50%;
  border:2px solid white;
  background-color:red;
  box-shadow:0 0 10px rgba(0,0,0,0.5);
  cursor:pointer;
  opacity:0;
  transform: scale(0.7);
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
  z-index:50;
}
.click-point.mostrar {
  opacity:1;
  transform: scale(1);
}
.click-point:hover {
  transform:scale(1.4);
  box-shadow: 0 0 20px rgba(255,0,0,0.8), 0 0 40px rgba(255,0,0,0.5);
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1.2); box-shadow: 0 0 15px rgba(255,0,0,0.6); }
  50% { transform: scale(1.4); box-shadow: 0 0 25px rgba(255,0,0,0.8); }
  100% { transform: scale(1.2); box-shadow: 0 0 15px rgba(255,0,0,0.6); }
}

/* ---------- Subpontos ---------- */
.click-point.sub {
  background-color: lime;
  border-color: #fff;
}
.click-point.sub:hover {
  transform:scale(1.4);
  box-shadow: 0 0 20px rgba(0,255,0,0.8), 0 0 40px rgba(0,255,0,0.5);
  animation: pulse-green 1.2s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(1.2); box-shadow: 0 0 15px rgba(0,255,0,0.6); }
  50% { transform: scale(1.4); box-shadow: 0 0 25px rgba(0,255,0,0.8); }
  100% { transform: scale(1.2); box-shadow: 0 0 15px rgba(0,255,0,0.6); }
}

/* ---------- Popup Info ---------- */
.info-popup {
  position:absolute;
  bottom:15%;
  left:50%;
  transform:translateX(-50%);
  background: rgba(0,0,0,0.8);
  color:#fff;
  padding:20px 30px;
  border-radius:12px;
  font-size:18px;
  text-align:center;
  max-width:400px;
  opacity:0;
  pointer-events:none;
  z-index:200;
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.info-popup.mostrar {
  opacity:1;
  pointer-events:all;
  transform:translateX(-50%) translateY(-10px);
}

/* ---------- Botões voltar e sobre ---------- */
button.voltar,
button.sobre {
  position: fixed;
  top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor:pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity:0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index:10001;
}
button.voltar { left:20px; background-color:#4863f7; color:#fff; }
button.sobre { right:20px; background-color:#00b050; color:#fff; }
button.voltar.mostrar,
button.sobre.mostrar { opacity:1; transform: translateY(0); }

/* ---------- Transições Imagem Cidade / Subponto ---------- */
.img-transicao {
  opacity:0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.img-transicao.mostrar {
  opacity:1;
  transform: scale(1);
}
.img-transicao.sair {
  opacity:0;
  transform: scale(0.95);
}

/* ---------- Containers Cidade / Subponto ---------- */
.cidade-container,
.sub-container {
  opacity:0;
  transform: translateX(100px) scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.cidade-container.mostrar,
.sub-container.mostrar {
  opacity:1;
  transform: translateX(0) scale(1);
}
.cidade-container.sair,
.sub-container.sair {
  opacity:0;
  transform: translateX(-100px) scale(0.95);
}

/* ---------- Popup Sobre ---------- */
.sobre-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 30px 40px;
  border-radius: 12px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  z-index: 20000;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sobre-popup.mostrar {
  opacity:1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}
.sobre-popup h2 { margin-bottom: 10px; }
.sobre-popup button.fechar-sobre {
  margin-top: 20px;
  background-color: #4863f7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
}
.sobre-popup button.fechar-sobre:hover { background-color:#3657d5; }
