:root {
  color-scheme: dark;
  font-family: Manrope, Inter, system-ui, sans-serif;
  background: #10291f;
  color: #fffaf2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #275b46, #10291f 72%);
}

button {
  font: inherit;
}

.tour {
  width: 100%;
  min-height: 100vh;
  padding: 0.75rem;
}

.tour__viewport {
  position: relative;
  min-height: min(72vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  background: #16251f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  outline: none;
  touch-action: pan-y;
}

.tour__viewport:focus-visible {
  box-shadow: 0 0 0 3px #e0bd76, 0 24px 70px rgba(0, 0, 0, 0.3);
}

.tour__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  transition: opacity 220ms ease, transform 180ms ease;
}

.tour__image[data-panorama="true"] {
  left: -35%;
  width: 170%;
  max-width: none;
  cursor: grab;
  transform: translateX(var(--pan, 0%));
}

.tour__image[data-panorama="true"]:active {
  cursor: grabbing;
}

.tour__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 20, 14, 0.48), transparent 35%),
    linear-gradient(0deg, rgba(5, 20, 14, 0.86), transparent 58%);
}

.tour__topbar,
.tour__copy,
.tour__arrow {
  position: absolute;
  z-index: 2;
}

.tour__topbar {
  inset: 1rem 1rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tour__badge,
.tour__fullscreen,
.tour__arrow {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 35, 25, 0.68);
  color: #fffaf2;
  backdrop-filter: blur(12px);
}

.tour__badge {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #f0cf8b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour__fullscreen {
  min-height: 2.6rem;
  padding: 0 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.tour__copy {
  right: clamp(1.2rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 6vw, 4rem);
  left: clamp(1.2rem, 5vw, 4rem);
  max-width: 46rem;
}

.tour__counter {
  margin: 0 0 0.65rem;
  color: #f0cf8b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tour__copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.tour__copy p:last-child {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: rgba(255, 250, 242, 0.84);
  line-height: 1.65;
}

.tour__arrow {
  top: 50%;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.tour__arrow--previous {
  left: 1rem;
}

.tour__arrow--next {
  right: 1rem;
}

.tour__scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.tour__scene {
  min-height: 4.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 250, 242, 0.76);
  cursor: pointer;
  text-align: left;
}

.tour__scene[aria-current="true"] {
  border-color: rgba(240, 207, 139, 0.6);
  background: rgba(240, 207, 139, 0.13);
  color: #fffaf2;
}

.tour__notice {
  margin: 0.8rem 0.4rem 0;
  color: rgba(255, 250, 242, 0.64);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .tour__viewport {
    min-height: 72vh;
  }

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

  .tour__fullscreen {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour__image {
    transition: none;
  }
}
