/* ============================================================
   Urbanet — Real Estate (dummy prototype)
   Design tokens sourced from Figma (Urbanet template)
   ============================================================ */

:root {
  /* Colors */
  --black: #18181B;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-200: #E3E8EF;
  --gray-300: #CDD5E0;
  --gray-400: #97A3B6;
  --gray-500: #677489;
  --gray-600: #4A5567;
  --gray-700: #364153;
  --white-stroke: #E3E8EF;
  --black-stroke: #F1F4F8;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1440px;
  --pad-x: 50px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Ensure the hidden attribute always wins over display rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

/* ---------- Typography helpers ---------- */
.h3 { font-size: 72px; line-height: 82px; font-weight: 600; letter-spacing: -2.78%; }
.h5 { font-size: 48px; line-height: 58px; font-weight: 600; letter-spacing: -2.08%; }
.center { text-align: center; }
.muted { color: var(--gray-500); }
.muted.lg { font-size: 20px; line-height: 30px; font-weight: 300; }
.muted.sm { font-size: 16px; line-height: 26px; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px var(--pad-x);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--solid-white { background: var(--white); color: var(--black); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn--solid-white:hover { box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn--solid-dark { background: var(--black); color: var(--white); }
.btn--solid-dark:hover { box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.btn--outline { border: 1px solid currentColor; background: transparent; border-radius: var(--r-md); padding: 12px 24px; }
.btn--light { color: var(--white); }
.btn--block { width: 100%; padding: 8px 16px; font-size: 14px; }

/* ---------- Round icon buttons ---------- */
.round-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill); cursor: pointer;
  border: none; background: transparent; transition: transform .25s ease, background .25s ease;
}
.round-btn:hover { transform: scale(1.1); }
.round-btn .material-symbols-rounded { font-size: 18px; }
.round-btn--outline { border: 1px solid var(--white); color: var(--white); }
.round-btn--solid { background: var(--white); color: var(--black); }
.round-btn--outline-dark { border: 1px solid var(--black); color: var(--black); }
.round-btn--solid-dark { background: var(--black); color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 963px;
  background: linear-gradient(135deg, rgba(43, 47, 54, 0.95) 0%, rgba(74, 82, 96, 0.85) 45%, rgba(205, 213, 224, 0.3) 100%), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(255,255,255,.12), transparent 55%);
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--pad-x);
}
.logo { display: inline-flex; align-items: center; gap: 16px; }
.logo__mark { font-size: 40px; color: var(--white); }
.logo__text { font-size: 32px; font-weight: 600; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 48px; }
.nav-links a { color: var(--white-stroke); font-size: 18px; transition: color .2s ease; position: relative; }
.nav-links a.active { color: var(--white); font-weight: 700; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--white); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; }

/* Hero content */
.hero__content {
  position: relative;
  z-index: 5;
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 50px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__headline { display: flex; flex-direction: column; gap: 32px; max-width: 924px; }
.hero__title { font-size: 72px; line-height: 82px; font-weight: 600; color: var(--white); letter-spacing: -2.78%; }
.hero__title em { font-style: italic; font-weight: 600; }
.hero__sub { font-size: 20px; line-height: 30px; color: var(--black-stroke); max-width: 923px; font-weight: 400; }
.hero__cta { align-self: flex-start; }

/* AI search box */
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white); font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-pill);
}
.hero__badge .material-symbols-rounded { font-size: 18px; }

.ai-search { display: flex; flex-direction: column; gap: 16px; max-width: 760px; width: 100%; }
.ai-search__bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: var(--r-pill);
  padding: 8px 8px 8px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.ai-search__icon { color: var(--gray-500); font-size: 24px; }
