/* NesaVilla Stage 3 — homepage motion layer v25
   Motion only. No layout, content, or sizing changes. */

:root {
  --nv-motion-fast: 220ms;
  --nv-motion-medium: 620ms;
  --nv-motion-slow: 880ms;
  --nv-motion-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Hero entrance */
body.nv-motion-enabled .hero-content > h1,
body.nv-motion-enabled .hero-content > p,
body.nv-motion-enabled .hero-content > .text-cta,
body.nv-motion-enabled .scroll-cue {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--nv-motion-slow) var(--nv-motion-ease),
    transform var(--nv-motion-slow) var(--nv-motion-ease);
}
body.nv-motion-enabled.nv-hero-visible .hero-content > h1 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 80ms;
}
body.nv-motion-enabled.nv-hero-visible .hero-content > p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 180ms;
}
body.nv-motion-enabled.nv-hero-visible .hero-content > .text-cta {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 280ms;
}
body.nv-motion-enabled.nv-hero-visible .scroll-cue {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 420ms;
}

/* Scroll reveal */
body.nv-motion-enabled .nv-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--nv-motion-medium) var(--nv-motion-ease),
    transform var(--nv-motion-medium) var(--nv-motion-ease);
  transition-delay: var(--nv-delay, 0ms);
  will-change: opacity, transform;
}
body.nv-motion-enabled .nv-reveal.nv-reveal-soft {
  transform: translate3d(0, 18px, 0);
}
body.nv-motion-enabled .nv-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Image reveal is intentionally subtle. */
body.nv-motion-enabled .nv-image-reveal {
  overflow: hidden;
}
body.nv-motion-enabled .nv-image-reveal img,
body.nv-motion-enabled .nv-image-reveal .roi-image {
  transform: scale(1.035);
  transition: transform 1.15s var(--nv-motion-ease);
}
body.nv-motion-enabled .nv-image-reveal.is-visible img,
body.nv-motion-enabled .nv-image-reveal.is-visible .roi-image {
  transform: scale(1);
}

/* Cards and controls */
@media (hover: hover) and (pointer: fine) {
  .property-card,
  .stay-card,
  .review-card {
    transition:
      transform 360ms var(--nv-motion-ease),
      box-shadow 360ms var(--nv-motion-ease),
      border-color 240ms ease;
  }
  .property-card:hover,
  .stay-card:hover,
  .review-card:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 42px rgba(7, 17, 25, .13);
  }
  body.nv-motion-enabled .property-card.nv-reveal.is-visible:hover,
  body.nv-motion-enabled .stay-card.nv-reveal.is-visible:hover,
  body.nv-motion-enabled .review-card.nv-reveal.is-visible:hover {
    transform: translate3d(0, -5px, 0);
  }
  .property-image img,
  .stay-card > img,
  .owner-photo img,
  .agent-panel > img {
    transition: transform 700ms var(--nv-motion-ease);
  }
  .property-card:hover .property-image img,
  .stay-card:hover > img {
    transform: scale(1.025);
  }
  .owner-card:hover .owner-photo img,
  .agent-panel:hover > img {
    transform: scale(1.012);
  }
  .rail-actions button,
  .review-arrows button,
  .roi-actions a,
  .roi-actions button,
  .final-actions a,
  .agent-public-actions a,
  .agent-public-actions button {
    transition:
      transform var(--nv-motion-fast) ease,
      background-color var(--nv-motion-fast) ease,
      color var(--nv-motion-fast) ease,
      border-color var(--nv-motion-fast) ease;
  }
  .rail-actions button:hover,
  .review-arrows button:hover,
  .roi-actions a:hover,
  .roi-actions button:hover,
  .final-actions a:hover,
  .agent-public-actions a:hover,
  .agent-public-actions button:hover {
    transform: translate3d(0, -2px, 0);
  }
  .cta-arrow::after,
  .text-cta::after {
    transition: transform var(--nv-motion-fast) ease;
  }
  .cta-arrow:hover::after,
  .text-cta:hover::after {
    transform: translateX(4px);
  }
}

