/* ── Reset page base ── */
body {
  background: #f7f6f3;
  background-attachment: unset;
}

/* ═══════════════════════════════════
   CINEMATIC HERO
═══════════════════════════════════ */
.hero-cinema {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0d0d0d;
}

.hero-cinema__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(40, 167, 69, 0.08) 0%, transparent 70%),
    linear-gradient(160deg, #111 0%, #1a1a1a 40%, #0f1a12 100%);
}

/* Ambient light orbs */
.hero-cinema__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-cinema__orb--1 {
  width: 600px;
  height: 600px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.18) 0%, transparent 70%);
  animation: orbDrift 12s ease-in-out infinite alternate;
}

.hero-cinema__orb--2 {
  width: 400px;
  height: 400px;
  bottom: 80px;
  left: -60px;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.10) 0%, transparent 70%);
  animation: orbDrift 9s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, 20px) scale(1.08);
  }
}

/* Fine grid texture overlay */
.hero-cinema__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Decorative vertical rule */
.hero-cinema__rule {
  position: absolute;
  left: 5%;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(40, 167, 69, 0.5), transparent);
  display: none;
}

@media (min-width: 1200px) {
  .hero-cinema__rule {
    display: block;
  }
}

.hero-cinema__content {
  position: relative;
  z-index: 2;
  padding: 0 5% 8vh;
  max-width: 900px;
}

.hero-cinema__eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(40, 167, 69, 0.9);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-cinema__headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: #f5f3ee;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.hero-cinema__headline em {
  font-style: italic;
  color: #a8d5b5;
  font-weight: 300;
}

.hero-cinema__sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(245, 243, 238, 0.5);
  max-width: 440px;
  line-height: 1.85;
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.54s forwards;
}

.hero-cinema__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards;
}

.hero-cinema__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5f3ee;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
}

.hero-cinema__cta--map {
  color: rgba(245, 243, 238, 0.75);
}

.hero-cinema__cta--map:hover {
  color: #a8d5b5;
}

.hero-cinema__cta-line {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(40, 167, 69, 0.8);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cinema__cta:hover .hero-cinema__cta-line {
  width: 72px;
}

.hero-cinema__cta:hover {
  color: #a8d5b5;
}

/* Scroll indicator */
.hero-cinema__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.2s forwards;
}

.hero-cinema__scroll span {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.3);
  writing-mode: vertical-lr;
}

.hero-cinema__scroll-bar {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(40, 167, 69, 0.6), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ═══════════════════════════════════
   SECTION HEADER
═══════════════════════════════════ */
.section-header {
  padding: 7rem 5% 3.5rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.visible {
  opacity: 1;
  transform: none;
}

.section-header__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.1;
  margin: 0;
}

.section-header__count {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(40, 167, 69, 0.8);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-header__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #e0ddd6, transparent);
  min-width: 40px;
}

/* ═══════════════════════════════════
   LUXURY RENTAL GRID
═══════════════════════════════════ */
#unitsContainer {
  margin: 0;
  padding: 0 5% 6rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  max-width: 100%;
}

/* Alternate card sizes for editorial rhythm */
.luxury-col {
  grid-column: span 4;
}

.luxury-col:nth-child(4n+1) {
  grid-column: span 8;
}

.luxury-col:nth-child(4n+2) {
  grid-column: span 4;
}

@media (max-width: 991px) {

  .luxury-col,
  .luxury-col:nth-child(4n+1),
  .luxury-col:nth-child(4n+2) {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {

  .luxury-col,
  .luxury-col:nth-child(4n+1),
  .luxury-col:nth-child(4n+2) {
    grid-column: span 12;
  }
}

/* Luxury Card */
.lux-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  display: block;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.5s ease, filter 0.5s ease;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

.lux-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  filter: brightness(1.02);
}

.lux-card.visible {
  opacity: 1;
  transform: none;
}

.lux-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.luxury-col:nth-child(4n+1) .lux-card__img-wrap {
  aspect-ratio: 16/9;
}

.lux-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.82) saturate(0.9);
}

.lux-card:hover .lux-card__img {
  transform: scale(1.06);
  filter: brightness(0.72) saturate(1.0);
}

.lux-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 18px;
}

/* Gradient veil over image */
.lux-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 10, 10, 0.82) 0%,
      rgba(10, 10, 10, 0.28) 52%,
      transparent 100%);
  transition: opacity 0.5s ease;
  border-radius: 18px;
}

/* Green accent line — grows on hover */
.lux-card__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #28a745, rgba(40, 167, 69, 0.3));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.lux-card:hover .lux-card__accent {
  width: 100%;
}

/* Card text overlaid on image */
.lux-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.75rem 1.5rem;
  z-index: 2;
}

.lux-card__location {
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(40, 167, 69, 0.95);
  margin-bottom: 0.5rem;
  display: block;
  transform: translateY(4px);
  transition: transform 0.4s ease, color 0.3s ease;
}

.lux-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: #f5f3ee;
  line-height: 1.12;
  margin: 0 0 0.65rem;
  transform: translateY(4px);
  transition: transform 0.4s ease 0.04s;
}

.lux-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.08s, transform 0.4s ease 0.08s;
}

.lux-card:hover .lux-card__location,
.lux-card:hover .lux-card__name {
  transform: translateY(0);
}

.lux-card:hover .lux-card__meta {
  opacity: 1;
  transform: translateY(0);
}

.lux-card__price {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(245, 243, 238, 0.72);
  letter-spacing: 0.02em;
}

.lux-card__price strong {
  font-weight: 700;
  color: #f5f3ee;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.lux-card__arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 243, 238, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.lux-card:hover .lux-card__arrow {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.18);
  transform: scale(1.06);
}

.lux-card__arrow svg {
  width: 15px;
  height: 15px;
  stroke: rgba(245, 243, 238, 0.75);
  fill: none;
  stroke-width: 1.6;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.lux-card:hover .lux-card__arrow svg {
  stroke: #a8d5b5;
  transform: translate(3px, -2px);
}

/* Coming Soon variant (premium, non-clickable) */
.lux-card--coming-soon {
  cursor: default;
}

.lux-card--coming-soon .lux-card__img {
  filter: brightness(0.65) saturate(0.75) blur(1.6px);
  transform: scale(1.03);
}

.lux-card--coming-soon:hover .lux-card__img {
  transform: scale(1.03);
  filter: brightness(0.65) saturate(0.75) blur(1.6px);
}

.lux-card--coming-soon .lux-card__accent {
  width: 100%;
  opacity: 0.25;
}

.lux-card--coming-soon .lux-card__meta {
  opacity: 1;
  transform: none;
}

.lux-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.92);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(245, 243, 238, 0.18);
  backdrop-filter: blur(8px);
}

.lux-card--coming-soon .lux-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(245, 243, 238, 0.07) 45%, transparent 85%);
  transform: translateX(-120%);
  animation: luxShimmer 2.6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes luxShimmer {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  35% {
    opacity: 0.9;
  }
  60% {
    opacity: 0.15;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ═══════════════════════════════════
   EMPTY STATE (luxury)
═══════════════════════════════════ */
#unitsEmpty {
  padding: 8rem 5%;
  text-align: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

#unitsEmpty::before {
  content: none;
}

.empty-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #aaa8a0;
  display: block;
  margin-bottom: 0.75rem;
}

.empty-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #bbb8b0;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
footer {
  background: #0d0d0d;
  color: rgba(245, 243, 238, 0.3);
  border-top: none;
  padding: 2rem 5%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #28a745, #a8d5b5);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

