* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #000;
  -webkit-text-size-adjust: 100%;
}

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

/* Glassmorphism theme */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Branding Overlay */
#branding-container {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  pointer-events: auto;
}

#branding-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

#branding-logo {
  max-height: 32px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

/* Scene Tags Navigation Dropdown (Top Left below Branding) */
#scene-tags-container {
  position: absolute;
  top: 68px;
  left: 16px;
  z-index: 100;
  pointer-events: auto;
}

#scene-tags-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  max-width: 260px;
}

#scene-tags-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

#scene-tags-btn .tag-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

#scene-tags-btn .chevron-icon {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

#scene-tags-btn.open .chevron-icon {
  transform: rotate(180deg);
}

#active-tag-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#scene-tags-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 240px;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-tag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.scene-tag-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding-left: 12px;
}

.scene-tag-item.active {
  background: var(--theme-color, #0277bd);
  color: #fff;
  font-weight: 700;
}

/* Top Right Controls Overlay (Fullscreen, Zoom, Music) */
#top-right-controls {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

#zoom-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-svg {
  width: 20px;
  height: 20px;
}

.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
  user-select: none;
}

.control-btn:hover {
  background: rgba(15, 23, 42, 0.85);
  transform: scale(1.05);
}

.control-btn:active {
  transform: scale(0.95);
}

/* Floating WhatsApp button */
#whatsapp-widget {
  position: absolute;
  z-index: 100;
  transition: all 0.3s ease;
}

#whatsapp-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

#whatsapp-link:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

#whatsapp-link:active {
  transform: scale(0.95);
}

.wa-icon {
  width: 28px;
  height: 28px;
}

/* Watermark styles */
#watermark {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: auto;
}

#watermark a {
  color: #2196f3;
  text-decoration: none;
  font-weight: bold;
}

/* Hotspot / Chevron styling */
.custom-hotspot {
  cursor: pointer;
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.hotspot-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--theme-color, #0277bd);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid white;
}

.custom-hotspot:hover .hotspot-icon-wrapper {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 0 15px var(--theme-color, #0277bd);
}

.hotspot-svg {
  width: 22px;
  height: 22px;
}

.hotspot-tooltip {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

.custom-hotspot:hover .hotspot-tooltip {
  opacity: 1;
}

/* SVGs inside hotspots */
.hotspot-svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.5;
}