@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  font-family:
    "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Montserrat", "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-accent: "ZT Mota", "Montserrat", "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-logo: "Zennor", "Montserrat", "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --vir-hauptgruen: #2c9435;
  --vir-dunkelgruen: #2e5d33;
  --vir-graphit: #444444;
  --vir-rubinrot: #8b3a3a;
  --vir-aschgrau: #8b3a3a;
  --vir-pergament: #f1e4c6;
  --vir-honig: #ded6c1;
  --vir-warmgrau: #d9d9d9;
  --white: #ffffff;
  --black: #000000;
  --panel: var(--vir-pergament);
  --panel-soft: var(--vir-honig);
  --line: var(--vir-warmgrau);
  --text: var(--vir-graphit);
  --muted: var(--vir-dunkelgruen);
  --accent: var(--vir-hauptgruen);
  --accent-strong: var(--vir-dunkelgruen);
  --danger: var(--vir-rubinrot);
  --glass: rgb(68 68 68 / 72%);
  --glass-soft: rgb(68 68 68 / 54%);
  --glass-strong: rgb(68 68 68 / 88%);
  --glass-line: rgb(217 217 217 / 42%);
  --shadow: rgb(68 68 68 / 28%);
  --shadow-strong: rgb(68 68 68 / 42%);
  --on-glass: var(--vir-pergament);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--vir-graphit);
  color: var(--text);
  font-family: var(--font-body);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.panel-section h2,
.panel-header h1,
.scene-title strong,
.web-map-link,
.layer-controls__title,
.scene-quick-nav__toggle strong,
.line-meta strong {
  font-family: var(--font-heading);
}

.scene-title span,
.scene-quick-nav__toggle span,
.scene-quick-nav__item span,
.info-card__eyebrow,
.panorama-map-marker {
  font-family: var(--font-accent);
}

input,
select,
textarea {
  max-width: 100%;
}

button,
select,
input[type="text"],
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
}

button {
  min-height: 38px;
  padding: 0 14px;
  background: var(--vir-graphit);
  color: var(--vir-pergament);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:hover:not(:disabled) {
  background: var(--vir-dunkelgruen);
  color: var(--vir-pergament);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(480px, 32vw, 560px);
  min-height: 100vh;
}

.viewer-region {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--vir-graphit);
}

.viewer {
  position: absolute;
  inset: 0;
}

.brand-logo {
  position: absolute;
  z-index: 58;
  top: 18px;
  left: 18px;
  display: grid;
  width: 180px;
  min-height: 0;
  padding: 0;
  place-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.brand-logo img {
  display: block;
  width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.carousel-toggle {
  position: absolute;
  z-index: 58;
  top: 70px;
  left: 18px;
  display: grid;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 5px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vir-pergament);
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.carousel-toggle img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 28%));
}

.carousel-toggle span {
  position: absolute;
  top: 50%;
  left: calc(100% + 7px);
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgb(68 68 68 / 86%);
  box-shadow: 0 10px 24px rgb(68 68 68 / 18%);
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.carousel-toggle:hover:not(:disabled),
.carousel-toggle:focus-visible,
.carousel-toggle.is-active {
  outline: 1px solid rgb(241 228 198 / 17%);
  background: rgb(68 68 68 / 9%);
  box-shadow:
    0 10px 24px rgb(68 68 68 / 10%),
    inset 0 1px 0 rgb(241 228 198 / 8%);
  backdrop-filter: blur(8px);
  transform: translateY(-1px);
}

.carousel-toggle:hover span,
.carousel-toggle:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}

.viewer-controls {
  position: absolute;
  z-index: 60;
  top: auto;
  bottom: 18px;
  right: 18px;
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.viewer-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: rgb(68 68 68 / 48%);
  color: var(--vir-pergament);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 30px rgb(68 68 68 / 18%);
  backdrop-filter: blur(8px);
  touch-action: manipulation;
}

.viewer-controls button:hover {
  background: rgb(44 148 53 / 22%);
}

.route-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-overlay.is-drawing {
  cursor: crosshair;
  pointer-events: auto;
}

.route-overlay.is-placing-arrow {
  cursor: copy;
}

.route-overlay.is-placing-info {
  cursor: help;
}

