* {
  -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: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: #1a1a1a;
  color: #1a1a1a;
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: inherit;
}

/* ── Password gate / home screen ── */

#gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(120% 120% at 50% 0%, #2a2723 0%, #1a1a1a 45%, #0e0e0e 100%);
  opacity: 1;
  -webkit-transition: opacity 0.55s ease;
  transition: opacity 0.55s ease;
}

#gate.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Subtle bronze glow accent behind the card */
#gate:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 540px;
  height: 540px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 115, 85, 0.16) 0%, rgba(139, 115, 85, 0) 65%);
  pointer-events: none;
}

#gateCard {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 44px 36px 38px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.gate-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(193, 165, 130, 0.85);
  margin-bottom: 14px;
}

.gate-title {
  margin: 0 0 10px;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 8px;
  color: #f4efe7;
}

.gate-sub {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: rgba(244, 239, 231, 0.55);
}

#gateForm {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 12px;
}

#gateInput {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  letter-spacing: 1px;
  text-align: center;
  color: #f4efe7;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

#gateInput::-webkit-input-placeholder { color: rgba(244, 239, 231, 0.32); letter-spacing: 0.5px; }
#gateInput::placeholder { color: rgba(244, 239, 231, 0.32); letter-spacing: 0.5px; }

#gateInput:focus {
  border-color: rgba(193, 165, 130, 0.65);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.18);
}

#gateSubmit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(180deg, #d8c4a4 0%, #c1a582 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.2s, -webkit-transform 0.08s;
  transition: filter 0.2s, transform 0.08s;
}

.no-touch #gateSubmit:hover { -webkit-filter: brightness(1.06); filter: brightness(1.06); }
#gateSubmit:active { -webkit-transform: translateY(1px); transform: translateY(1px); }

.gate-error {
  height: 0;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #e89a8c;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.gate-error.show { height: auto; opacity: 1; }

@-webkit-keyframes gate-shake {
  10%, 90% { -webkit-transform: translateX(-2px); }
  20%, 80% { -webkit-transform: translateX(4px); }
  30%, 50%, 70% { -webkit-transform: translateX(-7px); }
  40%, 60% { -webkit-transform: translateX(7px); }
}
@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

#gateCard.shake {
  -webkit-animation: gate-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  animation: gate-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@media (max-width: 500px), (max-height: 560px) {
  .gate-title { font-size: 32px; letter-spacing: 6px; }
  #gateCard { padding: 36px 26px 30px; }
}

/* ── Panorama canvas ── */

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Title bar ── */

#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 100px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 16px rgba(0,0,0,0.04);
  z-index: 100;
}

/* No left offset needed — scene toggle moved to bottom drawer */
body.multiple-scenes #titleBar { left: 0; }
.mobile #titleBar { height: 52px; }
body.fullscreen-enabled #titleBar { right: 0; }

#titleBar .sceneName {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ── Autorotate toggle ── */

#autorotateToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  color: #2c2c2c;
  cursor: pointer;
  z-index: 110;
  transition: box-shadow 0.2s, background 0.2s;
}

.mobile #autorotateToggle { width: 44px; height: 44px; top: 4px; right: 4px; }
body.fullscreen-enabled #autorotateToggle { right: 52px; }
body.fullscreen-enabled.mobile #autorotateToggle { right: 52px; }

.no-touch #autorotateToggle:hover {
  box-shadow: 0 2px 18px rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.98);
}

#autorotateToggle .icon {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile #autorotateToggle .icon { width: 20px; height: 20px; }

#autorotateToggle .icon.off { display: block; }
#autorotateToggle .icon.on  { display: none; }
#autorotateToggle.enabled .icon.on  { display: block; }
#autorotateToggle.enabled .icon.off { display: none; }

/* ── Fullscreen toggle ── */

#fullscreenToggle {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  color: #2c2c2c;
  cursor: pointer;
  z-index: 110;
  transition: box-shadow 0.2s, background 0.2s;
}

.mobile #fullscreenToggle { width: 44px; height: 44px; top: 4px; right: 4px; }

body.fullscreen-enabled #fullscreenToggle { display: flex; }

