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

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

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

/* If there is a fullscreen button the title bar must make space for it */
body.fullscreen-enabled #titleBar {
  right: 80px;
}

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

/* If there are multiple scenes the title bar must make space for the scene list toggle */
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: rgb(58,68,84);
  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: rgb(103,115,131);
  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: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

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

/* If there is a fullscreen button, autorotate must placed a bit to the left */
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: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

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

#sceneListToggle .text {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 100%;
  line-height: 30px;
}

#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;
  -webkit-transition: margin-left 0.5s ease-in-out;
  transition: margin-left 0.5s ease-in-out;
}

.mobile #sceneList {
  padding-top: 50px;
}

#sceneList .scenes {
  width: 100%;
  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);
}

.mobile #sceneList {
  width: 100%;
  height: 100%;
  left: -100%;
}

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

.mobile #sceneList .scenes {
  height: 100%;
}

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

#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: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

#sceneList .scene.current {
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

/* Hide scene list when only a single scene exists */
body.single-scene #sceneList, body.single-scene #sceneListToggle {
  display: none;
}

/* Link hotspot */

.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.no-touch .link-hotspot:hover {
  opacity: 1;
}

.mobile .link-hotspot {
  width: 70px;
  height: 70px;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px; /* ( 60 - (16 + 2*8) ) / 2 */

  margin-left: 3px;

  font-size: 16px;

  max-width: 300px;

  padding: 8px 10px;

  border-radius: 5px;

  background-color: rgb(58,68,84);
  background-color: rgba(58,68,84,0.8);

  color: #fff;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  cursor: pointer;

  opacity: 0;

  -ms-transform: translateX(-8px);
  -webkit-transform: translateX(-8px);
  transform: translateX(-8px);

  -webkit-transition: -ms-transform 0.3s,
                      -webkit-transform 0.3s,
                      transform 0.3s,
                      opacity 0.3s;
  transition: -ms-transform 0.3s,
              -webkit-transform 0.3s,
              transform 0.3s,
              opacity 0.3s;
}

.mobile .link-hotspot {
  top: 19px; /* ( 70 - (16 + 2*8) ) / 2 */
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

/* Prevent tooltip from triggering */
.link-hotspot-tooltip {
  pointer-events: none;
}
.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  pointer-events: all;
}

/* Fallback mode without pointer-events (IE8-10) */
.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}
.no-touch .tooltip-fallback .link-hotspot:hover .link-hotspot-tooltip {
  display: block;
}

/* 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 */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103,115,131);
  background-color: rgba(103,115,131,0.8);
}

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

/* Hide controls when width is too small */
@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

/* Center is at margin-left: -20px */
.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;
}


/* Nearby places sidebar */
#nearbyToggle {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 1200;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(0,0,0,0.76);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.38);
  backdrop-filter: blur(10px);
}

#nearbyToggle:hover {
  background: rgba(20,20,20,0.92);
  transform: translateY(-1px);
}

#nearbyOverlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1250;
  background: rgba(0,0,0,0.30);
}

#nearbyPanel {
  position: absolute;
  top: 0;
  right: 0;
  width: 390px;
  max-width: calc(100vw - 28px);
  height: 100%;
  z-index: 1300;
  transform: translateX(104%);
  transition: transform 220ms ease;
  background: rgba(14,16,20,0.94);
  border-left: 1px solid rgba(255,255,255,0.10);
  box-shadow: -18px 0 40px rgba(0,0,0,0.38);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}

body.nearby-open #nearbyPanel {
  transform: translateX(0);
}

body.nearby-open #nearbyOverlay {
  display: block;
}

.nearby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.nearby-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.nearby-title {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}

.nearby-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

.nearby-close:hover {
  background: rgba(255,255,255,0.16);
}