.topbar {
  position: absolute;
  z-index: 58;
  top: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, max-content) 44px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.icon-button,
.scene-title {
  pointer-events: auto;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(68 68 68 / 48%);
  color: var(--vir-pergament);
  font-size: 25px;
  line-height: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgb(68 68 68 / 18%);
  touch-action: manipulation;
}

.scene-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: min(620px, 70vw);
  padding: 10px 16px;
  border: 1px solid rgb(217 217 217 / 10%);
  border-radius: 6px;
  background: rgb(68 68 68 / 56%);
  color: rgb(241 228 198);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgb(68 68 68 / 16%);
}

.scene-title span {
  color: rgb(241 228 198);
  font-size: 13px;
  white-space: nowrap;
}

.scene-title strong {
  overflow: hidden;
  color: rgb(241 228 198);
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hide-info-points .tour-info,
.hide-navigation-arrows .tour-arrow {
  display: none;
}

.hide-route-lines .route-overlay path,
.hide-route-lines .route-overlay circle {
  display: none;
}

.web-map-link {
  position: absolute;
  z-index: 58;
  --menu-shift: 0px;
  top: 62px;
  right: 18px;
  width: 60px;
  height: 60px;
  min-height: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease,
    transform 520ms cubic-bezier(0.2, 1.45, 0.34, 1);
  transform: translateY(var(--menu-shift));
}

.web-map-link img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.web-map-link span,
.map-fab span {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  max-width: 160px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgb(68 68 68 / 78%);
  box-shadow: 0 10px 24px rgb(68 68 68 / 18%);
  color: var(--vir-pergament);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  z-index: 260;
  transform: translateY(-3px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.web-map-link:hover,
.web-map-link:focus-visible,
.map-fab:hover:not(:disabled),
.map-fab:focus-visible {
  z-index: 240;
  outline: 1px solid rgb(241 228 198 / 17%);
  background: rgb(68 68 68 / 9%);
  box-shadow:
    0 10px 24px rgb(68 68 68 / 10%),
    inset 0 1px 0 rgb(241 228 198 / 8%);
  backdrop-filter: blur(8px);
  transform: translateY(calc(var(--menu-shift) - 1px));
}

.web-map-link:hover span,
.web-map-link:focus-visible span,
.map-fab:hover:not(:disabled) span,
.map-fab:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.draw-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgb(217 217 217 / 14%);
  border-radius: 6px;
  background: rgb(68 68 68 / 82%);
  color: var(--accent);
  font-weight: 700;
}

.camera-link-toast {
  position: absolute;
  z-index: 230;
  left: 50%;
  bottom: 28px;
  max-width: min(520px, calc(100vw - 40px));
  padding: 10px 14px;
  border: 1px solid rgb(217 217 217 / 18%);
  border-radius: 6px;
  background: rgb(68 68 68 / 86%);
  box-shadow: 0 16px 42px rgb(68 68 68 / 30%);
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
  transform: translateX(-50%);
}

.scene-quick-nav {
  position: absolute;
  z-index: 80;
  left: 18px;
  bottom: 18px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: auto;
}

.layer-controls {
  position: absolute;
  z-index: 82;
  top: 18px;
  right: 18px;
  width: min(226px, calc(100vw - 36px));
  max-height: 210px;
  overflow: hidden;
  border: 1px solid rgb(217 217 217 / 14%);
  border-radius: 6px;
  background: rgb(68 68 68 / 76%);
  box-shadow: 0 16px 42px rgb(68 68 68 / 28%);
  color: var(--vir-pergament);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: max-height 160ms ease, background 160ms ease;
}

.layer-controls.is-collapsed {
  width: 104px;
  max-height: 36px;
}

.layer-controls:not(.is-collapsed) {
  z-index: 220;
}

.layer-controls__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  touch-action: manipulation;
}

.layer-controls__title {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-controls__state {
  color: var(--vir-pergament);
  transform: rotate(180deg);
  transition: transform 160ms ease, color 160ms ease;
}

.layer-controls.is-collapsed .layer-controls__state {
  transform: rotate(0deg);
}

.layer-controls__panel {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
  pointer-events: auto;
}

.layer-controls__panel[hidden] {
  display: none !important;
}

.layer-controls__panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 700;
}

.layer-controls__panel input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.scene-quick-nav__toggle {
  display: flex;
  align-items: center;
  max-width: 100%;
  min-height: 42px;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgb(217 217 217 / 10%);
  border-radius: 6px;
  background: rgb(68 68 68 / 56%);
  box-shadow: 0 16px 40px rgb(68 68 68 / 16%);
  backdrop-filter: blur(8px);
  touch-action: manipulation;
}

.scene-quick-nav__toggle:hover {
  background: rgb(68 68 68 / 68%);
}

.scene-quick-nav__toggle span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.scene-quick-nav__toggle strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-quick-nav__panel {
  position: absolute;
  z-index: 81;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(360px, calc(100vw - 36px));
  max-height: min(430px, calc(100vh - 130px));
  overflow: auto;
  padding: 8px;
  border: 1px solid rgb(217 217 217 / 12%);
  border-radius: 8px;
  background: rgb(68 68 68 / 88%);
  box-shadow: 0 22px 70px rgb(68 68 68 / 36%);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.scene-quick-nav__list {
  display: grid;
  gap: 6px;
}

.scene-quick-nav__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  text-align: left;
  background: transparent;
}

.scene-quick-nav__item:hover,
.scene-quick-nav__item.is-active {
  border-color: rgb(44 148 53 / 42%);
  background: rgb(44 148 53 / 12%);
}

.scene-quick-nav__item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.scene-quick-nav__item strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 480px;
  max-height: 100vh;
  padding: 22px;
  overflow: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.panel-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

code {
  color: var(--accent);
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.panel-section h2 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

select,
input[type="number"],
input[type="text"],
textarea {
  min-height: 38px;
  width: 100%;
  padding: 0 10px;
  background: var(--vir-pergament);
  color: var(--text);
}

textarea {
  min-height: 110px;
  padding: 10px;
  line-height: 1.45;
  resize: vertical;
}

input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--vir-pergament);
}

