/* === Reset and Base === */
* {
  box-sizing: border-box;
  user-select: none;
  text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

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

/* === Panorama === */
#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* === Title Bar (Always visible) === */
#titleBar {
  position: absolute;
  top: 0;
  left: 40px;
  right: 80px;
  height: 40px;
  text-align: center;
  z-index: 100;
}

#titleBar .sceneName {
  display: block; /* always visible */
  width: 100%;
  height: 100%;
  line-height: 40px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background-color: rgba(58,68,84,0.85); /* grey bar */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 0 0 8px 8px;
}

/* === Sidebar Menu === */
#sceneList {
  position: absolute;
  top: 40px;
  left: 0;
  width: 260px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(34,34,34,0.95);
  color: white;
  padding: 10px;
  border-radius: 0 8px 8px 0;
  z-index: 50;
  transition: transform 0.4s ease;
  transform: translateX(0);
}

#sceneList.hidden {
  transform: translateX(-260px);
}

#sceneList .scenes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scene-link {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.scene-link:hover {
  background: rgba(255,255,255,0.1);
}

.scene-link.active {
  color: #00adee;
  font-weight: bold;
}

/* === Menu Toggle (expand/collapse) === */
#sceneListToggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(103,115,131,0.8);
  z-index: 120;
  cursor: pointer;
}

#sceneListToggle .icon {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 5px;
  left: 5px;
}

#sceneListToggle .icon.on { display: none; }
#sceneListToggle.enabled .icon.on { display: block; }
#sceneListToggle.enabled .icon.off { display: none; }

/* === Toolbar (Play / Pause / Fullscreen) === */
#autorotateToggle,
#fullscreenToggle {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(103,115,131,0.8);
  z-index: 120;
  cursor: pointer;
}

#autorotateToggle { right: 40px; }
#fullscreenToggle { right: 0; }

#autorotateToggle .icon,
#fullscreenToggle .icon {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 5px;
  left: 5px;
}

#autorotateToggle .icon.on,
#fullscreenToggle .icon.on { display: none; }

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

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

/* === Hotspots (original Marzipano size) === */
.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.9;
  transition: opacity 0.2s;
  z-index: 100;
}

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

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Tooltip */
.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px;
  margin-left: 3px;
  font-size: 16px;
  padding: 8px 10px;
  border-radius: 5px;
  background-color: rgba(58,68,84,0.8);
  color: #fff;
  opacity: 0;
  transform: translateX(-8px);
  transition: transform 0.3s, opacity 0.3s;
}

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

/* === Hide view control buttons === */
.viewControlButton {
  display: none !important;
}
/* === Safe Pulse Animation for Hotspot Icons === */
@keyframes pulseHotspot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Apply only to the icon, not the parent hotspot */
.link-hotspot-icon,
.info-hotspot-icon {
  animation: pulseHotspot 1.8s ease-in-out infinite;
  transform-origin: center center;
}