.no-touch #fullscreenToggle:hover {
  box-shadow: 0 2px 18px rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.98);
}

#fullscreenToggle .icon {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mobile #fullscreenToggle .icon { width: 20px; height: 20px; }

#fullscreenToggle .icon.off { display: block; }
#fullscreenToggle .icon.on  { display: none; }
#fullscreenToggle.enabled .icon.on  { display: block; }
#fullscreenToggle.enabled .icon.off { display: none; }

/* ── Scene drawer — floating pill that expands horizontally ── */

#sceneDrawer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  -ms-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 200;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  height: 48px;
  width: 48px;
  max-width: 48px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  overflow: hidden;
  -webkit-transition: max-width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                      width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
                      box-shadow 0.25s;
  transition: max-width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s;
}

/* Expanded: pill grows horizontally */
#sceneDrawer.enabled {
  width: min(92vw, 640px);
  max-width: min(92vw, 640px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.14), 0 1px 2px rgba(0,0,0,0.06);
}

/* Toggle button — always a 48px circle on the right */
#sceneListToggle {
  -webkit-order: 2;
  order: 2;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.no-touch #sceneListToggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.drawer-chevron {
  width: 18px;
  height: 18px;
  color: rgba(0, 0, 0, 0.55);
  -webkit-transition: -webkit-transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  flex-shrink: 0;
}

/* Collapsed: chevron points up (open) — rotate to down when expanded (close) */
#sceneListToggle.enabled .drawer-chevron {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  color: rgba(0, 0, 0, 0.65);
}

/* Scene list — fills horizontal space to the left of the toggle */
#sceneList {
  -webkit-order: 1;
  order: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

#sceneDrawer.enabled #sceneList {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease 0.12s;
  transition: opacity 0.3s ease 0.12s;
}

/* Scene row — single horizontal scroll */
#sceneList .scenes {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 0 8px 0 14px;
  height: 100%;
  -webkit-align-items: center;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

#sceneList .scenes::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

#sceneList .scene {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: block;
}

#sceneList .scene .text {
  display: block;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #444;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  line-height: 1.3;
  -webkit-transition: background 0.15s, border-color 0.15s, color 0.15s;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  touch-action: manipulation;
}

.no-touch #sceneList .scene:hover .text {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.12);
}

#sceneList .scene.current .text {
  background: rgba(139, 115, 85, 0.11);
  border-color: rgba(139, 115, 85, 0.35);
  color: #6b5233;
  font-weight: 500;
}

/* Hide everything when single scene */
body.single-scene #sceneDrawer { display: none; }

/* ── Link hotspot — pulsing circles ── */

.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  cursor: pointer;
}

.mobile .link-hotspot {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
}

.link-hotspot-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

@-webkit-keyframes hotspot-pulse {
  0%   { -webkit-transform: scale(0.15); transform: scale(0.15); opacity: 0.9; }
  100% { -webkit-transform: scale(1);    transform: scale(1);    opacity: 0;   }
}

@keyframes hotspot-pulse {
  0%   { -webkit-transform: scale(0.15); transform: scale(0.15); opacity: 0.9; }
  100% { -webkit-transform: scale(1);    transform: scale(1);    opacity: 0;   }
}

.pulse-ring {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.90);
  top: 50%;
  left: 50%;
  margin: -26px 0 0 -26px;
  -webkit-animation: hotspot-pulse 2.1s cubic-bezier(0.35, 0, 0.65, 1) infinite;
  animation: hotspot-pulse 2.1s cubic-bezier(0.35, 0, 0.65, 1) infinite;
  pointer-events: none;
}

.pulse-ring.r2 {
  -webkit-animation-delay: 0.7s;
  animation-delay: 0.7s;
}

.pulse-ring.r3 {
  -webkit-animation-delay: 1.4s;
  animation-delay: 1.4s;
}

.pulse-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.40), 0 0 0 5px rgba(255, 255, 255, 0.22);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-ring {
    -webkit-animation: none;
    animation: none;
    opacity: 0.45;
  }
}