.nearby-content {
  padding: 12px 12px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nearby-section {
  margin-bottom: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}

.nearby-category {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 12px 13px;
  background: rgba(255,255,255,0.075);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.nearby-count {
  min-width: 24px;
  height: 22px;
  line-height: 22px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255,255,255,0.16);
  font-size: 11px;
}

.nearby-list {
  padding: 8px;
}

.nearby-section.collapsed .nearby-list {
  display: none;
}

.nearby-card {
  padding: 11px 10px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.nearby-card:last-child {
  margin-bottom: 0;
}

.nearby-card:hover,
.nearby-card.current {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.20);
}

.nearby-card.current {
  box-shadow: inset 3px 0 0 #fff;
}

.nearby-card-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.nearby-card-desc {
  margin-top: 4px;
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.nearby-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.nearby-action {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 8px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}

.nearby-view {
  background: rgba(255,255,255,0.14);
}

.nearby-maps {
  background: rgba(32,120,255,0.72);
}

.nearby-action:hover {
  filter: brightness(1.12);
}

@media (max-width: 640px) {
  #nearbyToggle {
    right: 12px;
    bottom: 14px;
    padding: 10px 13px;
    font-size: 12px;
  }

  #nearbyPanel {
    width: 100%;
    max-width: 100%;
  }

  .nearby-header {
    padding: 16px 16px 12px;
  }

  .nearby-title {
    font-size: 18px;
  }
}

/* Reggio Suite custom cleanup: hide default Marzipano scene list. */
#sceneList,
#sceneListToggle {
  display: none !important;
}

/* Custom POI icons for link hotspots that point to real places. */
.poi-link-hotspot {
  width: 58px;
  height: 78px;
  margin-left: -29px;
  margin-top: -72px;
  opacity: 0.96;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
  transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.no-touch .poi-link-hotspot:hover {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.45));
}

.poi-link-hotspot .link-hotspot-icon {
  width: 58px;
  height: 78px;
  object-fit: contain;
}

.poi-link-hotspot .link-hotspot-tooltip {
  left: 50%;
  top: 66px;
  margin-left: 0;
  max-width: 210px;
  transform: translateX(-50%) translateY(6px);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  padding: 5px 8px;
  border-radius: 10px;
  text-align: center;
  background: rgba(0,0,0,0.78);
}

.no-touch .poi-link-hotspot:hover .link-hotspot-tooltip {
  transform: translateX(-50%) translateY(0);
}

/* Custom POI icon style for info hotspots inside single-place scenes. */
.custom-poi-hotspot .info-hotspot-header {
  width: 62px;
  height: 82px;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.custom-poi-hotspot .info-hotspot-icon-wrapper {
  width: 62px;
  height: 82px;
}

.custom-poi-hotspot .info-hotspot-icon {
  width: 62px;
  height: 82px;
  object-fit: contain;
}

.custom-poi-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 50%;
  top: 72px;
  width: auto;
  max-width: 210px;
  height: auto;
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.78);
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: none;
}

.custom-poi-hotspot .info-hotspot-title-wrapper:before {
  display: none;
}

.custom-poi-hotspot .info-hotspot-title {
  height: auto;
  line-height: 1.05;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.custom-poi-hotspot.visible .info-hotspot-text {
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  width: 260px;
  background: rgba(0,0,0,0.82);
}

/* Bottom sky timeline: quick access through all aerial views. */
#skyTimeline {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1050;
  width: min(760px, calc(100vw - 220px));
  transform: translateX(-50%);
  padding: 10px 16px 9px;
  border-radius: 18px;
  background: rgba(10,10,10,0.72);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  user-select: none;
}

.sky-title {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
}

.sky-rail {
  position: relative;
  height: 28px;
  cursor: pointer;
}

.sky-rail:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.32);
  transform: translateY(-50%);
}

.sky-rail-fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  transform: translateY(-50%);
}

.sky-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 16px solid #fff;
  transform: translate(-50%, -150%);
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
}

.sky-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.sky-dot.active {
  width: 12px;
  height: 26px;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.22);
}

.sky-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

@media (max-width: 768px) {
  #skyTimeline {
    width: calc(100vw - 28px);
    bottom: 78px;
    padding: 9px 12px 8px;
  }

  .poi-link-hotspot {
    width: 46px;
    height: 62px;
    margin-left: -23px;
    margin-top: -58px;
  }

  .poi-link-hotspot .link-hotspot-icon {
    width: 46px;
    height: 62px;
  }

  .poi-link-hotspot .link-hotspot-tooltip {
    top: 54px;
    font-size: 10px;
  }
}

.desktop .custom-poi-hotspot.visible .info-hotspot-header,
.desktop.no-touch .custom-poi-hotspot.visible .info-hotspot-header:hover,
.desktop.no-touch .custom-poi-hotspot .info-hotspot-header:hover {
  width: 62px;
  height: 82px;
  border-radius: 0;
  background: transparent;
}