input[type="range"] {
  display: block;
  height: 38px;
  width: 100%;
  min-width: 0;
  margin: 0;
  accent-color: var(--accent);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.toolbar--stack {
  grid-template-columns: 1fr;
}

.field-hint {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-button {
  border-color: var(--vir-dunkelgruen);
  background: var(--accent);
  color: var(--vir-pergament);
  font-weight: 800;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
  color: var(--vir-pergament);
}

.danger-button {
  width: 100%;
  border-color: var(--danger);
  background: var(--danger);
  color: var(--vir-pergament);
}

.danger-button:hover:not(:disabled) {
  background: var(--vir-graphit);
  color: var(--vir-pergament);
}

.panel-section {
  display: grid;
  gap: 12px;
}

.panel-section h2 {
  margin: 0;
}

.line-list {
  display: grid;
  gap: 8px;
}

.line-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.line-item.is-active {
  border-color: var(--accent);
  background: var(--vir-honig);
}

.line-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.arrow-swatch {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.arrow-swatch svg {
  width: 20px;
  height: 20px;
}

.info-swatch {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.info-swatch svg {
  width: 20px;
  height: 20px;
}

.line-meta {
  overflow: hidden;
}

.line-meta strong,
.line-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-meta small {
  color: var(--muted);
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.style-grid .field {
  min-width: 0;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.panel-footer {
  position: sticky;
  bottom: -22px;
  display: grid;
  gap: 10px;
  margin: auto -22px -22px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

#saveStatus {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
}

.tour-hotspot-anchor {
  width: 0;
  height: 0;
}

.pnlm-hotspot.tour-hotspot-anchor {
  z-index: 20;
}

.spherical-carousel {
  position: absolute;
  inset: 0;
  z-index: 14;
  overflow: hidden;
  pointer-events: none;
  perspective: 760px;
  perspective-origin: 50% 50%;
}

.spherical-carousel__card {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  align-content: start;
  width: 220px;
  height: 132px;
  min-height: 132px;
  padding: 11px 13px;
  border: 1px solid rgb(241 228 198 / 22%);
  border-radius: 15px / 24px;
  background-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 10%),
    inset 0 22px 32px rgb(255 255 255 / 7%),
    inset 0 -30px 48px rgb(0 0 0 / 30%);
  color: var(--white);
  overflow: hidden;
  pointer-events: auto;
  text-align: left;
  text-shadow: 0 2px 7px rgb(0 0 0 / 78%);
  transform-origin: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  contain: layout paint style;
  will-change: transform, opacity;
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.spherical-carousel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  transform: scale(1);
  transform-origin: center;
  transition:
    filter 220ms ease,
    transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.spherical-carousel__card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 68%), rgb(0 0 0 / 10%) 46%, rgb(0 0 0 / 22%)),
    radial-gradient(ellipse at 50% -22%, rgb(255 255 255 / 24%), transparent 46%),
    linear-gradient(90deg, rgb(0 0 0 / 30%), transparent 18%, transparent 82%, rgb(0 0 0 / 30%)),
    linear-gradient(180deg, rgb(0 0 0 / 12%), transparent 34%, rgb(0 0 0 / 20%));
  content: "";
  pointer-events: none;
}

.spherical-carousel__card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 18px rgb(0 0 0 / 28%),
    inset 0 0 38px rgb(68 68 68 / 18%),
    inset 0 0 0 0 rgb(241 228 198 / 0%);
  content: "";
  pointer-events: none;
  transition: box-shadow 220ms ease;
}

.spherical-carousel__card strong {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: clamp(12px, 0.95vw, 16px);
  font-weight: 800;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spherical-carousel__card:hover:not(:disabled),
.spherical-carousel__card:focus-visible {
  border-color: rgb(241 228 198 / 76%);
  background-color: transparent;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 14%),
    inset 0 18px 34px rgb(255 255 255 / 10%),
    inset 0 -28px 46px rgb(0 0 0 / 30%),
    0 0 0 5px rgb(241 228 198 / 10%),
    0 0 26px rgb(241 228 198 / 20%);
  color: var(--white);
  filter: saturate(1.08) brightness(1.06);
}

.spherical-carousel__card:hover:not(:disabled) .spherical-carousel__media,
.spherical-carousel__card:focus-visible .spherical-carousel__media {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.055);
}

.spherical-carousel__card:hover:not(:disabled)::after,
.spherical-carousel__card:focus-visible::after {
  box-shadow:
    inset 0 0 18px rgb(0 0 0 / 18%),
    inset 0 0 36px rgb(241 228 198 / 18%),
    inset 0 0 0 1px rgb(241 228 198 / 24%);
}

.spherical-carousel__card.is-current {
  border-color: rgb(44 148 53 / 82%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 14%),
    inset 0 18px 34px rgb(255 255 255 / 8%),
    inset 0 -28px 46px rgb(0 0 0 / 30%),
    0 0 0 3px rgb(44 148 53 / 18%);
}

.tour-arrow {
  display: grid;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(217 217 217 / 16%);
  border-radius: 50%;
  background: rgb(68 68 68 / 10%);
  box-shadow: 0 10px 24px rgb(68 68 68 / 18%);
  backdrop-filter: blur(8px);
  transform: translate(-27px, -27px);
  overflow: visible;
}

.tour-arrow:hover {
  background: rgb(44 148 53 / 24%);
}

.tour-arrow svg {
  width: 38px;
  height: 38px;
}

.tour-arrow__shadow {
  fill: rgb(68 68 68 / 45%);
  transform: translateY(3px);
}

.tour-arrow__fill {
  fill: var(--accent);
}

.tour-arrow__stroke {
  fill: none;
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.tour-arrow:hover .tour-arrow__fill {
  fill: var(--vir-pergament);
}

.tour-arrow__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid rgb(217 217 217 / 18%);
  border-radius: 6px;
  background: rgb(68 68 68 / 88%);
  box-shadow: 0 12px 34px rgb(68 68 68 / 34%);
  color: var(--vir-pergament);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.tour-arrow:hover .tour-arrow__label,
.tour-arrow:focus-visible .tour-arrow__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tour-info {
  position: relative;
  display: grid;
  width: var(--info-button-size, 36px);
  height: var(--info-button-size, 36px);
  min-height: var(--info-button-size, 36px);
  padding: 0;
  place-items: center;
  border: 1px solid rgb(217 217 217 / 22%);
  border-radius: 50%;
  background: rgb(68 68 68 / 10%);
  box-shadow: 0 8px 18px rgb(68 68 68 / 24%);
  backdrop-filter: blur(8px);
  transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1);
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
  overflow: visible;
}

.tour-info::before,
.tour-info::after {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.76);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.tour-info::before {
  border: 1px solid rgb(241 228 198 / 58%);
  background:
    radial-gradient(circle at 32% 24%, rgb(241 228 198 / 42%), transparent 34%),
    radial-gradient(circle, rgb(241 228 198 / 18%), transparent 68%);
  box-shadow: 0 0 0 8px rgb(241 228 198 / 8%);
}

.tour-info::after {
  inset: 0;
  background: rgb(241 228 198 / 18%);
  mix-blend-mode: screen;
}

.tour-info:hover,
.tour-info:focus-visible {
  background: rgb(44 148 53 / 26%);
  box-shadow:
    0 12px 26px rgb(68 68 68 / 30%),
    0 0 0 7px rgb(241 228 198 / 12%);
  filter: saturate(1.12) brightness(1.08);
  transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1.14);
}

