/* ═══════════════════════════════════════════════════════════════
   PROPRA PROPERTIES — Luxury Editorial Design System
   Palette: Charcoal #0D1117 | Cream #F5F0E8 | Gold #C9893A | Sage #5C7A6B | Coral #E85D3A
   Typography: Cormorant Garamond (display) | DM Sans (body)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --dark:       #0D1117;
  --dark-2:     #161B22;
  --dark-3:     #1E2530;
  --mid:        #2D3748;
  --cream:      #F5F0E8;
  --cream-2:    #EDE8DF;
  --cream-3:    #E0D9CC;
  --gold:       #C9893A;
  --gold-light: #E0A84D;
  --gold-dark:  #A0692A;
  --sage:       #5C7A6B;
  --sage-light: #7A9E8C;
  --coral:      #E85D3A;
  --coral-light:#F07A5A;
  --white:      #FFFFFF;
  --text-body:  #4A4A4A;
  --text-muted: #888888;
  --border:     rgba(201,137,58,0.15);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.18);
  --shadow-gold:0 4px 24px rgba(201,137,58,0.25);
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-display { font-family: var(--font-display); }
.text-gold    { color: var(--gold); }
.text-sage    { color: var(--sage); }
.text-coral   { color: var(--coral); }
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.15rem; }
.text-center  { text-align: center; }
.italic       { font-style: italic; }
.fw-300       { font-weight: 300; }
.fw-500       { font-weight: 500; }
.fw-600       { font-weight: 600; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container     { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm  { max-width: 900px;  margin: 0 auto; padding: 0 24px; }
.container-lg  { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.section       { padding: 80px 0; }
.section-sm    { padding: 48px 0; }
.section-lg    { padding: 120px 0; }
.grid          { display: grid; }
.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2    { gap: 8px; }
.flex-gap-4    { gap: 16px; }
.gap-4         { gap: 16px; }
.gap-6         { gap: 24px; }
.gap-8         { gap: 32px; }
.mt-2          { margin-top: 8px; }
.mt-4          { margin-top: 16px; }
.mt-6          { margin-top: 24px; }
.mt-8          { margin-top: 32px; }
.mb-4          { margin-bottom: 16px; }
.mb-6          { margin-bottom: 24px; }
.mb-8          { margin-bottom: 32px; }
.w-full        { width: 100%; }
.hidden        { display: none; }
.relative      { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
}
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header .eyebrow::before,
.section-header .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-header h2 { color: var(--dark); }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; margin-top: 8px; max-width: 560px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-3);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border-color: var(--cream-3);
}
.btn-ghost:hover { background: var(--cream-2); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-coral:hover { background: var(--coral-light); border-color: var(--coral-light); }
.btn-sage  { background: var(--sage); color: #fff; border-color: var(--sage); }
.btn-sage:hover { background: var(--sage-light); border-color: var(--sage-light); }
.btn-icon  { padding: 10px; border-radius: 50%; }
.btn-danger { background: #e53e3e; color:#fff; border-color:#e53e3e; }
.btn-danger:hover { background: #c53030; }
.btn-success { background: var(--sage); color:#fff; border-color:var(--sage); }
.btn-warning { background: var(--gold); color:#fff; border-color:var(--gold); }

/* ── Badges / Tags ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
}
.badge-gold    { background: var(--gold);  color: #fff; }
.badge-sage    { background: var(--sage);  color: #fff; }
.badge-coral   { background: var(--coral); color: #fff; }
.badge-dark    { background: var(--dark);  color: var(--cream); }
.badge-outline { background: transparent; border: 1.5px solid currentColor; }
.badge-green   { background: #38a169; color:#fff; }
.badge-red     { background: #e53e3e; color:#fff; }
.badge-yellow  { background: #d69e2e; color:#fff; }
.badge-gray    { background: #718096; color:#fff; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,137,58,0.12);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.navbar-brand span { color: var(--gold); }
.site-logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  color: rgba(245,240,232,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.nav-link:hover,
.nav-link.active {
  color: var(--cream);
  background: rgba(255,255,255,0.08);
}
.nav-link.active { color: var(--gold); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 40px;
  color: var(--cream);
  font-size: 0.875rem;
}
.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--gold);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu {
  display: none;
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(92,122,107,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(201,137,58,0.12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(13,17,23,0.82) 0%, rgba(22,27,34,0.85) 40%, rgba(30,37,48,0.88) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.hero h1 {
  color: var(--cream);
  max-width: 700px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(245,240,232,0.65);
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
  font-weight: 300;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.0s forwards;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,240,232,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════════════════ */