/* Hide legacy Marzipano top bar/title, scene list toggle, and autorotate button */
#titleBar,
#sceneListToggle,
#autorotateToggle,
#fullscreenToggle {
  display: none !important;
}

body.multiple-scenes #titleBar {
  left: 0 !important;
}

#sceneList {
  display: none !important;
}


/* Refinement pass: cleaner POIs, hidden sky arrows, larger metro-style aerial timeline. */
.sky-link-hotspot {
  display: none !important;
}

.poi-link-hotspot {
  width: 50px !important;
  height: 68px !important;
  margin-left: -25px !important;
  margin-top: -64px !important;
  opacity: 0.94;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.34));
}

.no-touch .poi-link-hotspot:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 9px 13px rgba(0,0,0,0.46));
}

.poi-link-hotspot .link-hotspot-icon {
  width: 50px !important;
  height: 68px !important;
}

.poi-link-hotspot .link-hotspot-tooltip {
  top: 58px !important;
  padding: 4px 7px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  background: rgba(0,0,0,0.72) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.custom-poi-hotspot .info-hotspot-header,
.custom-poi-hotspot .info-hotspot-icon-wrapper,
.custom-poi-hotspot .info-hotspot-icon {
  width: 54px !important;
  height: 72px !important;
}

.custom-poi-hotspot .info-hotspot-title-wrapper {
  top: 62px !important;
  padding: 4px 7px !important;
  border-radius: 9px !important;
  background: rgba(0,0,0,0.74) !important;
}

.custom-poi-hotspot .info-hotspot-title {
  font-size: 10px !important;
  line-height: 1.05 !important;
}

#skyTimeline {
  width: min(1100px, calc(100vw - 230px)) !important;
  bottom: 20px !important;
  padding: 16px 22px 30px !important;
  border-radius: 20px !important;
  background: rgba(8,8,8,0.78) !important;
}

.sky-title {
  margin-bottom: 12px !important;
  font-size: 12px !important;
  letter-spacing: 0.11em !important;
}

.sky-rail {
  height: 44px !important;
}

.sky-rail:before,
.sky-rail-fill {
  height: 7px !important;
}

.sky-dot {
  width: 8px !important;
  height: 26px !important;
  background: rgba(255,255,255,0.9) !important;
}

.sky-stop-dot {
  width: 13px !important;
  height: 32px !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.14);
}

.sky-dot.active,
.sky-stop-dot.active {
  width: 16px !important;
  height: 36px !important;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.24), 0 6px 14px rgba(0,0,0,0.35) !important;
}

.sky-thumb {
  border-left-width: 12px !important;
  border-right-width: 12px !important;
  border-top-width: 18px !important;
}

.sky-labels {
  position: relative !important;
  height: 34px !important;
  margin-top: -2px !important;
  display: block !important;
  font-size: 9px !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: #fff !important;
}

.sky-station-label {
  position: absolute;
  min-width: max-content;
  max-width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.88);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  transform: translateX(-50%);
}

.sky-station-label.upper {
  top: 0;
}

.sky-station-label.lower {
  top: 17px;
}

.no-touch .sky-station-label:hover {
  color: #fff;
  transform: translateX(-50%) scale(1.04);
}

.nearby-maps {
  min-width: 96px;
}

@media (max-width: 768px) {
  #skyTimeline {
    width: calc(100vw - 24px) !important;
    bottom: 74px !important;
    padding: 12px 16px 28px !important;
  }

  .sky-station-label {
    font-size: 8px;
    max-width: 68px;
  }

  .poi-link-hotspot {
    width: 42px !important;
    height: 58px !important;
    margin-left: -21px !important;
    margin-top: -54px !important;
  }

  .poi-link-hotspot .link-hotspot-icon {
    width: 42px !important;
    height: 58px !important;
  }
}


/* Final pass: cleaner map UI, no authoring arrows, bigger metro bar, readable route notes. */
.sky-link-hotspot,
.link-hotspot.sky-link-hotspot,
.link-hotspot-tooltip:empty {
  display: none !important;
}

.poi-link-hotspot {
  width: 46px !important;
  height: 62px !important;
  margin-left: -23px !important;
  margin-top: -58px !important;
  opacity: 0.95 !important;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,0.36)) !important;
}

