/* ===================================
   RHIMMO - Immobilier Groupe RH
   Main Stylesheet
=================================== */

/* --- Variables & Reset --- */
:root {
  --primary: #c8a45a;
  --primary-dark: #a8832f;
  --primary-light: #e8c980;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --dark-3: #0f3460;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --white: #ffffff;
  --bg-light: #f8f7f4;
  --bg-grey: #f0eeea;
  --border: #e0ddd6;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 10px;
  --radius-lg: 18px;
  --transition: all 0.3s ease;
  --font-main: 'Poppins', 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Segoe 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-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.section-title { margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-light); font-size: 1rem; max-width: 560px; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 164, 90, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-3);
  border-color: var(--dark-3);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
}
.btn-call {
  background: var(--dark-3);
  color: var(--white);
  border-color: var(--dark-3);
}
.btn-call:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Sections --- */
section { padding: 5rem 0; }
.bg-light { background: var(--bg-light); }
.bg-grey { background: var(--bg-grey); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ===================================
   HEADER / NAVBAR
=================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 164, 90, 0.15);
  transition: var(--transition);
}
#header.scrolled {
  background: rgba(26, 26, 46, 0.99);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text .brand { font-size: 1rem; font-weight: 800; color: var(--white); }
.logo-text .tagline { font-size: 0.65rem; font-weight: 400; color: var(--primary); letter-spacing: 1.5px; text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; gap: 0.25rem; }
nav.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--primary);
  background: rgba(200, 164, 90, 0.08);
}
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.header-phone i { font-size: 0.9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 74px; left: 0; right: 0;
  background: var(--dark-2);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 2px solid var(--primary);
  z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); background: rgba(200,164,90,0.08); }
.mobile-nav .btn { margin-top: 0.5rem; width: 100%; justify-content: center; }

/* ===================================
   HERO SECTION
=================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 74px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 60%, #1a3a5c 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=80') center/cover no-repeat;
  opacity: 0.18;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,0.7) 0%, rgba(26,26,46,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 0 5rem;
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content h1 span { color: var(--primary); }
.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* Search Box */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 860px;
  margin: 0 auto;
}
.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.search-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-light);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.search-tab.active, .search-tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.search-field select,
.search-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-light);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.search-btn-wrap { display: flex; align-items: flex-end; }
.search-btn-wrap .btn { padding: 0.75rem 1.5rem; border-radius: var(--radius); }

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   PROPERTY CARDS
=================================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .card-image img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-sale { background: var(--dark-3); color: var(--white); }
.badge-rent { background: #25a244; color: var(--white); }
.badge-featured { background: var(--primary); color: var(--white); }
.card-type {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.92);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dark);
}
.card-fav {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.card-fav:hover, .card-fav.active { color: #e63946; }
.card-body { padding: 1.4rem; }
.card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.card-price span { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.card-location i { color: var(--primary); }
.card-features {
  display: flex;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-light);
}
.feature-item i { color: var(--primary); font-size: 0.88rem; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-agent img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.card-agent span { font-weight: 600; color: var(--text); }

/* ===================================
   SERVICES SECTION
=================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: rotate(10deg) scale(1.08); }
.service-card h4 { margin-bottom: 0.6rem; color: var(--dark); }
.service-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; }

/* ===================================
   TEAM SECTION
=================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
}
.agent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}
.agent-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.agent-photo {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.agent-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.agent-card:hover .agent-photo img { transform: scale(1.05); }
.agent-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.85) 0%, transparent 60%);
  opacity: 1;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.2rem;
  gap: 0.75rem;
}
.agent-card:hover .agent-photo-overlay { opacity: 1; }
.agent-social-link {
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 0.85rem;
  transition: var(--transition);
}
.agent-social-link:hover { background: var(--primary); color: var(--white); }
.agent-info { padding: 1.25rem; }
.agent-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.agent-role {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.agent-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.agent-stat { font-size: 0.78rem; color: var(--text-muted); }
.agent-stat strong { display: block; font-size: 1rem; font-weight: 700; color: var(--dark); }

/* ===================================
   WHY US / NUMBERS
=================================== */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.number-card {
  padding: 2rem 1rem;
}
.number-card .num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.number-card .num-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 0.4rem;
  display: block;
}

/* ===================================
   CTA SECTION
=================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===================================
   TESTIMONIALS
=================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.25;
  font-family: Georgia, serif;
}
.testimonial-stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 0.85rem; }
.testimonial-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.75; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.testimonial-author-info strong { display: block; font-size: 0.9rem; color: var(--dark); }
.testimonial-author-info span { font-size: 0.78rem; color: var(--text-muted); }

/* ===================================
   PROCESS / STEPS
=================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(200, 164, 90, 0.4);
}
.step-card h4 { margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-light); }

/* ===================================
   FOOTER
=================================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: var(--white); }
.footer-col h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-col ul li a i { font-size: 0.7rem; }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
}
.footer-contact-item i {
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.footer-contact-item span { font-size: 0.84rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: var(--primary); }

/* ===================================
   PROPERTY DETAIL PAGE
=================================== */
.property-detail {
  padding-top: 100px;
}
.property-detail-header {
  background: var(--bg-light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.property-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}
.property-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.property-breadcrumb a:hover { color: var(--primary); }
.property-breadcrumb .sep { font-size: 0.7rem; }
.property-title-block .property-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.4rem; }
.property-location-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.property-location-bar i { color: var(--primary); }
.property-price-block { text-align: right; }
.property-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.property-price-per { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.property-badges { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; }

.property-detail-body { padding: 3rem 0; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}

/* Gallery */
.property-gallery { margin-bottom: 2rem; }
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
  height: 440px;
  background: var(--bg-grey);
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery-main img:hover { transform: scale(1.02); }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.gallery-thumb {
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Video */
.property-video { margin-top: 2rem; margin-bottom: 2rem; }
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Property Info */
.info-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.info-block-title {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.info-block-title i { color: var(--primary); }
.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}
.features-list .feat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--text);
}
.features-list .feat i { color: var(--primary); font-size: 1rem; }
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.87rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-muted); }
.detail-row .value { font-weight: 600; color: var(--dark); }

