* {
  -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;
}

/* ===================== MODERN NAVBAR ===================== */
#modernNavbar {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 300px;
  max-width: 90vw;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  transition: all 0.3s ease;
}

#modernNavbar .nav-left {
  flex: 1;
  overflow: hidden;
}

#modernNavbar .sceneName {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.5px;
}

#modernNavbar .nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

#modernNavbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

#modernNavbar a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

#modernNavbar a .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Toggle Overrides */
#modernNavbar #autorotateToggle .icon.on,
#modernNavbar #fullscreenToggle .icon.on,
#modernNavbar #sceneListToggle .icon.on {
  display: none;
}

#modernNavbar #autorotateToggle.enabled .icon.on,
#modernNavbar #fullscreenToggle.enabled .icon.on,
#modernNavbar #sceneListToggle.enabled .icon.on {
  display: block;
}

#modernNavbar #autorotateToggle.enabled .icon.off,
#modernNavbar #fullscreenToggle.enabled .icon.off,
#modernNavbar #sceneListToggle.enabled .icon.off {
  display: none;
}

/* Mobile Adjustments */
.mobile #modernNavbar {
  top: 15px;
  height: 50px;
  padding: 0 15px;
  min-width: 260px;
}

.mobile #modernNavbar .sceneName {
  font-size: 15px;
}

.mobile #modernNavbar a {
  width: 32px;
  height: 32px;
}

/* ===================== END NAVBAR ===================== */

/* Attribution Icon Styling */
.attribution-link {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: visible !important;
}

.attribution-link:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.attribution-link .icon {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.attribution-tooltip {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.attribution-link:hover .attribution-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.attribution-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 14px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.85) transparent;
}

/* Mobile adjustments */
.attribution-link {
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
}

.back-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.back-arrow:hover {
  transform: translateX(-5px) scale(1.1);
  color: #3b82f6;
}

.back-arrow svg {
  width: 32px;
  height: 32px;
}

/* Mobile adjustments */
.mobile .back-arrow {
  top: 15px;
  left: 15px;
  width: 36px;
  height: 36px;
}


#sceneList {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%) translateX(-120%);
  width: 180px;
  /* Reverted to compact width */
  height: auto;
  max-height: 80vh;
  z-index: 3000;
  /* Increased z-index */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center items again */
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

#sceneList::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 150px;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 60px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#sceneList.enabled {
  transform: translateY(-50%) translateX(0);
  /* Shown when enabled */
  opacity: 1;
}

.mobile #sceneList {
  width: 140px;
  left: 10px;
}

.mobile #sceneList::before {
  width: 110px;
  /* Narrower pill for mobile */
}

/* Focal Indicator Dots */
.focal-indicator {
  position: absolute;
  right: -15px;
  /* Back to right side */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.focal-indicator span {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scenes-container {
  width: 100%;
  height: 100%;
  max-height: inherit;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
  pointer-events: auto;
  /* Fade mask to prevent abrupt overflow at rounded corners */
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 60px,
      black calc(100% - 60px),
      transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 60px,
      black calc(100% - 60px),
      transparent 100%);
}

.scenes-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

#sceneList .scenes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 55px;
  padding: 70px 0 70px 0;
  /* Balanced padding */
  width: 100%;
}

.area-card-side {
  position: relative;
  width: 90px;
  height: 80px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  cursor: pointer;
  overflow: visible !important;
  /* Ensure labels can go out */
}

.mobile .area-card-side {
  width: 60px;
  height: 60px;
}

.side-card-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #000;
}

.mobile .side-card-img-wrap {
  width: 60px !important;
  height: 60px !important;
}

.area-card-side.side-card-focused .side-card-img-wrap {
  border-color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.area-card-side.current .side-card-img-wrap {
  border-color: #3b82f6;
}

/* Scene Label Styling */
.scene-label {
  position: absolute;
  left: 50%;
  top: -20px;
  /* Positioned above image */
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  /* Small font */
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 5000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.area-card-side:hover .scene-label {
  background: #3b82f6;
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

/* Active/Focused label state */
.area-card-side.side-card-focused .scene-label {
  background: #3b82f6;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.area-card-side.current .scene-label {
  background: #3b82f6;
  color: #fff;
  opacity: 1;
}

.mobile #sceneList {
  width: 140px;
  left: 10px;
  padding: 10px 0;
}

.mobile #sceneList::before {
  width: 110px;
}

.mobile .area-card-side {
  width: 60px;
  height: 60px;
}

.mobile .scene-label {
  font-size: 10px;
  top: -22px;
  /* Adjusted for mobile space */
  padding: 4px 8px;
  opacity: 0;
}

.mobile .area-card-side.side-card-focused .scene-label {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.side-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.area-card-side.side-card-focused .side-card-img {
  filter: brightness(1);
}

/* Hide scene list when only a single scene exists */
body.single-scene #sceneList,
body.single-scene #sceneListToggle {
  display: none;
}

/* ===================== MODERN HOTSPOT DESIGN ===================== */

.link-hotspot {
  position: absolute;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dedicated Pulse Layer (Isolated from rotation) */
.hotspot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  margin-left: -30px;
  margin-top: -30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  animation: pulse-ring 2.5s infinite;
  pointer-events: none;
  transform: scale(0.8);
}

/* Dedicated Rotation Layer (Controlled by JS) */
.icon-rotation-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Let parent handle clicks */
  transition: transform 0.2s ease-out;
  /* Smooth JS rotations if they change */
}

