/* Property tour — scroll-driven canvas */

.page-property-tour {
  background: #0a1210;
  color: #f5f0e8;
}

/* Nav over dark tour: light links on deep green glass */
.page-property-tour #mainNav:not(.nav-dark) {
  background: rgba(10, 18, 16, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.page-property-tour #mainNav:not(.nav-dark)::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 170, 106, 0.35),
    rgba(255, 255, 255, 0.25),
    rgba(212, 170, 106, 0.35),
    transparent
  );
}

.page-property-tour #mainNav:not(.nav-dark) .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}

.page-property-tour #mainNav:not(.nav-dark) .nav-links a:hover {
  color: #fff;
}

.page-property-tour #mainNav:not(.nav-dark) .nav-links a::after {
  background: var(--gold-light, #f8e8c4);
}

.page-property-tour #mainNav:not(.nav-dark) .nav-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.page-property-tour #mainNav:not(.nav-dark) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.92);
}

.page-property-tour #mainNav:not(.nav-dark) .nav-toggle-bar {
  background: rgba(255, 255, 255, 0.92);
}

/* Nav over light outro/footer: inherit global .nav-dark (dark text, cream glass) */
.page-property-tour #mainNav.nav-dark {
  background: rgba(245, 239, 228, 0.55);
  border-color: rgba(0, 0, 0, 0.1);
}

.page-property-tour #mainNav.nav-dark .nav-links a {
  color: rgba(26, 26, 24, 0.8);
}

.page-property-tour #mainNav.nav-dark .nav-links a:hover {
  color: var(--text-dark, #1a1a18);
}

.page-property-tour #mainNav.nav-dark .nav-logo img {
  filter: brightness(0);
  opacity: 0.88;
}

.pt-loader--error .pt-loader__bar {
  display: none;
}

.preloader.is-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.preloader-pct {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.65rem;
}

.preloader-error {
  margin-top: 1rem;
}

.preloader-error[hidden] {
  display: none;
}

.preloader--error .preloader-bar,
.preloader--error .preloader-pct {
  display: none;
}

.preloader--error .preloader-text {
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.12em;
  line-height: 1.5;
  max-width: 28rem;
  margin-inline: auto;
}

.preloader[data-managed-progress] .preloader-progress {
  animation: none;
  transform: scaleX(0);
  transform-origin: left center;
}

.pt-loader__error {
  margin-top: 0.5rem;
}

.pt-tour {
  position: relative;
}

.pt-tour__pin {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a1210;
}

.pt-tour__canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* Keep the canvas on its own GPU layer so the long pinned scroll doesn't
     repaint siblings. We don't set will-change on the pin itself because
     ScrollTrigger applies its own transform there. */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Intro overlay — lives INSIDE the pinned tour so it doesn't scroll the page
   when fading. The whole composition is one pinned screen. */
.pt-intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) 1.5rem 4rem;
  z-index: 3;
  pointer-events: none;
  /* Soft gradient under the text so it stays legible over the aerial. */
  background: linear-gradient(
    180deg,
    rgba(10, 18, 16, 0) 0%,
    rgba(10, 18, 16, 0) 55%,
    rgba(10, 18, 16, 0.55) 100%
  );
  will-change: opacity;
}

.pt-intro__inner {
  text-align: center;
  max-width: 42rem;
}

.pt-intro__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: #f5f0e8;
  margin: 0.75rem 0 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.pt-intro__title em {
  font-style: italic;
  color: #d4aa6a;
}

.pt-scroll-cue {
  margin: 1.75rem 0 0;
  font-family: var(--font-sans, 'Jost', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  animation: ptScrollCuePulse 2.4s ease-in-out infinite;
}

@keyframes ptScrollCuePulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(4px); }
}

.pt-tour__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 16, 0.35) 0%,
    transparent 22%,
    transparent 78%,
    rgba(10, 18, 16, 0.45) 100%
  );
}

.pt-tour__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 3;
}

.pt-tour__progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #9a7a42, #d4aa6a, #f8e8c4);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  /* transition removed — JS drives every frame via rAF, no CSS transition needed */
}

.pt-outro {
  padding: clamp(5rem, 12vh, 8rem) 1.5rem;
  text-align: center;
  background: #f5f0e8;
  color: #1a2e28;
}

.pt-outro__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.pt-outro h2 {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0.75rem 0 1.25rem;
}

.pt-outro h2 em {
  font-style: italic;
  color: #8b6914;
}

.pt-outro p {
  font-family: var(--font-sans, 'Jost', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(26, 46, 40, 0.78);
  margin: 0 0 2rem;
}

.pt-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.pt-outro .btn-ghost {
  color: var(--green-deep);
  border-color: rgba(27, 58, 45, 0.32);
  background: rgba(255, 255, 255, 0.55);
}

.pt-outro .btn-ghost:hover {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(27, 58, 45, 0.88);
}

.page-property-tour footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  .pt-intro {
    padding-bottom: 2.5rem;
  }
  .pt-intro__title {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }
}
