/* ─────────────────────────────────────────────────────────────
   LuxEstate – Public CSS
   Design system: Anthracite + Copper, Cinzel + Josefin Sans
───────────────────────────────────────────────────────────── */

/* ── Google Fonts fallback (already in header.php) ─────────── */
:root {
  --anthracite:   #1E1E1E;
  --anthracite-2: #2D2D2D;
  --anthracite-3: #3A3A3A;
  --copper:       #B87333;
  --copper-light: #D4956A;
  --copper-dark:  #8A5520;
  --cream:        #F5F0EA;
  --cream-2:      #EDE8E1;
  --white:        #FFFFFF;
  --gray-light:   #F0ECE6;
  --gray-mid:     #9A9286;
  --gray-dark:    #5C5650;
  --success:      #4CAF50;
  --danger:       #E53935;
  --warning:      #FF9800;
  --info:         #1976D2;

  --font-heading: 'Cinzel', Georgia, serif;
  --font-body:    'Josefin Sans', 'Helvetica Neue', sans-serif;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.18);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.28);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --container: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::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(--anthracite);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; color: var(--copper); }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.1rem; letter-spacing: .04em; }
h5 { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); margin-bottom: .75rem; }
p  { font-size: .95rem; color: var(--gray-dark); line-height: 1.7; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── Flash messages ─────────────────────────────────────────── */
.flash {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-lg);
  font-size: .9rem; font-weight: 500; max-width: 90vw;
  box-shadow: var(--shadow);
  animation: fadeDown .4s ease;
}
.flash--success { background: var(--success); color: #fff; }
.flash--danger  { background: var(--danger);  color: #fff; }
.flash--warning { background: var(--warning); color: #fff; }
.flash--info    { background: var(--info);    color: #fff; }
.flash button   { background: rgba(255,255,255,.25); border-radius: 50%; width:22px; height:22px; font-size:1.1rem; line-height:1; display:flex; align-items:center; justify-content:center; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  font-family: var(--font-body);
  font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--copper); color: var(--white);
  border: 2px solid var(--copper);
}
.btn-primary:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.btn-outline {
  background: transparent; color: var(--copper);
  border: 2px solid var(--copper);
}
.btn-outline:hover { background: var(--copper); color: var(--white); }
.btn-sm { padding: .5rem 1.1rem; font-size: .8rem; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(30,30,30,.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(184,115,51,.12);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(30,30,30,.92); }

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); letter-spacing: .06em;
}
.logo span { color: var(--copper); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-links a {
  color: rgba(255,255,255,.78); font-size: .8rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--copper); }

.nav-cta {
  display: flex; align-items: center; gap: .75rem;
}
.nav-user { display: flex; align-items: center; gap: .75rem; }
.nav-user-name { color: rgba(255,255,255,.7); font-size: .8rem; font-weight: 500; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column;
  position: fixed; top: 70px; left: 0; right: 0;
  background: var(--anthracite-2);
  border-bottom: 2px solid var(--copper);
  z-index: 999; padding: 1rem 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: .9rem 2rem;
  color: rgba(255,255,255,.85); font-size: .9rem;
  font-weight: 600; letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--copper); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden; color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=85') center/cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,30,30,.82) 0%, rgba(30,30,30,.5) 60%, rgba(184,115,51,.12) 100%);
}
.hero-line-v {
  position: absolute; left: clamp(1rem, 6vw, 5rem);
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(184,115,51,.35) 30%, rgba(184,115,51,.35) 70%, transparent 100%);
  animation: lineGrow 1.2s .4s cubic-bezier(.4,0,.2,1) both;
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: clamp(120px, 15vh, 160px);
  padding-bottom: 2rem;
}
.hero-eyebrow {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--copper-light); margin-bottom: 1.2rem;
}
.hero-title {
  color: var(--white); line-height: 1.08;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title .copper { color: var(--copper-light); font-style: italic; }
.hero-subtitle {
  font-size: .95rem; color: rgba(255,255,255,.72);
  max-width: 480px; margin-bottom: 2rem; line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Search bar */
.search-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1px;
  background: rgba(245,240,234,.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(184,115,51,.25);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 860px;
}
.search-field {
  flex: 1 1 160px;
  display: flex; flex-direction: column;
  padding: .9rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,.08);
  background: transparent;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper-light); margin-bottom: .35rem;
}
.search-field input,
.search-field select {
  background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--font-body); font-size: .9rem;
  -webkit-appearance: none; appearance: none;
}
.search-field input::placeholder { color: rgba(255,255,255,.45); }
.search-field select option { background: var(--anthracite-2); color: var(--white); }
.search-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 1.75rem;
  background: var(--copper); color: var(--white);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background var(--transition);
  border: none; border-radius: 0;
}
.search-btn:hover { background: var(--copper-dark); }

