html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #111827;
  color: #f8fafc;
}

button {
  font: inherit;
}

#pano {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#titleBar {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: calc(100vw - 220px);
  padding: 11px 18px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(14px);
  text-align: center;
  z-index: 5;
}

#titleBar h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

#fixedLogo {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 132px;
  height: 54px;
  z-index: 9;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  padding: 8px 12px;
  box-sizing: border-box;
}

#fixedLogo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#sceneList {
  position: absolute;
  top: 92px;
  left: 24px;
  width: 170px;
  background: rgba(17, 24, 39, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
  transform: translateX(-220px);
  transition: transform 180ms ease;
  z-index: 8;
}

#sceneList.enabled {
  transform: translateX(0);
}

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

#sceneList .scene {
  display: block;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 6px;
}

#sceneList .scene .text {
  padding: 12px 13px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.2;
}

#sceneList .scene:hover .text {
  background: rgba(20, 184, 166, 0.22);
  color: #ffffff;
}

.controlToggle,
.viewControlButton {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  cursor: pointer;
  z-index: 8;
  backdrop-filter: blur(14px);
}

.controlToggle:hover,
.viewControlButton:hover {
  background: rgba(20, 184, 166, 0.74);
}

.controlToggle .on,
.controlToggle.enabled .off {
  display: none;
}

.controlToggle.enabled .on {
  display: inline;
}

#autorotateToggle {
  top: 24px;
  right: 76px;
}

#fullscreenToggle {
  top: 24px;
  right: 24px;
}

.fullscreen-disabled #fullscreenToggle {
  display: none;
}

.viewControlButton {
  right: 24px;
  bottom: 24px;
  font-size: 24px;
  line-height: 1;
}

.viewControlButton-3 { right: 74px; bottom: 74px; }
.viewControlButton-4 { right: 24px; bottom: 74px; }
.viewControlButton-5 { right: 74px; bottom: 24px; }
.viewControlButton-6 { right: 24px; bottom: 24px; }

.hotspot {
  position: relative;
}