.poi-link-hotspot .link-hotspot-icon {
  width: 46px !important;
  height: 62px !important;
}

.poi-link-hotspot .link-hotspot-tooltip {
  top: 54px !important;
  padding: 5px 8px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  letter-spacing: 0.01em !important;
  background: rgba(0,0,0,0.76) !important;
}

.custom-poi-hotspot .info-hotspot-header,
.custom-poi-hotspot .info-hotspot-icon-wrapper,
.custom-poi-hotspot .info-hotspot-icon {
  width: 50px !important;
  height: 66px !important;
}

.custom-poi-hotspot .info-hotspot-title-wrapper {
  top: 58px !important;
}

#skyTimeline {
  width: min(1220px, calc(100vw - 190px)) !important;
  bottom: 18px !important;
  padding: 18px 26px 42px !important;
  border-radius: 22px !important;
  background: rgba(8,8,8,0.82) !important;
}

.sky-rail {
  height: 50px !important;
}

.sky-rail:before,
.sky-rail-fill {
  height: 8px !important;
}

.sky-dot {
  width: 8px !important;
  height: 28px !important;
}

.sky-stop-dot {
  width: 14px !important;
  height: 36px !important;
}

.sky-labels {
  height: 46px !important;
  margin-top: -6px !important;
}

.sky-station-label {
  max-width: 105px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
}

.sky-station-label.upper { top: 0 !important; }
.sky-station-label.lower { top: 23px !important; }

.nearby-card-route {
  margin-top: 5px;
  color: rgba(255,255,255,0.48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

@media (max-width: 768px) {
  #skyTimeline {
    width: calc(100vw - 18px) !important;
    bottom: 74px !important;
    padding: 14px 14px 42px !important;
  }
  .sky-station-label {
    max-width: 60px !important;
    font-size: 7.5px !important;
  }
  .sky-labels { height: 48px !important; }
}


/* --- Elegant final UI pass --- */
#nearbyToggle {
  top: 16px !important;
  right: 18px !important;
  bottom: auto !important;
  z-index: 1450 !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.72) !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.30) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

#nearbyToggle:hover {
  background: rgba(0,0,0,0.88) !important;
  border-color: rgba(255,255,255,0.42) !important;
}

.nearby-title {
  font-size: 19px !important;
}

/* Popup close button: same language as the black labels */
.info-hotspot .info-hotspot-close-wrapper,
.custom-poi-hotspot .info-hotspot-close-wrapper {
  left: 50% !important;
  top: 100px !important;
  width: 34px !important;
  height: 34px !important;
  margin-left: 118px !important;
  border-radius: 10px !important;
  background: rgba(0,0,0,0.76) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 7px 16px rgba(0,0,0,0.36) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.info-hotspot .info-hotspot-close-icon,
.custom-poi-hotspot .info-hotspot-close-icon {
  width: 58% !important;
  height: 58% !important;
  margin: 21% !important;
  filter: brightness(2) contrast(1.2) !important;
}

.custom-poi-hotspot.visible .info-hotspot-text {
  width: 270px !important;
  padding: 12px 13px !important;
  border-radius: 13px !important;
  background: rgba(0,0,0,0.76) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.38) !important;
  line-height: 1.18 !important;
}

.info-hotspot-directions {
  display: inline-block;
  margin-top: 2px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.info-hotspot-directions:hover {
  background: rgba(255,255,255,0.24);
}

/* Lower, thinner and cleaner sky timeline */
#skyTimeline {
  width: min(1080px, calc(100vw - 260px)) !important;
  bottom: 16px !important;
  padding: 11px 20px 24px !important;
  border-radius: 17px !important;
  background: rgba(8,8,8,0.76) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.30) !important;
}

.sky-title {
  margin-bottom: 6px !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
}

.sky-rail {
  height: 30px !important;
}

.sky-rail:before,
.sky-rail-fill {
  height: 5px !important;
}

.sky-dot {
  width: 6px !important;
  height: 20px !important;
  border-radius: 999px !important;
}

.sky-stop-dot {
  width: 10px !important;
  height: 26px !important;
}

.sky-dot.active,
.sky-stop-dot.active {
  width: 12px !important;
  height: 30px !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18), 0 6px 12px rgba(0,0,0,0.32) !important;
}

.sky-thumb {
  border-left-width: 9px !important;
  border-right-width: 9px !important;
  border-top-width: 14px !important;
  transform: translate(-50%, -145%) !important;
}

