/* ============================================================
   WELCOME HOME — Stylesheet
   Soft luxury aesthetic · Mobile-first · CSS Custom Properties
   ============================================================ */

/* ── 1. RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── 2. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --bg:       #FAFAF8;
  --surface:  #FFFFFF;
  --primary:  #2D6A4F;
  --accent:   #B7D5C4;
  --warm:     #E8DDD0;
  --text:     #1A1A2E;
  --muted:    #6B7280;
  --cta:      #E07A5F;

  --radius-card: 24px;
  --radius-btn:  50px;
  --radius-sm:   12px;
  --radius-md:   20px;

  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.13);
  --shadow-btn:   0 8px 20px rgba(224, 122, 95, 0.35);
  --shadow-nav:   0 2px 20px rgba(0, 0, 0, 0.08);

  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --container-max: 1200px;
  --section-py: clamp(4rem, 8vw, 7rem);
  --section-px: 1rem;
}

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--muted);
  line-height: 1.7;
}

/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  width: min(var(--container-max), 100% - 2rem);
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1rem;
}

.section-header h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 560px;
  margin-inline: auto;
}

/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--cta);
  color: #fff;
}
.btn--primary:hover {
  background: #c9684e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn--cta {
  background: var(--cta);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
}
.btn--cta:hover {
  background: #c9684e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 2rem;
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover {
  background: #1dbc58;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn--airbnb {
  background: #FF5A5F;
  color: #fff;
}
.btn--airbnb:hover {
  background: #e04a4f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 90, 95, 0.35);
}

/* ── 6. NAV ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header[data-scrolled] {
  background: var(--surface);
  box-shadow: var(--shadow-nav);
  padding: 1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition);
  flex-shrink: 0;
}

.site-header[data-scrolled] .nav__logo {
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cta);
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

.site-header[data-scrolled] .nav__links a {
  color: var(--text);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 110;
}

.nav__hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  display: block;
  transition: var(--transition);
  border-radius: 2px;
}

.site-header[data-scrolled] .nav__hamburger span {
  background: var(--text);
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center; /* crop toward left — avoids green element on the right */
}

@media (max-width: 768px) {
  .hero__bg img {
    object-position: 20% center; /* tighter crop on mobile */
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(10, 20, 15, 0.82) 0%,
    rgba(10, 20, 15, 0.62) 45%,
    rgba(10, 20, 15, 0.55) 100%
  );
}

@media (max-width: 768px) {
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(10, 20, 15, 0.42) 0%,
      rgba(10, 20, 15, 0.72) 55%,
      rgba(10, 20, 15, 0.90) 100%
    );
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 5rem;
}

.hero__title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 540px;
  opacity: 0;
  transform: translateY(30px);
}

.hero .btn {
  opacity: 0;
  transform: translateY(30px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── WAVE DIVIDERS ────────────────────────────────────────── */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  display: block;
}

.hero .wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 3;
}

/* ── 8. STATS ─────────────────────────────────────────────── */
.stats {
  background: var(--primary);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1.5rem;
}

.stat-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  display: block;
  color: var(--accent);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ── 9. APARTMENTS ────────────────────────────────────────── */
.apartments {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.apartments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.apt-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(60px);
  /* 3D floating base */
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.07),
    0 24px 48px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s ease;
}

.apt-card:hover {
  /* GSAP handles rotateX/Y — CSS handles the elevated shadow */
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.12),
    0 40px 64px rgba(0, 0, 0, 0.10);
}

.apt-card__img-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.apt-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.apt-card:hover .apt-card__img-wrap img {
  transform: scale(1.06);
}