/* Sidebar */
.detail-sidebar {}
.sidebar-sticky { position: sticky; top: 94px; }
.agent-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.agent-sidebar-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 1.5rem;
  text-align: center;
}
.agent-sidebar-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--primary);
  margin: 0 auto 0.75rem;
  display: block;
}
.agent-sidebar-name { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.agent-sidebar-role { color: var(--primary); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.agent-sidebar-body { padding: 1.5rem; }
.agent-sidebar-contact { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.agent-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text);
}
.agent-contact-item i { color: var(--primary); width: 16px; text-align: center; }
.agent-sidebar-socials { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.agent-sidebar-socials .agent-social-link { background: var(--bg-light, #f5f5f5); border: 1px solid var(--border); color: var(--dark); }
.agent-sidebar-socials .agent-social-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.agent-sidebar-btns { display: flex; flex-direction: column; gap: 0.6rem; }

/* Contact form sidebar */
.contact-sidebar-form { margin-top: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-light); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-light);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* ===================================
   LISTINGS PAGE
=================================== */
.listings-page { padding-top: 74px; }
.listings-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}
.listings-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.listings-hero p { color: rgba(255,255,255,0.7); }
.listings-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 74px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.filter-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.filter-mobile-header {
  display: none; /* hidden on desktop */
}
.filter-fields-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-toggle-btn:hover { background: var(--primary-dark); }
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  line-height: 1;
}
.filter-fields-wrap select,
.filter-fields-wrap input {
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-light);
  transition: var(--transition);
}
.filter-fields-wrap select:focus,
.filter-fields-wrap input:focus {
  outline: none;
  border-color: var(--primary);
}
.listings-count { font-size: 0.85rem; color: var(--text-muted); margin-left: auto; }
.listings-count-desktop { display: inline; }
.listings-body { padding: 3rem 0; }

/* ===================================
   TEAM PAGE
=================================== */
.team-page { padding-top: 74px; }
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1200&q=60') center/cover;
  opacity: 0.08;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* Agent full page */