.ai-search__bar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 18px; color: var(--black); min-width: 0;
}
.ai-search__bar input::placeholder { color: var(--gray-400); }
.ai-search__btn { padding: 12px 24px; border-radius: var(--r-pill); }
.ai-search__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-search__hint { color: var(--black-stroke); font-size: 14px; }
.chip {
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25); color: var(--white);
  font-family: var(--font); font-size: 14px; cursor: pointer;
  padding: 8px 16px; border-radius: var(--r-pill);
  transition: background .25s ease, transform .2s ease;
}
.chip:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* Floating house card */
.house-card {
  position: absolute;
  right: var(--pad-x);
  top: 300px;
  width: 300px;
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.house-card__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.house-card__title .material-symbols-rounded { font-size: 26px; }
.house-card__addr { font-size: 16px; color: var(--gray-600); }

/* Bottom row */
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; }
.clients {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  padding: 16px 24px; border-radius: var(--r-md);
}
.clients__avatars { display: flex; }
.avatar {
  width: 60px; height: 60px; border-radius: var(--r-pill);
  border: 3px solid rgba(255,255,255,.6);
  object-fit: cover;
}
.house-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.avatar:not(:first-child) { margin-left: -12px; }
.clients__text { color: var(--white); font-size: 20px; line-height: 26px; font-weight: 600; }
.clients__text strong { font-size: 28px; }
.hero__nav { display: flex; gap: 12px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: flex; flex-direction: column; gap: 50px; padding-block: 80px; }
.about__heading { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.about__heading h2 { max-width: 620px; color: var(--black); }
.about__heading p { max-width: 512px; }
.about__video {
  position: relative;
  height: 600px;
  background: var(--black);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about__video-el {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ============================================================
   WHAT WE OFFER
   ============================================================ */
.offer { display: flex; flex-direction: column; gap: 50px; padding-block: 80px; }
.offer__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.offer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.service-card {
  height: 400px;
  background: var(--gray-300);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:nth-child(1) { background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=600&q=60'); }
.service-card:nth-child(2) { background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=600&q=60'); }
.service-card:nth-child(3) { background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)), url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=600&q=60'); }
.service-card:nth-child(4) { background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=600&q=60'); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.service-card__body { background: var(--white); border-radius: 6px; padding: 16px; width: 100%; }
.service-card__body h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }

/* ============================================================
   FACILITIES
   ============================================================ */
.facilities { display: flex; flex-direction: column; gap: 50px; }
.facilities__heading { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.facilities__heading h2 { max-width: 620px; }
.facilities__heading p { max-width: 482px; }

/* Bento Grid */
.facilities__grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  grid-auto-rows: 240px; 
  gap: 20px; 
}
.facility-card {
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  background: var(--white); 
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md); 
  padding: 28px;
  overflow: hidden;
  position: relative;
  transition: transform .35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow .35s ease, border-color .35s ease;
}
.facility-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 20px 40px rgba(0,0,0,.08); 
  border-color: var(--black); 
}
.facility-card__icon {
  font-size: 28px; 
  width: 48px; 
  height: 48px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: var(--gray-50); 
  border-radius: var(--r-sm); 
  color: var(--black);
  margin-bottom: auto;
}
.facility-card__content {
  margin-top: 16px;
}
.facility-card h4 { 
  font-size: 18px; 
  font-weight: 600; 
  color: var(--black); 
  margin-bottom: 6px; 
}
.facility-card p { 
  font-size: 13px; 
  line-height: 1.45; 
  color: var(--gray-500); 
}

/* Bento Card Modifiers */
.facility-card--span-2-col {
  grid-column: span 2;
}
.facility-card--span-2-row {
  grid-row: span 2;
}
.facility-card--dark {
  background: var(--black);
  border-color: var(--black);
}
.facility-card--dark h4 {
  color: var(--white);
}
.facility-card--dark p {
  color: var(--gray-400);
}
.facility-card--dark .facility-card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.facility-card--accent {
  background: var(--black-stroke);
  border-color: var(--gray-200);
}
.facility-card--accent h4 {
  color: var(--black);
}
.facility-card--accent p {
  color: var(--gray-600);
}
.facility-card--accent .facility-card__icon {
  background: var(--white);
  color: var(--black);
}
.facility-card--image {
  background-size: cover;
  background-position: center;
  border: none;
  color: var(--white);
}
.facility-card--image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}
.facility-card--image > * {
  position: relative;
  z-index: 2;
}
.facility-card--image h4 {
  color: var(--white);
}
.facility-card--image p {
  color: rgba(255, 255, 255, 0.85);
}
.facility-card--image .facility-card__icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

/* ============================================================
   PROPERTY LISTINGS
   ============================================================ */
.listings { display: flex; flex-direction: column; align-items: center; gap: 50px; }
.listings__heading { display: flex; flex-direction: column; gap: 16px; }
.listings__heading h2 { max-width: 620px; }
.listings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; align-items: start; }
.property-card {
  display: block;
  background: var(--white);
  border-radius: var(--r-md);
  color: inherit;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  border: none;
}
.property-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,.15); }
.property-card__img {
  position: relative; height: 280px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
  background-size: cover; background-position: center;
}
.property-card__badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.property-card__badge {
  background: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.property-card__badge--sale { color: #F59E0B; }
.property-card__badge--featured { color: #10B981; }

.property-card__info {
  background: var(--white);
  padding: 24px;
  margin-top: -32px;
  border-radius: 24px 24px 0 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 -4px 20px rgba(0,0,0,.05);
}
.property-card__price { font-size: 24px; font-weight: 700; color: #2563EB; margin-bottom: 8px; }
.property-card__addr { font-size: 14px; color: var(--gray-500); margin-bottom: 12px; }
.property-card__title { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 24px; }

.property-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.property-card__meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--black); }
.property-card__meta .material-symbols-rounded { font-size: 18px; color: var(--black); }

.property-card__footer {
  font-size: 12px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.property-card__footer strong { color: var(--black); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--gray-50);
  max-width: none;
  display: flex; flex-direction: column; align-items: center; gap: 72px;
}
.testimonials > * { max-width: var(--maxw); width: 100%; }
.testimonials__body { display: flex; flex-direction: column; align-items: center; gap: 50px; max-width: 1076px; }
.testimonial__quote { font-size: 32px; line-height: 46px; text-align: center; color: var(--gray-600); font-weight: 400; font-style: normal; }
.testimonial__author { text-align: center; }
.testimonial__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--r-pill);
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}
.testimonial__author .name { font-size: 20px; font-weight: 500; }
.testimonials__pagination { display: flex; align-items: center; gap: 16px; }
.dots { display: flex; align-items: center; gap: 12px; }
.dot { width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--gray-300); transition: all .3s ease; }
.dot.active { background: var(--black); }

