/* ============================================================
   DG ESTATES - Main Stylesheet
   Brand: Teal #0E7490 / Dark Navy / White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --teal:        #0E7490;
  --teal-dark:   #065F73;
  --teal-light:  #0D9DB5;
  --teal-pale:   #CFFAFE;
  --navy:        #0B1E2D;
  --navy-mid:    #1A3244;
  --white:       #FFFFFF;
  --off-white:   #F8FAFB;
  --slate:       #64748B;
  --slate-light: #CBD5E1;
  --border:      #E2E8F0;
  --success:     #16A34A;
  --warning:     #D97706;
  --danger:      #DC2626;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(14,116,144,0.08);
  --shadow-lg:   0 8px 32px rgba(14,116,144,0.14);
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { font-family: var(--font-serif); line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p  { color: var(--slate); }

/* ---- Container ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(11,30,45,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(11,30,45,0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex; align-items: center; gap: 0.875rem;
}

.logo-icon {
  width: 44px; height: 44px;
  background: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.logo-icon svg { width: 26px; height: 26px; fill: white; }

.logo-text { line-height: 1; }
.logo-text strong { display: block; font-family: var(--font-serif); font-size: 1.1rem; color: white; letter-spacing: 0.04em; }
.logo-text span { font-size: 0.7rem; color: rgba(255,255,255,0.5); letter-spacing: 0.12em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 0.875rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem; font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: white; background: rgba(255,255,255,0.08);
}

.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  display: block; padding: 0.625rem 1.25rem;
  color: var(--navy); font-size: 0.875rem;
  transition: var(--transition);
}
.dropdown a:hover { background: var(--off-white); color: var(--teal); padding-left: 1.5rem; }
.dropdown a:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.dropdown a:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.375rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; transition: var(--transition); }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,116,144,0.35); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.3); color: white; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-white { background: white; color: var(--teal); }
.btn-white:hover { background: var(--teal-pale); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 60%, var(--teal) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative; z-index: 2;
  padding: 120px 0 60px;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem; font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge span { width: 6px; height: 6px; background: var(--teal-light); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }

.hero-title { color: white; margin-bottom: 1.25rem; }
.hero-title em { color: var(--teal-light); font-style: normal; }

.hero-subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 520px; margin-bottom: 2.5rem; }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.hero-stat strong { display: block; font-family: var(--font-serif); font-size: 1.75rem; color: white; }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }

/* ================================================================
   SEARCH BAR
   ================================================================ */
.search-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
}

.search-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }

.search-tab {
  padding: 0.5rem 1.25rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--slate);
  transition: var(--transition);
}

.search-tab.active { background: var(--teal); color: white; }
.search-tab:hover:not(.active) { background: var(--off-white); }

.search-fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }

.field-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }

.field-group input, .field-group select {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; color: var(--navy);
  transition: var(--transition);
  appearance: none; background-color: white;
}

.field-group input:focus, .field-group select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,116,144,0.12);
}

.search-btn { background: var(--teal); color: white; padding: 0.65rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); white-space: nowrap; }
.search-btn:hover { background: var(--teal-dark); }
.search-btn svg { width: 18px; height: 18px; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--navy); }
.section-teal { background: var(--teal); }
.section-off { background: var(--off-white); }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-label { font-size: 0.75rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.5rem; }
.section-title { margin-bottom: 0.75rem; }
.section-desc { color: var(--slate); max-width: 540px; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ================================================================
   PROPERTY CARDS
   ================================================================ */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }

.property-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-light); }

.card-image {
  position: relative; height: 220px; overflow: hidden; background: var(--off-white);
}

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .card-image img { transform: scale(1.04); }

.card-badges { position: absolute; top: 0.875rem; left: 0.875rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-sale    { background: var(--teal); color: white; }
.badge-rent    { background: var(--navy); color: white; }
.badge-sold    { background: var(--danger); color: white; }
.badge-offer   { background: var(--warning); color: white; }
.badge-feat    { background: white; color: var(--teal); border: 1px solid var(--teal); }
.badge-type    { background: rgba(11,30,45,0.7); color: white; }

.card-save {
  position: absolute; top: 0.875rem; right: 0.875rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.card-save:hover { background: var(--teal); }
.card-save:hover svg { stroke: white; }
.card-save svg { width: 18px; height: 18px; stroke: var(--slate); transition: var(--transition); }
.card-save.saved svg { stroke: var(--danger); fill: var(--danger); }

.card-body { padding: 1.25rem; }
.card-ref { font-size: 0.7rem; color: var(--slate); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.375rem; }
.card-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.375rem; line-height: 1.3; }
.card-title a:hover { color: var(--teal); }
.card-location { font-size: 0.82rem; color: var(--slate); display: flex; align-items: center; gap: 0.25rem; margin-bottom: 1rem; }
.card-location svg { width: 13px; height: 13px; flex-shrink: 0; }

.card-price { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 700; color: var(--teal); margin-bottom: 1rem; }
.card-price small { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 400; color: var(--slate); }

.card-meta { display: flex; align-items: center; gap: 1.25rem; border-top: 1px solid var(--border); padding-top: 0.875rem; }
.meta-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--slate); }
.meta-item svg { width: 15px; height: 15px; color: var(--teal); }
.meta-item strong { color: var(--navy); }

/* ================================================================
   PROPERTY DETAIL
   ================================================================ */
