/* app-files/marzipano/style.css (COMPLETO - iframe clean + hotspot cerchio) */

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

/* ===== UI originale (lasciata) ===== */
#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;
  background-color: rgba(58,68,84,0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
.mobile #titleBar .sceneName { line-height: 40px; }

#fullscreenToggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(103,115,131,0.8);
}
.mobile #fullscreenToggle { width: 50px; height: 50px; }
body.fullscreen-enabled #fullscreenToggle { display: block; }
#fullscreenToggle .icon { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; }
.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; }

#autorotateToggle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(103,115,131,0.8);
}
.mobile #autorotateToggle { width: 50px; height: 50px; }
body.fullscreen-enabled #autorotateToggle { right: 40px; }
body.fullscreen-enabled.mobile #autorotateToggle { right: 50px; }
#autorotateToggle .icon { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; }
.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; }

#sceneListToggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(103,115,131,0.8);
}
.mobile #sceneListToggle { width: 50px; height: 50px; }
#sceneListToggle .icon { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; }
.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; }

#sceneList {
  position: absolute;
  top: 0;
  left: -220px;
  padding-top: 40px;
  width: 220px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin-left: 0;
  transition: margin-left 0.5s ease-in-out;
}
.mobile #sceneList { padding-top: 50px; width: 100%; height: 100%; left: -100%; }
#sceneList.enabled { margin-left: 220px; }
.mobile #sceneList.enabled { margin-left: 100%; }
#sceneList .scenes { width: 100%; background-color: rgba(58,68,84,0.8); }
.mobile #sceneList .scenes { height: 100%; }
#sceneList .scene { display: block; width: 100%; height: 30px; }
.mobile #sceneList .scene { height: 40px; }
#sceneList .scene .text { width: 100%; height: 100%; padding: 0 15px; line-height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile #sceneList .scene .text { line-height: 40px; }
.no-touch #sceneList .scene:hover { background-color: rgba(103,115,131,0.8); }
#sceneList .scene.current { background-color: rgba(103,115,131,0.8); }
body.single-scene #sceneList, body.single-scene #sceneListToggle { display: none; }

/* ===== Hotspot wrapper base ===== */
.hotspot { position: absolute; }

/* ===== Hotspot LINK: cerchio stile matterport ===== */
.link-hotspot {
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  opacity: 0.72;
  transition: transform 0.12s ease, opacity 0.12s ease, filter 0.12s ease;
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.28));
}
.mobile .link-hotspot {
  width: 78px;
  height: 78px;
  margin-left: -39px;
  margin-top: -39px;
  opacity: 0.78;
}
.no-touch .link-hotspot:hover {
  opacity: 0.95;
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.45));
}

/* cerchio */
.mp-ring {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 6px solid rgba(255,255,255,0.92);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.12),
    0 0 20px rgba(255,255,255,0.34),
    0 12px 32px rgba(0,0,0,0.48);
  background: rgba(255,255,255,0.14);
  position: relative;
}

/* “hole” interno */
.mp-ring::after{
  content:'';
  position:absolute;
  inset: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.20);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.12);
}

/* ===== Bottoni hotspot tuoi (porte/navigazione) ===== */
.door-btn {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #1a73e8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  white-space: nowrap;
}
.no-touch .door-btn:hover { filter: brightness(1.07); }

/* ===== View control buttons ===== */
.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgba(103,115,131,0.8);
}
body.view-control-buttons .viewControlButton { display: block; }
@media (max-width: 600px) { body.view-control-buttons .viewControlButton { display: none; } }
.viewControlButton .icon { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; }
.viewControlButton-1 { margin-left: -145px; }
.viewControlButton-2 { margin-left: -95px; }
.viewControlButton-3 { margin-left: -45px; }
.viewControlButton-4 { margin-left: 5px; }
.viewControlButton-5 { margin-left: 55px; }
.viewControlButton-6 { margin-left: 105px; }

/* ===== iframe clean mode (nasconde UI) ===== */
body.mp-iframe, body.mp-iframe #pano {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
body.mp-iframe #sceneList,
body.mp-iframe #sceneListToggle,
body.mp-iframe #titleBar,
body.mp-iframe #autorotateToggle,
body.mp-iframe #fullscreenToggle,
body.mp-iframe .viewControlButton {
  display: none !important;
}


/* ===== Vista reale / Vista render ===== */
#topViewToggle,
.door-btn-top {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25000;
  display: none;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(26,115,232,0.96);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  white-space: nowrap;
}

#topViewToggle:hover,
.door-btn-top:hover {
  filter: brightness(1.07);
}

.mobile #topViewToggle,
.mobile .door-btn-top {
  top: 18px;
  font-size: 15px;
  padding: 13px 20px;
}

.door-hotspot-hidden {
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



/* ===== Etichette opzionali sui pin Marzipano ===== */
.link-hotspot-labeled .mp-ring {
  opacity: 0.38;
  transform: scale(0.72);
}

.link-hotspot-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(12, 17, 25, 0.92);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,.48), 0 0 18px rgba(255,255,255,.16);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

.mobile .link-hotspot-label {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 13px;
}

/* ===== FIX: la barra azioni è gestita dal Tree, non dentro Marzipano ===== */
#mpActionBar{
  display: none !important;
}