.search-hero-wrap {
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}
.search-bar {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,137,58,0.2);
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 800px;
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.search-bar input::placeholder { color: rgba(245,240,232,0.4); }
.search-bar .search-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }
.search-bar select {
  background: none;
  border: none;
  outline: none;
  color: rgba(245,240,232,0.7);
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0 12px;
}
.search-bar select option { background: var(--dark-2); color: var(--cream); }

/* Advanced search panel */
.search-advanced-toggle {
  background: none;
  border: none;
  color: rgba(245,240,232,0.6);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 12px;
  display: block;
}
.search-advanced-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,137,58,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
  display: none;
}
.search-advanced-panel.open { display: block; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.search-grid select, .search-grid input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--cream);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.search-grid select option { background: var(--dark-2); }
.search-grid select:focus, .search-grid input:focus {
  border-color: var(--gold);
}

/* Page search bar (light theme) */
.search-panel-light {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }

/* ═══════════════════════════════════════════════════════════════
   PROPERTY CARDS
   ═══════════════════════════════════════════════════════════════ */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.properties-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.properties-grid-4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,137,58,0.15);
}

.property-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cream-2);
}
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover .property-card-image img {
  transform: scale(1.07);
}
.property-card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.property-card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
}
.property-card:hover .property-card-actions { opacity: 1; }
.card-action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--dark);
  transition: var(--transition);
}
.card-action-btn:hover { background: var(--gold); color: #fff; transform: scale(1.1); }
.card-action-btn.favorited { background: var(--coral); color: #fff; opacity: 1; }

.property-card-price {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--dark);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.property-card-price .original {
  text-decoration: line-through;
  color: rgba(245,240,232,0.4);
  font-size: 0.75rem;
  margin-right: 6px;
}

.property-card-body {
  padding: 20px 22px 22px;
}
.property-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-card-title a:hover { color: var(--gold); }
.property-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.property-card-location i { color: var(--gold); font-size: 0.75rem; }

.property-card-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--cream-2);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.meta-item i { color: var(--sage); font-size: 0.8rem; }
.meta-item strong { color: var(--dark); font-weight: 600; font-size: 0.88rem; }

.property-card-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--cream-2);
}
.property-card-agent img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream-2);
}
.property-card-agent .agent-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.property-card-agent .agent-name strong { color: var(--dark); font-weight: 500; }

/* Featured card variant */
.property-card-featured {
  grid-column: span 1;
}

/* ═══════════════════════════════════════════════════════════════
   AGENT CARDS
   ═══════════════════════════════════════════════════════════════ */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.agent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.agent-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--cream-2);
  transition: var(--transition);
}
.agent-card:hover .agent-card-avatar { border-color: var(--gold); }
.agent-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}
.agent-card-tagline { font-size: 0.8rem; color: var(--gold); margin-bottom: 12px; }
.agent-card-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--cream-2);
  border-bottom: 1px solid var(--cream-2);
  margin: 12px 0;
}
.agent-card-stat { font-size: 0.8rem; color: var(--text-muted); }
.agent-card-stat strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--dark); }
.agent-card-socials { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: #fff; transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES GRID
   ═══════════════════════════════════════════════════════════════ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }

.category-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-3);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.85) 0%, rgba(13,17,23,0.2) 60%, transparent 100%);
  z-index: 1;
  transition: var(--transition);
}
.category-card:hover::before { background: linear-gradient(to top, rgba(13,17,23,0.9) 0%, rgba(13,17,23,0.4) 70%, rgba(13,17,23,0.1) 100%); }
.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.category-card:hover .category-card-bg { transform: scale(1.05); }
.category-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  z-index: 2;
}
.category-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}
.category-card-count {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.6);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE PROPERTY PAGE
   ═══════════════════════════════════════════════════════════════ */
.property-gallery {
  position: relative;
  background: var(--dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
}
.gallery-main {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--dark);
}
.gallery-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-view-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
}

.property-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.property-detail-sidebar { position: sticky; top: 90px; }

.property-title-bar {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--cream-3);
  margin-bottom: 32px;
}
.property-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--cream-3);
  margin-bottom: 32px;
}
.property-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.property-meta-icon {
  width: 40px;
  height: 40px;
  background: var(--cream-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1rem;
  flex-shrink: 0;
}
.property-meta-text .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.property-meta-text .value { font-weight: 600; color: var(--dark); font-size: 0.95rem; }

.property-section { margin-bottom: 40px; }
.property-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-3);
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream-2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.feature-item i { color: var(--sage); }