.sky-labels {
  height: 28px !important;
  margin-top: -5px !important;
}

.sky-station-label {
  max-width: 86px !important;
  font-size: 8.4px !important;
  line-height: 1.05 !important;
  color: rgba(255,255,255,0.86) !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.sky-station-label.upper { top: 0 !important; }
.sky-station-label.lower { top: 14px !important; }
.sky-station-label.edge-left { transform: translateX(0) !important; text-align: left !important; }
.sky-station-label.edge-right { transform: translateX(-100%) !important; text-align: right !important; }
.no-touch .sky-station-label.edge-left:hover { transform: translateX(0) scale(1.04) !important; }
.no-touch .sky-station-label.edge-right:hover { transform: translateX(-100%) scale(1.04) !important; }

@media (max-width: 768px) {
  #nearbyToggle {
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    padding: 9px 12px !important;
    font-size: 11px !important;
  }

  #skyTimeline {
    width: calc(100vw - 18px) !important;
    bottom: 16px !important;
    padding: 10px 12px 30px !important;
  }

  .sky-labels { height: 34px !important; }
  .sky-station-label {
    max-width: 54px !important;
    font-size: 7px !important;
  }
  .sky-station-label.lower { top: 17px !important; }
}


/* --- Michele requested alignment fixes: no overlaps, cleaner panel and timeline --- */
body.nearby-open #nearbyToggle {
  display: none !important;
}

.nearby-header {
  padding: 18px 52px 14px 18px !important;
  position: relative !important;
}

.nearby-close {
  position: absolute !important;
  top: 16px !important;
  right: 14px !important;
  z-index: 1505 !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 30px !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,0.72) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 7px 16px rgba(0,0,0,0.30) !important;
}

.nearby-count {
  display: none !important;
}

.nearby-category {
  justify-content: flex-start !important;
}

/* Info popup: keep the X visible even when there is the directions button */
.desktop .info-hotspot.visible .info-hotspot-close-wrapper,
.desktop .custom-poi-hotspot.visible .info-hotspot-close-wrapper,
.info-hotspot.visible .info-hotspot-close-wrapper,
.custom-poi-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  transition: none !important;
  z-index: 10050 !important;
  top: 86px !important;
  left: 50% !important;
  margin-left: 122px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(0,0,0,0.82) !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.40) !important;
}

.desktop .info-hotspot.visible .info-hotspot-close-icon,
.desktop .custom-poi-hotspot.visible .info-hotspot-close-icon,
.info-hotspot.visible .info-hotspot-close-icon,
.custom-poi-hotspot.visible .info-hotspot-close-icon {
  width: 56% !important;
  height: 56% !important;
  margin: 22% !important;
  filter: brightness(2) contrast(1.2) !important;
}

.custom-poi-hotspot.visible .info-hotspot-text {
  top: 106px !important;
}

/* Timeline: metro labels lower, title and pointer higher, zero overlap */
#skyTimeline {
  width: min(1110px, calc(100vw - 300px)) !important;
  bottom: 18px !important;
  padding: 10px 22px 34px !important;
  border-radius: 16px !important;
  overflow: visible !important;
}

