/* ============================================================
   roaya+ (رؤية+) - Real Estate Platform
   Brand identity: Earthy browns, olive green, cream
   Inspired by URW Geometric Arabic Medium typography
   ============================================================ */

:root {
  /* === Brand colors (from roaya+ identity) === */
  --primary: #4a2f1e;          /* Dark brown (logo) */
  --primary-dark: #2d1c11;     /* Deeper brown */
  --primary-light: #6b4528;    /* Lighter brown */
  --accent: #8a7355;           /* Warm beige-brown */
  --accent-dark: #6b5840;      /* Darker beige */
  --accent-light: #c9b89a;     /* Light beige */
  --olive: #7a8055;            /* Olive green (signage) */
  --olive-dark: #5e6342;       /* Dark olive */
  --olive-light: #a8a880;      /* Light olive */
  --cream: #f5efe6;            /* Cream/ivory background */
  --cream-dark: #ebe3d4;       /* Slightly darker cream */
  
  /* === Neutrals === */
  --white: #ffffff;
  --bg-section: #faf6ef;       /* Off-white cream */
  --bg-light: #f5efe6;
  --text: #2d1c11;             /* Brown text */
  --text-muted: #8a7355;
  --text-light: #b5a182;
  --border: #e8e0d2;
  --border-light: #f0e9dc;
  
  /* === System colors === */
  --success: #6b8e4e;
  --danger: #b04545;
  --warning: #c9931a;
  --whatsapp: #25d366;
  
  /* === Spacing & sizing === */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(74,47,30,0.06);
  --shadow: 0 6px 20px rgba(74,47,30,0.10);
  --shadow-lg: 0 12px 40px rgba(74,47,30,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Cairo', -apple-system, sans-serif;
  margin: 0;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
}
[dir="ltr"] body { font-family: 'Poppins', 'Tajawal', sans-serif; }

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

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 { color: var(--primary); font-weight: 700; line-height: 1.3; margin-top: 0; }

ul { padding-inline-start: 20px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* === Typography helpers === */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-olive { color: var(--olive); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.fw-bold { font-weight: 700; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-accent {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}
.btn-accent:hover {
  background: var(--olive-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover { background: #128c7e; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 12px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }

/* === Top bar === */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  padding: 10px 0;
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--accent-light); }
.topbar-left, .topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lang-switch {
  background: rgba(255,255,255,0.1);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
}
.lang-switch:hover { background: var(--accent); color: var(--primary-dark) !important; }

/* === Navbar === */
.navbar-main {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}
.navbar-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
  font-size: 22px;
}
.brand img {
  max-height: 56px;
  width: auto;
}
.brand-accent { color: var(--accent); }

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 8px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 991px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    display: none;
    gap: 6px;
    border-top: 1px solid var(--border-light);
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .mobile-toggle { display: block; }
  .nav-actions { display: none; }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 620px;
  background: linear-gradient(135deg, rgba(45,28,17,0.90), rgba(74,47,30,0.78)),
              url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1600') center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 100px 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(201,184,154,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(122,128,85,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.5vw, 60px);
  margin: 0 0 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero h1 .accent-text { color: var(--accent-light); }
.hero p {
  font-size: clamp(16px, 1.7vw, 20px);
  margin: 0 0 36px;
  color: rgba(255,255,255,0.95);
  max-width: 620px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
}

/* === Search box === */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

/* === Forms === */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.form-label.mb-0 { margin-bottom: 0; }
.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(138,115,85,0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* === Sections === */
.section { padding: 80px 0; }
.section-light { background: var(--bg-section); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.85); }

.section-title { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-title .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin: 0 0 16px;
  font-weight: 800;
}
.section-title p { color: var(--text-muted); font-size: 17px; margin: 0; }

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

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.property-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-section);
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.property-card:hover .property-image img { transform: scale(1.06); }
.property-badges {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge-property {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-property.featured {
  background: var(--accent);
  color: #fff;
}
.badge-property.available { background: var(--olive); color: #fff; }
.badge-property.reserved { background: var(--warning); color: #fff; }
.badge-property.sold { background: var(--danger); color: #fff; }

.property-fav {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.property-fav:hover { background: var(--accent); color: #fff; transform: scale(1.1); }
.property-fav.active { background: var(--accent); color: #fff; }

.property-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.property-category {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.property-title {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.4;
}
.property-title a { color: var(--primary); }
.property-title a:hover { color: var(--accent); }
.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.property-location i { color: var(--accent); }
.property-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.property-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
  flex-wrap: wrap;
}
.property-meta > div { display: flex; align-items: center; gap: 6px; }
.property-meta i { color: var(--accent); font-size: 16px; }

.btn-compare.active { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn-favorite.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === Categories grid === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.category-card {
  background: var(--white);
  padding: 36px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.category-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--cream), var(--accent-light));
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 18px;
  transition: var(--transition);
}
.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}
.category-card h4 { margin: 0; font-size: 17px; font-weight: 700; color: var(--primary); }

/* === Why us / Features section === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  padding: 38px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}
.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cream-dark), var(--accent-light));
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 22px;
}
.feature-card h3 { font-size: 20px; margin: 0 0 12px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* === Stats section === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-item .stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* === Testimonials === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  inset-inline-start: 24px;
  font-size: 80px;
  color: var(--accent-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-stars { color: var(--accent); margin-bottom: 14px; font-size: 16px; }
.testimonial-content {
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
  margin: 0 0 20px;
}
.testimonial-author { font-weight: 700; color: var(--primary); }
.testimonial-position { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* === Page header === */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 70px 0 50px;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
.breadcrumb { color: rgba(255,255,255,0.85); font-size: 14px; }
.breadcrumb a { color: var(--accent-light); }

/* === Property detail === */
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16/10;
  background: var(--bg-section);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.gallery-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: var(--transition);
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--accent); }

.detail-section {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
}
.detail-section h3 {
  margin-top: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 22px;
  font-size: 20px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.spec-item { display: flex; gap: 14px; align-items: center; }
.spec-icon {
  width: 50px; height: 50px;
  background: var(--cream);
  color: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.spec-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-value { font-size: 17px; font-weight: 700; color: var(--primary); }

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features-list li {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.features-list i { color: var(--olive); font-size: 16px; }

#map { width: 100%; height: 380px; border-radius: var(--radius); border: 1px solid var(--border); }

.contact-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 100px;
}
.contact-card h3 { font-size: 18px; }
.price-large {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border-light);
}
.agent-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-section);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.agent-avatar {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* === Filters card === */
.filters-card {
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: sticky;
  top: 100px;
}
.filters-card h3 { margin-top: 0; padding-bottom: 14px; border-bottom: 2px solid var(--border-light); margin-bottom: 18px; font-size: 18px; }

/* === Layout helpers === */
.row { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; box-sizing: border-box; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; }
@media (max-width: 991px) {
  .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
}

/* === Alerts === */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid;
  font-size: 14px;
}
.alert-success { background: #e8f0e0; color: #4a6d2c; border-color: var(--olive-light); }
.alert-danger { background: #f8e3e3; color: #8a3030; border-color: #d8a4a4; }
.alert-warning { background: #faf2dc; color: #87651a; border-color: #d6c388; }

/* === Pagination === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  flex-wrap: wrap;
}
.page-item .page-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.page-item .page-link:hover { background: var(--cream); border-color: var(--accent); }
.page-item.active .page-link { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === Footer === */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer h4 {
  color: var(--accent-light);
  font-size: 17px;
  margin: 0 0 18px;
  font-weight: 700;
}
.footer-brand img { max-height: 70px; margin-bottom: 16px; background: rgba(255,255,255,0.95); padding: 10px; border-radius: 12px; }
.footer-brand p { line-height: 1.8; font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer a:hover { color: var(--accent-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--accent); font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* === Floating WhatsApp === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,0.55); }

/* === Compare bar === */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
  z-index: 998;
  transform: translateY(100%);
  transition: var(--transition);
}
.compare-bar.active { transform: translateY(0); }
.compare-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }

/* === Brand banner section ("Why Roaya+") === */
.brand-banner {
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  border-radius: var(--radius-xl);
  padding: 60px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--border);
}
@media (max-width: 767px) { .brand-banner { padding: 36px 24px; } }

/* === Olive CTA banner === */
.olive-cta {
  background: linear-gradient(135deg, var(--olive), var(--olive-dark));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
}
.olive-cta h2 { color: #fff; }
.olive-cta p { color: rgba(255,255,255,0.92); }

/* === Steps section === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  position: relative;
}
.step-card {
  text-align: center;
  position: relative;
  padding: 30px 22px;
}
.step-num {
  display: inline-block;
  width: 60px; height: 60px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
  line-height: 60px;
  margin-bottom: 18px;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.step-card h4 { font-size: 17px; margin: 0 0 10px; color: var(--primary); }
.step-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* === Guarantees / Trust badges === */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.guarantee-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  border-inline-start: 4px solid var(--olive);
  transition: var(--transition);
}
.guarantee-card:hover { transform: translateX(4px); border-inline-start-color: var(--accent); }
[dir="rtl"] .guarantee-card:hover { transform: translateX(-4px); }
.guarantee-icon {
  width: 48px; height: 48px;
  background: var(--olive-light);
  color: var(--olive-dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.guarantee-card h4 { margin: 0 0 6px; font-size: 16px; color: var(--primary); }
.guarantee-card p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* === Rich content (property descriptions, articles) === */
.property-description, .article-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.property-description h2, .article-content h2 {
  font-size: 26px;
  margin: 32px 0 16px;
  color: var(--primary);
}
.property-description h3, .article-content h3 {
  font-size: 21px;
  margin: 28px 0 14px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}
.property-description h4, .article-content h4 {
  font-size: 17px;
  margin: 20px 0 10px;
  color: var(--primary);
}
.property-description p, .article-content p {
  margin: 0 0 16px;
}
.property-description ul, .property-description ol,
.article-content ul, .article-content ol {
  margin: 0 0 20px;
  padding-inline-start: 24px;
}
.property-description ul li, .article-content ul li,
.property-description ol li, .article-content ol li {
  margin-bottom: 8px;
  line-height: 1.8;
}
.property-description strong, .article-content strong {
  color: var(--primary);
  font-weight: 700;
}
.property-description em, .article-content em {
  color: var(--accent);
  font-style: italic;
}
.property-description blockquote, .article-content blockquote {
  border-inline-start: 4px solid var(--accent);
  background: var(--cream);
  padding: 16px 22px;
  margin: 22px 0;
  border-radius: 8px;
  color: var(--text);
}
.property-description table, .article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.property-description table th, .article-content table th {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  font-weight: 700;
  text-align: start;
}
.property-description table td, .article-content table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}
.property-description table tr:nth-child(even) td,
.article-content table tr:nth-child(even) td {
  background: var(--bg-section);
}
.property-description img, .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
}
.property-description a, .article-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* === Legal pages === */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--accent);
}
.legal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-meta i { color: var(--olive); }

.legal-content {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}
.legal-content .lead {
  font-size: 17px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--cream), #faf6ef);
  border-inline-start: 4px solid var(--olive);
  border-radius: 10px;
  margin-bottom: 28px;
}
.legal-content h2 {
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}
.legal-content h3, .legal-content h4 {
  font-size: 19px;
  margin: 22px 0 10px;
  color: var(--primary);
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol {
  margin: 0 0 18px;
  padding-inline-start: 24px;
}
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--primary); font-weight: 700; }
.legal-content a { color: var(--olive); text-decoration: underline; }
.legal-content a:hover { color: var(--primary); }

.legal-note {
  background: #faf6ef;
  border-inline-start: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 22px 0;
  font-size: 15px;
}
.legal-note i { color: var(--olive); margin-inline-end: 6px; }

/* Process steps */
.process-steps {
  margin: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-step {
  display: flex;
  gap: 16px;
  background: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-inline-start: 4px solid var(--olive);
}
.process-num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h4 { margin: 0 0 6px; color: var(--primary); font-size: 17px; }
.process-step p { margin: 0; color: var(--text); font-size: 15px; }

/* Info cards (hosting page) */
.info-card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.info-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 16px 22px;
  color: #fff;
}
.info-card-header h2 {
  color: #fff !important;
  margin: 0;
  font-size: 20px;
  border: none !important;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card-header i { color: var(--accent-light); }
.info-card-body { padding: 20px 22px; }
.info-note {
  background: var(--cream);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text);
}
.info-note i { color: var(--olive); margin-inline-end: 6px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 11px 12px;
  text-align: start;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}
.data-table th {
  width: 35%;
  color: var(--accent);
  font-weight: 600;
  background: #faf8f3;
}
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }

.status-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f0d6;
  color: #4a6027;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}
.status-active i { color: #6c8a3a; }

/* Footer enhancements */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0 12px;
  margin-top: 12px;
}
.footer-legal h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin: 0 0 12px;
}
.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links i { color: var(--olive); font-size: 13px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 14px;
  font-size: 13px;
}
.footer-trust {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
}
.footer-trust a {
  color: var(--accent-light);
  text-decoration: none;
}
.footer-trust a:hover { color: #fff; }
.footer-trust .bi-shield-lock-fill { color: #87b04a; }

/* Card form (complaints) */
.card-form {
  background: #fff;
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.card-form h2 { color: var(--primary); margin-bottom: 22px; }

.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert i { font-size: 22px; flex-shrink: 0; }
.alert-success { background: #e8f3d4; color: #3a5e1a; border-inline-start: 4px solid #6c8a3a; }
.alert-success i { color: #6c8a3a; }
.alert-error { background: #fdeaea; color: #8a2929; border-inline-start: 4px solid #b04545; }
.alert-error i { color: #b04545; }

@media (max-width: 768px) {
  .footer-legal-links { flex-direction: column; gap: 6px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .data-table th { width: 40%; }
  .process-step { flex-direction: column; gap: 10px; }
}