/* Counter settles gently after reaching its value. */
.stats strong.nv-counting {
  font-variant-numeric: tabular-nums;
}
.stats strong.nv-count-complete {
  animation: nvCounterSettle 420ms var(--nv-motion-ease);
}
@keyframes nvCounterSettle {
  0% { transform: translateY(2px); opacity: .78; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Scroll cue keeps a very restrained pulse. */
body.nv-motion-enabled.nv-hero-visible .scroll-cue span {
  animation: nvScrollCue 2.4s ease-in-out 1.1s infinite;
}
@keyframes nvScrollCue {
  0%, 100% { transform: translateY(0); opacity: .68; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* Accessibility: no hidden content and no movement when reduced motion is requested. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body.nv-motion-enabled .hero-content > h1,
  body.nv-motion-enabled .hero-content > p,
  body.nv-motion-enabled .hero-content > .text-cta,
  body.nv-motion-enabled .scroll-cue,
  body.nv-motion-enabled .nv-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body.nv-motion-enabled .nv-image-reveal img,
  body.nv-motion-enabled .nv-image-reveal .roi-image,
  .property-card,
  .stay-card,
  .review-card,
  .property-image img,
  .stay-card > img,
  .owner-photo img,
  .agent-panel > img {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  body.nv-motion-enabled.nv-hero-visible .scroll-cue span,
  .stats strong.nv-count-complete {
    animation: none !important;
  }
}

/* =========================================================
   Stage 3 v25.5 — clean compact homepage sections
   Restores full-bleed card images, removes the failed stagger,
   and keeps key desktop sections within a normal viewport.
   ========================================================= */

/* Clean, aligned card rails. No vertical card or inner-content offsets. */
.properties-section .property-rail,
.reviews-section .review-rail {
  align-items: stretch !important;
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

.properties-section .property-card,
.reviews-section .review-card,
body.nv-motion-enabled .properties-section .property-card.nv-reveal,
body.nv-motion-enabled .properties-section .property-card.nv-reveal.is-visible,
body.nv-motion-enabled .reviews-section .review-card.nv-reveal,
body.nv-motion-enabled .reviews-section .review-card.nv-reveal.is-visible {
  box-sizing: border-box;
  align-self: stretch !important;
  transform: none !important;
  padding: 0 !important;
  overflow: hidden;
}

.properties-section .property-card {
  display: flex;
  flex-direction: column;
}

.properties-section .property-image {
  width: 100%;
  margin: 0 !important;
  flex: 0 0 auto;
}

.properties-section .property-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.properties-section .property-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.properties-section .property-content > .cta-arrow {
  margin-top: auto;
}

.reviews-section .review-card {
  display: flex;
  flex-direction: column;
}

.reviews-section .review-card blockquote {
  flex: 1 1 auto;
}

/* Desktop composition: one clean screen for the selected-property section. */
@media (min-width: 1051px) {
  .properties-section {
    box-sizing: border-box;
    min-height: calc(100svh - 84px);
    padding-top: clamp(42px, 5vh, 58px) !important;
    padding-bottom: clamp(28px, 3.5vh, 42px) !important;
    display: flex;
    align-items: center;
  }

  .properties-section > .container {
    width: var(--container);
  }

  .properties-section .section-heading {
    margin-bottom: clamp(22px, 2.8vh, 30px);
  }

  .properties-section .split-heading {
    gap: 48px;
  }

  .properties-section .property-card {
    height: clamp(430px, 55vh, 480px) !important;
  }

  .properties-section .property-image {
    height: clamp(245px, 31vh, 285px) !important;
  }

  .properties-section .property-content {
    padding: 17px 20px 18px;
  }

  .properties-section .property-type {
    margin-bottom: 6px;
  }

  .properties-section .property-content h3 {
    margin-bottom: 7px;
    font-size: 24px;
  }

  .properties-section .property-content > strong {
    font-size: 26px;
  }

  .properties-section .property-content > p:not(.property-type) {
    margin: 5px 0 10px;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .properties-section .property-content a {
    font-size: 13px !important;
  }

  .properties-section .rail-footer {
    margin-top: 14px;
  }

  /* Agent section: remove oversized dead space while preserving readability. */
  .agent-section {
    box-sizing: border-box;
    min-height: calc(100svh - 84px);
    padding-top: clamp(42px, 5vh, 58px) !important;
    padding-bottom: clamp(42px, 5vh, 58px) !important;
    display: flex;
    align-items: center;
  }

  .agent-section > .container {
    width: var(--container);
  }

  .agent-grid {
    gap: 50px !important;
    align-items: center !important;
  }

  .agent-copy h2 {
    margin-bottom: 16px;
    font-size: clamp(38px, 3.1vw, 47px);
  }

  .agent-copy > p:not(.eyebrow) {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .benefit-list {
    margin-top: 20px;
  }

  .benefit-list div {
    padding: 12px 0;
  }

  .agent-panel > img {
    height: clamp(190px, 24vh, 235px);
  }

  .agent-access {
    padding: 22px 24px;
  }

  .agent-access h3 {
    margin-bottom: 8px;
    font-size: 24px;
  }

  .agent-access > p:not(.eyebrow) {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .agent-access > .agent-access-entry > .agent-public-actions,
  .agent-access-entry > .agent-public-actions {
    margin-top: 16px;
  }

  .agent-code-panel {
    margin-top: 14px;
    padding: 16px;
  }
}

/* Tablet/mobile keep their natural, readable vertical rhythm. */
@media (max-width: 1050px) {
  .properties-section,
  .agent-section {
    min-height: 0;
    display: block;
  }
}

/* Compact desktop-height safeguard for common 1366 × 768 screens. */
@media (min-width: 1051px) and (max-height: 800px) {
  .properties-section {
    padding-top: 34px !important;
    padding-bottom: 24px !important;
  }
  .properties-section .section-heading {
    margin-bottom: 18px;
  }
  .properties-section .property-card {
    height: 420px !important;
  }
  .properties-section .property-image {
    height: 240px !important;
  }
  .properties-section .property-content {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .properties-section .rail-footer {
    margin-top: 10px;
  }
}

/* =========================================================
   Stage 3 v25.6 — readability and clear CTA hierarchy
   Improves review-card breathing room, restores property-title
   hierarchy, and makes arrow CTAs visibly interactive.
   ========================================================= */

/* Review cards: restore comfortable internal spacing. */
.reviews-section .review-card,
body.nv-motion-enabled .reviews-section .review-card.nv-reveal,
body.nv-motion-enabled .reviews-section .review-card.nv-reveal.is-visible {
  padding: 30px 30px 28px !important;
  min-height: 270px;
  overflow: hidden;
}

.reviews-section .reviewer {
  gap: 14px;
}

.reviews-section .reviewer h3 {
  font-size: 18px;
  line-height: 1.15;
}

.reviews-section .reviewer p {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.35;
}

.reviews-section .stars {
  margin: 22px 0 16px;
  font-size: 13px;
}

.reviews-section .review-card blockquote {
  font-size: 15.5px;
  line-height: 1.62;
}

/* Property hierarchy: the property name must read as a title, not a label. */
.properties-section .property-content h3 {
  margin-bottom: 8px;
}

.properties-section .property-content h3 > a.property-title-link {
  display: inline-block;
  color: var(--ink);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 24px !important;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-decoration: none;
}

.properties-section .property-content h3 > a.property-title-link:hover,
.properties-section .property-content h3 > a.property-title-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Compact outline CTAs inside property cards. */
.properties-section .property-content > a.cta-arrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px !important;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--nv-motion-fast) ease,
    border-color var(--nv-motion-fast) ease,
    color var(--nv-motion-fast) ease;
}

.properties-section .property-content > a.cta-arrow > span {
  display: none;
}

.properties-section .property-content > a.cta-arrow:hover,
.properties-section .property-content > a.cta-arrow:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Section-level CTA on a light background. */
.properties-section .collection-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--nv-motion-fast) ease,
    border-color var(--nv-motion-fast) ease,
    color var(--nv-motion-fast) ease;
}

.properties-section .collection-view-all:hover,
.properties-section .collection-view-all:focus-visible {
  background: var(--ink);
  color: #fff;
}

/* Hosted-stay card CTAs: button-like without adding another nested link. */
.hospitality-section .stay-card > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}

.hospitality-section .stay-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  transition:
    background-color var(--nv-motion-fast) ease,
    border-color var(--nv-motion-fast) ease,
    color var(--nv-motion-fast) ease;
}

.hospitality-section .stay-card:hover strong,
.hospitality-section .stay-card:focus-visible strong {
  background: var(--ink);
  color: #fff;
}

/* Prominent section CTAs on dark/image backgrounds. */
.hero-content > .text-cta,
.about-section .about-copy > .text-cta {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--nv-motion-fast) ease,
    border-color var(--nv-motion-fast) ease,
    color var(--nv-motion-fast) ease;
}

.hero-content > .text-cta:hover,
.hero-content > .text-cta:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.about-section .about-copy > .text-cta {
  border-color: var(--gold);
  color: var(--gold);
}

.about-section .about-copy > .text-cta:hover,
.about-section .about-copy > .text-cta:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 760px) {
  .reviews-section .review-card,
  body.nv-motion-enabled .reviews-section .review-card.nv-reveal,
  body.nv-motion-enabled .reviews-section .review-card.nv-reveal.is-visible {
    padding: 24px !important;
    min-height: 250px;
  }

  .reviews-section .review-card blockquote {
    font-size: 15px;
  }

  .properties-section .property-content h3 > a.property-title-link {
    font-size: 22px !important;
  }

  .properties-section .property-content > a.cta-arrow,
  .hospitality-section .stay-card strong,
  .properties-section .collection-view-all {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 13px !important;
  }
}