.sky-title {
  margin-bottom: 12px !important;
  transform: translateY(-2px) !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

.sky-rail {
  height: 22px !important;
  margin-top: 2px !important;
  margin-bottom: 12px !important;
}

.sky-rail:before,
.sky-rail-fill {
  top: 50% !important;
  height: 4px !important;
}

.sky-dot {
  height: 20px !important;
  top: 50% !important;
}

.sky-stop-dot {
  width: 10px !important;
  height: 25px !important;
}

.sky-dot.active,
.sky-stop-dot.active {
  width: 13px !important;
  height: 30px !important;
}

.sky-thumb {
  top: 50% !important;
  border-left-width: 10px !important;
  border-right-width: 10px !important;
  border-top-width: 16px !important;
  transform: translate(-50%, -205%) !important;
  z-index: 4 !important;
}

.sky-labels {
  height: 42px !important;
  margin-top: 6px !important;
  overflow: visible !important;
}

.sky-station-label {
  max-width: 92px !important;
  font-size: 8.2px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

.sky-station-label.upper { top: 6px !important; }
.sky-station-label.lower { top: 24px !important; }
.sky-station-label.edge-right { transform: translateX(-100%) !important; padding-right: 2px !important; }
.no-touch .sky-station-label.edge-right:hover { transform: translateX(-100%) scale(1.04) !important; }

@media (max-width: 768px) {
  #skyTimeline {
    width: calc(100vw - 18px) !important;
    padding: 10px 12px 36px !important;
  }
  .sky-title { margin-bottom: 10px !important; }
  .sky-labels { height: 44px !important; margin-top: 5px !important; }
  .sky-station-label { max-width: 56px !important; font-size: 6.8px !important; }
  .sky-station-label.upper { top: 7px !important; }
  .sky-station-label.lower { top: 25px !important; }
}

/* --- Final micro-fix: popup X clearer + timeline spacing without overlaps --- */
.desktop .info-hotspot.visible .info-hotspot-close-wrapper,
.desktop .custom-poi-hotspot.visible .info-hotspot-close-wrapper,
.info-hotspot.visible .info-hotspot-close-wrapper,
.custom-poi-hotspot.visible .info-hotspot-close-wrapper {
  top: 82px !important;
  left: 50% !important;
  margin-left: 128px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.92) !important;
  border: 1px solid rgba(255,255,255,0.42) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.55) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.info-hotspot.visible .info-hotspot-close-wrapper::before,
.custom-poi-hotspot.visible .info-hotspot-close-wrapper::before {
  content: '×' !important;
  display: block !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 30px !important;
  font-weight: 800 !important;
  text-align: center !important;
  transform: translateY(-1px) !important;
}

.desktop .info-hotspot.visible .info-hotspot-close-icon,
.desktop .custom-poi-hotspot.visible .info-hotspot-close-icon,
.info-hotspot.visible .info-hotspot-close-icon,
.custom-poi-hotspot.visible .info-hotspot-close-icon {
  display: none !important;
}

.custom-poi-hotspot.visible .info-hotspot-text,
.info-hotspot.visible .info-hotspot-text {
  padding-top: 16px !important;
}

/* Keep "Vista dall'alto" high, move rail / thumb / labels lower */
#skyTimeline {
  padding: 9px 22px 39px !important;
}

.sky-title {
  margin-bottom: 0 !important;
  transform: translateY(-1px) !important;
}

.sky-rail {
  margin-top: 17px !important;
  margin-bottom: 14px !important;
}

.sky-thumb {
  transform: translate(-50%, -150%) !important;
}

.sky-labels {
  margin-top: 10px !important;
  height: 44px !important;
}

.sky-station-label.upper { top: 8px !important; }
.sky-station-label.lower { top: 27px !important; }

@media (max-width: 768px) {
  #skyTimeline { padding: 9px 12px 40px !important; }
  .sky-rail { margin-top: 15px !important; margin-bottom: 13px !important; }
  .sky-thumb { transform: translate(-50%, -145%) !important; }
  .sky-labels { margin-top: 9px !important; height: 45px !important; }
  .sky-station-label.upper { top: 8px !important; }
  .sky-station-label.lower { top: 27px !important; }
}


/* Final integration fixes */
#skyTimeline {
  display: none !important;
}
#skyTimeline.visible-timeline {
  display: block !important;
}

/* --- Micro fix: hotspot label style like "Luoghi di interesse" + slight label alignment --- */
.link-hotspot-tooltip,
.poi-link-hotspot .link-hotspot-tooltip,
.custom-poi-hotspot .info-hotspot-title-wrapper {
  background: rgba(0,0,0,0.72) !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.30) !important;
  color: #fff !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip,
.no-touch .poi-link-hotspot:hover .link-hotspot-tooltip,
.no-touch .custom-poi-hotspot:hover .info-hotspot-title-wrapper {
  background: rgba(0,0,0,0.88) !important;
  border-color: rgba(255,255,255,0.42) !important;
}

/* The labels/popup were visually a little left after the merge: shift only the UI label, not the actual hotspot position. */
.poi-link-hotspot .link-hotspot-tooltip,
.custom-poi-hotspot .info-hotspot-title-wrapper {
  margin-left: 8px !important;
}

