/* ==========================================================================
   YOURHURGHADAHOME - SENIOR UI/UX LUXURY DESIGN SYSTEM
   Palette: Pure White, Deep Navy (#0A1128 / #0B132B), Light Gold (#D4AF37)
   Typography: Tajawal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  /* Brand Core Palettes */
  --gold-primary: #D4AF37;
  --gold-hover: #B59536;
  --gold-dark: #8F7625;
  --gold-light: #F4EEDF;
  --gold-glow: rgba(212, 175, 55, 0.22);
  --gold-gradient: linear-gradient(135deg, #E6C875 0%, #D4AF37 50%, #B59536 100%);

  --navy-deep: #0A1128;
  --navy-dark: #0B132B;
  --navy-surface: #1C2541;
  --navy-glass: rgba(10, 17, 40, 0.85);

  /* Light Mode (Default) Tokens */
  --bg-app: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-surface: #F4F4F5;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border-glass: rgba(226, 232, 240, 0.6);
  --border-gold: rgba(212, 175, 55, 0.25);

  --text-title: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --shadow-ambient: 0 2px 10px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.04), 0 10px 25px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Tajawal', sans-serif;
  --font-heading: 'Tajawal', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s ease;
}

/* ==========================================================================
   RESET & CORE BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

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

a:hover {
  color: var(--gold-primary);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold {
  color: var(--gold-primary) !important;
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 6px 20px var(--gold-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.4);
  color: #FFFFFF;
}

.btn-navy {
  background: var(--navy-deep);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-navy:hover {
  background: var(--navy-surface);
  transform: translateY(-2px);
  color: #FFFFFF;
  box-shadow: var(--shadow-ambient);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-navy {
  background: var(--navy-deep);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-glass {
  background: rgba(10, 17, 40, 0.75);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: #94A3B8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 22px;
  align-items: center;
}

.topbar-link {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--gold-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-title);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--gold-primary);
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-normal);
  z-index: 100;
}

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

.dropdown-item {
  padding: 10px 20px;
  color: var(--text-body);
  font-size: 14px;
  display: block;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--gold-light);
  color: var(--gold-dark);
  padding-left: 24px;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: rotate(15deg);
}

/* Favorites Header Trigger */
.fav-header-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.fav-header-btn:hover {
  color: #EF4444;
  border-color: #EF4444;
}

.fav-counter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ==========================================================================
   HERO SECTION (LUXURY SEARCH & CONVERSION)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #0A1128 0%, #0F172A 60%, #0A1128 100%);
  overflow: hidden;
  padding: 65px 0 75px;
  color: #FFFFFF;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1613977257363-707ba9348227?w=1800&q=85&fit=crop');
  background-size: cover;
  background-position: center 35%;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}

.hero-glow-gold {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 70%);
  top: 15%;
  right: 8%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1060px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(12px);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  color: #34D399;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.18;
}

.hero-subtitle {
  font-size: 16px;
  color: #CBD5E1;
  font-weight: 400;
  max-width: 740px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Luxury Multi-Filter Search Card */
.hero-search-card {
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
  text-align: left;
}

.search-tab-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.search-tab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-tab-btn.active, .search-tab-btn:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.search-fields-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;
}

.search-field-item label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #34D399;
  margin-bottom: 5px;
}

.search-input, .search-select {
  width: 100%;
  height: 48px;
  background: rgba(10, 17, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.search-input:focus, .search-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px var(--gold-glow);
}

.search-select option {
  background: var(--navy-deep);
  color: #FFFFFF;
}

/* Quick Search Suggestions */
.quick-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94A3B8;
}

.quick-tag-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  color: #CBD5E1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-tag-chip:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--gold-primary);
  color: #34D399;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-banner {
  background: #0B132B;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 30px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 0 16px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: #CBD5E1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ==========================================================================
   PHOTO CATEGORIES GRID
   ========================================================================== */
.categories-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-photo-card {
  position: relative;
  height: 240px;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  text-decoration: none;
}

.category-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
}

.category-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-photo-card:hover img {
  transform: scale(1.08);
}

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.15) 0%, rgba(10, 17, 40, 0.85) 100%);
  transition: background 0.3s ease;
}

.category-photo-card:hover .cat-overlay {
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.25) 0%, rgba(10, 17, 40, 0.92) 100%);
}

