/* ==========================================================================
   VIRTUAL TOUR SECTION & MODAL
   ========================================================================== */
.tour,
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72svh;
  padding-block: var(--space-3xl);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.tour__media,
.band__media { position: absolute; inset: 0; z-index: -2; }
.tour__media img,
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.tour::after,
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 13, 21, 0.78), rgba(8, 13, 21, 0.9));
}
.tour__inner .body-large,
.band__inner .body-large { max-width: 42ch; margin-inline: auto; }
.tour__inner > .btn,
.band__inner > .btn { margin-top: var(--space-lg); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-sm);
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.9);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 78rem);
  height: min(88svh, 52rem);
  background: var(--color-navy);
  border: 1px solid var(--color-navy-line);
  box-shadow: var(--shadow-lg);
}
.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  border-bottom: 1px solid var(--color-navy-line);
}
.modal__title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.modal__close {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--color-navy-line);
  border-radius: 50%;
  color: var(--color-cream);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.modal__close:hover { border-color: var(--color-gold); color: var(--color-gold); }
.modal__body { flex: 1; min-height: 0; }
.modal__body iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   360° VIRTUAL TOUR — feature section
   template-parts/strato-melbourne-tour.php, used on Home, Our Story and
   Events. The tour is the one thing no photo can show, so it gets a large
   stage of its own: poster image, a 360° badge to start it, and the
   Matterport model playing in the same frame once started.
   ========================================================================== */
.vtour {
  padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(60% 45% at 50% 100%, rgba(232, 163, 92, 0.09), transparent 70%),
    var(--color-navy-deep);
  border-top: 1px solid var(--color-navy-line);
  border-bottom: 1px solid var(--color-navy-line);
  scroll-margin-top: var(--header-h);
}

.vtour__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-lg);
}
.vtour__eyebrow { color: var(--color-gold); }
.vtour__title { max-width: 18ch; margin: 0; }
.vtour__text {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-lead);
  color: var(--color-text);
}
.vtour__rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vtour__rooms li {
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  border: 1px solid rgba(232, 163, 92, 0.35);
  border-radius: var(--radius-pill);
}

/* The stage */
.vtour__stage {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 22rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.vtour__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(232, 163, 92, 0.28);
  border-radius: inherit;
  pointer-events: none;
}
.vtour__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}
.vtour__stage:hover .vtour__poster { transform: scale(1.05); }

/* Start button covers the whole poster, so anywhere on it starts the tour. */
.vtour__start {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  padding: 0;
  font: inherit;
  color: var(--color-white);
  background:
    radial-gradient(closest-side, rgba(8, 13, 21, 0.55), rgba(8, 13, 21, 0.1)),
    linear-gradient(to bottom, rgba(8, 13, 21, 0.2), rgba(8, 13, 21, 0.6));
  border: 0;
  cursor: pointer;
}
.vtour__badge {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(6.5rem, 5rem + 4vw, 9rem);
  aspect-ratio: 1;
  background: rgba(11, 18, 32, 0.45);
  border: 1px solid rgba(242, 199, 149, 0.75);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: transform var(--t-mid), background-color var(--t-mid), border-color var(--t-mid);
}
.vtour__orbit {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  color: var(--color-gold-light);
}
.vtour__deg {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  line-height: 1;
  color: var(--color-white);
}
.vtour__start-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-shadow: 0 1px 12px rgba(8, 13, 21, 0.8);
}
.vtour__start:hover .vtour__badge,
.vtour__start:focus-visible .vtour__badge {
  transform: scale(1.06);
  background: rgba(232, 163, 92, 0.22);
  border-color: var(--color-gold);
}
.vtour__start:focus-visible { outline: 2px solid var(--color-gold); outline-offset: -8px; }

/* Playing */
.vtour__viewer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-ink);
}
.vtour__viewer[hidden] { display: none; }
.vtour__viewer iframe { display: block; width: 100%; height: 100%; border: 0; }
.vtour__stage.is-live .vtour__start,
.vtour__stage.is-live .vtour__poster { visibility: hidden; }

.vtour__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 4;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-cream);
  background: rgba(8, 13, 21, 0.75);
  border: 1px solid rgba(244, 239, 232, 0.4);
  border-radius: 50%;
  cursor: pointer;
}
.vtour__stage.is-live .vtour__close { display: grid; }

.vtour__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-sm);
}
.vtour__hint { margin: 0; font-size: var(--fs-small); color: var(--color-muted); }

@media (max-width: 61.99em) {
  .vtour__head { grid-template-columns: 1fr; align-items: start; }
  .vtour__stage { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 47.99em) {
  .vtour__stage { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .vtour__poster,
  .vtour__badge { transition: none; }
  .vtour__stage:hover .vtour__poster { transform: scale(1.02); }
}