.custom-poi-hotspot.visible .info-hotspot-text,
.info-hotspot.visible .info-hotspot-text {
  margin-left: 8px !important;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper,
.desktop .custom-poi-hotspot.visible .info-hotspot-close-wrapper,
.info-hotspot.visible .info-hotspot-close-wrapper,
.custom-poi-hotspot.visible .info-hotspot-close-wrapper {
  margin-left: 136px !important;
}

/* --- Timeline icon mode: remove always-visible station text, use icons + hover labels --- */
#skyTimeline {
  padding: 10px 22px 22px !important;
}

.sky-labels {
  display: none !important;
}

.sky-rail {
  margin-top: 16px !important;
  margin-bottom: 4px !important;
}

.sky-dot {
  overflow: visible !important;
}

.sky-stop-dot {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.16) !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) !important;
}

.sky-stop-dot.active {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255,255,255,0.16) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.30), 0 10px 24px rgba(0,0,0,0.45) !important;
}

.sky-stop-icon {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.55)) !important;
}

.sky-stop-dot.active .sky-stop-icon {
  width: 38px !important;
  height: 38px !important;
}

.sky-dot-tooltip {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 12px) !important;
  transform: translateX(-50%) translateY(4px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  background: rgba(0,0,0,0.84) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  border-radius: 999px !important;
  padding: 7px 11px !important;
  color: #fff !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: opacity 140ms ease, transform 140ms ease !important;
  z-index: 30 !important;
}

.no-touch .sky-stop-dot:hover .sky-dot-tooltip,
.sky-stop-dot:focus .sky-dot-tooltip,
.sky-stop-dot:focus-visible .sky-dot-tooltip {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

.sky-thumb {
  transform: translate(-50%, -158%) !important;
  z-index: 12 !important;
}

.sky-stop-dot.edge-left .sky-dot-tooltip,
.sky-dot:first-of-type .sky-dot-tooltip {
  left: 0 !important;
  transform: translateX(0) translateY(4px) !important;
}

.no-touch .sky-dot:first-of-type:hover .sky-dot-tooltip,
.sky-dot:first-of-type:focus .sky-dot-tooltip,
.sky-dot:first-of-type:focus-visible .sky-dot-tooltip {
  transform: translateX(0) translateY(0) !important;
}

.sky-dot:last-of-type .sky-dot-tooltip {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) translateY(4px) !important;
}

.no-touch .sky-dot:last-of-type:hover .sky-dot-tooltip,
.sky-dot:last-of-type:focus .sky-dot-tooltip,
.sky-dot:last-of-type:focus-visible .sky-dot-tooltip {
  transform: translateX(0) translateY(0) !important;
}

@media (max-width: 768px) {
  #skyTimeline {
    padding: 9px 12px 22px !important;
  }
  .sky-stop-dot {
    width: 30px !important;
    height: 30px !important;
  }
  .sky-stop-icon {
    width: 34px !important;
    height: 34px !important;
  }
  .sky-stop-dot.active .sky-stop-icon {
    width: 38px !important;
    height: 38px !important;
  }
  .sky-dot-tooltip {
    font-size: 9px !important;
    padding: 6px 9px !important;
  }
}

/* --- Timeline icons + always-visible station labels --- */
.sky-labels {
  display: block !important;
  height: 44px !important;
  margin-top: 10px !important;
  overflow: visible !important;
}

.sky-station-label {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 92px !important;
  font-size: 8.2px !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  pointer-events: auto !important;
}

.sky-station-label.upper { top: 8px !important; }
.sky-station-label.lower { top: 27px !important; }
.sky-station-label.edge-left { transform: translateX(0) !important; text-align: left !important; }
.sky-station-label.edge-right { transform: translateX(-100%) !important; text-align: right !important; padding-right: 2px !important; }
.no-touch .sky-station-label.edge-left:hover { transform: translateX(0) scale(1.04) !important; }
.no-touch .sky-station-label.edge-right:hover { transform: translateX(-100%) scale(1.04) !important; }

#skyTimeline {
  padding: 9px 22px 40px !important;
}

.sky-rail {
  margin-bottom: 13px !important;
}

@media (max-width: 768px) {
  #skyTimeline { padding: 9px 12px 40px !important; }
  .sky-labels { display: block !important; height: 45px !important; margin-top: 9px !important; }
  .sky-station-label { max-width: 56px !important; font-size: 6.8px !important; }
  .sky-station-label.upper { top: 8px !important; }
  .sky-station-label.lower { top: 27px !important; }
}
