/* ============================================================
   Cedar Homes – Modern Real Estate UI
   Color Palette: Deep Navy + Lebanese Gold + Clean Whites
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy-900: #0B1729;
  --navy-800: #122038;
  --navy-700: #1B3355;
  --navy-600: #1E4A7A;
  --navy-500: #2563a8;
  --gold-600: #a87a1e;
  --gold-500: #C9943A;
  --gold-400: #D4A853;
  --gold-300: #E8C87A;
  --gold-100: #FDF6E3;
  --white:    #FFFFFF;
  --gray-50:  #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --green:    #22C55E;
  --red:      #EF4444;
  --orange:   #F59E0B;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.16), 0 8px 24px rgba(0,0,0,.10);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --transition: all 0.25s ease;
  --transition-fast: all 0.15s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-500); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold-600); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; }

/* ── Utility Classes ───────────────────────────────────────── */
.text-gold   { color: var(--gold-500) !important; }
.text-navy   { color: var(--navy-900) !important; }
.text-muted  { color: var(--gray-600) !important; }
.bg-navy     { background-color: var(--navy-900) !important; }
.bg-gold     { background-color: var(--gold-500) !important; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .3px;
}
.btn-primary-custom:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,148,58,.35);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-navy:hover {
  background: var(--navy-700);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar-custom {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.navbar-custom.scrolled {
  background: rgba(11, 23, 41, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.navbar-custom.navbar-solid {
  background: var(--navy-900);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.navbar-brand span { color: var(--gold-400); }
.navbar-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--gold-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-size: 1rem;
}

.navbar-nav-custom {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav-custom .nav-link-custom {
  padding: 8px 16px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .93rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}
.navbar-nav-custom .nav-link-custom:hover,
.navbar-nav-custom .nav-link-custom.active {
  color: var(--gold-400);
  background: rgba(255,255,255,.06);
}

.navbar-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ── Mobile Nav ────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link-custom {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 48px;
  border-radius: var(--radius-md);
  width: 280px;
  text-align: center;
}
.mobile-nav .nav-link-custom:hover {
  background: rgba(255,255,255,.08);
  color: var(--gold-400);
}
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1590490360182-c33d57733427?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: .3;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(11,23,41,.92) 0%,
    rgba(11,23,41,.70) 60%,
    rgba(11,23,41,.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,148,58,.15);
  border: 1px solid rgba(201,148,58,.3);
  color: var(--gold-400);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-400);
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── Search Box ────────────────────────────────────────────── */
.hero-search-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-xl);
  max-width: 880px;
  margin-top: 56px;
}
.hero-search-card h5 {
  font-size: .85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}
.search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.search-field input,
.search-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition-fast);
  outline: none;
}
.search-field input:focus,
.search-field select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,148,58,.12);
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy-900);
  padding: 32px 0;
}
.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-400);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy-900);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Property Cards ────────────────────────────────────────── */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.property-card:hover .card-image img { transform: scale(1.06); }

.card-badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-status.rent    { background: #ECFDF5; color: #059669; }
.badge-status.sale    { background: #EFF6FF; color: #2563EB; }
.badge-status.sold    { background: #FEF2F2; color: #DC2626; }
.badge-status.rented  { background: #FEF3C7; color: #D97706; }
.badge-featured {
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-type {
  background: rgba(0,0,0,.55);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .68rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.card-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--gray-500);
  font-size: .9rem;
  backdrop-filter: blur(8px);
}
.card-fav:hover { background: var(--white); color: var(--red); transform: scale(1.1); }

.card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-price {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.card-price span { font-size: .8rem; font-weight: 400; color: var(--gray-500); font-family: var(--font-body); }
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
}
.card-location {
  font-size: .83rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}
.card-location i { color: var(--gold-500); font-size: .75rem; }

.card-divider {
  border: none;
  height: 1px;
  background: var(--gray-100);
  margin: 14px 0;
}

.card-meta {
  display: flex;
  gap: 16px;
  margin-top: auto;
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--gray-600);
  font-weight: 500;
}
.card-meta-item i { color: var(--gray-400); font-size: .8rem; }

/* ── Property Grid ─────────────────────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── Filter Sidebar ────────────────────────────────────────── */
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 90px;
}
.filter-sidebar h6 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.filter-group { margin-bottom: 24px; }
.filter-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.filter-group input,
.filter-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  outline: none;
  transition: var(--transition-fast);
  background: var(--white);
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,148,58,.1);
}
.filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: var(--transition-fast);
}
.filter-clear:hover { color: var(--red); }

