/* ============================================================
   WEHOME PROPERTIES — Marzipano Theme

   Color Palette:
   - Background:   #0d0d0d
   - Surface:      #111111 / #1a1a1a
   - Accent:       #4a6fa5 (slate blue from WeHome logo text)
   - Accent hover: #6b8fc7
   - Text:         #f0f0f0
   - Subtle:       #888888
   - Border:       rgba(74, 111, 165, 0.3)

   Typography: Raleway (clean, modern, matches their brand feel)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500&family=Inter:wght@300;400&display=swap');

* {
  -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: 'Raleway', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.5px;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

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;
}

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

.mobile #titleBar {
  height: 50px;
  right: 50px;
}

body.fullscreen-enabled #titleBar {
  right: 80px;
}

body.fullscreen-enabled.mobile #titleBar {
  right: 100px;
}

body.multiple-scenes #titleBar {
  left: 40px;
}

body.multiple-scenes.mobile #titleBar {
  left: 50px;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px 15px;
  background-color: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid #4a6fa5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f0f0f0;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile #titleBar .sceneName {
  line-height: 40px;
  font-size: 11px;
}

/* Fullscreen Toggle */
#fullscreenToggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid rgba(74, 111, 165, 0.3);
  border-left: 1px solid rgba(74, 111, 165, 0.15);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

.mobile #fullscreenToggle {
  width: 50px;
  height: 50px;
  padding: 10px;
}

#fullscreenToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(0.8);
}

.mobile #fullscreenToggle .icon {
  top: 10px;
  right: 10px;
}

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

#fullscreenToggle:hover {
  background-color: #4a6fa5;
}

#fullscreenToggle:hover .icon {
  filter: brightness(0) invert(1);
}

/* Autorotate Toggle */
#autorotateToggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid rgba(74, 111, 165, 0.3);
  border-left: 1px solid rgba(74, 111, 165, 0.15);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

body.fullscreen-enabled #autorotateToggle {
  right: 40px;
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
  padding: 10px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 50px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(0.8);
}

.mobile #autorotateToggle .icon {
  top: 10px;
  right: 10px;
}

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

#autorotateToggle:hover {
  background-color: #4a6fa5;
}

#autorotateToggle:hover .icon {
  filter: brightness(0) invert(1);
}

/* Scene List Toggle */
#sceneListToggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid rgba(74, 111, 165, 0.3);
  border-right: 1px solid rgba(74, 111, 165, 0.15);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.mobile #sceneListToggle {
  width: 50px;
  height: 50px;
  padding: 10px;
}

#sceneListToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(0.8);
}

.mobile #sceneListToggle .icon {
  top: 10px;
  right: 10px;
}

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

#sceneListToggle:hover {
  background-color: #4a6fa5;
}

#sceneListToggle:hover .icon {
  filter: brightness(0) invert(1);
}

body:not(.multiple-scenes) #sceneListToggle {
  display: none;
}

/* Scene List Panel */
#sceneList {
  position: absolute;
  top: 0;
  left: -220px;
  padding-top: 40px;
  width: 220px;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: rgba(13, 13, 13, 0.96);
  border-right: 1px solid rgba(74, 111, 165, 0.2);
  margin-left: 0;
  -webkit-transition: margin-left 0.5s ease-in-out;
  transition: margin-left 0.5s ease-in-out;
  scrollbar-width: thin;
  scrollbar-color: #4a6fa5 #111111;
}

.mobile #sceneList {
  padding-top: 50px;
  width: 100%;
  height: 100%;
  left: -100%;
}

#sceneList.enabled {
  margin-left: 220px;
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

body:not(.multiple-scenes) #sceneList {
  display: none;
}

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

#sceneList .scene {
  display: block;
  width: 100%;
  height: 30px;
  padding: 0;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(74, 111, 165, 0.08);
}

.mobile #sceneList .scene {
  height: 40px;
}

.no-touch #sceneList .scene:hover {
  background-color: rgba(74, 111, 165, 0.1);
}

#sceneList .scene.current {
  background-color: rgba(74, 111, 165, 0.15);
  border-left: 2px solid #4a6fa5;
}

#sceneList .scene .text {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888888;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover .text {
  color: #f0f0f0;
}