.tour-info:hover::before,
.tour-info:focus-visible::before {
  opacity: 1;
  transform: scale(1.08);
}

.tour-info:hover::after,
.tour-info:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.tour-info:active {
  background: rgb(44 148 53 / 42%);
  filter: saturate(1.24) brightness(1.16);
  transform: translate(var(--info-button-offset, -18px), var(--info-button-offset, -18px)) scale(1.06);
}

.tour-info svg {
  position: relative;
  z-index: 1;
  width: var(--info-icon-size, 28px);
  height: var(--info-icon-size, 28px);
  transition: transform 180ms ease;
}

.tour-info__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--info-icon-size, 22px);
  height: var(--info-icon-size, 22px);
  object-fit: contain;
  transition: transform 180ms ease;
}

.tour-info:hover svg,
.tour-info:focus-visible svg,
.tour-info:hover .tour-info__icon,
.tour-info:focus-visible .tour-info__icon {
  transform: scale(1.06);
}

.tour-info__fill {
  fill: var(--accent);
}

.tour-info__stroke {
  fill: none;
  stroke: var(--vir-graphit);
  stroke-width: 3px;
}

.tour-info__dot {
  fill: var(--vir-graphit);
}

.tour-info:hover .tour-info__fill {
  fill: var(--vir-pergament);
}