/* ── Property Detail ───────────────────────────────────────── */
.detail-hero {
  position: relative;
  height: 520px;
  background: var(--navy-900);
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}
.detail-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(11,23,41,.9) 0%, transparent 60%);
  padding: 40px 32px;
}
.detail-gallery-thumbs {
  position: absolute;
  bottom: 20px; right: 20px;
  display: flex;
  gap: 8px;
}
.thumb-item {
  width: 72px; height: 52px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  opacity: .7;
}
.thumb-item:hover, .thumb-item.active { border-color: var(--gold-400); opacity: 1; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.detail-price-badge {
  display: inline-block;
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.detail-content { padding: 40px 0; }

.detail-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.detail-info-card h5 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.detail-spec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.detail-spec:last-child { border-bottom: none; }
.detail-spec-icon {
  width: 36px; height: 36px;
  background: var(--gray-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  font-size: .9rem;
  flex-shrink: 0;
}
.detail-spec-label { font-size: .78rem; color: var(--gray-500); font-weight: 500; }
.detail-spec-value { font-size: .92rem; color: var(--gray-900); font-weight: 600; }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.amenity-item.has { background: #ECFDF5; color: #059669; }
.amenity-item.has i { color: #059669; }
.amenity-item.no   { background: var(--gray-50); color: var(--gray-400); }
.amenity-item.no   i { color: var(--gray-300); }

.contact-card {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--white);
}
.contact-card h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--white); }
.contact-card p  { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 20px; }

/* ── Features Section ──────────────────────────────────────── */
.features-section { background: var(--navy-900); color: var(--white); }
.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(201,148,58,.3);
  transform: translateY(-4px);
}
.feature-icon {
  width: 60px; height: 60px;
  background: rgba(201,148,58,.15);
  border: 1px solid rgba(201,148,58,.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--white); }
.feature-card p  { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.65; font-family: var(--font-body); }

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,148,58,.15) 0%, transparent 70%);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer-main {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-brand { margin-bottom: 20px; }
.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .brand-name span { color: var(--gold-400); }
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 260px;
}
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .87rem;
  color: rgba(255,255,255,.55);
}
.footer-contact-item i { color: var(--gold-500); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-socials { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: var(--transition-fast);
}
.social-icon:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

/* ── Flash Messages ────────────────────────────────────────── */
.flash-container { position: fixed; top: 84px; right: 20px; z-index: 9999; max-width: 380px; }
.flash-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideInRight .3s ease;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.flash-alert.success { background: #ECFDF5; color: #065F46; border-left: 4px solid #059669; }
.flash-alert.danger  { background: #FEF2F2; color: #991B1B; border-left: 4px solid #DC2626; }
.flash-alert.warning { background: #FFFBEB; color: #92400E; border-left: 4px solid #F59E0B; }
.flash-alert.info    { background: #EFF6FF; color: #1E40AF; border-left: 4px solid #3B82F6; }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; opacity: .5; font-size: 1rem; padding: 0 2px; }
.flash-close:hover { opacity: 1; }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 100px 20px 40px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}
.auth-card h2 {
  font-size: 1.7rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.auth-card .subtitle { font-size: .9rem; color: var(--gray-500); margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
}
.form-control-custom {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-family: var(--font-body);
  color: var(--gray-800);
  outline: none;
  transition: var(--transition-fast);
  background: var(--white);
}
.form-control-custom:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,148,58,.12);
}
.form-control-custom::placeholder { color: var(--gray-400); }

/* ── Contact Page ──────────────────────────────────────────── */
.contact-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: 140px 0 80px;
  color: var(--white);
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: 100%;
}
.contact-icon-circle {
  width: 52px; height: 52px;
  background: var(--gold-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination-custom { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}
.page-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.page-btn.active { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.page-btn.disabled { opacity: .35; pointer-events: none; }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-500);
}
.empty-state i { font-size: 3.5rem; color: var(--gray-300); margin-bottom: 20px; display: block; }
.empty-state h4 { font-size: 1.2rem; color: var(--gray-600); margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }

/* Filter toggle button – hidden on desktop, shown via @media below */
.mobile-filter-btn { display: none; align-items: center; gap: 8px; width: 100%; justify-content: center; margin-bottom: 12px; }

/* Prevent horizontal overflow site-wide */
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; }

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet  (≤992px) — hamburger replaces full nav */
@media (max-width: 992px) {
  /* Navbar → hamburger */
  .navbar-nav-custom,
  .navbar-actions { display: none !important; }
  .mobile-menu-btn { display: flex !important; }

  /* Filter sidebar: hide + show toggle button */
  .filter-sidebar { display: none; }
  .filter-sidebar.open { display: block; }
  .mobile-filter-btn { display: flex !important; }

  /* Grids */
  .search-grid { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.1); padding: 20px; }
  .stat-item:last-child { border-bottom: none !important; }
  .properties-layout { grid-template-columns: 1fr !important; }
  .detail-layout { grid-template-columns: 1fr !important; }
  .detail-sidebar { position: static !important; }
  .contact-layout { grid-template-columns: 1fr !important; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  /* Hero */
  .hero { min-height: 85vh; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero p { font-size: .95rem; }
  .hero-content { padding: 0 16px !important; }
  .hero-search-card { padding: 20px 16px; margin-top: 28px; border-radius: var(--radius-lg); }
  .search-grid { grid-template-columns: 1fr; }

  /* Buttons */
  .hero-cta-wrap { flex-direction: column !important; gap: 10px !important; }
  .hero-cta-wrap a { justify-content: center; width: 100%; }
  .btn-primary-custom,
  .btn-outline-custom { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-item { padding: 16px; }
  .stat-item .stat-number { font-size: 1.8rem; }

  /* Cards */
  .properties-grid { grid-template-columns: 1fr !important; }
  .detail-hero { height: 220px; }
  .auth-card { padding: 24px 16px; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr) !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Forms */
  .contact-form-row { grid-template-columns: 1fr !important; }
  .register-name-row { grid-template-columns: 1fr !important; }

  /* Section spacing */
  .section-pad { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Text overflow guard */
  h1, h2, h3, h4 { overflow-wrap: break-word; word-break: break-word; }

  /* Property detail gallery */
  .detail-gallery-thumbs { gap: 4px; }
  .detail-gallery-thumbs .thumb-item { height: 56px; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .section-pad { padding: 36px 0; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .properties-grid { grid-template-columns: 1fr !important; }
  .card-price { font-size: 1.1rem; }
  .hero { min-height: 100svh; }
  .btn-primary-custom,
  .btn-outline-custom { font-size: .85rem; padding: 10px 18px; }
  .navbar-custom { padding: 0 14px; }
  .navbar-brand { font-size: 1.2rem; }
  .navbar-brand .brand-icon { width: 32px; height: 32px; }
  /* Container horizontal padding */
  [style*="padding:0 24px"],
  [style*="padding: 0 24px"] { padding: 0 14px !important; }
}

/* ── Animations ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* ── Misc ───────────────────────────────────────────────────── */
.divider-gold {
  width: 60px; height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
  margin: 12px 0 24px;
}
.tag-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  color: var(--gold-600);
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid rgba(201,148,58,.2);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition-fast);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--navy-900); }