/* ============================================================
   PARTNERS (marquee)
   ============================================================ */
.partners { overflow: hidden; padding-block: 60px; }
.partners__track { display: flex; align-items: center; gap: 100px; width: max-content; }
.partner-logo {
  font-size: 28px; font-weight: 700; letter-spacing: 1px;
  color: var(--gray-400); white-space: nowrap;
}

/* ============================================================
   GETTING STARTED (steps)
   ============================================================ */
.steps { display: flex; flex-direction: column; align-items: center; gap: 70px; overflow-x: hidden; }
.journey-list { display: flex; flex-direction: column; width: 100%; max-width: 900px; margin: 0 auto; position: relative; }
.journey-row {
  position: relative;
  display: flex; align-items: center; gap: 40px; padding: 40px 20px;
}
.journey-row::after {
  content: "";
  position: absolute; bottom: 0; left: -50vw; right: -50vw;
  height: 1px; background: var(--gray-300);
}
.journey-row:first-child::before {
  content: "";
  position: absolute; top: 0; left: -50vw; right: -50vw;
  height: 1px; background: var(--gray-300);
}
.journey-row__num {
  width: 56px; height: 56px; border: 1px solid var(--gray-300); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; color: var(--gray-600); flex-shrink: 0;
}
.journey-row__img {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.journey-row__title {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 400; letter-spacing: -0.5px; color: var(--black);
}
.journey-row__title em { font-style: italic; font-weight: 400; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; gap: 70px; align-items: flex-start; }
.faq__title { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 50px; }
.faq__title h2 { margin-bottom: 12px; }
.faq__cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.faq__cta-title { font-size: 18px; font-weight: 500; }
.faq__cta .btn { margin-top: 12px; }
.faq__list { width: 615px; display: flex; flex-direction: column; gap: 20px; }
.faq-item { border-bottom: 1px solid var(--gray-200); padding-bottom: 20px; }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: 18px; font-weight: 500; color: var(--black);
}
.faq-item__q .material-symbols-rounded { transition: transform .3s ease; flex-shrink: 0; }
.faq-item.open .faq-item__q .material-symbols-rounded { transform: rotate(180deg); }
.faq-item__a { overflow: hidden; max-height: 0; transition: max-height .4s ease, margin .4s ease; }
.faq-item__a p { font-size: 16px; color: var(--gray-500); padding-top: 14px; }
.faq-item.open .faq-item__a { max-height: 200px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { max-width: none; padding: 0; }
.cta__inner {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 800px;
  background: linear-gradient(135deg, rgba(43, 47, 54, 0.95) 0%, rgba(74, 82, 96, 0.85) 50%, rgba(205, 213, 224, 0.4) 100%), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding: 100px var(--pad-x);
}
.cta__inner h2 { max-width: 748px; color: var(--white); }
.cta__caption { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.cta__caption p { font-size: 20px; font-weight: 500; color: var(--black-stroke); }
.cta__caption .btn { align-self: flex-start; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); color: var(--white); padding: 50px var(--pad-x); }
.footer__content { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { width: 293px; display: flex; flex-direction: column; gap: 24px; }
.footer__desc { font-size: 16px; opacity: .7; }
.footer__menus { display: flex; gap: 32px; flex-wrap: wrap; }
.footer__col-title { font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 16px; }
.footer__col a { font-size: 16px; opacity: .8; transition: opacity .2s ease; }
.footer__col a:hover { opacity: 1; }
.footer__newsletter { width: 300px; display: flex; flex-direction: column; gap: 16px; }
.newsletter { display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: var(--r-sm); padding: 8px 8px 8px 16px; }
.newsletter input { flex: 1; border: none; outline: none; font-family: var(--font); font-size: 16px; }
.newsletter .btn { padding: 8px 16px; font-size: 14px; }
.footer__divider { border: none; border-top: 1px solid rgba(241,244,248,.2); margin: 32px 0; max-width: var(--maxw); margin-inline: auto; }
.footer__bottom { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__bottom p { font-size: 16px; opacity: .7; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--white); color: var(--black);
  display: flex; align-items: center; justify-content: center; transition: transform .25s ease;
}
.footer__social a:hover { transform: translateY(-3px) scale(1.05); }
.footer__social .material-symbols-rounded { font-size: 18px; }

/* ============================================================
   ANIMATION INITIAL STATES (GSAP will animate from these)
   ============================================================ */
[data-reveal], [data-stagger] { will-change: transform, opacity; }

/* Reduced motion: show everything, skip animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .offer__grid { grid-template-columns: repeat(2, 1fr); }
  .facilities__grid { grid-template-columns: repeat(2, 1fr); }
  .listings__grid { grid-template-columns: repeat(2, 1fr); }
  .house-card { position: static; width: 100%; max-width: 320px; margin-top: 24px; }
  .hero__content { gap: 32px; }
}

@media (max-width: 900px) {
  :root { --pad-x: 24px; }
  .h3, .hero__title { font-size: 48px; line-height: 56px; }
  .h5 { font-size: 36px; line-height: 44px; }
  .nav-links, .navbar .btn--outline { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 20px;
    position: absolute; top: 90px; right: var(--pad-x); left: var(--pad-x);
    background: rgba(0,0,0,.85); backdrop-filter: blur(10px);
    padding: 24px; border-radius: var(--r-md); z-index: 20;
  }
  .faq { flex-direction: column; }
  .faq__list { width: 100%; }
  .journey-row { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px 12px; }
  .journey-row__title { font-size: 32px; }
  .step-arrow { transform: rotate(90deg); }
  .section { padding-block: 60px; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .facilities__grid { grid-auto-rows: auto; }
  .facility-card--span-2-row { grid-row: span 1; }
}

@media (max-width: 640px) {
  .offer__grid, .facilities__grid, .listings__grid { grid-template-columns: 1fr; }
  .facility-card--span-2-col { grid-column: span 1; }
  .facility-card--span-2-row { grid-row: span 1; }
  .facilities__grid { grid-auto-rows: auto; gap: 16px; }
  .footer__content { flex-direction: column; }
  .testimonial__quote { font-size: 22px; line-height: 32px; }
}

/* ============================================================
   AI BOTTOM SHEET (chat + results split view)
   ============================================================ */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 18, 22, .55);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .4s ease;
}
.sheet-overlay.show { opacity: 1; }

