* {
  -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;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: 'Poppins', 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;
  z-index: 1;
}

/* --- UI Containers --- */
#sceneList, #bottomLeft, #bottomControls, #sceneListToggle, #bookingSection {
  pointer-events: none;
}

/* --- Booking Section (Top Right) --- */
#bookingSection {
  position: absolute;
  top: 40px;
  right: 110px; /* Shifted left to avoid close button */
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.booking-title {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: center;
}

.booking-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  pointer-events: auto;
}

.booking-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.booking-btn.airbnb:hover {
  background: #FF385C;
  border-color: #FF385C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
}

.booking-btn svg {
  transition: transform 0.3s;
}

.booking-btn:hover svg {
  transform: scale(1.1);
}

#closePopup {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#closePopup:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05) rotate(90deg);
}

@media (max-width: 768px) {
  #closePopup {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}

#sceneList {
  position: absolute;
  top: 20px;
  left: 40px;
  width: auto;
  height: auto;
  z-index: 100;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

.menu-header {
  margin-bottom: 25px;
  pointer-events: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.branding {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  user-select: none;
  -webkit-user-drag: none;
}

.branding-link {
  display: block;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.branding-link:hover {
  transform: scale(1.02);
}

.branding-logo {
  height: 200px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  pointer-events: none; /* Let the link handle events */
}

.menu-title {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 3px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.menu-separator {
  width: 180px; /* Longer separator */
  height: 2px;
  background: #fff;
  margin-top: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

#sceneList .scene {
  display: block;
  width: fit-content;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s, padding-left 0.3s;
  cursor: pointer;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#sceneList .scene:hover {
  color: #fff;
  padding-left: 10px;
}

#sceneList .scene.current {
  color: #fff;
  font-weight: 600;
}

#sceneList .scene.current .text {
  text-decoration: underline !important;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

/* --- Bottom Left Info --- */
#bottomLeft {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 100;
  width: fit-content;
}

.sceneName {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  pointer-events: none;
}

/* --- Bottom Right Controls --- */
#bottomControls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 100;
}

.controller {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.horizontal-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.viewControlButton {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
  pointer-events: auto;
}

.viewControlButton:hover, .viewControlButton.active {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  border-color: #ff9800; /* Subtle orange hint */
}

.viewControlButton .icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

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

#sceneListToggle {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#sceneListToggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Burger Icon */
.burger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sceneListToggle.enabled .burger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#sceneListToggle.enabled .burger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

#sceneListToggle.enabled .burger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* --- Responsive States --- */

@media (max-width: 768px) {
  #sceneList {
    top: 50%;
    left: 20px;
    width: 300px;
    height: auto;
    max-height: 80vh;
    padding: 40px 30px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-130%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
  }
  
  #sceneList.enabled {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-50%) translateX(0);
  }

  .branding-logo {
    height: 100px; /* Smaller on mobile */
  }

  .branding {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .menu-header {
    align-items: flex-start;
    text-align: left;
  }

  .menu-title {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .menu-separator {
    width: 150px;
  }

  #sceneListToggle {
    display: flex;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
  }

  #sceneListToggle:hover {
    transform: translateY(-50%) scale(1.05);
  }

  #sceneListToggle.enabled {
    left: 330px; /* Push the burger when menu is open */
  }



  #bottomLeft {
    left: 20px;
    bottom: 20px;
  }

  #bottomControls {
    right: 20px;
    bottom: 20px;
  }

  #bookingSection {
    top: 20px;
    right: 80px; /* Shifted left on mobile to avoid close button */
    left: 20px;
    align-items: center;
    gap: 10px;
  }
  
  .booking-buttons {
    gap: 8px;
  }

  .booking-btn {
    padding: 8px 12px;
    font-size: 11px;
    gap: 8px;
  }
}

/* --- Hotspots Base (Shared) --- */
.hotspot {
  cursor: pointer;
  pointer-events: auto;
  z-index: 50;
  /* CRITICAL: Do NOT transition 'transform' or 'all' here, as it conflicts with Marzipano's 3D positioning */
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, opacity 0.4s;
}

/* --- Link Hotspots --- */
.link-hotspot {
  width: 55px;
  height: 55px;
  margin-left: -27.5px;
  margin-top: -27.5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.link-hotspot:hover {
  background: rgba(255, 152, 0, 0.2);
  border-color: #ff9800;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.link-hotspot-icon {
  width: 75%;
  height: 75%;
  margin: 12.5%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.link-hotspot:hover .link-hotspot-icon {
  transform: scale(1.2);
}

.link-hotspot-tooltip {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Info Hotspots --- */
.info-hotspot {
  width: 55px;
  height: 55px;
  margin-left: -27.5px;
  margin-top: -27.5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-hotspot:hover {
  background: rgba(255, 152, 0, 0.2);
  border-color: #ff9800;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.info-hotspot-icon {
  width: 60%;
  height: 60%;
  margin: 20%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-hotspot:hover .info-hotspot-icon {
  transform: scale(1.2);
}

/* The popup/modal inside info hotspot */
.info-hotspot-text {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 240px; /* Reduced width */
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px; /* Reduced padding */
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; /* Slightly smaller font */
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.info-hotspot.visible .info-hotspot-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.info-hotspot-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  color: #ff9800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.non-smoking {
  display: flex;
  flex-direction: row; /* Force horizontal */
  align-items: center;
  gap: 8px; /* Space between icon and text */
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.non-smoking svg {
  flex-shrink: 0; /* Prevent icon from squishing */
}

.non-smoking i {
  font-size: 10px;
  opacity: 0.8;
  line-height: 1.2;
}

/* Hide header in desktop mode to make it more like a tooltip/card */
.info-hotspot-header {
  display: none;
}
