/* ==============================================================
   GUILLEM ROS STUDIO | CASAS CON NORTE
   Personalizacion del visor Marzipano VR23 — v1.0
   Cargar DESPUES de style.css en index.html.
   No altera fotografias, escenas, hotspots ni la logica del tour.
   ============================================================== */

:root {
  --norte-ink: #263536;
  --norte-accent: #526c63;
  --norte-cream: #f6f3ed;
  --norte-border: rgba(38, 53, 54, 0.14);
  --norte-shadow: 0 8px 28px rgba(25, 35, 36, 0.14);
}

body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* 01. Titulo de la escena: pastilla clara y discreta */
#titleBar,
body.fullscreen-enabled #titleBar {
  position: absolute !important;
  top: 14px !important;
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  max-width: calc(100% - 170px) !important;
  height: 38px !important;
  min-height: 38px;
  padding: 0 18px !important;
  transform: translateX(-50%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(246, 243, 237, .90) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 8;
  pointer-events: none;
}

#titleBar .sceneName {
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  background: transparent !important;
  color: var(--norte-ink) !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: .055em;
  text-transform: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 02. Botones flotantes del menu, giro y pantalla completa */
#sceneListToggle,
#autorotateToggle,
#fullscreenToggle {
  top: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(255,255,255,.76) !important;
  border-radius: 50% !important;
  background: rgba(246,243,237,.91) !important;
  box-shadow: var(--norte-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  z-index: 12;
}

#sceneListToggle { left: 14px !important; right: auto !important; }
#autorotateToggle { right: 14px !important; left: auto !important; }
#fullscreenToggle { right: 62px !important; left: auto !important; }

#sceneListToggle:hover,
#autorotateToggle:hover,
#fullscreenToggle:hover,
#sceneListToggle.enabled {
  background: var(--norte-ink) !important;
  box-shadow: 0 9px 22px rgba(30,46,46,.20);
}

#sceneListToggle img.icon,
#autorotateToggle img.icon,
#fullscreenToggle img.icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px !important;
  height: 21px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: brightness(0) opacity(.8);
}

#sceneListToggle:hover img.icon,
#autorotateToggle:hover img.icon,
#fullscreenToggle:hover img.icon,
#sceneListToggle.enabled img.icon {
  filter: brightness(0) invert(1);
}

/* 03. Listado de estancias: fondo NORTE y esquinas suaves */
#sceneList {
  padding-top: 62px !important;
  z-index: 10;
}

#sceneList .scenes {
  margin: 6px !important;
  width: calc(100% - 12px) !important;
  height: auto;
  padding: 7px 0;
  border: 1px solid var(--norte-border);
  border-radius: 16px;
  background: rgba(246,243,237,.97) !important;
  box-shadow: var(--norte-shadow);
  overflow: hidden;
}

#sceneList .scene {
  display: block;
  height: auto !important;
  min-height: 42px;
  padding: 11px 15px !important;
  color: var(--norte-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
  transition: background .2s ease;
}

#sceneList .scene:hover,
#sceneList .scene.current {
  background: rgba(82,108,99,.12) !important;
}

#sceneList .scene .text {
  color: inherit !important;
  font-family: inherit;
  font-weight: 500;
  font-size: 12px !important;
  text-shadow: none !important;
  line-height: 1.35 !important;
}

/* 04. Hotspots de desplazamiento entre habitaciones */
.link-hotspot {
  width: 42px !important;
  height: 42px !important;
  margin-left: -21px !important;
  margin-top: -21px !important;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(38,53,54,.82);
  box-shadow: 0 5px 16px rgba(0,0,0,.22);
  transition: background .2s ease;
}

.link-hotspot:hover {
  background: var(--norte-accent);
}

.link-hotspot-icon {
  width: 100% !important;
  height: 100% !important;
  padding: 7px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.link-hotspot-tooltip,
.info-hotspot .info-hotspot-title {
  border-radius: 10px !important;
  background: rgba(38,53,54,.94) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 12px !important;
  box-shadow: var(--norte-shadow);
}

/* 05. Eliminar los seis controles de flechas +/- inferiores.
   La vista sigue siendo interactiva por raton y gestos tactiles. */
.viewControlButton,
#viewUp, #viewDown, #viewLeft, #viewRight, #viewIn, #viewOut {
  display: none !important;
}

/* 06. Adaptacion a pantallas moviles */
@media (max-width: 600px) {
  #titleBar,
  body.fullscreen-enabled #titleBar {
    top: 12px !important;
    height: 34px !important;
    min-height: 34px;
    max-width: calc(100% - 148px) !important;
    padding: 0 12px !important;
  }
  #titleBar .sceneName { font-size: 10px !important; }
  #sceneListToggle,
  #autorotateToggle,
  #fullscreenToggle {
    top: 12px !important;
    width: 34px !important;
    height: 34px !important;
  }
  #sceneListToggle { left: 12px !important; }
  #autorotateToggle { right: 12px !important; }
  #fullscreenToggle { right: 54px !important; }
  #sceneList { padding-top: 54px !important; }
  #sceneList .scenes { max-height: calc(100vh - 74px); overflow-y: auto; }
  .link-hotspot { width: 38px !important; height: 38px !important; margin-left: -19px !important; margin-top: -19px !important; }
}

@media (prefers-reduced-motion: reduce) {
  #sceneListToggle, #autorotateToggle, #fullscreenToggle,
  #sceneList .scene, .link-hotspot { transition: none !important; }
}