.ai-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: 90vh; max-height: 920px;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.ai-sheet.show { transform: translateY(0); }

.ai-sheet__handle-bar { display: flex; justify-content: center; padding: 12px 0 4px; flex-shrink: 0; }
.ai-sheet__handle { width: 44px; height: 5px; border-radius: var(--r-pill); background: var(--gray-300); }

.ai-sheet__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px 20px; border-bottom: 1px solid var(--gray-200); flex-shrink: 0;
}
.ai-sheet__title { display: flex; align-items: center; gap: 12px; }
.ai-sheet__logo {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.ai-sheet__name { font-size: 18px; font-weight: 600; }
.ai-sheet__status { font-size: 14px; color: var(--gray-500); }
.ai-sheet__close {
  width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-600); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s ease;
}
.ai-sheet__close:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.ai-sheet__body {
  flex: 1; display: grid; grid-template-columns: 4fr 6fr; min-height: 0;
}

/* ---- LEFT: chat ---- */
.ai-chat {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--gray-200); background: var(--gray-50);
}
.ai-chat__messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; max-width: 90%; }
.msg__avatar {
  width: 32px; height: 32px; border-radius: var(--r-pill); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.msg__avatar.ai { background: var(--black); color: var(--white); }
.msg__bubble { padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.msg--ai .msg__bubble { background: var(--white); border: 1px solid var(--gray-200); border-top-left-radius: 4px; color: var(--gray-700); }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg--user .msg__bubble { background: var(--black); color: var(--white); border-top-right-radius: 4px; }
.msg--user .msg__avatar { background: var(--gray-300); color: var(--gray-700); }

/* typing indicator */
.msg__typing { display: flex; align-items: center; gap: 5px; padding: 14px 16px; }
.msg__typing span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400);
  animation: aiBounce 1.2s infinite ease-in-out;
}
.msg__typing span:nth-child(2) { animation-delay: .2s; }
.msg__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes aiBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.ai-chat__input {
  display: flex; align-items: center; gap: 8px; padding: 16px 20px;
  border-top: 1px solid var(--gray-200); background: var(--white); flex-shrink: 0;
}
.ai-chat__input input {
  flex: 1; border: 1px solid var(--gray-200); border-radius: var(--r-pill);
  padding: 12px 18px; font-family: var(--font); font-size: 15px; outline: none;
  transition: border-color .2s ease;
}
.ai-chat__input input:focus { border-color: var(--black); }
.ai-chat__send {
  width: 44px; height: 44px; border-radius: var(--r-pill); border: none; cursor: pointer;
  background: var(--black); color: var(--white); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.ai-chat__send:hover { transform: scale(1.08); }

/* ---- RIGHT: results ---- */
.ai-results { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.ai-results__head { padding: 20px 32px; border-bottom: 1px solid var(--gray-200); flex-shrink: 0; }
.ai-results__count { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.ai-results__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-50); border: 1px solid var(--gray-200); color: var(--gray-700);
  font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: var(--r-pill);
}
.ai-tag .material-symbols-rounded { font-size: 16px; }

.ai-results__list { padding: 24px 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-content: start; }
.ai-results__loading { padding: 24px 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-content: start; }

/* skeleton cards */
.skeleton-card { height: 320px; border-radius: var(--r-md); background: var(--gray-50); position: relative; overflow: hidden; }
.skeleton-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.ai-results__empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px; text-align: center; color: var(--gray-500);
}
.ai-results__empty .material-symbols-rounded { font-size: 48px; color: var(--gray-400); }