.apt-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.apt-card__name {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.apt-card__address {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.apt-card__address svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.apt-card__amenities {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.apt-card__amenities li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.apt-card__amenities svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.apt-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.apt-card__meta svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.apt-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ── 10. WHY US ───────────────────────────────────────────── */
.why-us {
  background: var(--warm);
  padding: var(--section-py) 0;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--surface);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
  opacity: 0;
  transform: scale(0.85);
}

.why-card:hover {
  transform: translateY(-4px) scale(1);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--primary);
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.why-card__icon svg {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: rotate(-15deg) scale(0.7);
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.why-card p {
  font-size: 0.9rem;
}

/* ── 11. HOW IT WORKS ─────────────────────────────────────── */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.hiw__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 1rem;
}

.hiw__step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(40px);
}

.hiw__step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.hiw__step h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.hiw__step p {
  font-size: 0.9rem;
}

.hiw__connector {
  flex: 0 0 80px;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hiw__line {
  width: 80px;
  height: 4px;
  overflow: hidden;
  display: block;
}

.hiw__line path {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

/* ── 12. TESTIMONIALS ─────────────────────────────────────── */
.testimonials {
  background: var(--surface);
  padding: var(--section-py) 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 2rem;
  border-left: 4px solid var(--accent);
  opacity: 0;
  transform: translateY(40px);
}

.testimonial-card__stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.testimonial-card__text {
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial-card__author {
  font-weight: 600;
  font-style: normal;
  color: var(--primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-card__author::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ── 13. CTA BANNER ───────────────────────────────────────── */
.cta-banner {
  background: var(--primary);
  padding: var(--section-py) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: rgba(183, 213, 196, 0.08);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: rgba(183, 213, 196, 0.06);
  border-radius: 50%;
}

.cta-banner__inner {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--accent);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ── 14. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
}

.footer__about p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.65rem;
  transition: color var(--transition);
}

.footer__contact-item:hover {
  color: var(--accent);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── 15. FLOATING WHATSAPP ────────────────────────────────── */
.fab-whatsapp {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition);
}

.fab-whatsapp:hover {
  transform: scale(1.1);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

/* ── 16. DEPARTMENT PAGE STYLES ───────────────────────────── */
.apt-hero {
  padding-top: 5rem;
  background: var(--surface);
}

.apt-hero__image-wrap {
  width: 100%;
  height: clamp(320px, 55vw, 580px);
  overflow: hidden;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.apt-hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.apt-breadcrumb {
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.apt-breadcrumb a {
  color: var(--primary);
  transition: color var(--transition);
}
.apt-breadcrumb a:hover { color: var(--cta); }

.apt-breadcrumb span {
  margin: 0 0.4rem;
  color: var(--muted);
}

.apt-detail {
  padding: 3rem 0 var(--section-py);
}

.apt-detail__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.apt-detail__title {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.apt-detail__address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.apt-detail__address svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.apt-detail__badges {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.apt-badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--primary);
}

.apt-detail__description h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.apt-detail__description p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.apt-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.apt-amenity-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
}

.apt-amenity-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Booking sidebar */
.booking-card {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(183, 213, 196, 0.4);
}

.booking-card__header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--warm);
}

.booking-card__price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.booking-card__price span {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.booking-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.booking-card__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.booking-meta-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
}

.booking-meta-item__label {
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

.booking-meta-item__value {
  color: var(--text);
  font-weight: 500;
}

.booking-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.booking-card__note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Nearby section */
.apt-nearby {
  background: var(--bg);
  padding: 3rem 0;
}

.apt-nearby h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.nearby-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.nearby-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
}

.nearby-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.nearby-item__time {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.apt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 2rem 0 3rem;
  transition: gap var(--transition);
}

.apt-back-link:hover {
  gap: 0.85rem;
}

.apt-back-link svg {
  width: 18px;
  height: 18px;
}

/* ── 17. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .apt-detail__layout {
    grid-template-columns: 1fr 320px;
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  /* Tablet hero — center content */
  .hero__content {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    padding-inline: 2rem;
    padding-top: 2rem;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero .btn {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  /* Mobile hero — truly centered */
  .hero__content {
    padding-top: 0;
    padding-inline: 1.5rem;
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1;
  }

  /* Mobile nav */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 105;
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a {
    color: var(--text);
    font-size: 1.2rem;
  }

  .nav__links a::after {
    display: none;
  }

  /* FAB WhatsApp */
  .fab-whatsapp {
    display: flex;
  }

  /* Stats stacked */
  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 280px;
    margin-inline: auto;
  }

  /* How it works stacked */
  .hiw__steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hiw__connector {
    display: none;
  }

  .hiw__step {
    max-width: 300px;
    padding: 0;
  }

  /* Department detail page */
  .apt-detail__layout {
    grid-template-columns: 1fr;
  }

  .booking-card {
    position: static;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .apartments__grid {
    grid-template-columns: 1fr;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
  }
}

/* ── 18. REDUCED MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .apt-card,
  .why-card,
  .testimonial-card,
  .hiw__step,
  .hero__title,
  .hero__subtitle,
  .hero .btn {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── UTILITY ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── MOBILE NAV MENU (GSAP-animated) ─────────────────────── */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 105;
  background: var(--surface);
  overflow: hidden;
  height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.nav__mobile-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  width: 100%;
  text-align: center;
  padding: 5.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--warm);
  letter-spacing: -0.02em;
}

.nav__mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 1rem 0;
  margin: 0;
}

.nav__mobile-menu ul a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.9rem 2rem;
  text-align: center;
  letter-spacing: -0.03em;
  transition: color var(--transition), letter-spacing var(--transition);
}

.nav__mobile-menu ul a:hover,
.nav__mobile-menu ul a.is-active {
  color: var(--primary);
  letter-spacing: -0.01em;
}

.nav__mobile-cta {
  margin: 0.5rem 2rem 2.5rem;
  width: calc(100% - 4rem);
  justify-content: center;
}

/* On desktop, mobile menu must never show */
@media (min-width: 769px) {
  .nav__mobile-menu {
    display: none !important;
  }
}

/* ── NAV LINKS — desktop only ─────────────────────────────── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
}

/* ── MODAL SYSTEM ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 769px) {
  .modal-overlay {
    align-items: center;
    padding: 2rem;
  }
}

.modal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 12, 0.72);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  width: min(960px, 100%);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  opacity: 0;
}

@media (min-width: 769px) {
  .modal-panel {
    border-radius: var(--radius-card);
    max-height: 88svh;
  }
}

/* Custom scrollbar for modal */
.modal-panel::-webkit-scrollbar { width: 6px; }
.modal-panel::-webkit-scrollbar-track { background: transparent; }
.modal-panel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── MODAL GALLERY ────────────────────────────────────────── */
.modal-gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--text);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .modal-gallery { aspect-ratio: 4 / 3; }
}