/* Hero stats */
.hero-stats {
  position: relative; z-index: 2;
  padding: 1.5rem 1.75rem 2rem;
}
.hero-stats-inner {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  border-top: 1px solid rgba(184,115,51,.2);
  padding-top: 1.5rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: .35rem;
}
.stat-unit { font-size: 1.1rem; color: var(--copper-light); }
.stat-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ── Section commons ────────────────────────────────────────── */
.section-header { text-align: left; margin-bottom: 3rem; }
.section-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper); margin-bottom: .8rem;
}
.section-title { margin-bottom: .75rem; }
.section-sub { font-size: .95rem; color: var(--gray-dark); max-width: 500px; }

/* ── Featured listings ──────────────────────────────────────── */
.section-featured { padding: 6rem 0; background: var(--cream); }
.featured-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.listing-img {
  position: relative; height: 220px; overflow: hidden;
  background: var(--gray-light);
}
.listing-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.listing-card:hover .listing-img img { transform: scale(1.06); }
.listing-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--copper); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: 2px;
}
.listing-body { padding: 1.4rem 1.5rem; }
.listing-price {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  color: var(--copper); margin-bottom: .5rem;
}
.listing-title {
  font-weight: 600; font-size: 1rem; margin-bottom: .5rem;
  color: var(--anthracite);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-location {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--gray-mid); margin-bottom: 1rem;
}
.listing-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  padding-top: .85rem; border-top: 1px solid var(--gray-light);
}
.meta-item {
  display: flex; align-items: center; gap: .35rem;
  font-size: .8rem; color: var(--gray-dark); font-weight: 500;
}

/* ── Why section ────────────────────────────────────────────── */
.section-why { padding: 6rem 0; background: var(--anthracite); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.why-visual {
  position: relative; height: 540px; overflow: visible;
  border-radius: var(--radius-lg);
}
.why-img-wrap {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg); overflow: hidden;
}
.why-img-wrap img { width:100%; height:100%; object-fit:cover; }
.why-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--copper);
  padding: 1.5rem 2rem; border-radius: var(--radius);
  text-align: center; z-index: 2;
}
.why-badge-num {
  font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.why-badge-text { font-size: .75rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .12em; }
.why-accent {
  position: absolute; top: -1rem; left: -1rem;
  width: 60%; height: 60%;
  border: 1px solid rgba(184,115,51,.3);
  border-radius: var(--radius-lg); z-index: 0; pointer-events: none;
}
.why-features { display: flex; flex-direction: column; gap: 1.75rem; }
.why-feature {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.25rem; border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(184,115,51,.1);
  transition: background var(--transition);
}
.why-feature:hover { background: rgba(184,115,51,.08); }
.why-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(184,115,51,.15); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--copper);
}
.why-features h4 { color: var(--white); margin-bottom: .3rem; }
.why-features p  { color: rgba(255,255,255,.55); font-size: .875rem; }
.why-features .section-title { color: var(--white); }