.link-hotspot {
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.link-hotspot-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px;
  margin-left: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip,
.link-hotspot:focus-within .link-hotspot-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.info-hotspot {
  line-height: 1.2;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.info-hotspot:hover,
.info-hotspot.visible {
  opacity: 1;
}

.info-hotspot-header {
  position: relative;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 25px;
  background: rgb(103, 115, 131);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  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-header:hover {
  width: 350px;
  border-radius: 5px 0 0 0;
}

.info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.info-hotspot-title-wrapper {
  position: absolute;
  left: 50px;
  top: 0;
  width: 0;
  height: 50px;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  white-space: nowrap;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper,
.desktop.no-touch .info-hotspot-header:hover .info-hotspot-title-wrapper {
  width: 250px;
  padding: 0 8px;
}

.info-hotspot-title-wrapper:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.info-hotspot-title {
  display: inline-block;
  vertical-align: middle;
  font-size: 19px;
  font-weight: 500;
}

.info-hotspot-close-wrapper {
  position: absolute;
  left: 300px;
  top: 0;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 0 5px 0 0;
  background: rgb(78, 88, 104);
  color: #ffffff;
  font-size: 46px;
  line-height: 44px;
  cursor: pointer;
  visibility: hidden;
  transform: perspective(200px) rotateY(90deg);
  transform-origin: 0 50%;
  transition: transform 0.3s, visibility 0s 0.3s;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible;
  transform: perspective(200px) rotateY(0deg);
  transition: transform 0.3s, visibility 0s 0s;
}

.info-hotspot-text {
  position: absolute;
  top: 50px;
  left: 0;
  width: 350px;
  max-height: 220px;
  box-sizing: border-box;
  padding: 10px;
  overflow: auto;
  visibility: hidden;
  background: rgba(58, 70, 90, 0.96);
  color: #ffffff;
  font-size: 19px;
  line-height: 1.22;
  transform: perspective(200px) rotateX(-90deg);
  transform-origin: 50% 0;
  transition: transform 0.3s, visibility 0s 0.3s;
  scrollbar-color: rgba(255, 255, 255, 0.72) rgba(255, 255, 255, 0.14);
}

.desktop .info-hotspot.visible .info-hotspot-text {
  visibility: visible;
  transform: perspective(200px) rotateX(0deg);
  transition: transform 0.3s 0.15s, visibility 0s 0s;
}

.style-info-hotspot {
  width: 66px;
  height: 66px;
  margin-left: -30px;
  margin-top: -30px;
}

.style-info-hotspot .icon_wrapper {
  width: 100%;
  height: 100%;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0);
  opacity: 0.85;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.style-info-hotspot .icon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: rgba(37, 170, 225, 0.88);
  transition: all 0.2s ease-in-out;
}

.style-info-hotspot .icon_wrapper:hover {
  border: 6px solid #ffffff;
}

.style-info-hotspot .icon_wrapper:hover .icon {
  border-color: rgba(255, 255, 255, 0.55);
}

.style-info-hotspot .inner_icon {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.2s ease-in-out;
}

.style-info-hotspot .closeIcon {
  transform: rotate(45deg);
}

.style-info-hotspot .icon1 {
  width: 4px;
  height: 26px;
  position: absolute;
  top: 16px;
  left: 27px;
  border-radius: 10px;
  background-color: #ffffff;
}

.style-info-hotspot .icon2 {
  width: 26px;
  height: 4px;
  position: absolute;
  top: 27px;
  left: 16px;
  border-radius: 10px;
  background-color: #ffffff;
}

.style-info-hotspot .tip,
.style-info-hotspot .content {
  position: absolute;
  left: 100px;
  top: 10px;
  width: 280px;
  background-color: #ffffff;
  color: #111827;
  padding: 1em;
  border-radius: 5px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.style-info-hotspot .tip {
  opacity: 0;
  pointer-events: none;
  transform-origin: -2em 50%;
  transform: translate3d(0, 0, 0) rotate3d(1, 1, 1, 30deg);
  transition: opacity 0.3s, transform 0.3s;
}

.style-info-hotspot .tip::before,
.style-info-hotspot .tip::after {
  content: "";
  position: absolute;
  right: 99%;
}

.style-info-hotspot .tip::before {
  height: 100%;
  width: 3em;
}

.style-info-hotspot .tip::after {
  width: 1.8em;
  height: 1.8em;
  top: 50%;
  margin: -0.9em 0 0;
  background: url("assets/hotspots/tooltip.svg") no-repeat center center;
  background-size: 100%;
}

.style-info-hotspot:hover .tip {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotate3d(0, 0, 0, 0);
}

.style-info-hotspot.expanded {
  z-index: 12;
}

.style-info-hotspot .content,
.style-info-hotspot.expanded:hover .tip {
  opacity: 0;
  pointer-events: none;
}

.style-info-hotspot.expanded .content {
  opacity: 1;
  pointer-events: all;
}

.style-info-hotspot .content {
  padding: 0;
  transform: scaleY(0);
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: top center;
}

.style-info-hotspot.expanded .content {
  opacity: 1;
  pointer-events: all;
  transform: scaleY(1);
}

.style-info-hotspot .content-form {
  padding: 12px 14px;
}

.style-info-hotspot .content-form > * {
  margin: 0 0 12px;
}

.style-info-hotspot .content-form > *:last-child {
  margin-bottom: 0;
}

.style-info-hotspot .close {
  padding: 9px 12px;
  border: 2px solid #25aae1;
  background-color: #25aae1;
  color: #ffffff;
  cursor: pointer;
}

.style-tooltip-hotspot {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  perspective: 500px;
  transition: opacity 0.2s;
}

.style-tooltip-hotspot:hover {
  z-index: 13;
}

.style-tooltip-hotspot .out {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 4px;
  border: 4px solid rgba(255, 255, 255, 0);
  border-radius: 50%;
  cursor: pointer;
  transition: border 0.3s ease-in-out;
}

.style-tooltip-hotspot .in {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 50%;
  background-color: #25aae1;
  box-sizing: border-box;
  color: #444444;
  text-align: center;
  font-size: 2em;
  font-family: cursive;
  transition: background-color 0.3s ease-in-out;
}

.style-tooltip-hotspot .in .image {
  width: 24px;
  height: 24px;
  background-image: url("assets/hotspots/info.png");
  background-size: 24px;
  background-position: 0 24px;
}

.style-tooltip-hotspot .out:hover {
  border-color: #ffffff;
}

.style-tooltip-hotspot .out:hover .in {
  background-color: #ffffff;
}

.style-tooltip-hotspot .out:hover .in .image {
  background-position: 0 0;
}

.style-tooltip-hotspot .tip {
  position: absolute;
  left: 80px;
  top: 0;
  width: 220px;
  background-color: #ffffff;
  color: #111827;
  border-radius: 5px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: rotateZ(5deg) rotateY(40deg);
  transform-origin: left center;
  transition: all 0.25s;
  overflow: hidden;
}

.style-tooltip-hotspot:hover .tip {
  opacity: 1;
  pointer-events: all;
  transform: none;
}

.style-tooltip-hotspot .tip p {
  margin: 0;
  padding: 0.5em;
  background-color: #25aae1;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  color: #eeeeee;
  font-size: 16px;
  text-align: center;
}

.style-tooltip-hotspot .tip-body {
  padding: 0.75em;
  font-size: 14px;
  line-height: 1.35;
}

.rotate-hotspot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  perspective: 500px;
}

.rotate-hotspot:hover {
  z-index: 14;
}

.rotate-img,
.rotate-content {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-position: center center;
  transition: all 0.4s ease-in-out;
  transform-origin: 50% 0%;
}

.rotate-img {
  background: #ffffff url("assets/hotspots/microsoft-logo.svg") no-repeat center center;
  background-size: 82%;
}

.rotate-content {
  box-sizing: border-box;
  padding: 20px;
  background: #ffffff;
  color: #111827;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 0, -96px) rotate3d(1, 0, 0, 90deg);
}

.rotate-content h1 {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.rotate-content p {
  margin: 0;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 15px;
}

.rotate-hotspot:hover .rotate-img {
  opacity: 0;
  transform: translate3d(0, 84px, 0) rotate3d(1, 0, 0, -90deg);
}

.rotate-hotspot:hover .rotate-content {
  opacity: 1;
  transform: rotate3d(1, 0, 0, 0deg);
}

.modal {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 20;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
}

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100vh - 72px);
  overflow: auto;
  box-sizing: border-box;
  padding: 26px;
  background: #f8fafc;
  color: #172033;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #e5e7eb;
  color: #111827;
  font-size: 24px;
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-card h2 {
  margin: 0 36px 14px 0;
  font-size: 26px;
  line-height: 1.12;
}

.modal-card p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.modal-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.modal-card li {
  margin: 7px 0;
}

.modal-action {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 640px), (max-height: 520px) {
  #titleBar {
    top: 76px;
    max-width: calc(100vw - 40px);
  }

  #titleBar h1 {
    font-size: 14px;
  }

  #fixedLogo {
    left: 18px;
    top: 18px;
    width: 112px;
    height: 46px;
    padding: 7px 10px;
  }

  #sceneList {
    top: 76px;
    left: 18px;
    width: 150px;
  }

  #autorotateToggle {
    right: 68px;
    top: 18px;
  }

  #fullscreenToggle {
    right: 18px;
    top: 18px;
  }

  .info-hotspot.visible .info-hotspot-header,
  .no-touch .info-hotspot-header:hover {
    width: 310px;
  }

  .info-hotspot.visible .info-hotspot-title-wrapper,
  .no-touch .info-hotspot-header:hover .info-hotspot-title-wrapper {
    width: 210px;
  }

  .info-hotspot-close-wrapper {
    left: 260px;
  }

  .info-hotspot-text {
    width: min(310px, calc(100vw - 40px));
    max-height: 190px;
    font-size: 16px;
  }

  .info-hotspot.visible .info-hotspot-close-wrapper {
    visibility: visible;
    transform: perspective(200px) rotateY(0deg);
  }

  .info-hotspot.visible .info-hotspot-text {
    visibility: visible;
    transform: perspective(200px) rotateX(0deg);
  }

  .viewControlButton {
    width: 38px;
    height: 38px;
    right: 18px;
    bottom: 18px;
  }

  .viewControlButton-3 { right: 64px; bottom: 64px; }
  .viewControlButton-4 { right: 18px; bottom: 64px; }
  .viewControlButton-5 { right: 64px; bottom: 18px; }
  .viewControlButton-6 { right: 18px; bottom: 18px; }
}