/* Inner Visual Card Layer (Handles hover and styling) */
.link-hotspot-inner {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: auto;
}

.link-hotspot:hover .link-hotspot-inner {
  transform: scale(1.1) translateY(-3px);
  background: #fff;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.2),
    0 0 35px rgba(255, 255, 255, 0.7);
}

/* SVG Icon Logic */
.link-hotspot-icon-svg {
  width: 22px;
  height: 22px;
  fill: #1e293b;
  transition: fill 0.3s ease;
}

.link-hotspot:hover .link-hotspot-icon-svg {
  fill: #000;
}

/* Glassmorphism Tooltip */
.link-hotspot-tooltip {
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.link-hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.85) transparent transparent transparent;
}

/* Animation Keyframes */
@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  20% {
    opacity: 0.6;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* Mobile Adjustments */
.mobile .link-hotspot {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
}

.mobile .hotspot-pulse {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
}

.mobile .link-hotspot-inner {
  width: 48px;
  height: 48px;
}

.mobile .link-hotspot-tooltip {
  display: none;
}

/* Fallback for IE */
.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}

/* Info hotspot */

.info-hotspot {
  line-height: 1.2em;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s 0.2s;
  transition: opacity 0.2s 0.2s;
}

.no-touch .info-hotspot:hover {
  opacity: 1;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.info-hotspot.visible {
  opacity: 1;
}

.info-hotspot .info-hotspot-header {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: rgb(103, 115, 131);
  cursor: pointer;
  -webkit-transition: width 0.3s ease-in-out 0.5s,
    border-radius 0.3s ease-in-out 0.5s;
  transition: width 0.3s ease-in-out 0.5s,
    border-radius 0.3s ease-in-out 0.5s;
}

.mobile .info-hotspot .info-hotspot-header {
  width: 50px;
  height: 50px;
  border-radius: 25px;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
  width: 260px;
  border-radius: 5px;
  -webkit-transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
  transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

.desktop .info-hotspot.visible .info-hotspot-header,
.desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
  width: 260px;
  border-radius: 5px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
  transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

.info-hotspot .info-hotspot-icon-wrapper {
  width: 40px;
  height: 40px;
}

.mobile .info-hotspot .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
}

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 40px;
  top: 0;
  width: 0;
  height: 40px;
  padding: 0;
  overflow: hidden;
  -webkit-transition: width 0s 0.4s,
    padding 0s 0.4s;
  transition: width 0s 0.4s,
    padding 0s 0.4s;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper,
.desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
  width: 220px;
  padding: 0 5px;
  -webkit-transition: width 0s 0.4s,
    padding 0s 0.4s;
  transition: width 0s 0.4s,
    padding 0s 0.4s;
}

.info-hotspot .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot .info-hotspot-close-wrapper {
  position: absolute;
  left: 260px;
  top: 0;
  height: 40px;
  width: 40px;
  border-top-right-radius: 5px;
  background-color: rgb(78, 88, 104);
  visibility: hidden;
  -ms-transform: perspective(200px) rotateY(90deg);
  -webkit-transform: perspective(200px) rotateY(90deg);
  transform: perspective(200px) rotateY(90deg);
  -ms-transform-origin: 0 50% 0;
  -webkit-transform-origin: 0 50% 0;
  transform-origin: 0 50% 0;
  -webkit-transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0.6s;
  transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0.6s;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible;
  -ms-transform: perspective(200px) rotateY(0deg);
  -webkit-transform: perspective(200px) rotateY(0deg);
  transform: perspective(200px) rotateY(0deg);
  -webkit-transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0s;
  transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0s;
}

.info-hotspot .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
}