/* compact property card inside sheet (reference-style) */
.ai-results__list .pcard,
.pcard {
  display: block !important;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px;
  overflow: hidden; color: inherit; text-decoration: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.pcard:hover { box-shadow: 0 12px 28px rgba(0,0,0,.1); border-color: var(--gray-300); }
.ai-results__list .pcard__img,
.pcard__img { display: block !important; width: 100%; height: 130px; object-fit: cover; background: var(--gray-300); }
.ai-results__list .pcard__body,
.pcard__body { display: block !important; padding: 12px 14px 14px; }
.pcard__price-row { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pcard__price { font-size: 17px; font-weight: 700; color: var(--black); }
.pcard__price small { font-size: 12px; font-weight: 400; color: var(--gray-500); }
.pcard__tag {
  font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: var(--r-pill);
  background: #FEE2E2; color: #DC2626; white-space: nowrap;
}
.pcard__tag--rent { background: #DBEAFE; color: #2563EB; }
.pcard__name { font-size: 15px; font-weight: 600; color: var(--black); line-height: 1.3; margin-bottom: 4px; }
.pcard__addr { font-size: 12px; color: var(--gray-500); line-height: 1.4; margin-bottom: 10px; }
.pcard__meta { display: flex !important; align-items: center; gap: 14px; flex-wrap: wrap; }
.pcard__meta span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-600); }
.pcard__meta .material-symbols-rounded { font-size: 16px; color: var(--gray-500); }

/* lock body scroll when sheet open */
body.sheet-open { overflow: hidden; }

/* ---- responsive: stack chat over results ---- */
@media (max-width: 900px) {
  .ai-sheet { height: 94vh; }
  .ai-sheet__body { grid-template-columns: 1fr; grid-template-rows: minmax(180px, auto) 1fr; }
  .ai-chat { border-right: none; border-bottom: 1px solid var(--gray-200); max-height: 240px; }
  .ai-results__list, .ai-results__loading { grid-template-columns: 1fr; }
  .ai-sheet__header { padding: 12px 20px 16px; }
  .ai-results__head { padding: 16px 20px; }
  .ai-results__list { padding: 16px 20px; }
}

/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */
.navbar--solid { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.navbar--solid .logo__mark,
.navbar--solid .logo__text { color: var(--black); }
.navbar--solid .nav-links a { color: var(--gray-600); }
.navbar--solid .nav-links a:hover { color: var(--black); }
.navbar--solid .nav-links a::after { background: var(--black); }
.navbar--solid .btn--outline { color: var(--black); }
.navbar--solid .nav-toggle { color: var(--black); }

.detail { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--pad-x) 80px; }

.detail__notfound {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 120px 24px; min-height: 60vh;
}
.detail__notfound .material-symbols-rounded { font-size: 64px; color: var(--gray-400); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gray-500); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { transition: color .2s ease; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb .material-symbols-rounded { font-size: 18px; }
.breadcrumb__current { color: var(--black); font-weight: 500; }

/* Header */
.detail__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.detail__badges { display: flex; gap: 8px; margin-bottom: 16px; }
.badge--dark { background: var(--black); color: var(--white); box-shadow: none; }
.detail__title { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -1px; margin-bottom: 12px; }
.detail__addr { display: flex; align-items: center; gap: 6px; color: var(--gray-500); font-size: 16px; }
.detail__addr .material-symbols-rounded { font-size: 20px; }
.detail__price-box { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.detail__price { font-size: 32px; font-weight: 600; }
.detail__price small { font-size: 18px; font-weight: 400; color: var(--gray-500); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
.gallery__main {
  height: 480px; border-radius: var(--r-md);
  background-size: cover; background-position: center;
  background-color: var(--gray-300);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__thumb {
  height: 110px; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer;
  background-size: cover; background-position: center; background-color: var(--gray-300);
  transition: border-color .2s ease, transform .2s ease; padding: 0;
}
.gallery__thumb:hover { transform: translateY(-3px); }
.gallery__thumb.is-active { border-color: var(--black); }

/* Body layout */
.detail__body { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.detail__main { display: flex; flex-direction: column; gap: 40px; }

/* Quick facts */
.facts {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 24px;
}
.fact { display: flex; align-items: center; gap: 12px; }
.fact .material-symbols-rounded { font-size: 28px; color: var(--gray-600); }
.fact div { display: flex; flex-direction: column; line-height: 1.2; }
.fact strong { font-size: 20px; font-weight: 600; }
.fact span { font-size: 13px; color: var(--gray-500); }

/* Sections */
.detail__section { display: flex; flex-direction: column; gap: 16px; }
.h6-title { font-size: 24px; font-weight: 600; }
.detail__desc { font-size: 17px; line-height: 1.7; color: var(--gray-600); }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.amenity { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--gray-700); }
.amenity .material-symbols-rounded { font-size: 22px; color: var(--black); }

/* Feature chips */
.feature-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.feature-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-pill);
  padding: 10px 18px; font-size: 15px; font-weight: 500; color: var(--gray-700);
}
.feature-chip .material-symbols-rounded { font-size: 20px; }

/* Map placeholder */
.map-placeholder {
  height: 280px; border-radius: var(--r-md);
  background: repeating-linear-gradient(45deg, var(--gray-50), var(--gray-50) 12px, #eef2f7 12px, #eef2f7 24px);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--gray-500);
}
.map-placeholder .material-symbols-rounded { font-size: 40px; }

/* Sidebar agent card */
.detail__sidebar { position: sticky; top: 24px; }
.agent-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
  padding: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.06);
}
.agent-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.agent-card__avatar {
  width: 52px; height: 52px; border-radius: var(--r-pill);
  background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=150&h=150&q=80');
  background-size: cover;
  background-position: center;
}
.agent-card__name { font-size: 18px; font-weight: 600; }
.agent-form { display: flex; flex-direction: column; gap: 12px; }
.agent-form input, .agent-form textarea {
  border: 1px solid var(--gray-200); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: var(--font); font-size: 15px; outline: none; resize: none;
  transition: border-color .2s ease;
}
.agent-form input:focus, .agent-form textarea:focus { border-color: var(--black); }
.btn--block-lg { width: 100%; }
.btn--outline-dark { background: transparent; border: 1px solid var(--gray-300); color: var(--black); }
.btn--outline-dark:hover { border-color: var(--black); }

/* Similar */
.similar { margin-top: 72px; display: flex; flex-direction: column; gap: 32px; }
.similar__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }

/* Detail responsive */
@media (max-width: 1000px) {
  .detail__body { grid-template-columns: 1fr; }
  .detail__sidebar { position: static; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .similar__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .detail__title { font-size: 32px; }
  .gallery__main { height: 300px; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery__thumb { height: 70px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
  .detail__header { flex-direction: column; align-items: flex-start; }
  .detail__price-box { align-items: flex-start; }
  .similar__grid { grid-template-columns: 1fr; }
}