.tour-info__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border: 1px solid rgb(217 217 217 / 18%);
  border-radius: 6px;
  background: rgb(68 68 68 / 88%);
  box-shadow: 0 12px 34px rgb(68 68 68 / 34%);
  color: var(--vir-pergament);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.tour-info:hover .tour-info__label,
.tour-info:focus-visible .tour-info__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-fab {
  position: absolute;
  right: 18px;
  --menu-shift: 0px;
  top: 132px;
  bottom: auto;
  z-index: 62;
  display: grid;
  width: 60px;
  height: 60px;
  min-height: 60px;
  padding: 6px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--vir-pergament);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: none;
  touch-action: manipulation;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    outline-color 160ms ease,
    transform 520ms cubic-bezier(0.2, 1.45, 0.34, 1);
  transform: translateY(var(--menu-shift));
}

.web-map-link:active,
.map-fab:active {
  background: rgb(68 68 68 / 13%);
  transform: translateY(var(--menu-shift));
}

@media (min-width: 921px) {
  .viewer-region:has(.layer-controls:not(.is-collapsed)) .web-map-link,
  .viewer-region:has(.layer-controls:not(.is-collapsed)) .map-fab {
    --menu-shift: 86px;
  }
}

.map-fab img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgb(68 68 68 / 58%);
  backdrop-filter: blur(4px);
}

.presentation-mode .map-modal {
  height: 100vh;
  height: 100dvh;
}

.map-modal[hidden] {
  display: none;
}

.map-modal__panel {
  position: relative;
  z-index: 301;
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  width: min(980px, calc(100vw - 44px));
  height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgb(217 217 217 / 16%);
  border-radius: 8px;
  background: rgb(68 68 68 / 94%);
  box-shadow: 0 26px 80px rgb(68 68 68 / 48%);
  color: var(--vir-pergament);
}

