* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: #000;
  color: #fff;
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: inherit;
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* --- TARJA DE TÍTULO REMOVIDA (ESTILO CLEAN) --- */
#titleBar {
  display: none !important;
}

/* --- REMOÇÃO DO FULLSCREEN E AJUSTE DOS BOTÕES DO TOPO --- */
#fullscreenToggle {
  display: none !important;
}

#sceneListToggle,
#autorotateToggle,
#musicToggle {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  background: none !important;
  background-color: transparent !important;
  z-index: 20;
}

.mobile #sceneListToggle,
.mobile #autorotateToggle,
.mobile #musicToggle {
  width: 50px;
  height: 50px;
}

/* Alinhamento dos botões no topo */
#sceneListToggle { left: 0; }
#musicToggle { right: 0; }
#autorotateToggle { right: 40px; }

.mobile #musicToggle { right: 0; }
.mobile #autorotateToggle { right: 50px; }

/* Ícones SVG do Topo */
#sceneListToggle .icon,
#autorotateToggle .icon, 
#musicToggle .icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

#sceneListToggle .icon {
  left: 8px;
  right: auto;
}

.mobile #sceneListToggle .icon,
.mobile #autorotateToggle .icon, 
.mobile #musicToggle .icon {
  top: 13px;
  right: 13px;
}
.mobile #sceneListToggle .icon {
  left: 13px;
  right: auto;
}

/* Estados Ligado/Desligado dos Botões */
#sceneListToggle .icon.on,
#autorotateToggle .icon.on,
#musicToggle .icon.on {
  display: none;
}

#sceneListToggle.enabled .icon.off,
#autorotateToggle.enabled .icon.off,
#musicToggle.enabled .icon.off {
  display: none;
}

#sceneListToggle.enabled .icon.on,
#autorotateToggle.enabled .icon.on,
#musicToggle.enabled .icon.on {
  display: block;
}

/* --- MENU LATERAL DE CENAS (INICIA FECHADO) --- */
#sceneList {
  position: absolute;
  top: 0;
  left: -220px;
  padding-top: 40px;
  width: 220px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  transition: margin-left 0.5s ease-in-out;
  margin-left: 0;
  z-index: 15;
}

.mobile #sceneList {
  padding-top: 50px;
  width: 100%;
  height: 100%;
  left: -100%;
}

#sceneList .scenes {
  width: 100%;
  background-color: rgba(58,68,84,0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

.mobile #sceneList .scenes {
  height: 100%;
}

#sceneList.enabled {
  margin-left: 220px;
}

#sceneList .scene {
  display: block;
  width: 100%;
  height: 30px;
}

.mobile #sceneList .scene {
  height: 40px;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover,
#sceneList .scene.current {
  background-color: rgba(103,115,131,0.8);
}

body.single-scene #sceneList, body.single-scene #sceneListToggle {
  display: none;
}

/* ==========================================
   LINK HOTSPOT - CHEVRONS EM ONDA
   ========================================== */
.link-hotspot {
  width: 50px;
  height: 60px;
  margin-left: -25px;
  margin-top: -30px;
  cursor: pointer;
}

.link-hotspot-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  -webkit-filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}

.chevron {
  position: absolute;
  left: 17px;
  width: 16px;
  height: 16px;
  opacity: 0.4;
  background: transparent;
  border-top: 3.5px solid #ffffff;
  border-right: 3.5px solid #ffffff;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 1));
  -webkit-filter: drop-shadow(0 0 2px rgba(0, 0, 0, 1));
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  animation: wavePulse 2s infinite ease-in-out;
  -webkit-animation: wavePulse 2s infinite ease-in-out;
}

.chevron-1 {
  top: 6px;
  animation-delay: 0.6s;
  -webkit-animation-delay: 0.6s;
}

.chevron-2 {
  top: 16px;
  animation-delay: 0.3s;
  -webkit-animation-delay: 0.3s;
}

.chevron-3 {
  top: 26px;
  animation-delay: 0s;
  -webkit-animation-delay: 0s;
}

@-webkit-keyframes wavePulse {
  0% {
    opacity: 0.3;
    -webkit-transform: rotate(-45deg) scale(0.8);
  }
  50% {
    opacity: 1;
    -webkit-transform: rotate(-45deg) scale(1.1);
  }
  100% {
    opacity: 0.3;
    -webkit-transform: rotate(-45deg) scale(0.8);
  }
}

@keyframes wavePulse {
  0% {
    opacity: 0.3;
    transform: rotate(-45deg) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: rotate(-45deg) scale(1.1);
  }
  100% {
    opacity: 0.3;
    transform: rotate(-45deg) scale(0.8);
  }
}

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px;
  margin-left: 3px;
  font-size: 16px;
  max-width: 300px;
  padding: 8px 10px;
  border-radius: 5px;
  background-color: rgba(58,68,84,0.8);
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: transform 0.3s, opacity 0.3s;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}
.no-touch .tooltip-fallback .link-hotspot:hover .link-hotspot-tooltip {
  display: block;
}

/* Info Hotspots */
.info-hotspot {
  line-height: 1.2em;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.no-touch .info-hotspot:hover {
  opacity: 1;
}

.info-hotspot.visible {
  opacity: 1;
}

.info-hotspot .info-hotspot-header {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: rgba(103,115,131,0.8);
  cursor: pointer;
}

/* Controles de visão */
.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(103,115,131,0.8);
}

body.view-control-buttons .viewControlButton {
  display: block;
}

@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.viewControlButton-1 { margin-left: -145px; }
.viewControlButton-2 { margin-left: -95px; }
.viewControlButton-3 { margin-left: -45px; }
.viewControlButton-4 { margin-left: 5px; }
.viewControlButton-5 { margin-left: 55px; }
.viewControlButton-6 { margin-left: 105px; }