/* Contact card in sidebar */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-card-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cream-2);
}
.contact-card-agent img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream-2);
}
.contact-card-agent .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}
.contact-card-agent .tagline { font-size: 0.78rem; color: var(--gold); }
.contact-card-quick {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* Map */
.property-map {
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream-3);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form-label .required { color: var(--coral); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-3);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,137,58,0.12);
}
.form-control::placeholder { color: #b0b0b0; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 0.78rem; color: var(--coral); margin-top: 5px; }

/* Password field with eye toggle */
.password-wrapper {
  position: relative;
}
.password-wrapper .form-control { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.password-toggle:hover { color: var(--gold); }

/* Dark form (for hero/overlays) */
.form-control-dark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: var(--cream);
}
.form-control-dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,137,58,0.15);
}
.form-control-dark::placeholder { color: rgba(245,240,232,0.35); }
.form-label-dark { color: rgba(245,240,232,0.8); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* File upload */
.upload-zone {
  border: 2px dashed var(--cream-3);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--gold);
  background: rgba(201,137,58,0.04);
}
.upload-zone i { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.upload-zone p { color: var(--text-muted); font-size: 0.875rem; }
.upload-zone input { display: none; }

.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.image-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-2);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(232,93,58,0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(92,122,107,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(201,137,58,0.12) 0%, transparent 50%);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo .brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}
.auth-logo .brand span { color: var(--gold); }
.auth-logo p { color: var(--text-muted); font-size: 0.875rem; margin-top: 6px; }
.auth-title { font-size: 1.6rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 28px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--cream-3); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--gold); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN / DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F8F9FB;
}
.admin-sidebar {
  width: 260px;
  background: var(--dark);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}
.admin-sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-sidebar-logo .brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}
.admin-sidebar-logo .brand span { color: var(--gold); }
.admin-sidebar-logo .role-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.admin-sidebar-nav { padding: 16px 0; }
.sidebar-section { padding: 8px 16px 4px; }
.sidebar-section-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.25);
  padding: 8px 8px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: rgba(245,240,232,0.65);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link i { width: 20px; text-align: center; font-size: 0.9rem; }
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: var(--cream); }
.sidebar-link.active { background: rgba(201,137,58,0.15); color: var(--gold); }
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--coral);
  color: #fff;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}