.map-modal__header,
.map-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.map-modal__header {
  border-bottom: 1px solid rgb(217 217 217 / 12%);
}

.map-modal__header p,
.map-modal__header h2 {
  margin: 0;
}

.map-modal__header p {
  color: var(--vir-pergament);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-modal__header h2 {
  color: var(--white);
  font-size: 18px;
}

.map-modal__header button {
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(217 217 217 / 9%);
  font-size: 24px;
  line-height: 1;
}

.tour-map {
  min-height: 300px;
  background: var(--vir-pergament);
}

.map-modal__footer {
  border-top: 1px solid rgb(217 217 217 / 12%);
}

#mapStatus {
  min-height: 18px;
  color: var(--vir-pergament);
  font-size: 13px;
  text-align: right;
}

.panorama-map-marker {
  display: grid;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  place-items: center;
  border: 2px solid rgb(68 68 68 / 78%);
  border-radius: 50%;
  background: rgb(44 148 53 / 92%);
  box-shadow: 0 8px 20px rgb(68 68 68 / 28%);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
}

.panorama-map-marker.is-active {
  border-color: var(--vir-pergament);
  background: var(--vir-pergament);
  color: var(--black);
}

.leaflet-tooltip {
  border: 1px solid rgb(217 217 217 / 16%);
  border-radius: 6px;
  background: rgb(68 68 68 / 90%);
  color: var(--vir-pergament);
  font-weight: 800;
  box-shadow: 0 10px 28px rgb(68 68 68 / 24%);
}

.info-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 260;
  width: min(420px, calc(100vw - 48px));
  max-height: min(620px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgb(217 217 217 / 16%);
  border-radius: 8px;
  background: rgb(68 68 68 / 92%);
  box-shadow: 0 24px 70px rgb(68 68 68 / 42%);
  color: var(--vir-pergament);
  backdrop-filter: blur(14px);
}

.info-card--media {
  width: min(760px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
}

.info-card--image-modal {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  display: flex;
  width: min(1120px, calc(100vw - 56px));
  max-height: min(860px, calc(100dvh - 56px));
  flex-direction: column;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.info-card__close {
  position: absolute;
  z-index: 262;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
}

.info-card__image {
  position: relative;
  height: 190px;
  background-position: center;
  background-size: cover;
}

.info-card--image-modal .info-card__image {
  flex: 1 1 auto;
  height: min(70dvh, 660px);
  min-height: 360px;
  background-color: rgb(30 30 30 / 92%);
  background-repeat: no-repeat;
  background-size: contain;
}

.info-card__image[role="link"] {
  cursor: pointer;
}

.info-card__gallery-button {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgb(68 68 68 / 72%);
  color: var(--vir-pergament);
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.info-card__gallery-button--prev {
  left: 10px;
}

.info-card__gallery-button--next {
  right: 10px;
}

.info-card__gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(68 68 68 / 76%);
  color: var(--vir-pergament);
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.info-card__panorama {
  width: 100%;
  height: min(430px, 56vh);
  min-height: 300px;
  background: var(--vir-graphit);
}

.info-card__panorama .pnlm-container {
  background: var(--vir-graphit);
}

.nadir-logo-hotspot {
  width: 0;
  height: 0;
  pointer-events: none;
}

.nadir-logo-hotspot img {
  display: block;
  max-width: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 28px rgb(68 68 68 / 34%));
}

.info-card__body {
  padding: 18px;
}

.info-card--image-modal .info-card__body {
  flex: 0 0 auto;
  padding: 16px 20px 18px;
  background: rgb(68 68 68 / 96%);
}

.info-card__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card h2 {
  margin: 0 0 12px;
  color: var(--vir-pergament);
  font-size: 22px;
}

.info-card--image-modal h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.info-card__text {
  display: grid;
  gap: 10px;
  color: var(--vir-pergament);
  line-height: 1.55;
}

.info-card__text p {
  margin: 0;
}

.info-card__link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--vir-pergament);
  font-weight: 800;
  text-decoration: none;
}

.info-card__link:hover,
.info-card__link:focus-visible {
  background: var(--accent-strong);
  color: var(--vir-pergament);
}

body[data-mode="presentation"] .app-shell,
.presentation-mode .app-shell {
  display: block;
}

