* {
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: 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%;
  margin: 0;
  overflow: hidden;
  background-color: #000;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- TITLE BAR --- */
#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 40px;
  height: 40px;
  text-align: center;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px;
  background: rgba(58,68,84,0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- CONTROL ICONS (restored original size/placement) --- */
#fullscreenToggle,
#autorotateToggle,
#sceneListToggle {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background: rgba(103,115,131,0.8);
  z-index: 15;
}

#fullscreenToggle {
  right: 0;
}

#autorotateToggle {
  right: 40px;
}

#sceneListToggle {
  left: 0;
}

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

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

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

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

/* --- MENU PANEL --- */
#sceneList {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  max-height: 100%;
  overflow-y: auto;
  background: rgba(34,34,34,0.95);
  padding: 10px;
  border-radius: 0 8px 8px 0;
  transition: transform 0.4s ease-in-out;
  z-index: 10;
}

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

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

.menu-header {
  cursor: pointer;
  font-weight: 600;
  padding: 10px;
  margin-top: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.menu-header:hover {
  background: rgba(255,255,255,0.1);
}

.menu-items {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.menu-items li {
  padding: 6px 0;
}

.menu-items li:hover {
  text-decoration: underline;
  cursor: pointer;
}

.menu-header.open .arrow {
  transform: rotate(90deg);
}

.scene-link {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
}

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

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

/* --- HOTSPOTS --- */
.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

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

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

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

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

/* --- INFO HOTSPOTS --- */
.info-hotspot {
  opacity: 0.9;
  transition: opacity 0.2s;
}

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

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

.info-hotspot .info-hotspot-icon-wrapper {
  width: 40px;
  height: 40px;
}

.info-hotspot .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
}

/* --- VIEW CONTROL BUTTONS --- */
.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background: rgba(103,115,131,0.8);
}

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

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

.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; }
/* === 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;
}