.sidebar-user {
  padding: 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  background: var(--dark-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
}
.sidebar-user-info .name { font-size: 0.875rem; color: var(--cream); font-weight: 500; }
.sidebar-user-info .email { font-size: 0.72rem; color: rgba(245,240,232,0.4); }

.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid #E8ECF0;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-page-title { font-size: 1.2rem; font-weight: 600; color: var(--dark); }
.admin-content { padding: 28px; flex: 1; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #E8ECF0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon-gold  { background: rgba(201,137,58,0.12); color: var(--gold); }
.stat-icon-sage  { background: rgba(92,122,107,0.12); color: var(--sage); }
.stat-icon-coral { background: rgba(232,93,58,0.12);  color: var(--coral); }
.stat-icon-dark  { background: rgba(13,17,23,0.07);   color: var(--dark); }
.stat-num, .stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--dark); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Admin tables */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #E8ECF0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  padding: 14px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #F8F9FB;
  text-align: left;
  border-bottom: 1px solid #E8ECF0;
}
.admin-table td {
  padding: 14px 18px;
  font-size: 0.875rem;
  border-bottom: 1px solid #F0F2F5;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFBFC; }

.admin-table-header {
  padding: 18px 22px;
  border-bottom: 1px solid #E8ECF0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-table-title { font-size: 1rem; font-weight: 600; color: var(--dark); }

/* Card panels */
.admin-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #E8ECF0;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.admin-panel h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #E8ECF0; }
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #E8ECF0; }
.admin-panel-header h3 { margin: 0; padding: 0; border: none; }

.admin-header { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 1.6rem; color: var(--dark); }

.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* ═══════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════════ */
.flash-container { position: fixed; top: 86px; right: 24px; z-index: 9999; max-width: 400px; }
.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  font-size: 0.875rem;
  animation: slideIn 0.3s ease;
  cursor: pointer;
}
.flash-success { background: #F0FFF4; border: 1px solid #9AE6B4; color: #276749; }
.flash-error   { background: #FFF5F5; border: 1px solid #FEB2B2; color: #9B2C2C; }
.flash-warning { background: #FFFBEB; border: 1px solid #F6E05E; color: #744210; }
.flash-info    { background: #EBF8FF; border: 1px solid #90CDF4; color: #2C5282; }
.flash-icon    { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.flash-close   { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; opacity: 0.6; font-size: 0.9rem; }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeUp  { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   MORTGAGE CALCULATOR
   ═══════════════════════════════════════════════════════════════ */
.mortgage-card {
  background: var(--dark-2);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201,137,58,0.25);
}
.mortgage-result {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  text-align: center;
}
.mortgage-monthly {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.mortgage-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.mortgage-breakdown-item { text-align: center; }
.mortgage-breakdown-item .val { font-family: var(--font-display); font-size: 1.2rem; color: var(--cream); }
.mortgage-breakdown-item .lbl { font-size: 0.72rem; color: rgba(245,240,232,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

/* ═══════════════════════════════════════════════════════════════
   COMPARE TABLE
   ═══════════════════════════════════════════════════════════════ */
.compare-table-wrap { overflow-x: auto; }
.compare-table { min-width: 700px; border-collapse: collapse; width: 100%; }
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--cream-3);
  font-size: 0.875rem;
}
.compare-table th { background: var(--dark); color: var(--cream); font-weight: 500; font-size: 0.8rem; }
.compare-table th:first-child { background: var(--dark-3); }
.compare-table tr:nth-child(even) td:not(:first-child) { background: rgba(201,137,58,0.03); }
.compare-table td:first-child { font-weight: 600; color: var(--dark); background: #F8F9FB; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table .property-col-head { text-align: center; }
.compare-table .property-col-head img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 8px; }
.compare-yes { color: var(--sage); font-size: 1rem; }
.compare-no  { color: #CBD5E0; font-size: 1rem; }

/* Compare drawer */
.compare-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 2px solid var(--gold);
  padding: 14px 24px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.compare-drawer.open { transform: translateY(0); }
.compare-drawer-items { display: flex; gap: 12px; flex: 1; }
.compare-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--cream);
  font-size: 0.82rem;
}
.compare-drawer-remove {
  background: none;
  border: none;
  color: rgba(245,240,232,0.5);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 4px;
}
.compare-drawer-remove:hover { color: var(--coral); }

/* ═══════════════════════════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════════════════════════ */
.full-map-container { height: 500px; border-radius: var(--radius-lg); overflow: hidden; }
.map-popup { min-width: 200px; }
.map-popup img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.map-popup .title { font-weight: 600; font-size: 0.875rem; color: var(--dark); }
.map-popup .price { color: var(--gold); font-weight: 600; font-size: 0.875rem; }
.map-popup a { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--sage); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 48px 0;
  flex-wrap: wrap;
}
.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--cream-3);
  font-size: 0.875rem;
  color: var(--dark);
  transition: var(--transition);
  font-weight: 500;
  text-decoration: none;
}
.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-link.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }
.page-prev, .page-next { width: auto; padding: 0 16px; gap: 6px; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(245,240,232,0.7);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(201,137,58,0.12);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-brand .brand-name span { color: var(--gold); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.footer-col h4 {
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(245,240,232,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (interior pages)
   ═══════════════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-header h1 { color: var(--cream); margin-bottom: 10px; }
.page-header .breadcrumb { display: flex; gap: 8px; align-items: center; color: rgba(245,240,232,0.5); font-size: 0.82rem; }
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header .breadcrumb span { color: rgba(245,240,232,0.25); }

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(201,137,58,0.4); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ═══════════════════════════════════════════════════════════════
   PLACEHOLDER IMAGE
   ═══════════════════════════════════════════════════════════════ */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream-2) 0%, var(--cream-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   MISC COMPONENTS
   ═══════════════════════════════════════════════════════════════ */
.divider { height: 1px; background: var(--cream-3); margin: 32px 0; }
.divider-gold { background: linear-gradient(to right, transparent, var(--gold), transparent); }

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--cream-3); margin-bottom: 16px; }
.empty-state h3 { color: var(--dark); margin-bottom: 8px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  background: var(--cream-2);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--cream-3);
  transition: var(--transition);
}
.tag:hover { background: var(--gold); color: #fff; border-color: var(--gold); cursor: pointer; }

.video-embed { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; border: none; }

.skills-bar { margin-bottom: 16px; }
.skills-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.82rem; }
.skills-bar-track { height: 6px; background: var(--cream-3); border-radius: 3px; overflow: hidden; }
.skills-bar-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width 1s ease; }

/* Search results layout */
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.search-sidebar { position: sticky; top: 90px; }
.search-filter-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.filter-section { margin-bottom: 24px; }
.filter-section h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; color: var(--dark); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .property-detail-layout { grid-template-columns: 1fr; }
  .property-detail-sidebar { position: static; }
  .search-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-actions { display: none; }
  .navbar-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .properties-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-260px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .mortgage-breakdown { grid-template-columns: 1fr; gap: 10px; }
  .auth-card { padding: 32px 24px; }
  .search-bar { flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: var(--radius-lg); }
  .admin-content { padding: 16px; }
}

@media (max-width: 480px) {
  .agents-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
}
