/* ============================================================
   DreamMore Realty — Main Stylesheet
   Design: Quiet Luxury · Cream + Gold + Charcoal · Miami Elegance
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --cream:        #F5F0EB;
  --cream-dark:   #EDE5D8;
  --cream-mid:    #E8E0D4;
  --charcoal:     #1C1917;
  --charcoal-mid: #44403C;
  --stone:        #57524E;
  --stone-light:  #A8A29E;
  --gold:         #B8955A;
  --gold-light:   #D4B896;
  --gold-pale:    #F0E6D3;
  --white:        #FFFFFF;
  --border:       rgba(28,25,23,.08);
  --shadow-sm:    0 2px 12px rgba(28,25,23,.06);
  --shadow-md:    0 8px 40px rgba(28,25,23,.10);
  --shadow-lg:    0 24px 80px rgba(28,25,23,.14);

  /* Legacy variable aliases for inline styles on existing pages */
  --navy:       #1C1917;
  --navy-mid:   #EDE5D8;
  --navy-light: #E8E0D4;
  --off-white:  #F5F0EB;
  --text-muted: #57524E;
  --card-bg:    #FFFFFF;
  --shadow:     0 8px 40px rgba(28,25,23,.12);

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:       6px;
  --radius-lg:    14px;
}

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

/* ── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 500; }
em { font-style: italic; color: var(--gold); }
.gold  { color: var(--gold); }
.italic { font-style: italic; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── LAYOUT ────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
.section    { padding: 80px 3rem; }
.section-header { margin-bottom: 3.5rem; }
.section-header p {
  color: var(--stone);
  max-width: 560px;
  margin: 0.75rem auto 0;
  font-size: 0.95rem;
  font-weight: 300;
}
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }

/* Gold divider */
.gold-divider {
  width: 48px; height: 1px;
  background: var(--gold);
  display: block;
  margin: 1rem 0;
}
.section-header .gold-divider,
.text-center .gold-divider { margin: 1rem auto; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-lg { padding: 0.9rem 2.4rem; font-size: 0.88rem; }

.btn-gold {
  background: var(--gold); color: var(--charcoal);
  box-shadow: 0 4px 24px rgba(184,149,90,.35);
}
.btn-gold:hover {
  background: var(--gold-light); color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(184,149,90,.45);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--charcoal); }

.btn-charcoal {
  background: var(--charcoal); color: var(--white);
}
.btn-charcoal:hover { background: var(--charcoal-mid); color: var(--white); }

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.reveal, .animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1),
              transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible, .animate-on-scroll.visible {
  opacity: 1; transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── NAV ───────────────────────────────────────────────── */
.nav, #navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 1.75rem;
  transition: background .4s, box-shadow .4s;
}
.nav.scrolled, #navbar.scrolled {
  background: rgba(245,240,235,.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; height: 72px;
}

/* Logo */
.nav-logo, .logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 500; color: var(--charcoal);
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; letter-spacing: .06em;
  color: var(--white); line-height: 1.1;
  transition: color .4s;
  display: block;
}
.nav.scrolled .logo-name,
#navbar.scrolled .logo-name { color: var(--charcoal); }

.logo-sub {
  display: block; font-size: 8px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 1px;
  transition: color .4s;
}
.nav.scrolled .logo-sub,
#navbar.scrolled .logo-sub { color: var(--gold); }

/* Nav links */
.nav-links {
  display: flex; gap: 2px; list-style: none; margin-left: 16px;
}
.nav-links a {
  font-size: 12.5px; font-weight: 400; letter-spacing: .02em;
  text-decoration: none; padding: 8px 9px; border-radius: 6px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  transition: color .3s, background .3s;
}
.nav-phone { white-space: nowrap; }
.nav-links a:hover { color: white; background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--gold-light); }
.nav.scrolled .nav-links a,
#navbar.scrolled .nav-links a { color: var(--stone); }
.nav.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a:hover { color: var(--charcoal); background: var(--cream-dark); }
.nav.scrolled .nav-links a.active,
#navbar.scrolled .nav-links a.active { color: var(--gold); }

/* Nav end / actions */
.nav-end, .nav-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}
.nav-lang {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); cursor: pointer; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: none;
  font-family: var(--font-body); transition: .3s;
}
.nav-lang:hover { color: white; border-color: rgba(255,255,255,.4); }
.nav.scrolled .nav-lang,
#navbar.scrolled .nav-lang { color: var(--stone); border-color: var(--border); }
.nav.scrolled .nav-lang:hover,
#navbar.scrolled .nav-lang:hover { color: var(--charcoal); }