.agent-full-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.agent-full-left {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.agent-full-photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--primary);
  margin-bottom: 1.25rem;
}
.agent-full-name { color: var(--white); font-size: 1.4rem; margin-bottom: 0.3rem; }
.agent-full-role { color: var(--primary); font-size: 0.82rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.5rem; }
.agent-full-social { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.agent-full-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  transition: var(--transition);
}
.agent-full-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.agent-full-right { padding: 3rem 2.5rem; }
.agent-full-title { font-size: 1.6rem; margin-bottom: 1rem; }
.agent-bio { color: var(--text-light); font-size: 0.94rem; line-height: 1.8; margin-bottom: 2rem; }
.agent-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-bottom: 2rem;
}
.agent-info-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.87rem;
}
.agent-info-row i { color: var(--primary); width: 18px; text-align: center; }
.agent-info-row .lbl { color: var(--text-muted); margin-right: 0.25rem; }
.agent-info-row .val { font-weight: 600; color: var(--dark); }
.agent-action-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===================================
   LIGHTBOX
=================================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 87vh;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}
.lightbox-close:hover { color: var(--primary); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--primary); }

/* ===================================
   BACK TO TOP
=================================== */
#back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 500;
  box-shadow: 0 4px 14px rgba(200,164,90,0.45);
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===================================
   UTILITIES
=================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.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; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ===================================
   RESPONSIVE
=================================== */
/* ===================================
   RESPONSIVE — TABLET (≤1100px)
=================================== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
  .sidebar-sticky { position: static; }
  .gallery-main { height: 360px; }
  .search-fields { grid-template-columns: 1fr 1fr 1fr; }
  .search-btn-wrap { grid-column: 1 / -1; }
  .search-btn-wrap .btn { width: 100%; }
}

/* ===================================
   RESPONSIVE — TABLET (≤900px)
=================================== */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .header-phone { display: none; }
  .header-actions { display: none; }

  .agent-full-card { grid-template-columns: 1fr; }
  .agent-full-left { padding: 2rem 1.5rem; }
  .agent-full-photo { width: 120px; height: 120px; }

  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-btn-wrap { grid-column: 1 / -1; }

  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 100% !important; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* Collapsible filter on tablet/mobile */
  .filter-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .filter-fields-wrap {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
  }
  .filter-fields-wrap.open { display: flex; }
  .filter-fields-wrap select,
  .filter-fields-wrap input[type="number"] { width: 100%; }
  .filter-fields-wrap button[type="submit"],
  .filter-fields-wrap a.btn { width: 100%; text-align: center; justify-content: center; }
  .listings-count-desktop { display: none; }
  .listings-count { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .hero { min-height: auto; padding: 6rem 0 4rem; }
  .hero-stats { gap: 2rem; }
}

/* ===================================
   RESPONSIVE — MOBILE (≤700px)
=================================== */
@media (max-width: 700px) {
  section { padding: 3rem 0; }

  /* Hero */
  .hero { padding: 5rem 0 3rem; }
  .hero-content { text-align: center; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
  .stat-item { flex: 0 0 calc(50% - 1rem); }

  /* Search box */
  .search-box { padding: 1.25rem; margin: 1.5rem 0 0; }
  .search-tabs { flex-direction: row; }
  .search-fields { grid-template-columns: 1fr; gap: 0.6rem; }
  .search-btn-wrap { grid-column: 1; }
  .search-btn-wrap .btn { width: 100%; }
  .price-range { grid-template-columns: 1fr 1fr; }

  /* Grids */
  .properties-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr !important; max-width: 400px !important; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery-main { height: 220px; }

  /* Detail page */
  .features-list { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .agent-info-grid { grid-template-columns: 1fr; }

  /* Listings */
  .listings-hero { padding: 2.5rem 0 2rem; }
  .listings-filter-bar { position: static; top: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* CTA */
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* Property detail header */
  .property-detail-top { flex-direction: column; gap: 1rem; }
  .property-price-block { text-align: left; }
}

/* ===================================
   RESPONSIVE — SMALL MOBILE (≤480px)
=================================== */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  /* Header */
  .logo img { height: 36px; }
  .logo-text .brand { font-size: 0.88rem; }

  /* Hero */
  .hero { padding: 4.5rem 0 2.5rem; }
  .search-box { padding: 1rem; border-radius: var(--radius); }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.6rem; }

  /* Cards */
  .property-card .card-image { height: 200px; }
  .agent-card .agent-photo { height: 200px; }

  /* Misc */
  .section-header { margin-bottom: 2rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .number-card .num { font-size: 2rem; }

  /* Gallery */
  .gallery-main { height: 200px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }

  /* Team page agent cards */
  .agent-full-photo { width: 100px; height: 100px; }
}