#sceneList .scene.current .text {
  color: #f0f0f0;
}

#sceneList::-webkit-scrollbar { width: 4px; }
#sceneList::-webkit-scrollbar-track { background: #111111; }
#sceneList::-webkit-scrollbar-thumb { background: #4a6fa5; border-radius: 2px; }

/* View Controls */
.viewControlButton {
  display: none;
  position: absolute;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(13, 13, 13, 0.85);
  border: 1px solid rgba(74, 111, 165, 0.2);
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

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

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(0.65);
}

.viewControlButton:hover {
  background-color: rgba(74, 111, 165, 0.3);
}

.viewControlButton:hover .icon {
  filter: brightness(0) invert(0.95);
}

.viewControlButton-1 { bottom: 82px; right: 0; }
.viewControlButton-2 { bottom: 0; right: 0; }
.viewControlButton-3 { bottom: 41px; right: 41px; }
.viewControlButton-4 { bottom: 41px; right: 0; }
.viewControlButton-5,
.viewControlButton-6 { display: none !important; }

/* Hotspots — Link */
.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  cursor: pointer;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(13, 13, 13, 0.5);
  border: 2px solid rgba(74, 111, 165, 0.7);
  opacity: 0.85;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-hotspot-icon::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid #4a6fa5;
  border-bottom: 2px solid #4a6fa5;
  transform: rotate(-45deg);
  margin-left: -4px;
}

.link-hotspot:hover .link-hotspot-icon {
  background-color: rgba(74, 111, 165, 0.3);
  border-color: #6b8fc7;
  opacity: 1;
  transform: scale(1.1);
}

.link-hotspot-tooltip {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 14px;
  background-color: rgba(13, 13, 13, 0.95);
  border: 1px solid rgba(74, 111, 165, 0.4);
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f0f0f0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

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

/* Hotspots — Info */
.info-hotspot {
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  cursor: pointer;
}

.info-hotspot-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(74, 111, 165, 0.15);
  border: 1px solid rgba(74, 111, 165, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4a6fa5;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.info-hotspot:hover .info-hotspot-icon {
  background-color: rgba(74, 111, 165, 0.3);
  border-color: #6b8fc7;
}

.info-hotspot-text {
  position: absolute;
  width: 260px;
  padding: 16px 20px;
  background-color: rgba(13, 13, 13, 0.96);
  border: 1px solid rgba(74, 111, 165, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: #e0e0e0;
}

.info-hotspot-text .info-hotspot-title {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f0f0f0;
  margin-bottom: 8px;
}

/* Branding — WeHome Logo (bottom-right) */
#branding {
  position: absolute;
  bottom: 30px;
  right: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  pointer-events: none;
}

#branding .client-logo {
  height: 45px;
  width: auto;
  opacity: 0.9;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.mobile #branding {
  bottom: 24px;
  right: 8px;
}

.mobile #branding .client-logo {
  height: 32px;
}

/* Powered By — Vantage Credit (bottom-right, subtle) */
#powered-by {
  position: absolute;
  bottom: 6px;
  right: 12px;
  z-index: 100;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  pointer-events: auto;
}

#powered-by:hover {
  color: rgba(255, 255, 255, 0.5);
}

#powered-by a {
  color: inherit;
  text-decoration: none;
}

#powered-by a:hover {
  color: rgba(74, 111, 165, 0.7);
}

.mobile #powered-by {
  font-size: 8px;
  bottom: 4px;
  right: 8px;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  -webkit-transition: opacity 0.8s ease;
  transition: opacity 0.8s ease;
}

#loading-screen.loaded {
  opacity: 0;
  pointer-events: none;
}

#loading-screen .loading-logo {
  height: 80px;
  width: auto;
  margin-bottom: 30px;
  opacity: 0.95;
}

#loading-screen .loading-bar-container {
  width: 200px;
  height: 2px;
  background: rgba(74, 111, 165, 0.15);
  overflow: hidden;
}

#loading-screen .loading-bar {
  height: 100%;
  width: 0%;
  background: #4a6fa5;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

#loading-screen .loading-text {
  margin-top: 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #555555;
}

/* Responsive */
@media (max-width: 600px) {
  #titleBar .sceneName {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .link-hotspot {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
  }

  .viewControlButton {
    display: none !important;
  }
}