.nav-phone {
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: rgba(255,255,255,.7); transition: color .3s;
}
.nav.scrolled .nav-phone,
#navbar.scrolled .nav-phone { color: var(--charcoal-mid); }
.nav-phone:hover { color: white; }
.nav.scrolled .nav-phone:hover,
#navbar.scrolled .nav-phone:hover { color: var(--charcoal); }

.nav-whatsapp {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 9px 20px; border-radius: 6px; text-decoration: none;
  background: var(--gold); color: var(--charcoal) !important;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(184,149,90,.35);
  display: flex; align-items: center; gap: 6px;
}
.nav-whatsapp:hover {
  background: var(--gold-light); color: var(--charcoal) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,149,90,.45);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; margin-left: 12px;
  background: none; border: none;
}
.hamburger span {
  width: 22px; height: 2px; background: white; border-radius: 2px; display: block;
  transition: all .3s;
}
.nav.scrolled .hamburger span,
#navbar.scrolled .hamburger span { background: var(--charcoal); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 300;
  display: flex; flex-direction: column; padding: 80px 2rem 2rem;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  font-size: 1.4rem; font-family: var(--font-display); font-weight: 400;
  color: var(--charcoal); padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px;
  font-size: 1.5rem; cursor: pointer; color: var(--charcoal);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: none; border: none;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(7,21,38,.80) 0%,
      rgba(7,21,38,.50) 40%,
      rgba(7,21,38,.75) 100%
    ),
    url('../images/miami-aerial.jpg') center/cover no-repeat;
  background-color: #071526;
  transform-origin: center center;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(to top, rgba(10,8,6,.9) 0%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 1280px; margin: 0 auto;
  padding: 80px 3rem 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-light);
}
.hero-badge::before {
  content: ''; width: 32px; height: 1px; background: var(--gold-light);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 300; line-height: 1.06;
  color: var(--white); margin-bottom: 24px;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--gold-light); }
.hero-sub {
  font-size: 15px; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,.6); max-width: 480px; margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 56px; flex-wrap: wrap;
}
.hero-stats {
  display: flex; gap: 0;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.hero-stat {
  padding-right: 36px; margin-right: 36px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 400; line-height: 1; color: white;
}
.hero-stat .label {
  font-size: 10px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-top: 5px;
}

/* ── HERO PROPERTY CARD ─────────────────────────────────── */
.hero-card-wrap {
  flex-shrink: 0;
  opacity: 0;
  animation: fadeLeft .9s .8s forwards;
  position: relative;
}
.hero-property-card {
  width: 300px;
  background: rgba(245,240,235,.97);
  backdrop-filter: blur(20px);
  border-radius: 16px; overflow: visible;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.15);
  text-decoration: none; color: inherit; display: block;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.hero-property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 100px rgba(28,25,23,.2), 0 0 0 1px rgba(255,255,255,.2);
  color: inherit;
}

/* Card fade transition */
.hero-property-card.fading {
  opacity: 0;
  transform: translateY(10px);
}
.hero-property-card { transition: opacity .35s ease, transform .35s ease; }
.hero-property-card:hover { transform: translateY(-6px); }

.hpc-img {
  height: 190px; position: relative; overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(160deg, #1a3040, #2a5060, #3a7080, #d4956a);
  display: flex; align-items: center; justify-content: center;
}
.hpc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .4s ease, transform .5s cubic-bezier(.4,0,.2,1);
}
.hero-property-card:hover .hpc-img img { transform: scale(1.05); }
.hpc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,14,10,.5) 0%, transparent 60%);
}
.hpc-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--white); color: var(--charcoal);
  font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; z-index: 2;
}
.hpc-status-dot {
  position: absolute; top: 12px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
  z-index: 2;
}
.hpc-price-tag {
  position: absolute; bottom: 12px; left: 14px; z-index: 2;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 500; color: white; letter-spacing: .01em;
}
.hpc-body {
  padding: 16px 18px 18px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
.hpc-address { font-size: 13px; font-weight: 500; color: var(--charcoal); margin-bottom: 3px; }
.hpc-city    { font-size: 11.5px; color: var(--stone); margin-bottom: 12px; font-weight: 300; }
.hpc-divider { height: 1px; background: var(--cream-dark); margin-bottom: 12px; }
.hpc-meta    { display: flex; justify-content: space-between; }
.hpc-meta-item { text-align: center; flex: 1; }
.hpc-meta-item + .hpc-meta-item { border-left: 1px solid var(--cream-dark); }
.hpc-meta-val {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 500; color: var(--charcoal); line-height: 1.2;
}
.hpc-meta-lbl {
  font-size: 9.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--stone-light); margin-top: 2px;
}