/* ── CTA section ────────────────────────────────────────────── */
.section-cta {
  padding: 6rem 0; text-align: center;
  background: linear-gradient(135deg, var(--anthracite-2) 0%, var(--copper-dark) 100%);
}
.cta-title {
  color: var(--white); margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.cta-sub { color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Search results page ────────────────────────────────────── */
.page-hero {
  background: var(--anthracite);
  padding: 8rem 0 3rem;
  border-bottom: 1px solid rgba(184,115,51,.15);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero p  { color: var(--gray-mid); margin-top: .4rem; }
.search-page  { padding: 3rem 0 6rem; background: var(--cream); }
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }

/* Sidebar filters */
.filters-sidebar {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.filters-sidebar h3 { font-size: 1rem; margin-bottom: 1.5rem; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-dark); margin-bottom: .5rem;
}
.filter-group input,
.filter-group select {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--cream-2); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem;
  background: var(--cream); outline: none;
  transition: border-color var(--transition);
}
.filter-group input:focus,
.filter-group select:focus { border-color: var(--copper); }
.filter-btn { width: 100%; margin-top: .5rem; justify-content: center; }
.filter-reset { display: block; text-align: center; font-size: .8rem; color: var(--gray-mid); margin-top: .75rem; text-decoration: underline; }
.filter-reset:hover { color: var(--copper); }

/* Results area */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.results-count { font-size: .9rem; color: var(--gray-dark); }
.results-sort { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.results-sort select {
  padding: .45rem .9rem; border: 1.5px solid var(--cream-2);
  border-radius: var(--radius); font-family: var(--font-body);
  background: var(--white); outline: none;
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius);
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--cream-2);
  background: var(--white); color: var(--anthracite);
  transition: var(--transition);
}
.pagination a:hover     { border-color: var(--copper); color: var(--copper); }
.pagination .current    { background: var(--copper); border-color: var(--copper); color: var(--white); }
.pagination .disabled   { opacity: .4; pointer-events: none; }

/* ── Property detail ────────────────────────────────────────── */
.property-page { padding: 6rem 0 0; background: var(--cream); }
.property-grid { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; padding-bottom: 6rem; }
.gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.gallery-main img { width: 100%; height: 480px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; }
.gallery-thumbs img { width: 100px; height: 72px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; opacity: .6; cursor: pointer; transition: opacity var(--transition), outline var(--transition); }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--copper); }

.property-info {}
.property-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.badge { display: inline-flex; align-items: center; padding: .3rem .75rem; border-radius: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.badge-sale   { background: var(--copper); color: var(--white); }
.badge-rent   { background: var(--info); color: var(--white); }
.badge-featured { background: var(--anthracite); color: var(--copper); border: 1px solid var(--copper); }

.property-price { font-family: var(--font-heading); font-size: 2.2rem; color: var(--copper); margin-bottom: .25rem; }
.property-price-per { font-size: .8rem; color: var(--gray-mid); }
.property-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: .5rem 0; }
.property-location { display: flex; align-items: center; gap: .4rem; color: var(--gray-mid); font-size: .9rem; margin-bottom: 1.75rem; }

.property-attrs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
  background: var(--white); padding: 1.25rem; border-radius: var(--radius-lg);
}
.attr { text-align: center; }
.attr-val  { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--anthracite); }
.attr-name { font-size: .7rem; color: var(--gray-mid); text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }

.property-desc h3 { margin-bottom: .75rem; }
.property-desc p  { margin-bottom: 1rem; }