.property-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 280px 140px; gap: 0.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { grid-row: 1 / -1; }
.gallery-main img, .property-gallery .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; cursor: pointer; }
.property-gallery .gallery-thumb { position: relative; overflow: hidden; }
.property-gallery .gallery-thumb:hover img { transform: scale(1.06); }
.gallery-more { position: absolute; inset: 0; background: rgba(11,30,45,0.6); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; font-weight: 700; cursor: pointer; }

.detail-price { font-family: var(--font-serif); font-size: 2rem; color: var(--teal); font-weight: 700; }
.detail-specs { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 1.25rem 0; }
.spec-item { display: flex; align-items: center; gap: 0.5rem; }
.spec-item svg { width: 20px; height: 20px; color: var(--teal); }
.spec-item div strong { display: block; font-size: 0.95rem; color: var(--navy); }
.spec-item div span { font-size: 0.75rem; color: var(--slate); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.feature-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: var(--off-white); border-radius: 8px; font-size: 0.875rem; color: var(--navy); }
.feature-item svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

.agent-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 90px; }
.agent-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal-pale); }
.agent-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-serif); font-size: 1.25rem; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { width: 100%; padding: 0.625rem 0.875rem; border: 1.5px solid var(--border); border-radius: 8px; margin-bottom: 0.75rem; font-size: 0.875rem; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--teal); }

/* ================================================================
   STATS / HOW IT WORKS
   ================================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-card { text-align: center; padding: 2rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); }
.stat-card strong { display: block; font-family: var(--font-serif); font-size: 2.5rem; color: var(--teal-light); }
.stat-card span { font-size: 0.875rem; color: rgba(255,255,255,0.6); }

.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: var(--transition); }
.step-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num { width: 52px; height: 52px; background: var(--teal-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-family: var(--font-serif); font-size: 1.25rem; color: var(--teal); font-weight: 700; }
.step-card h3 { margin-bottom: 0.75rem; }

/* ================================================================
   AGENTS
   ================================================================ */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.agent-tile { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; transition: var(--transition); }
.agent-tile:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); }
.agent-tile img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--teal-pale); }
.agent-tile h4 { margin-bottom: 0.25rem; }
.agent-tile p { font-size: 0.8rem; margin-bottom: 1rem; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 2rem; }
.stars { color: #F59E0B; letter-spacing: 0.1em; margin-bottom: 1rem; font-size: 0.9rem; }
.testi-card p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; font-style: italic; }
.testi-author strong { color: white; display: block; font-size: 0.9rem; }
.testi-author span { color: rgba(255,255,255,0.5); font-size: 0.8rem; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner { background: linear-gradient(135deg, var(--navy), var(--teal-dark)); border-radius: var(--radius-lg); padding: 4rem; text-align: center; }
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { }
.footer-brand p { font-size: 0.875rem; margin: 1rem 0; max-width: 280px; line-height: 1.7; }
.footer-social { display: flex; gap: 0.625rem; }
.social-btn { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-btn:hover { background: var(--teal); }
.social-btn svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }
.social-btn:hover svg { fill: white; }

.footer-col h5 { color: white; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; font-family: var(--font-sans); }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 0.625rem; transition: var(--transition); }
.footer-col a:hover { color: var(--teal-light); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; }

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 90vw; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: white; font-size: 2rem; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: white; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; transition: var(--transition); }
.lightbox-nav:hover { background: var(--teal); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ================================================================
   PAGINATION & FILTERS
   ================================================================ */
.filter-bar { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.filter-bar .field-group { min-width: 140px; }
.filter-results { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.filter-results span { font-size: 0.875rem; color: var(--slate); }

.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 3rem; }
.pagination ul { list-style: none; display: flex; gap: 0.4rem; }
.pagination li a, .pagination li span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 0.875rem; color: var(--slate); transition: var(--transition); }
.pagination li.active a, .pagination li a:hover { background: var(--teal); border-color: var(--teal); color: white; }

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background: white; border-radius: 10px; padding: 1rem 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15); display: flex; align-items: flex-start; gap: 0.75rem; max-width: 360px; border-left: 4px solid var(--teal); animation: slideIn 0.3s ease; }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error   { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.1rem; }
.toast strong { display: block; font-size: 0.875rem; color: var(--navy); }
.toast p { font-size: 0.8125rem; color: var(--slate); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ================================================================
   BLOG
   ================================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.blog-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; overflow: hidden; background: var(--off-white); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.375rem; }
.blog-date { font-size: 0.75rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-card h3 a:hover { color: var(--teal); }
.blog-card p { font-size: 0.875rem; margin-bottom: 1rem; }

/* ================================================================
   UTILITY
   ================================================================ */
.text-teal   { color: var(--teal); }
.text-white  { color: white; }
.text-slate  { color: var(--slate); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.tag { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; background: var(--teal-pale); color: var(--teal); border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state svg { width: 64px; height: 64px; color: var(--slate-light); margin: 0 auto 1rem; }
.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--off-white) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-outline { display: none; }
  .search-fields { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .properties-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-main { grid-row: auto; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .detail-specs { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .search-bar { padding: 1rem; }
  .section { padding: 3rem 0; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav open state */
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--navy); z-index: 999; overflow-y: auto; padding: 1.5rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.875rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); font-size: 1rem; }
.mobile-nav a:hover { color: var(--teal-light); }
.mobile-nav-section { margin-bottom: 1rem; }
.mobile-nav-section strong { display: block; color: rgba(255,255,255,0.4); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