/* Card counter dots */
.hpc-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 18px 14px;
}
.hpc-dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--cream-dark);
  transition: width .3s, background .3s;
  cursor: pointer; border: none; padding: 0;
}
.hpc-dot.active {
  width: 20px; background: var(--gold);
}

/* ── SEARCH SECTION ─────────────────────────────────────── */
.search-section {
  position: relative; z-index: 20;
  padding: 0 3rem;
}
.search-section .container {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: -52px auto 0;
  padding: 0;
}
.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--cream-dark);
  padding: 0 32px;
}
.search-tab, .s-tab {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--stone); padding: 18px 20px 16px;
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.search-tab:hover, .s-tab:hover { color: var(--charcoal-mid); }
.search-tab.active, .s-tab.active {
  color: var(--charcoal); border-bottom-color: var(--gold); font-weight: 600;
}

.search-bar {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr auto;
  gap: 0; padding: 24px 32px; align-items: end;
}
.search-field {
  padding: 0 24px;
  border-right: 1px solid var(--cream-mid);
  position: relative;
}
.search-field:first-child { padding-left: 0; }
.search-field label {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 8px;
}
.search-field input,
.search-field select {
  width: 100%; border: none; background: none; padding: 0;
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  color: var(--charcoal); outline: none; -webkit-appearance: none;
  cursor: pointer; line-height: 1.4;
}
.search-field input::placeholder { color: var(--stone-light); }
.search-submit {
  background: var(--charcoal); color: var(--white);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; padding: 14px 28px; border-radius: 8px;
  border: none; cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  transition: background .2s, transform .15s;
  white-space: nowrap; margin-left: 16px;
}
.search-submit:hover { background: var(--charcoal-mid); transform: translateY(-1px); }

/* ── SECTION EYEBROW ────────────────────────────────────── */
.section-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.eyebrow-line  { width: 24px; height: 1px; background: var(--gold); }
.eyebrow-text {
  font-size: 10px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 12px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 15px; font-weight: 300; color: var(--stone); line-height: 1.7; }

/* ── SERVICES / FEATURES ─────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--cream-dark);
  border-radius: 16px; overflow: hidden;
  margin-top: 48px;
}
.feature-card {
  background: var(--white); padding: 44px 40px;
  transition: background .3s;
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; bottom: 0; left: 40px; right: 40px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.feature-card:hover { background: var(--cream); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { font-size: 1.6rem; margin-bottom: 16px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500; color: var(--charcoal); margin-bottom: 12px;
}
.feature-card p { font-size: 14px; font-weight: 300; color: var(--stone); line-height: 1.7; }
.learn-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 24px; font-size: 12.5px; font-weight: 500;
  letter-spacing: .06em; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--gold-pale); padding-bottom: 1px;
  transition: border-color .2s, gap .2s;
}
.learn-more:hover { border-color: var(--gold); gap: 12px; color: var(--gold); }
.arrow { transition: transform .2s; }
.learn-more:hover .arrow { transform: translateX(4px); }

/* ── LISTING CARDS ──────────────────────────────────────── */
.listing-card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  text-decoration: none; color: inherit; display: block;
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg); color: inherit;
}
.listing-img {
  height: 240px; overflow: hidden; position: relative;
  background: var(--cream-dark);
}
.listing-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.listing-card:hover .listing-img img { transform: scale(1.05); }
.listing-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--white); color: var(--charcoal);
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 99px;
}
.listing-info { padding: 20px 22px 22px; }
.listing-price {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 500; color: var(--charcoal); margin-bottom: 6px;
}
.listing-address {
  font-size: 13px; font-weight: 400; color: var(--stone); margin-bottom: 14px;
}
.listing-meta {
  display: flex; gap: 16px;
  font-size: 12px; font-weight: 400; color: var(--stone-light);
  padding-top: 14px; border-top: 1px solid var(--cream-dark);
}

/* Listings grid (search results & featured) */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Carousel */
.feat-carousel { position: relative; overflow: hidden; }
.feat-track    { display: flex; gap: 1.5rem; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.feat-slide    { flex: 0 0 calc(33.333% - 1rem); min-width: calc(33.333% - 1rem); }

/* ── NEIGHBORHOODS ──────────────────────────────────────── */
.neighborhoods-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px; gap: 10px;
}
.neighborhood-card {
  border-radius: 10px; overflow: hidden; position: relative;
  cursor: pointer; transition: transform .35s;
  display: block; text-decoration: none;
}
.neighborhood-card:hover { transform: scale(1.02); }
.neighborhood-card:first-child { grid-column: span 2; grid-row: span 2; }
.neighborhood-card:nth-child(4) { grid-column: span 2; }
.neighborhood-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,.8) 0%, rgba(10,8,6,.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px;
  opacity: .7; transition: opacity .3s;
}
.neighborhood-card:hover .overlay { opacity: 1; }
.neighborhood-card .overlay h4 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 500; color: white; margin-bottom: 3px;
}
.neighborhood-card:first-child .overlay h4 { font-size: 1.8rem; }
.neighborhood-card .overlay p {
  font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .06em;
}