.info-hotspot .info-hotspot-text {
  position: absolute;
  width: 300px;
  height: auto;
  max-height: 200px;
  top: 40px;
  left: 0;
  padding: 10px;
  background-color: rgb(58, 68, 84);
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  overflow-y: auto;
  visibility: hidden;
  /* rotate(90deg) causes transition flicker on Firefox 58 */
  -ms-transform: perspective(200px) rotateX(-89.999deg);
  -webkit-transform: perspective(200px) rotateX(-89.999deg);
  transform: perspective(200px) rotateX(-89.999deg);
  -ms-transform-origin: 50% 0 0;
  -webkit-transform-origin: 50% 0 0;
  transform-origin: 50% 0 0;
  -webkit-transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0.3s;
  transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0.3s;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.desktop .info-hotspot.visible .info-hotspot-text {
  visibility: visible;
  -ms-transform: perspective(200px) rotateX(0deg);
  -webkit-transform: perspective(200px) rotateX(0deg);
  transform: perspective(200px) rotateX(0deg);
  -webkit-transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0s;
  transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0s;
}

/* Info hotspot modal */

.desktop .info-hotspot-modal {
  display: none;
}

.info-hotspot-modal {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 11000 !important;
  background-color: rgba(0, 0, 0, .5);
  line-height: 1.2em;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.2s ease-in-out 0.5s,
    visibility 0s 0.7s;
  transition: opacity 0.2s ease-in-out 0.5s,
    visibility 0s 0.7s;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.2s ease-in-out,
    visibility 0s 0s;
  transition: opacity 0.2s ease-in-out,
    visibility 0s 0s;
}

.info-hotspot-modal .info-hotspot-header {
  position: absolute;
  top: 60px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 50px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal.visible .info-hotspot-header {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot-modal .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
}

.info-hotspot-modal .info-hotspot-title-wrapper {
  position: absolute;
  top: 0;
  left: 50px;
  right: 50px;
  width: auto;
  height: 50px;
  padding: 0 10px;
}

.info-hotspot-modal .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot-modal .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal .info-hotspot-close-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: rgb(78, 88, 104);
  background-color: rgba(78, 88, 104, 0.8);
  cursor: pointer;
}

.info-hotspot-modal .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
}

.info-hotspot-modal .info-hotspot-text {
  position: absolute;
  top: 110px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 10px;
  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);
  overflow-y: auto;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal.visible .info-hotspot-text {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.4s;
  transition: opacity 0.3s ease-in-out 0.4s;
}

/* View control buttons */

/* ===================== MODERN MOVEMENT CONTROLS ===================== */
#viewControls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 10px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  transition: all 0.3s ease;
}

.viewControlButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  position: relative;
}

.viewControlButton:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.viewControlButton:active {
  transform: scale(0.9);
}

.viewControlButton .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)) brightness(1.2);
}

/* Specific button offsets are no longer needed since we use flexbox */

/* Mobile scaling */
@media (max-width: 600px) {
  #viewControls {
    bottom: 20px;
    padding: 8px 15px;
    gap: 10px;
  }

  .viewControlButton {
    width: 38px;
    height: 38px;
  }

  .viewControlButton .icon {
    width: 16px;
    height: 16px;
  }
}

/* ===================== END MOVEMENT CONTROLS ===================== */

#audioPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  color: white;
  text-align: center;
  font-family: Arial, sans-serif;
}

#audioPopup .popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#audioPopup button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

#audioPopup .enable-btn {
  background: #4caf50;
  color: white;
}

#audioPopup .disable-btn {
  background: #f44336;
  color: white;
}

/* ===================== LANDING PAGE STYLES ===================== */
.landing-page {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.landing-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.landing-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) blur(10px);
  transform: scale(1.1);
}

.landing-content {
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.landing-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  margin: 0 auto 30px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.landing-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.landing-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.6;
}

.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0f172a;
  padding: 18px 36px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.enter-btn:hover {
  transform: translateY(-4px) scale(1.02);
  background: #f8fafc;
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

.enter-btn .btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.enter-btn:hover .btn-icon {
  transform: translateX(5px);
}

.landing-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.landing-footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
  .landing-card {
    padding: 40px 24px;
    border-radius: 30px;
  }

  .landing-title {
    font-size: 28px;
  }

  .landing-subtitle {
    font-size: 16px;
  }
}

/*
 Nadir Logo Hotspot */
.nadir-hotspot {
  width: 350px;
  height: 350px;
  margin-left: -200px;
  margin-top: -200px;
  opacity: 0.9;
  pointer-events: none;
  /* Logo is not clickable */
}

.nadir-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Makes it circular */
  object-fit: contain;
}

.mobile .nadir-hotspot {
  width: 150px;
  height: 150px;
  margin-left: -100px;
  margin-top: -100px;
}

/* ===================== MAIN LOADER ===================== */
#mainLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#mainLoader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.loader-text {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: pulse-text 2s ease-in-out infinite;
}

.loader-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-text {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}