.virtual-tour {
  position: relative;
  overflow: hidden;
  background: #f3efe5;
}

.virtual-tour::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -15rem;
  top: -18rem;
  border: 1px solid rgba(184, 139, 42, .2);
  border-radius: 50%;
}

.tour-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 5rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.tour-heading .title { margin-bottom: 0; }

.tour-intro {
  padding-bottom: .65rem;
  color: #526057;
  font-size: 1.02rem;
  line-height: 1.75;
}

.tour-intro p { margin: 0 0 1.35rem; }

.tour-intro span {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #153d29;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tour-intro i {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #c89a39;
  box-shadow: 0 0 0 6px rgba(200, 154, 57, .14);
  animation: tourPulse 2s ease-in-out infinite;
}

.tour-frame {
  position: relative;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(135deg, #d7b45e 0%, #173f2b 34%, #082619 100%);
  box-shadow: 0 35px 80px rgba(11, 42, 27, .2);
}

.tour-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 21px;
  background: #071b12;
}

.tour-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 19, 12, .06) 55%, rgba(3, 19, 12, .58) 100%);
}

.tour-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.tour-badge {
  position: absolute;
  left: 2.25rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.tour-badge span {
  margin-bottom: .35rem;
  color: #e5c46e;
  font-size: .63rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.tour-badge strong {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 400;
}

.tour-controls {
  position: absolute;
  right: 2rem;
  bottom: 1.75rem;
  z-index: 3;
  display: flex;
  gap: .65rem;
  align-items: center;
}

.tour-control {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 30, 19, .72);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.tour-control:hover,
.tour-control:focus-visible {
  transform: translateY(-2px);
  border-color: #e5c46e;
  background: #b88b2a;
  outline: none;
}

.tour-control svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tour-icon-play,
.tour-icon-sound { display: none; }

.tour-control.is-paused .tour-icon-pause,
.tour-control.has-sound .tour-icon-muted { display: none; }

.tour-control.is-paused .tour-icon-play,
.tour-control.has-sound .tour-icon-sound { display: block; }

.tour-progress {
  position: absolute;
  z-index: 3;
  left: 2rem;
  right: 2rem;
  bottom: 6rem;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

.tour-progress label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tour-progress input,
.tour-volume-wrap input {
  --range-progress: 0%;
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 99px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, #e5c46e 0 var(--range-progress), rgba(255,255,255,.34) var(--range-progress) 100%);
  cursor: pointer;
}

.tour-progress input::-webkit-slider-thumb,
.tour-volume-wrap input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #c89a39;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.tour-progress input::-moz-range-thumb,
.tour-volume-wrap input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c89a39;
}

.tour-time {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  color: rgba(255,255,255,.82);
  font-size: .65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.tour-volume-wrap {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 132px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 99px;
  background: rgba(5,30,19,.72);
  backdrop-filter: blur(12px);
}

@media (hover: hover) and (pointer: fine) {
  .tour-controls,
  .tour-progress {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .tour-controls {
    transform: translateY(8px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
  }

  .tour-progress { transform: translateY(6px); }

  .tour-frame:hover .tour-controls,
  .tour-frame:hover .tour-progress,
  .tour-frame:focus-within .tour-controls,
  .tour-frame:focus-within .tour-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.tour-volume-wrap label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tour-corner {
  position: absolute;
  z-index: 4;
  width: 52px;
  height: 52px;
  pointer-events: none;
}

.tour-corner-top {
  top: -10px;
  left: -10px;
  border-top: 1px solid #b88b2a;
  border-left: 1px solid #b88b2a;
}

.tour-corner-bottom {
  right: -10px;
  bottom: -10px;
  border-right: 1px solid #b88b2a;
  border-bottom: 1px solid #b88b2a;
}

@keyframes tourPulse {
  50% { box-shadow: 0 0 0 10px rgba(200, 154, 57, 0); }
}

@media (max-width: 800px) {
  .tour-heading { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.25rem; }
  .tour-intro { padding-bottom: 0; }
  .tour-frame { padding: 6px; border-radius: 20px; }
  .tour-video { border-radius: 15px; }
  .tour-badge { left: 1.25rem; bottom: 1.15rem; }
  .tour-badge span { display: none; }
  .tour-controls { right: 1rem; bottom: .9rem; }
  .tour-control { width: 40px; height: 40px; }
  .tour-progress { left: 1rem; right: 1rem; bottom: 4.65rem; }
  .tour-volume-wrap { width: 104px; height: 40px; padding-inline: 11px; }
}

@media (max-width: 520px) {
  .tour-video { aspect-ratio: 4 / 3; }
  .tour-badge strong { max-width: 130px; line-height: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-intro i { animation: none; }
}
