* {
  box-sizing: border-box;
}
/* Scope styles to the tour, not the Divi page */
.viewer {
  font-family: Arial, Helvetica, sans-serif;
}
.viewer {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
}
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  background: #111;
}
.stage.is-dragging {
  cursor: grabbing;
}

/* This wrapper is the key change: image + hotspots transform together. */
.scene-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: center center;
  will-change: transform;
}

.tour-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.current {
  z-index: 1;
}
.next-layer {
  z-index: 10;
  opacity: 0;
}

.viewer.transitioning .hotspot,
.viewer.transitioning .info-card {
  opacity: 0 !important;
  pointer-events: none !important;
}

.nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 76px;
  height: 116px;
  border: 0;
  color: #fff;
  font-size: 78px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  transition:
    background 0.2s,
    transform 0.2s;
  padding-bottom: 8px;
}
.nav:hover {
  background: rgba(0, 0, 0, 0.34);
  transform: scale(1.04);
}
.prev {
  left: 0;
}
.next {
  right: 0;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.zoom-controls {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  gap: 4px;
}
.zoom-controls button {
  height: 42px;
  min-width: 42px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(15, 10, 20, 0);
  color: #fff;
  font-size: 27px;
  cursor: pointer;
  backdrop-filter: blur(5px);
}
.zoom-controls .reset {
  font-size: 12px;
  padding: 0 12px;
  letter-spacing: 0.08em;
}

.view-label {
  position: absolute;
  left: 50%;
  bottom: 23px;
  translate: -50% 0;
  z-index: 35;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 4px #000;
  background: rgba(0, 0, 0, 0.18);
  padding: 7px 10px;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  width: 46px;
  height: 54px;
  border: 0;
  background: transparent;
  z-index: 20;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
  transform: translate(-50%, -50%);
}
.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.hotspot:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.hotspot:after {
  content: "";
  position: absolute;
  left: 20px;
  top: 31px;
  width: 3px;
  height: 17px;
  background: #fff;
  transform: rotate(28deg);
  transform-origin: top;
}

.info-card {
  position: absolute;
  left: 20.5%;
  top: 42%;
  z-index: 25;
  width: min(310px, 34vw);
  background: #fff;
  color: #222;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.info-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
}
.info-card header {
  height: 42px;
  background: #120023;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 18px;
  font-size: 13px;
}
.info-card header button {
  width: 40px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.info-card > div {
  padding: 14px 18px 16px;
  line-height: 1.45;
}

/* Image transitions between stills. */
.enter-right {
  animation: enterRight 0.68s cubic-bezier(0.22, 0.72, 0.22, 1) forwards;
}
.exit-left {
  animation: exitLeft 0.68s cubic-bezier(0.22, 0.72, 0.22, 1) forwards;
}
.enter-left {
  animation: enterLeft 0.68s cubic-bezier(0.22, 0.72, 0.22, 1) forwards;
}
.exit-right {
  animation: exitRight 0.68s cubic-bezier(0.22, 0.72, 0.22, 1) forwards;
}

@keyframes enterRight {
  0% {
    opacity: 0;
    transform: translateX(7%) scale(1.08);
    filter: brightness(0.72) blur(2px);
  }
  45% {
    opacity: 1;
    filter: brightness(0.92) blur(0.4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
}
@keyframes exitLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
  100% {
    opacity: 0;
    transform: translateX(-7%) scale(1.05);
    filter: brightness(0.72) blur(2px);
  }
}
@keyframes enterLeft {
  0% {
    opacity: 0;
    transform: translateX(-7%) scale(1.08);
    filter: brightness(0.72) blur(2px);
  }
  45% {
    opacity: 1;
    filter: brightness(0.92) blur(0.4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
}
@keyframes exitRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
  }
  100% {
    opacity: 0;
    transform: translateX(7%) scale(1.05);
    filter: brightness(0.72) blur(2px);
  }
}

@media (max-width: 700px) {
  .nav {
    width: 52px;
    height: 88px;
    font-size: 56px;
  }
  .info-card {
    width: min(280px, 75vw);
  }
  .view-label {
    bottom: 72px;
    font-size: 10px;
  }
}

/* PDF-inspired compact white controls and outlined pin markers */
.nav {
  width: 40px;
  height: 58px;
  font-size: 46px;
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.75);
  color: #292929;
}
.next {
  border-radius: 6px 0 0 6px;
  background: rgba(255, 255, 255, 0.75);
}
.nav:hover {
  background: #fff;
}
.zoom-controls {
  left: 12px;
  bottom: 12px;
  gap: 0;
}
.zoom-controls button {
  height: 30px;
  min-width: 30px;
  background: rgba(20, 20, 20, 0);
  font-size: 21px;
}
.zoom-controls .reset {
  font-size: 10px;
}
.hotspot {
  width: 30px;
  height: 38px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}
.hotspot:before {
  left: 7px;
  top: 3px;
  width: 16px;
  height: 23px;
  border: 2px solid white;
  border-radius: 60% 60% 60% 60%;
  transform: rotate(-18deg);
  background: rgba(255, 255, 255, 0.07);
}
.hotspot:after {
  left: 14px;
  top: 26px;
  width: 2px;
  height: 8px;
  transform: rotate(16deg);
}
.hotspot.waypoint:before {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.info-card {
  width: min(280px, 75vw);
  font-size: 13px;
}
.info-card header {
  height: 32px;
  padding-left: 10px;
  font-size: 12px;
}
.info-card header button {
  height: 32px;
  width: 32px;
  font-size: 20px;
}
.info-card > div {
  padding: 12px;
}
@media (max-width: 700px) {
  .info-card {
    bottom: auto;
    width: min(280px, 75vw);
  }
  .nav {
    width: 34px;
    height: 50px;
    font-size: 38px;
  }
}

/* v6: fine-line teardrop pins, matching the PDF reference rather than oval bubbles. */
.hotspot {
  width: 32px;
  height: 42px;
  padding: 0;
  transform: translate(-50%, -70%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.hotspot:hover {
  transform: translate(-50%, -70%) scale(1.12);
}
.hotspot::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 17px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 60% 60% 60% 60%;
  transform: rotate(-45deg);
  background: rgba(0, 0, 0, 0.04);
}
.hotspot::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  width: 2px;
  height: 8px;
  background: #fff;
  transform: rotate(25deg);
  transform-origin: top;
}
.hotspot.waypoint::before {
  background: rgba(255, 255, 255, 0.12);
}
.info-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* v7: supplied PNG assets for descriptive hotspots only. Navigation pins unchanged. */
.hotspot:not(.waypoint) {
  width: 40px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent url("assets/hot-spot.svg") center / contain no-repeat;
  transform: translate(-50%, -70%);
  filter: none;
}
.hotspot:not(.waypoint)::before,
.hotspot:not(.waypoint)::after {
  content: none;
  display: none;
}
.hotspot:not(.waypoint):hover,
.hotspot:not(.waypoint):focus-visible,
.hotspot:not(.waypoint):active,
.hotspot:not(.waypoint).is-active {
  background-image: url("assets/hot-spot-clicked.svg");
  transform: translate(-50%, -70%);
}

/* V8: individually positionable hotspot wrappers. */
.hotspot-anchor {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 20;
  overflow: visible;
}
.hotspot-anchor .hotspot {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  cursor: pointer;
}
/* Information icon PNGs */
.hotspot-anchor .hotspot:not(.waypoint) {
  width: 40px;
  height: 48px;
  background: transparent url("assets/hot-spot.svg") center/contain no-repeat;
  border: 0;
  transform: translate(-50%, -70%);
}
.hotspot-anchor .hotspot:not(.waypoint):hover,
.hotspot-anchor .hotspot:not(.waypoint):focus-visible,
.hotspot-anchor .hotspot:not(.waypoint).is-active {
  background-image: url("assets/hot-spot-clicked.svg");
}
/* Navigation icon PNGs */
.hotspot-anchor .hotspot.waypoint {
  width: 38px;
  height: 46px;
  background: transparent url("assets/nav-spot.png") center/contain no-repeat;
  border: 0;
  transform: translate(-50%, -70%);
  filter: none;
}
.hotspot-anchor .hotspot.waypoint:hover,
.hotspot-anchor .hotspot.waypoint:focus-visible,
.hotspot-anchor .hotspot.waypoint:active,
.hotspot-anchor .hotspot.waypoint.is-active {
  background-image: url("assets/nav-spot-clicked.png");
}
.hotspot-anchor .hotspot::before,
.hotspot-anchor .hotspot::after {
  display: none !important;
  content: none !important;
}
/* Transition the entire scene (image + hotspot anchors) out, and the next image in. */
.scene-content.fade-out {
  animation: sceneFadeOut 0.72s ease-in-out forwards;
}
.next-layer.fade-in {
  animation: sceneFadeIn 0.72s ease-in-out forwards;
}
@keyframes sceneFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sceneFadeIn {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.scene-content.forward-out {
  animation: forwardOut 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.next-layer.forward-in {
  animation: forwardIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes forwardOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}
@keyframes forwardIn {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.scene-content.turn-next-out {
  animation: turnNextOut 0.7s ease forwards;
}
.scene-content.turn-prev-out {
  animation: turnPrevOut 0.7s ease forwards;
}
.next-layer.turn-next-in {
  animation: enterRight 0.7s ease forwards;
}
.next-layer.turn-prev-in {
  animation: enterLeft 0.7s ease forwards;
}
@keyframes turnNextOut {
  to {
    opacity: 0;
    transform: translateX(-7%) scale(1.05);
  }
}
@keyframes turnPrevOut {
  to {
    opacity: 0;
    transform: translateX(7%) scale(1.05);
  }
}
.viewer.transitioning .hotspot-anchor {
  pointer-events: none;
}

/* Optional image under editable popup copy, e.g. baggage bay. */
.info-card .popup-photo {
  display: block;
  width: calc(100% - 24px);
  height: auto;
  max-height: 185px;
  object-fit: contain;
  margin: 0 12px 12px;
}
.info-card .popup-photo[hidden] {
  display: none !important;
}

/* Fixed bottom-right branding: remains in place while cabin images zoom and pan. */
.tour-logo {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 45;
  width: min(150px, 25vw);
  height: auto;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 700px) {
  .tour-logo {
    right: 12px;
    bottom: 12px;
    width: min(112px, 27vw);
  }
}

/* v14: SVG logo and fixed-size markers that track the zoomed photograph. */
.tour-logo {
  width: 350px;
  min-width: 350px;
  max-width: none;
  height: auto;
}
@media (max-width: 845px) {
  .tour-logo {
    width: 150px;
    min-width: 150px;
    max-width: none;
  }
}
.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}
.hotspot-layer .hotspot-anchor {
  pointer-events: none;
}
.hotspot-layer .hotspot-anchor .hotspot {
  pointer-events: auto;
}
.hotspot-layer .hotspot-anchor .hotspot:not(.waypoint) {
  width: 40px;
  height: 68px;
}
.hotspot-layer .hotspot-anchor .hotspot.waypoint {
  width: 41px;
  height: 50px;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

.viewer {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

/* 360-style zoom panel override */
.zoom-controls { position:absolute; left:18px; bottom:18px; z-index:40; display:grid; grid-template-columns: 1fr 1fr; gap:0; width:140px; border:3px solid rgba(255,255,255,.95); background:rgba(0,0,0,.08); box-sizing:border-box; }
.zoom-controls button { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:100%; min-width:0; height:58px; padding:0; border:0; border-radius:0; background:transparent; color:white; font:400 48px/1 Arial,sans-serif; cursor:pointer; backdrop-filter:none; }
.zoom-controls #zoomIn { border-right:3px solid white; }
.zoom-controls #zoomOut { font-size:48px; }
.zoom-controls .reset { grid-column:1 / -1; display:flex; gap:10px; align-items:center; border-top:3px solid white; font:italic 700 17px/1 Arial,sans-serif; letter-spacing:0; height:52px; padding:0 8px; }
.zoom-controls .reset-icon { font:400 38px/1 Arial,sans-serif; font-style:normal; }
.zoom-controls button:hover, .zoom-controls button:focus-visible { background:rgba(255,255,255,.16); }
@media(max-width:600px) { .zoom-controls { left:12px; bottom:12px; width:112px; border-width:2px; } .zoom-controls button { height:45px; font-size:36px; } .zoom-controls #zoomIn { border-right-width:2px; } .zoom-controls #zoomOut { font-size:36px; } .zoom-controls .reset { height:40px; border-top-width:2px; font-size:13px; gap:6px; } .zoom-controls .reset-icon { font-size:28px; } }
/* Zoom control block */
.zoom-controls {
    width: 106px;
    box-sizing: border-box;
}

/* Keep buttons proportional */
.zoom-controls button {
    box-sizing: border-box;
}