/* Contact card */
.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow); position: sticky; top: 90px;
}
.contact-card h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.contact-field { margin-bottom: 1rem; }
.contact-field label {
  display: block; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray-dark); margin-bottom: .4rem;
}
.contact-field input,
.contact-field textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--cream-2); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem;
  background: var(--cream); outline: none; resize: vertical;
  transition: border-color var(--transition);
}
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--copper); }
.contact-submit { width: 100%; justify-content: center; }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--anthracite);
  background-image: radial-gradient(circle at 20% 50%, rgba(184,115,51,.12) 0%, transparent 50%);
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--anthracite-2); border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  border: 1px solid rgba(184,115,51,.15);
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo .logo { font-size: 1.6rem; color: var(--white); display: inline-block; }
.auth-title { font-size: 1.4rem; color: var(--white); margin-bottom: .4rem; text-align: center; }
.auth-sub   { font-size: .85rem; color: var(--gray-mid); text-align: center; margin-bottom: 2rem; }

.auth-field { margin-bottom: 1.1rem; }
.auth-field label {
  display: block; font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-mid); margin-bottom: .45rem;
}
.auth-field input {
  width: 100%; padding: .8rem 1rem;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius); color: var(--white);
  font-family: var(--font-body); font-size: .95rem; outline: none;
  transition: border-color var(--transition);
}
.auth-field input:focus { border-color: var(--copper); }
.auth-field input::placeholder { color: rgba(255,255,255,.3); }
.auth-submit { width: 100%; justify-content: center; margin-top: .5rem; padding: .9rem; font-size: .9rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .85rem; color: var(--gray-mid); }
.auth-footer a { color: var(--copper); text-decoration: underline; }
.field-error { font-size: .78rem; color: var(--danger); margin-top: .3rem; display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: var(--anthracite-2); border-top: 1px solid rgba(184,115,51,.12); padding: 5rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem;
}
.footer-brand .logo { font-size: 1.3rem; color: var(--white); margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: var(--gray-mid); font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a  { font-size: .85rem; color: var(--gray-mid); transition: color var(--transition); }
.footer-col a:hover { color: var(--copper); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 0;
  font-size: .8rem; color: var(--gray-mid);
}
.footer-bottom span { color: var(--copper); font-weight: 700; }
.footer-bottom a { color: var(--gray-mid); }
.footer-bottom a:hover { color: var(--copper); }

/* Back to top */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--copper); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(184,115,51,.4);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--copper-dark); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
@keyframes lineGrow {
  from { transform: scaleY(0); transform-origin: top; }
  to   { transform: scaleY(1); transform-origin: top; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up          { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible  { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--gray-mid); }
.empty-state h3 { margin-bottom: .5rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .why-grid            { grid-template-columns: 1fr; gap: 4rem; }
  .why-visual          { height: 380px; }
  .search-layout       { grid-template-columns: 1fr; }
  .filters-sidebar     { display: none; }
  .property-grid       { grid-template-columns: 1fr; }
  .contact-card        { position: static; }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav-links           { display: none; }
  .hamburger           { display: flex; }
  .nav-cta .btn        { display: none; }
  .nav-cta .nav-user   { display: none; }

  .hero                { flex-direction: column; justify-content: space-between; }
  .hero-stats          { position: static; padding: 1.5rem 1.75rem 2rem; }
  .hero-stats-inner    { justify-content: flex-start; gap: 1.75rem; }

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

@media (max-width: 768px) {
  .featured-header     { flex-direction: column; }
  .search-bar          { flex-direction: column; }
  .search-field        { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .search-btn          { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .footer-grid         { grid-template-columns: 1fr; }
  .footer-bottom       { flex-direction: column; text-align: center; }
  .hero-stats-inner    { gap: 1.25rem; flex-wrap: wrap; }
  .stat-number         { font-size: 1.6rem; }
  .gallery-main img    { height: 280px; }
  .property-attrs      { grid-template-columns: repeat(2, 1fr); }
  .auth-card           { padding: 1.75rem 1.25rem; }
}

@media (max-width: 480px) {
  .btn                 { padding: .65rem 1.25rem; font-size: .8rem; }
  .listings-grid       { grid-template-columns: 1fr; }
  .pagination a,
  .pagination span     { width: 34px; height: 34px; font-size: .8rem; }
}