/* Tooltip */
.link-hotspot-tooltip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  -ms-transform: translateY(-50%) translateX(-6px);
  -webkit-transform: translateY(-50%) translateX(-6px);
  transform: translateY(-50%) translateX(-6px);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s, -webkit-transform 0.25s;
  transition: opacity 0.25s, transform 0.25s;
  cursor: pointer;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  -ms-transform: translateY(-50%) translateX(0);
  -webkit-transform: translateY(-50%) translateX(0);
  transform: translateY(-50%) translateX(0);
  pointer-events: all;
}

/* Fallback (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: 44px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  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: 8px;
  -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: 8px;
  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: 44px;
  height: 44px;
}

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

.info-hotspot .info-hotspot-icon {
  width: 55%;
  height: 55%;
  margin: 22.5%;
  -webkit-filter: brightness(0) opacity(0.55);
  filter: brightness(0) opacity(0.55);
}

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 44px;
  top: 0;
  width: 0;
  height: 44px;
  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: 216px;
  padding: 0 8px;
  -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;
  font-size: 13px;
  color: #1a1a1a;
  -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: 44px;
  width: 44px;
  border-top-right-radius: 8px;
  background: rgba(235, 235, 235, 0.95);
  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: -webkit-transform 0.3s 0.3s, transform 0.3s 0.3s, visibility 0s 0.6s;
  transition: -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: -webkit-transform 0.3s, transform 0.3s, visibility 0s 0s;
  transition: -webkit-transform 0.3s, transform 0.3s, visibility 0s 0s;
}

.info-hotspot .info-hotspot-close-icon {
  width: 60%;
  height: 60%;
  margin: 20%;
  -webkit-filter: brightness(0) opacity(0.45);
  filter: brightness(0) opacity(0.45);
}

.info-hotspot .info-hotspot-text {
  position: absolute;
  width: 304px;
  height: auto;
  max-height: 200px;
  top: 44px;
  left: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  color: #1a1a1a;
  font-size: 13px;
  line-height: 1.5;
  overflow-y: auto;
  visibility: hidden;
  -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: -webkit-transform 0.3s, transform 0.3s, visibility 0s 0.3s;
  transition: -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: -webkit-transform 0.3s 0.3s, transform 0.3s 0.3s, visibility 0s 0s;
  transition: -webkit-transform 0.3s 0.3s, transform 0.3s 0.3s, visibility 0s 0s;
}

/* ── Info hotspot modal (mobile) ── */

.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: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  line-height: 1.2em;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.22s ease-in-out 0.5s, visibility 0s 0.72s;
  transition: opacity 0.22s ease-in-out 0.5s, visibility 0s 0.72s;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.22s ease-in-out, visibility 0s 0s;
  transition: opacity 0.22s ease-in-out, visibility 0s 0s;
}

.info-hotspot-modal .info-hotspot-header {
  position: absolute;
  top: 60px;
  left: 16px;
  right: 16px;
  width: auto;
  height: 52px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px 14px 0 0;
  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; }

.info-hotspot-modal .info-hotspot-icon-wrapper { width: 52px; height: 52px; }
.info-hotspot-modal .info-hotspot-icon {
  width: 55%;
  height: 55%;
  margin: 22.5%;
  -webkit-filter: brightness(0) opacity(0.5);
  filter: brightness(0) opacity(0.5);
}

.info-hotspot-modal .info-hotspot-title-wrapper {
  position: absolute;
  top: 0;
  left: 52px;
  right: 52px;
  height: 52px;
  padding: 0 12px;
}

.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;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  -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: 52px;
  height: 52px;
  background: rgba(235, 235, 235, 0.9);
  border-radius: 0 14px 0 0;
  cursor: pointer;
}

.info-hotspot-modal .info-hotspot-close-icon {
  width: 60%;
  height: 60%;
  margin: 20%;
  -webkit-filter: brightness(0) opacity(0.45);
  filter: brightness(0) opacity(0.45);
}

.info-hotspot-modal .info-hotspot-text {
  position: absolute;
  top: 112px;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 0 0 14px 14px;
  overflow-y: auto;
  opacity: 0;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.55;
  -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 (hidden by default) ── */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

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