body[data-mode="presentation"],
body.presentation-mode {
  overflow: hidden;
}

body[data-mode="presentation"] .viewer-region,
.presentation-mode .viewer-region {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

body[data-mode="presentation"] .editor-panel,
.presentation-mode .editor-panel {
  display: none;
}

.pnlm-container {
  background: var(--vir-graphit);
}

.pnlm-load-box {
  border-radius: 6px;
  background: rgb(68 68 68 / 82%);
}

.pnlm-panorama-info {
  display: none !important;
}

.pnlm-controls-container {
  display: none !important;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .viewer-region {
    height: 66dvh;
    min-height: 66dvh;
  }

  .presentation-mode .viewer-region {
    height: 100dvh;
    min-height: 100dvh;
  }

  .editor-panel {
    min-width: 0;
    max-height: none;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .style-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: none;
  }

  .icon-button {
    width: 30px;
    height: 30px;
    min-height: 30px;
    font-size: 19px;
  }

  .scene-title {
    max-width: 210px;
    min-width: 0;
    padding: 6px 9px;
    gap: 6px;
  }

  .scene-title span {
    font-size: 11px;
  }

  .scene-title strong {
    font-size: 13px;
  }

  .web-map-link {
    top: auto;
    right: 12px;
    bottom: calc(174px + env(safe-area-inset-bottom, 0px));
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
    font-size: 11px;
  }

  .web-map-link img {
    width: 32px;
    height: 32px;
  }

  .web-map-link span,
  .map-fab span {
    top: auto;
    bottom: calc(100% + 7px);
    right: 0;
  }

  .brand-logo {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: 132px;
    min-height: 0;
    padding: 0;
  }

  .brand-logo img {
    max-height: 30px;
  }

  .carousel-toggle {
    top: calc(48px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
    border-radius: 8px;
  }

  .carousel-toggle img {
    width: 32px;
    height: 32px;
  }

  .carousel-toggle span {
    top: 50%;
    left: calc(100% + 6px);
    max-width: 150px;
    font-size: 11px;
  }

  .spherical-carousel__card {
    width: 132px;
    height: 88px;
    min-height: 88px;
    padding: 8px 9px;
    border-radius: 10px / 16px;
  }

  .spherical-carousel__card strong {
    font-size: 11px;
  }

  .scene-quick-nav {
    position: fixed;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(290px, calc(100vw - 72px));
  }

  .presentation-mode .scene-quick-nav {
    position: fixed;
  }

  .layer-controls {
    position: fixed;
    top: calc(48px + env(safe-area-inset-top, 0px));
    right: 12px;
    bottom: auto;
    width: min(178px, calc(100vw - 72px));
  }

  .layer-controls.is-collapsed {
    width: 94px;
  }

  .presentation-mode .layer-controls {
    position: fixed;
  }

  .scene-quick-nav__toggle {
    min-height: 36px;
    padding: 7px 10px;
  }

  .scene-quick-nav__toggle span {
    font-size: 11px;
  }

  .scene-quick-nav__toggle strong {
    font-size: 13px;
  }

  .scene-quick-nav__panel {
    width: min(310px, calc(100vw - 24px));
    max-height: min(390px, calc(100vh - 110px));
  }

  .scene-quick-nav__item {
    min-height: 34px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .scene-quick-nav__item strong {
    font-size: 13px;
  }

  .viewer-controls {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    gap: 7px;
  }

  .viewer-controls button {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px;
    font-size: 19px;
  }

  .map-fab {
    right: 12px;
    top: auto;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px));
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
    font-size: 20px;
  }

  .map-fab img {
    width: 32px;
    height: 32px;
  }

  .presentation-mode .map-fab {
    position: fixed;
  }

  .map-modal {
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .map-modal__panel {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .tour-map {
    min-height: 0;
  }

  .map-modal__footer {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  #mapStatus {
    text-align: left;
  }

  .info-card,
  .info-card--media {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
  }

  .info-card--image-modal {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, -50%);
  }

  .info-card--image-modal .info-card__image {
    height: min(66dvh, 560px);
    min-height: 260px;
  }

  .info-card__panorama {
    height: min(52vh, 360px);
    min-height: 240px;
  }
}
