html, body {
  height: 100%;
  margin: 0;
  background-color: #2b76df;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #ffffff;
}

#panorama {
  width: 100%;
  height: 100%;
  background-color: #2b76df;
}

#back-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background-color: #2b76df;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  padding: 10px;
  display: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#back-button svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#back-button:hover {
  background-color: #2b76df;
}

/* Styled info hotspot flags */
.pnlm-hotspot-base.custom-hotspot.hotspot-info {
  position: absolute;
  transform: translate(-50%, -50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 80px;
  background-color: #ffffff;
  transform: translateX(-1px);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2b76df;
  border: 2px solid #ffffff;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip {
  padding: 0;
  background: none;
  border: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span {
  visibility: visible !important;
  position: absolute !important;
  bottom: 80px !important;
  left: -1px !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  padding: 4px 12px;
  background-color: #2b76df;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 1rem;
  white-space: nowrap;
  border-radius: 0;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  max-width: none;
  text-align: left;
  transition: none;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip.tall > span {
  bottom: 100px !important;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip.left > span {
  left: auto !important;
  right: -1px !important;
  text-align: right;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span::after {
  display: none !important;
  content: none !important;
}

/* Pulsing scene hotspot */
.pnlm-hotspot-base.custom-hotspot.hotspot-scene {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: #2b76df;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  animation: hotspot-scene-pulse 1.6s ease-out infinite;
}

@keyframes hotspot-scene-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}

/* Scene tooltip: transparent background and no pointer arrow.*/
.pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 2.2rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  z-index: 1100;
  pointer-events: none;
}
.pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span::after {
  display: none !important;
  content: none !important;
}

/* OPTIONAL: VIDEO OVERLAY START */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.video-overlay.is-open {
  display: flex;
}

.video-overlay__inner {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-overlay__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-overlay__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
/* OPTIONAL: VIDEO OVERLAY END */

/* OPTIONAL: CONTENT OVERLAY START */
.content-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.content-overlay.is-open {
  display: flex;
}

.content-overlay__inner {
  position: relative;
  max-width: 520px;
  width: 90vw;
  max-height: 80vh;
  overflow: auto;
  padding: 24px;
  background: #2b76df;
  color: #ffffff;
  border-radius: 12px;
  box-sizing: border-box;
}

.content-overlay__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

.content-overlay__title {
  margin: 0 40px 0 0;
  font-size: 1.3rem;
}

.content-overlay__body {
  margin: 12px 0 16px;
  line-height: 1.5;
}

.content-overlay__link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}
/* OPTIONAL: CONTENT OVERLAY END */