.cat-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.cat-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cat-title {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

/* ==========================================================================
   DARK LUXURY TRUST SECTION
   ========================================================================== */
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-luxury-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 32px 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

[dir="rtl"] .trust-luxury-card {
  text-align: right;
}

.trust-luxury-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.trust-luxury-card:hover .trust-icon-box {
  transform: scale(1.1);
}

.trust-card-title {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.trust-card-desc {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   CATEGORIES GRID SECTION
   ========================================================================== */
.section {
  padding: 85px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.category-card:hover .category-icon {
  background: var(--gold-gradient);
  color: #FFFFFF;
  transform: scale(1.1);
}

.category-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.category-count {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURED PROPERTIES CARDS
   ========================================================================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.property-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  border-color: rgba(212, 175, 55, 0.4);
}

.property-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #0F172A;
}

.property-img-wrap .img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.property-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-img-wrap img {
  transform: scale(1.08);
}

.card-badges-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.badge-status {
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 30px;
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-status.status-sale {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-status.status-rent {
  background: rgba(16, 185, 129, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-type {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0F172A;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.property-content {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.property-price-main {
  font-size: 23px;
  font-weight: 800;
  color: #0F172A;
  font-family: 'Tajawal', sans-serif;
  letter-spacing: -0.5px;
}

.property-delivery-tag {
  font-size: 12px;
  font-weight: 700;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-title {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.property-title a {
  color: #0F172A;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.property-title a:hover {
  color: var(--gold-primary);
}

.property-address {
  font-size: 13.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.property-specs-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #EDF2F7;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.spec-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
}

.spec-pill i {
  color: #D4AF37;
  font-size: 13px;
}

.property-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-card-details {
  flex: 1;
  background: #0F172A;
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-card-details:hover {
  background: var(--gold-primary);
  color: #0F172A !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn-card-whatsapp {
  width: 42px;
  height: 42px;
  background: #25D366;
  color: #FFFFFF !important;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-card-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}


/* ==========================================================================
   INTERACTIVE MAP EXPLORER UI
   ========================================================================== */
.map-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 340px 1fr;
  height: 520px;
}

.map-sidebar {
  padding: 24px;
  overflow-y: auto;
  border-right: 1px solid var(--border-glass);
  background: var(--bg-surface);
}

.map-location-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.map-location-item:hover, .map-location-item.active {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-ambient);
}

.map-embed-wrap {
  width: 100%;
  height: 100%;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   AI PROPERTY MATCHER WIZARD
   ========================================================================== */
.ai-matcher-card {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0F172A 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #FFFFFF;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.ai-glow-accent {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
  pointer-events: none;
}

.ai-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 26px 0;
}

.ai-step-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
}

.ai-step-box label {
  display: block;
  font-size: 13px;
  color: #34D399;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ai-step-box select {
  width: 100%;
  background: rgba(10, 17, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* ==========================================================================
   PROPERTY COMPARISON FLOATING DRAWER
   ========================================================================== */
.compare-floating-drawer {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deep);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 12px 30px;
  color: #FFFFFF;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1200;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.compare-floating-drawer.show {
  bottom: 30px;
}

/* Compare Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 40, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 560px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-glass);
}

.modal-box-lg {
  max-width: 960px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-title);
}

/* ==========================================================================
   MORTGAGE CALCULATOR
   ========================================================================== */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.calc-form-group {
  margin-bottom: 20px;
}

.calc-form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-title);
}

.calc-slider {
  width: 100%;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.calc-result-box {
  background: var(--navy-deep);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #FFFFFF;
  text-align: center;
}

.calc-monthly-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #34D399;
  margin: 10px 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
  background: var(--navy-deep);
  color: #CBD5E1;
  padding: 75px 0 30px;
  border-top: 2px solid var(--gold-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background: var(--gold-gradient);
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 14px;
}

.footer-links a:hover {
  color: #34D399;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #94A3B8;
}

.footer-contact i {
  color: #34D399;
  font-size: 16px;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
}

.social-btn:hover {
  background: var(--gold-primary);
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748B;
}

/* Floating Direct WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition-normal);
  animation: floatPulse 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

@keyframes floatPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: block; }
  .search-fields-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .map-section-card { grid-template-columns: 1fr; height: auto; }
  .map-embed-wrap { height: 350px; }
  .ai-step-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .hero-section { padding: 40px 0 70px; }
  .search-fields-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item:not(:last-child)::after { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  backdrop-filter: blur(16px);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-nav-list li {
  margin-bottom: 18px;
}

.mobile-nav-list a {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
}

.mobile-nav-list a:hover {
  color: #34D399;
}


/* ==========================================================================
   RTL / ARABIC SUPPORT
   ========================================================================== */
[dir="rtl"] {
  --font-sans: 'Cairo', 'Inter', sans-serif;
  --font-heading: 'Cairo', 'Inter', sans-serif;
}
[dir="rtl"] body {
  text-align: right;
}
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .me-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .topbar-right {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .nav-menu {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .hero-content {
  padding-right: 0;
  text-align: right;
}
[dir="rtl"] .btn-card-details i {
  transform: rotate(180deg);
}
[dir="rtl"] .contact-item i {
  margin-right: 0;
  margin-left: 15px;
}
[dir="rtl"] .footer-widget {
  text-align: right;
}
[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}
[dir="rtl"] .search-bar .btn {
  margin-left: 0;
  margin-right: 15px;
}
[dir="rtl"] .btn i {
  margin-left: 0;
  margin-right: 8px; /* Assuming icon is on the left in English, it should be on the right in RTL or spacing swapped */
}