.modal-gallery__track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.modal-gallery__slide {
  flex: 0 0 100%;
  height: 100%;
}

.modal-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
}

.modal-gallery__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.modal-gallery__btn--prev { left: 1rem; }
.modal-gallery__btn--next { right: 1rem; }

.modal-gallery__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.modal-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.modal-gallery__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ── MODAL CLOSE BUTTON ───────────────────────────────────── */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  line-height: 1;
}

.modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

/* ── MODAL CONTENT LAYOUT ─────────────────────────────────── */
.modal-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  min-height: 0;
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
  }
}

.modal-info {
  padding: 2rem 2rem 2rem 2.5rem;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-info { padding: 1.5rem; }
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 0.25rem;
}

.modal-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.modal-address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.modal-address svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.modal-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.modal-badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--primary);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.modal-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.modal-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.modal-amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
}

.modal-amenity-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.modal-nearby-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-nearby-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}

.modal-nearby-item svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.modal-nearby-time {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── MODAL CTA SIDEBAR ────────────────────────────────────── */
.modal-cta {
  background: var(--bg);
  padding: 2rem 1.75rem;
  border-left: 1px solid var(--warm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .modal-cta {
    border-left: none;
    border-top: 1px solid var(--warm);
    padding: 1.5rem;
  }
}

.modal-cta__price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.modal-cta__price strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
}

.modal-cta__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.modal-cta__meta-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
}

.modal-cta__meta-label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.modal-cta__meta-value {
  font-weight: 500;
  color: var(--text);
}

.modal-cta .btn {
  width: 100%;
  justify-content: center;
}

.modal-cta__note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ── MAGNETIC CURSOR (desktop only) ──────────────────────── */
.magnetic-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cta);
  display: none;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
  .magnetic-cursor {
    display: block;
  }
}

/* ── APT CARD HOOK PHRASE ─────────────────────────────────── */
.apt-card__hook {
  font-size: 0.82rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

/* ── FAB WHATSAPP — always visible on mobile ──────────────── */
@media (max-width: 768px) {
  .fab-whatsapp {
    display: flex;
  }
}

@media (min-width: 769px) {
  .fab-whatsapp {
    display: none;
  }
}

/* ── WAVE DIVIDERS — no extra margins ────────────────────── */
.wave-divider {
  margin-top: 0;
  margin-bottom: 0;
}