/* ── BROKER CTA ─────────────────────────────────────────── */
.broker-cta { background: var(--white); }
.broker-cta-inner {
  display: flex; align-items: center; gap: 48px;
  padding: 60px 0; flex-wrap: wrap;
}
.broker-photo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 400;
  color: var(--charcoal); flex-shrink: 0;
}
.broker-cta-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 8px; }
.broker-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonials-section { background: var(--cream); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 0;
}
.testimonial-card {
  background: var(--white); border-radius: 14px; padding: 34px 30px;
  box-shadow: var(--shadow-sm); transition: all .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { font-size: 12px; letter-spacing: 2px; color: var(--gold); margin-bottom: 18px; }
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 400; font-style: italic;
  color: var(--charcoal-mid); line-height: 1.75; margin-bottom: 22px;
  border-left: 2px solid var(--gold-pale); padding-left: 16px;
  border-radius: 0;
}
.testimonial-client {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--cream-dark);
}
.client-avatar {
  width: 38px; height: 38px; background: var(--gold-pale);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: var(--gold); flex-shrink: 0;
}
.client-name   { font-size: 13.5px; font-weight: 500; color: var(--charcoal); }
.client-source { font-size: 11px; color: var(--stone-light); margin-top: 1px; }

/* ── LANG BANNER ────────────────────────────────────────── */
.lang-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 36px 0; flex-wrap: wrap;
}
.lang-banner strong {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--charcoal);
}

/* Dark lang banner variant (used on charcoal bg sections) */
.lang-banner-dark {
  background: var(--charcoal); padding: 52px 3rem;
}
.lang-banner-dark .lang-banner strong { color: var(--white); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: #100E0C; padding: 60px 3rem 32px; }

.footer-inner,
footer .container { max-width: 1280px; margin: 0 auto; }

.footer-top,
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo-name {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  color: var(--white); letter-spacing: .06em; display: block;
}
.footer-logo-tag,
.footer-logo-sub {
  font-size: 8.5px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-top: 2px; display: block;
}
.footer-brand > p,
.footer-brand-desc {
  font-size: 13.5px; font-weight: 300; color: rgba(255,255,255,.35);
  line-height: 1.7; margin-top: 16px; max-width: 260px;
}
.footer-license {
  font-size: 11px; color: rgba(255,255,255,.2);
  margin-top: 12px; letter-spacing: .04em;
}

.footer-col h4 {
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13.5px; font-weight: 300;
  color: rgba(255,255,255,.45); text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.8); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.footer-contact-item .icon { font-size: 14px; line-height: 1.6; flex-shrink: 0; }
.footer-contact-item a,
.footer-contact-item span {
  font-size: 13.5px; color: rgba(255,255,255,.55); font-weight: 300;
  text-decoration: none;
}
.footer-contact-item a:hover { color: rgba(255,255,255,.8); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.07); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.social-icon:hover { background: var(--gold); color: var(--charcoal); }

.footer-bottom {
  padding-top: 28px;
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
footer .footer-bottom p,
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,.2);
}
.footer-copy strong { color: rgba(255,255,255,.35); }
.idx-disclaimer {
  font-size: 10px; color: rgba(255,255,255,.13);
  line-height: 1.6; margin-top: 6px; max-width: 680px;
}
.equal-housing { font-size: 12px; color: rgba(255,255,255,.2); }

/* Footer links */
footer a[href="privacy.php"],
footer a[href="terms.php"] {
  color: rgba(255,255,255,.2); font-size: 0.78rem;
}
footer a[href="privacy.php"]:hover,
footer a[href="terms.php"]:hover { color: rgba(255,255,255,.5); }

/* Btn inside footer */
footer .btn-outline {
  color: var(--gold); border-color: var(--gold);
  font-size: 0.72rem; padding: 0.55rem 1.2rem;
}

/* ── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 54px; height: 54px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: scale(1.1); color: white;
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
}
.pulse {
  position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid rgba(37,211,102,.4);
  animation: pulsate 2s ease-out infinite;
}
@keyframes pulsate {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.5); opacity: 0;  }
}

/* ── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero, .about-hero {
  background: linear-gradient(160deg, rgba(7,21,38,0.95) 60%, rgba(196,151,59,0.08)),
              url('../images/miami-aerial.jpg') center/cover no-repeat;
  background-color: #071526;
  padding: 120px 3rem 64px;
  text-align: center;
}
.page-hero h1, .about-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; }
.page-hero p, .about-hero p  { color: rgba(255,255,255,.5); font-size: 15px; font-weight: 300; margin-top: 12px; }

/* ── ABOUT PROFILE LAYOUT ───────────────────────────────── */
.about-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-profile-photo { width: 100%; border-radius: 12px; object-fit: cover; display: block; }
.about-creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (max-width: 680px) {
  .about-profile { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-profile-photo { max-width: 180px; margin: 0 auto; }
  .about-creds-grid { grid-template-columns: 1fr; }
}

/* ── FORM ELEMENTS ──────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-grid .form-group.full { grid-column: 1 / -1; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 8px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--cream-dark); border-radius: 8px;
  background: var(--white); color: var(--charcoal);
  font-family: var(--font-body); font-size: 14px;
  transition: border-color .2s; outline: none;
}
.form-control:focus { border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-message {
  padding: 14px 20px; border-radius: 8px; margin-bottom: 20px;
  font-size: 14px; font-weight: 400;
  background: var(--gold-pale); color: var(--charcoal);
  border-left: 3px solid var(--gold);
  transition: opacity .5s;
}

/* ── GENERAL CARDS / UTILITIES ──────────────────────────── */
.card {
  background: var(--white); border-radius: 14px;
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem;   }

/* ── ADMIN PANEL ────────────────────────────────────────── */
.admin-body { background: var(--cream); min-height: 100vh; padding-top: 0; }
.admin-nav  { background: var(--charcoal); padding: 0 2rem; }
.admin-nav .nav-inner { height: 60px; }
.admin-content { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table th {
  background: var(--cream-dark); padding: 14px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stone);
  text-align: left;
}
.admin-table td { padding: 14px 18px; border-top: 1px solid var(--cream-dark); font-size: 14px; }
.admin-table tr:hover td { background: var(--cream); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav, #navbar    { padding: 0 1.5rem; }
  .container       { padding: 0 1.5rem; }
  .section         { padding: 64px 1.5rem; }
  .search-section  { padding: 0 1.5rem; }
  footer           { padding: 48px 1.5rem 24px; }
  .hero-content    { padding: 80px 1.5rem 0; grid-template-columns: 1fr; }
  .hero-card-wrap  { display: none; }

  .search-bar      { grid-template-columns: 1fr 1fr; gap: 16px; }
  .search-field    { border-right: none; padding: 0; }
  .search-submit   { margin-left: 0; }

  .features-grid          { grid-template-columns: 1fr 1fr; }
  .listings-grid          { grid-template-columns: 1fr 1fr; }
  .testimonials-grid      { grid-template-columns: 1fr 1fr; }
  .footer-top, .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .neighborhoods-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .neighborhood-card:first-child { grid-column: span 2; grid-row: span 1; }
  .neighborhood-card:nth-child(4) { grid-column: span 2; }

  .hamburger { display: flex; }
  .nav-links  { display: none; }
  .nav-end .nav-whatsapp,
  .nav-cta .nav-whatsapp { display: none; }
}

@media (max-width: 768px) {
  .nav, #navbar   { padding: 0 1.25rem; }
  .container      { padding: 0 1.25rem; }
  .section        { padding: 56px 1.25rem; }
  .search-section { padding: 0 1.25rem; }
  .hero-content   { padding: 80px 1.25rem 0; }
  footer          { padding: 40px 1.25rem 20px; }

  .search-bar     { grid-template-columns: 1fr; }
  .search-section .container { margin: 0 auto; border-radius: 0; }

  .features-grid      { grid-template-columns: 1fr; }
  .listings-grid      { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .footer-top, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom      { flex-direction: column; align-items: flex-start; }

  .neighborhoods-grid { grid-template-columns: 1fr; }
  .neighborhood-card:first-child,
  .neighborhood-card:nth-child(4) { grid-column: span 1; }

  .hero-stats { flex-wrap: wrap; gap: 20px; padding-top: 28px; }
  .hero-stat  { border-right: none; padding-right: 0; margin-right: 0; }

  .broker-cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .feat-slide { flex: 0 0 100%; min-width: 100%; }

  .lang-banner { flex-direction: column; align-items: flex-start; }
}
