/*
Theme Name: Elite Real Estate RTL
Theme URI: https://realestate.eg
Author: RealEstate.eg
Author URI: https://realestate.eg
Description: Premium luxury real estate theme — Arabic RTL, pixel-perfect replica of realestate.eg
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elite-realestate-rtl
Tags: real-estate, rtl, arabic, responsive, modern, luxury
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
*/

/* ==========================================================================
   0. FONT IMPORTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS  (matched to realestate.eg root.css)
   ========================================================================== */
:root {
  /* -- Brand Colors -- */
  --primary:       #0277bd;
  --primary-dark:  #061A4D;
  --primary-light: #0388d6;
  --navy:          #0277bd;
  --navy-light:    #0388d6;
  --navy-dark:     #061A4D;

  --accent:        #bd4802;
  --accent-light:  #d45a12;
  --accent-dark:   #a33e00;
  --orange:        #bd4802;
  --orange-light:  #d45a12;
  --orange-dark:   #a33e00;

  --gold:          #D4A853;
  --gold-light:    #E4C07A;
  --gold-dark:     #B8893A;

  /* -- Neutrals -- */
  --white:         #FFFFFF;
  --off-white:     #F9FAFB;
  --light-gray:    #F3F4F6;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-400:      #9CA3AF;
  --gray-500:      #6B7280;
  --gray-600:      #4B5563;
  --dark:          #1F2937;
  --black:         #111827;

  /* Aliases matching old theme for backward compat */
  --ivory:         #F9FAFB;
  --cream:         #F3F4F6;
  --sand:          #E5E7EB;
  --warm-gray:     #9CA3AF;
  --charcoal:      #4B5563;
  --ink:           #111827;

  /* -- Semantic -- */
  --success:       #16A34A;
  --error:         #DC2626;
  --info:          #2563EB;
  --warning:       #F59E0B;

  /* -- Surfaces -- */
  --bg-primary:    var(--off-white);
  --bg-secondary:  var(--light-gray);
  --bg-card:       var(--white);
  --bg-elevated:   var(--white);
  --bg-dark:       var(--primary);
  --bg-dark-alt:   var(--primary-dark);

  /* -- Text -- */
  --text-primary:   var(--black);
  --text-secondary: var(--charcoal);
  --text-muted:     var(--warm-gray);
  --text-on-dark:   var(--white);
  --text-on-navy:   rgba(255,255,255,.85);
  --text-accent:    var(--gold);

  /* -- Typography -- */
  --font-ar:       'Tajawal', sans-serif;
  --font-en:       'Plus Jakarta Sans', sans-serif;
  --font-body:     var(--font-ar);
  --font-display:  var(--font-ar);

  --text-xs:   .75rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --leading-tight:   1.2;
  --leading-snug:    1.4;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* -- Spacing -- */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem;
  --sp-4: 1rem;    --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8: 2rem;    --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;

  /* -- Border Radius (matched to realestate.eg) -- */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  20px;
  --r-3xl:  24px;
  --r-full: 9999px;

  /* -- Shadows (Tailwind-like, navy-tinted) -- */
  --sh-xs:    0 1px 2px rgba(2,119,189,.04);
  --sh-sm:    0 1px 3px rgba(2,119,189,.06), 0 1px 2px rgba(2,119,189,.04);
  --sh-md:    0 4px 6px -1px rgba(2,119,189,.07), 0 2px 4px -2px rgba(2,119,189,.05);
  --sh-lg:    0 10px 15px -3px rgba(2,119,189,.08), 0 4px 6px -4px rgba(2,119,189,.05);
  --sh-xl:    0 20px 25px -5px rgba(2,119,189,.10), 0 8px 10px -6px rgba(2,119,189,.06);
  --sh-2xl:   0 25px 50px -12px rgba(6,26,77,.20);
  --sh-gold:  0 4px 20px rgba(212,168,83,.25);
  --sh-orange:0 4px 20px rgba(189,72,2,.25);
  --sh-card:  0 2px 8px rgba(6,26,77,.06), 0 0 1px rgba(6,26,77,.08);
  --sh-card-hover: 0 12px 28px rgba(6,26,77,.12), 0 4px 10px rgba(6,26,77,.06);

  /* -- Transitions -- */
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast:    .15s;
  --dur-normal:  .3s;
  --dur-slow:    .5s;

  /* -- Glass Morphism -- */
  --glass-bg:        rgba(255,255,255,.72);
  --glass-blur:      blur(20px);
  --glass-border:    rgba(255,255,255,.2);
  --glass-dark-bg:   rgba(6,26,77,.85);
  --glass-dark-blur: blur(24px);

  /* -- Z-index Scale -- */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-fixed:    300;
  --z-overlay:  400;
  --z-modal:    500;
  --z-toast:    600;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: var(--leading-normal);
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--gold);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: var(--leading-tight);
  margin-bottom: var(--sp-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--sp-4);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* Section Title (old pattern) */
.section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-12);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  margin: var(--sp-4) auto 0;
  border-radius: var(--r-full);
}

/* Section Header (realestate.eg pattern) */
.sectionHeader {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.sectionHeader .title,
.sectionHeader .sectionTitle {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-3);
  position: relative;
  display: inline-block;
}
.sectionHeader .title::after,
.sectionHeader .sectionTitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: var(--sp-3) auto 0;
  border-radius: var(--r-full);
}
.sectionHeader .subtitle,
.sectionHeader .sectionSubtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

section {
  padding: var(--sp-20) 0;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 2px solid transparent;
  transition: all var(--dur-normal) var(--ease-out);
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  cursor: pointer;
}
.btn i {
  font-size: .85em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--sh-orange);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(189,72,2,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  border-color: var(--gold);
  box-shadow: var(--sh-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: translateY(-2px);
  color: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(212,168,83,.4);
}

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

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg  { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }
.btn-sm  { padding: var(--sp-2) var(--sp-4); font-size: var(--text-xs); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   6. HEADER  (fixed, 70px, glass on scroll, gold underline hover)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: 70px;
  z-index: var(--z-sticky);
  transition: all var(--dur-normal) var(--ease-out);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Transparent state (homepage top) */
.site-header.transparent-header {
  background: transparent;
}
.site-header.transparent-header .site-title a,
.site-header.transparent-header .menu a {
  color: var(--white);
}
.site-header.transparent-header .site-logo img {
  filter: brightness(0) invert(1);
}

/* Scrolled / Solid state — glass morphism */
.site-header.scrolled,
.site-header:not(.transparent-header) {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(2,119,189,.06);
  box-shadow: var(--sh-sm);
  height: 64px;
}
.site-header.scrolled .site-title a,
.site-header.scrolled .menu a,
.site-header:not(.transparent-header) .site-title a,
.site-header:not(.transparent-header) .menu a {
  color: var(--navy);
}
.site-header.scrolled .site-logo img,
.site-header:not(.transparent-header) .site-logo img {
  filter: none;
}

/* Header inner wrap */
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}
.site-logo img {
  height: 48px;
  width: auto;
  transition: all var(--dur-normal) ease;
}
.site-header.scrolled .site-logo img {
  height: 40px;
}
.site-title {
  margin: 0;
}
.site-title a {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -.02em;
  transition: color var(--dur-fast) ease;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}
.main-navigation .menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation .menu li a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--dur-fast) ease;
  position: relative;
}

/* Gold underline on hover (realestate.eg signature) */
.main-navigation .menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--r-full);
  transition: width var(--dur-normal) var(--ease-out);
}
.main-navigation .menu li a:hover::after,
.main-navigation .menu li.current-menu-item a::after,
.main-navigation .menu li.current_page_item a::after {
  width: 60%;
}
.main-navigation .menu li a:hover,
.main-navigation .menu li.current-menu-item a,
.main-navigation .menu li.current_page_item a {
  color: var(--accent) !important;
  background: rgba(189,72,2,.04);
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: var(--z-fixed);
  align-items: center;
  justify-content: center;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: var(--r-full);
  transition: all var(--dur-normal) var(--ease-out);
  position: absolute;
  right: 10px;
}
.menu-icon { top: 21px; }
.menu-icon::before { content: ''; top: -7px; }
.menu-icon::after  { content: ''; top: 7px; }

.transparent-header .menu-icon,
.transparent-header .menu-icon::before,
.transparent-header .menu-icon::after {
  background: var(--white);
}
.scrolled .menu-icon,
.scrolled .menu-icon::before,
.scrolled .menu-icon::after {
  background: var(--navy);
}

/* Hamburger → X animation */
.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--white);
}
.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--white);
}

/* Mobile Full-Screen Overlay Menu (dark glass bg) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,26,77,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: calc(var(--z-fixed) - 1);
  padding: var(--sp-24) var(--sp-6) var(--sp-6);
  overflow-y: auto;
}
.mobile-menu-overlay.active {
  display: block;
  animation: fadeIn .3s ease;
}
.mobile-menu-overlay .menu {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.mobile-menu-overlay .menu li a {
  display: block;
  padding: var(--sp-4) var(--sp-5);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 600;
  border-radius: var(--r-lg);
  transition: all var(--dur-fast) ease;
  border-right: 3px solid transparent;
}
.mobile-menu-overlay .menu li a:hover,
.mobile-menu-overlay .menu li.current-menu-item a {
  background: rgba(255,255,255,.08);
  color: var(--gold-light);
  border-right-color: var(--gold);
}

/* ==========================================================================
   7. HERO SECTION  (full viewport, overlay, 2-col grid, glass search, stats)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-section.full-height-hero { min-height: 85vh; }
.project-hero { min-height: 65vh; }

/* Video background */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,26,77,.75) 0%,
    rgba(6,26,77,.50) 40%,
    rgba(6,26,77,.80) 100%
  );
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-6) var(--sp-12);
}
.centered-hero-content {
  padding-top: var(--sp-16);
}

/* Two-column hero layout (desktop) */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  width: 100%;
  padding: var(--sp-20) 0 var(--sp-12);
}
.hero-grid .hero-text {
  text-align: right;
}

.hero-content h1,
.hero-grid h1 {
  color: var(--white);
  font-size: var(--text-5xl);
  font-weight: 900;
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  line-height: 1.15;
}
.hero-content p,
.hero-grid p {
  color: rgba(255,255,255,.85);
  font-size: var(--text-xl);
  margin-bottom: var(--sp-8);
  line-height: var(--leading-relaxed);
}

.hero-action {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}
.hero-grid .hero-action {
  justify-content: flex-start;
}

/* Glass morphism search box */
.hero-search {
  margin-top: var(--sp-8);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: var(--text-base);
  padding: var(--sp-2);
}
.hero-search input::placeholder {
  color: rgba(255,255,255,.5);
}
.hero-search .btn {
  flex-shrink: 0;
}
.hero-grid .hero-search {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* Hero Stats Cards */
.hero-stats {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}
.hero-stat-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.hero-stat-card .stat-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.hero-stat-card .stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* Project meta in hero */
.project-meta {
  display: flex;
  gap: var(--sp-6);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.9);
  font-size: var(--text-sm);
  font-weight: 500;
}
.meta-item i {
  color: var(--gold-light);
  font-size: var(--text-base);
}

/* Unit hero additions */
.unit-project-link {
  margin-bottom: var(--sp-4);
}
.unit-project-link a {
  color: var(--gold-light);
  font-size: var(--text-lg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--dur-fast) ease;
}
.unit-project-link a:hover {
  color: var(--gold);
}

.unit-status-badge {
  display: inline-block;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: var(--sp-4);
}
.status-available { background: rgba(22,163,74,.9); color: var(--white); }
.status-sold      { background: rgba(220,38,38,.9); color: var(--white); }
.status-reserved  { background: rgba(245,158,11,.9); color: var(--white); }

.unit-price {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* ==========================================================================
   8. ABOUT SECTION
   ========================================================================== */
.about-section-responsive {
  padding: var(--sp-20) 0;
  background: var(--white);
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.about-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.about-header h2 {
  font-size: var(--text-3xl);
  color: var(--navy);
  position: relative;
  display: inline-block;
}
.about-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  margin: var(--sp-3) auto 0;
  border-radius: var(--r-full);
}

.about-flex-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.about-text-content {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.about-text-content .read-more-toggle {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.about-image-wrapper img {
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl);
}

/* ==========================================================================
   9. STATS SECTION
   ========================================================================== */
.stats-bar {
  background: var(--navy);
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: var(--sp-2);
  font-family: var(--font-en);
}
.stat-label {
  font-size: var(--text-base);
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ==========================================================================
   10. PROPERTY CARDS  (realestate.eg featured-properties.css — EXACT match)
   ========================================================================== */

/* --- .propertyCard (primary class from realestate.eg) --- */
.propertyCard {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: all var(--dur-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(2,119,189,.04);
}
.propertyCard:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-card-hover);
  border-color: rgba(212,168,83,.15);
}

/* Property Image */
.propertyImage {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.propertyImage a {
  display: block;
  height: 100%;
}
.propertyImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.propertyCard:hover .propertyImage img {
  transform: scale(1.08);
}

/* Gradient overlay at bottom of image */
.propertyImage::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,.4));
  pointer-events: none;
  z-index: 1;
}

/* Property Badge — navy gradient, top-right (RTL) */
.propertyBadge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  color: var(--white);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .02em;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Property Content */
.propertyContent {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
}

/* Property Title */
.propertyTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: var(--leading-snug);
}
.propertyTitle a {
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.propertyTitle a:hover {
  color: var(--accent);
}

/* Property Location */
.propertyLocation {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--gray-500);
}
.propertyLocation i {
  color: var(--gold);
  font-size: .85em;
}

/* Property Specs — pill badges */
.propertySpecs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
}
.unitSpec {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  color: var(--navy);
  background: #F0F3F8;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 20px;
  font-weight: 500;
}
.unitSpec i {
  color: var(--navy);
  font-size: .75em;
  opacity: .7;
}

/* Property Footer */
.propertyFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--light-gray);
  margin-top: auto;
}

/* Property Price */
.propertyPrice {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-en);
  line-height: 1;
}
.propertyPrice .currency {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  font-family: var(--font-ar);
  margin-right: var(--sp-1);
}

/* Property CTA Button */
.propertyCTA {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.propertyCTA:hover {
  background: var(--gold);
  color: var(--primary-dark);
}
.propertyCTA i {
  font-size: .8em;
}

/* ==========================================================================
   10b. UNIT CARDS — WP template classes (aliases for .propertyCard)
   ========================================================================== */
.unit-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: all var(--dur-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(2,119,189,.04);
}
.unit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-card-hover);
  border-color: rgba(212,168,83,.15);
}

/* Thumbnail (alias for .propertyImage) */
.unit-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/11;
  height: auto;
}
.unit-thumbnail a {
  display: block;
  height: 100%;
}
.unit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.unit-card:hover .unit-image,
.unit-card:hover .unit-thumbnail img {
  transform: scale(1.08);
}
.unit-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Gradient overlay on thumbnail */
.unit-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0,0,0,.35));
  pointer-events: none;
  z-index: 1;
}

/* Status badge on card */
.unit-status {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* New badge */
.new-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--gold);
  color: var(--primary-dark);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  font-weight: 700;
  z-index: 2;
}

/* Price tag on card (glass pill) */
.unit-price-tag {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  background: var(--glass-dark-bg);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  z-index: 2;
}
.unit-price-tag i {
  color: var(--gold-light);
  font-size: var(--text-xs);
}

/* Card body (alias for .propertyContent) */
.unit-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
}
.unit-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: var(--leading-snug);
}
.unit-title a {
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.unit-title a:hover {
  color: var(--accent);
}

.unit-project {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.unit-project i {
  color: var(--gold);
  font-size: .8em;
}
.unit-project a {
  color: var(--navy);
  font-weight: 500;
}
.unit-project a:hover {
  color: var(--accent);
}

/* Meta row (specs) */
.unit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.unit-detail {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--navy);
  background: #F0F3F8;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 20px;
  font-weight: 500;
}
.unit-detail i {
  color: var(--navy);
  font-size: .8em;
  opacity: .7;
}

/* Features (pill badges) */
.unit-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.unit-feature {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  color: var(--navy);
  background: #F0F3F8;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-weight: 500;
}
.unit-feature i {
  color: var(--success);
  font-size: .7em;
}

/* Description */
.unit-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card actions / footer */
.unit-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--light-gray);
}
.unit-actions .btn {
  flex: 1;
  font-size: var(--text-xs);
  padding: var(--sp-2) var(--sp-3);
}
.unit-actions .btn-navy {
  background: var(--navy);
  color: var(--white);
}
.unit-actions .btn-navy:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

/* ==========================================================================
   11. GRIDS
   ========================================================================== */
.units-grid,
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* Projects grid on front page */
.projects-carousel,
.projects-section .units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* ==========================================================================
   12. PROJECT DETAILS (Single)
   ========================================================================== */
.project-details {
  padding: var(--sp-16) 0;
  background: var(--white);
}
.project-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-6);
}
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--off-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--light-gray);
  transition: all var(--dur-normal) var(--ease-out);
}
.detail-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--sh-gold);
  transform: translateY(-2px);
}
.detail-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--primary-light));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.detail-icon i {
  color: var(--gold-light);
  font-size: var(--text-xl);
}
.detail-content h4 {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--sp-1);
}
.detail-content p {
  font-size: var(--text-base);
  color: var(--navy);
  font-weight: 700;
  margin: 0;
}

/* Unit meta on single page */
.single-unit-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.unit-meta-item {
  text-align: center;
  padding: var(--sp-6);
  background: var(--off-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--light-gray);
  transition: all var(--dur-normal) var(--ease-out);
}
.unit-meta-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--sh-gold);
  transform: translateY(-2px);
}
.unit-meta-icon {
  margin-bottom: var(--sp-3);
}
.unit-meta-icon i {
  font-size: var(--text-3xl);
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.unit-meta-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-1);
}
.unit-meta-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   13. GALLERY
   ========================================================================== */
.project-gallery {
  padding: var(--sp-16) 0;
  background: var(--off-white);
}
.gallery-content {
  position: relative;
}
/* Original gallery grid CSS removed - using slider instead */

.gallery-thumbnails {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: thin;
}
.thumbnail-item {
  width: 80px;
  height: 60px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--dur-fast) ease;
  opacity: .6;
}
.thumbnail-item:hover,
.thumbnail-item.active {
  opacity: 1;
  border-color: var(--gold);
}
.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   14. AMENITIES
   ========================================================================== */
.project-amenities {
  padding: var(--sp-16) 0;
  background: var(--white);
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-4);
}
.amenity-item {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  transition: all var(--dur-normal) var(--ease-out);
}
.amenity-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--sh-gold);
  transform: translateY(-4px);
}
.amenity-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--primary-light));
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-3);
}
.amenity-icon i {
  color: var(--gold-light);
  font-size: var(--text-xl);
}
.amenity-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================================================
   15. CONTENT / DESCRIPTION
   ========================================================================== */
.project-content {
  padding: var(--sp-16) 0;
  background: var(--off-white);
}
.full-width-content {
  max-width: 900px;
  margin: 0 auto;
}
.entry-content {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  margin-top: var(--sp-8);
}
.entry-content ul,
.entry-content ol {
  padding-right: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.entry-content li {
  margin-bottom: var(--sp-2);
  position: relative;
  padding-right: var(--sp-2);
}
.entry-content ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  right: calc(-1 * var(--sp-4));
  top: .7em;
}

/* Features section */
.unit-features-section {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--light-gray);
}
.unit-features-section h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-4);
}
.unit-features-section .unit-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
}
.unit-features-section .unit-feature {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  background: var(--off-white);
}

/* ==========================================================================
   16. SOCIAL SHARING
   ========================================================================== */
.social-sharing {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--light-gray);
}
.social-sharing h4 {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.sharing-links {
  display: flex;
  gap: var(--sp-3);
}
.sharing-links li a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  font-size: var(--text-lg);
  color: var(--white);
  transition: all var(--dur-normal) var(--ease-out);
}
.sharing-links .facebook  { background: #1877F2; }
.sharing-links .twitter   { background: #000; }
.sharing-links .linkedin  { background: #0A66C2; }
.sharing-links .whatsapp  { background: #25D366; }
.sharing-links li a:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  color: var(--white);
}

/* ==========================================================================
   17. RELATED / SIMILAR
   ========================================================================== */
.related-projects {
  padding: var(--sp-16) 0;
  background: var(--light-gray);
}
.related-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-card);
  transition: all var(--dur-normal) var(--ease-out);
  border: 1px solid rgba(2,119,189,.04);
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
}
.card-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.related-card:hover .card-thumbnail img {
  transform: scale(1.06);
}
.card-content {
  padding: var(--sp-5);
}
.card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
}
.card-title a {
  color: var(--navy);
}
.card-title a:hover {
  color: var(--accent);
}
.card-location,
.card-price {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.card-location i,
.card-price i {
  color: var(--gold);
  font-size: .85em;
}

/* ==========================================================================
   18. ARCHIVE PAGES
   ========================================================================== */
.units-archive {
  padding: var(--sp-10) 0 var(--sp-20);
}

/* Archive Header */
.archive-header {
  text-align: center;
  margin-bottom: var(--sp-10);
  padding: var(--sp-16) 0 var(--sp-8);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--navy) 100%);
  margin-top: -70px;
  padding-top: calc(70px + var(--sp-12));
  position: relative;
  overflow: hidden;
}
.archive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.archive-title {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative;
}
.archive-description {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.7);
  max-width: 650px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
  position: relative;
}

/* Filters */
.projects-filters-wrapper,
.units-filters {
  margin-bottom: var(--sp-8);
}
.filters-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--r-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
  transition: all var(--dur-fast) ease;
  width: fit-content;
  margin: 0 auto var(--sp-4);
}
.filters-toggle:hover {
  border-color: var(--gold);
  box-shadow: var(--sh-gold);
}
.filters-toggle i {
  color: var(--gold);
}

.filters-container {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  border: 1px solid var(--light-gray);
  box-shadow: var(--sh-md);
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-6);
}
.filter-group h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.filter-list {
  list-style: none;
  padding: 0;
}
.filter-list li {
  margin-bottom: var(--sp-1);
}
.filter-list li a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--dur-fast) ease;
}
.filter-list li a:hover,
.filter-list li.active a {
  background: var(--off-white);
  color: var(--accent);
  font-weight: 600;
}

/* View all link */
.view-all {
  text-align: center;
  margin-top: var(--sp-10);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
}
.pagination .page-numbers {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--dur-fast) ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ==========================================================================
   19. BREADCRUMBS
   ========================================================================== */
.breadcrumbs-bottom {
  background: var(--light-gray);
  padding: var(--sp-4) 0;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--navy);
  font-weight: 500;
  transition: color var(--dur-fast) ease;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .separator {
  color: var(--warm-gray);
  font-size: var(--text-xs);
}
.breadcrumbs .current {
  color: var(--text-muted);
  font-weight: 400;
}

/* top breadcrumbs (archive) */
.breadcrumbs:not(.breadcrumbs-bottom .breadcrumbs) {
  background: var(--light-gray);
  padding: var(--sp-4) 0;
}
.breadcrumbs:not(.breadcrumbs-bottom .breadcrumbs) .container {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ==========================================================================
   20. CONTACT POPUP (centered modal, navy header, gold accent icon)
   ========================================================================== */
.contact-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}
.contact-popup.active {
  display: flex;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,26,77,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-container {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: var(--white);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-2xl);
  overflow: hidden;
  animation: popupSlideIn .4s var(--ease-spring);
}

@keyframes popupSlideIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Navy header bar */
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  position: relative;
}
.popup-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.popup-header h3 {
  color: var(--white);
  font-size: var(--text-lg);
  margin: 0;
}

/* Gold accent icon */
.popup-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(212,168,83,.15);
  border: 1px solid rgba(212,168,83,.3);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--sp-3);
}
.popup-header-icon i {
  color: var(--gold-light);
  font-size: var(--text-lg);
}

.popup-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: none;
  font-size: var(--text-lg);
  transition: background var(--dur-fast) ease;
  cursor: pointer;
}
.popup-close:hover {
  background: rgba(255,255,255,.2);
}

.popup-content {
  padding: var(--sp-6);
}

/* Form styles */
.form-group {
  margin-bottom: var(--sp-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--off-white);
  transition: all var(--dur-fast) ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,.15);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: var(--sp-4);
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  transition: all var(--dur-normal) var(--ease-out);
  cursor: pointer;
}
.submit-btn:hover {
  background: var(--accent-dark);
  box-shadow: var(--sh-orange);
  transform: translateY(-1px);
}

.form-response {
  margin-top: var(--sp-3);
  font-size: var(--text-sm);
  text-align: center;
}
.form-response.success { color: var(--success); }
.form-response.error   { color: var(--error); }

/* ==========================================================================
   21. FOOTER  (dark gradient, gold bar, 4 columns, social gold hover)
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #071B4A 0%, #050F2E 100%);
  color: rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}

/* Gold accent bar at top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
  z-index: 2;
}

/* Subtle pattern overlay */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-top {
  padding: var(--sp-16) 0 var(--sp-10);
  position: relative;
  z-index: 1;
}

/* 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
}
.footer-brand p {
  color: rgba(255,255,255,.6);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-top: var(--sp-4);
}
.footer-brand .site-logo img {
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
  padding: var(--sp-12) 0;
  position: relative;
  z-index: 1;
}

.footer-widget-area .widget {
  margin-bottom: var(--sp-6);
}
.widget-title,
.footer-widget-area h3,
.footer-widget-area h4 {
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  position: relative;
  padding-bottom: var(--sp-3);
}
/* Gold underline under footer widget titles */
.widget-title::after,
.footer-widget-area h3::after,
.footer-widget-area h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--r-full);
}

.footer-widget-area ul {
  list-style: none;
  padding: 0;
}
.footer-widget-area ul li {
  margin-bottom: var(--sp-2);
}
.footer-widget-area ul li a {
  color: rgba(255,255,255,.6);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: all var(--dur-fast) ease;
  padding: var(--sp-1) 0;
}
.footer-widget-area ul li a:hover {
  color: var(--gold-light);
  padding-right: var(--sp-2);
}
.footer-widget-area p {
  color: rgba(255,255,255,.6);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Contact items with gold icons */
.contact-info li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.contact-info li i {
  color: var(--gold);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.contact-info li a {
  color: rgba(255,255,255,.6);
}
.contact-info li a:hover {
  color: var(--gold-light);
}

/* Social buttons with gold hover */
.footer-social {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  font-size: var(--text-lg);
  transition: all var(--dur-normal) var(--ease-out);
  border: 1px solid rgba(255,255,255,.08);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--sh-gold);
}

/* Bottom bar */
.site-info {
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  position: relative;
  z-index: 1;
}
.site-info p {
  color: rgba(255,255,255,.4);
  font-size: var(--text-sm);
  margin: 0;
}
.site-info .sep {
  margin: 0 var(--sp-2);
  opacity: .3;
}
.site-info a {
  color: var(--gold-light);
  transition: color var(--dur-fast) ease;
}
.site-info a:hover {
  color: var(--gold);
}

/* ==========================================================================
   22. FLOATING CTA — 3D Perspective, rounded square, pulse on WhatsApp
   ========================================================================== */
.floating-buttons {
  position: fixed;
  bottom: var(--sp-6);
  left: var(--sp-6);
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  perspective: 800px;
}
.floating-buttons a {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xl);
  color: var(--white);
  font-size: var(--text-xl);
  box-shadow: var(--sh-lg);
  transition: all var(--dur-normal) var(--ease-spring);
  transform-style: preserve-3d;
}
.floating-buttons a:hover {
  transform: scale(1.12) rotateY(-8deg) rotateX(4deg);
  color: var(--white);
  box-shadow: var(--sh-xl);
}

/* WhatsApp — pulse animation */
.whatsapp-btn {
  background: #25D366;
  animation: whatsappPulse 2s ease-in-out infinite;
}
.whatsapp-btn:hover {
  background: #22c55e;
  animation: none;
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.4);
  }
  50% {
    box-shadow: 0 4px 15px rgba(37,211,102,.4), 0 0 0 12px rgba(37,211,102,0);
  }
}

.call-btn {
  background: var(--navy);
}
.call-btn:hover {
  background: var(--primary-light);
}

.contact-btn {
  background: var(--accent);
}
.contact-btn:hover {
  background: var(--accent-light);
}

/* Mobile bottom CTA bar */
.mobile-contact-btn {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border: none;
  padding: var(--sp-4);
  font-size: var(--text-base);
  font-weight: 700;
  text-align: center;
  justify-content: center;
  gap: var(--sp-2);
  box-shadow: 0 -4px 20px rgba(189,72,2,.3);
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: var(--r-lg);
  font-size: var(--text-lg);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--dur-normal) var(--ease-out);
  z-index: var(--z-fixed);
  border: none;
  cursor: pointer;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ==========================================================================
   23. SECTIONS — Homepage additional
   ========================================================================== */
.units-section {
  padding: var(--sp-16) 0;
  background: var(--off-white);
}

.projects-section {
  padding: var(--sp-20) 0;
  background: var(--off-white);
}

/* Unit types cards */
.unit-types-section {
  padding: var(--sp-20) 0;
  background: var(--white);
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-6);
}
.type-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  border-radius: var(--r-2xl);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  transition: all var(--dur-normal) var(--ease-out);
  cursor: pointer;
}
.type-card:hover {
  border-color: var(--gold);
  box-shadow: var(--sh-gold);
  transform: translateY(-6px);
}
.type-card i {
  font-size: var(--text-4xl);
  color: var(--navy);
  margin-bottom: var(--sp-4);
  display: block;
}
.type-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
}
.type-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: var(--sp-20) 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,83,.15), transparent);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(189,72,2,.1), transparent);
  bottom: -80px;
  right: -80px;
  border-radius: 50%;
}
.cta-section h2 {
  color: var(--white);
  font-size: var(--text-4xl);
  position: relative;
  z-index: 1;
}
.cta-section p {
  color: rgba(255,255,255,.7);
  font-size: var(--text-xl);
  max-width: 600px;
  margin: 0 auto var(--sp-8);
  position: relative;
  z-index: 1;
}
.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* Contact Section */
.contact-section {
  padding: var(--sp-20) 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.contact-info-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.contact-info-item .icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon i {
  color: var(--navy);
  font-size: var(--text-xl);
}
.contact-info-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--sp-1);
}
.contact-info-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   24. 404 PAGE
   ========================================================================== */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
}
.error-404 h1 {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.error-404 h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-4);
}
.error-404 p {
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

/* ==========================================================================
   25. SIDEBAR & WIDGETS
   ========================================================================== */
.widget {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
  border: 1px solid var(--light-gray);
}
.widget .widget-title {
  color: var(--navy);
  font-size: var(--text-lg);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: var(--sp-4);
}

/* ==========================================================================
   26. ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up     { animation: fadeInUp .6s var(--ease-out) both; }
.animate-fade-in     { animation: fadeIn .5s ease both; }
.animate-slide-right { animation: slideInRight .6s var(--ease-out) both; }
.animate-scale-in    { animation: scaleIn .4s var(--ease-out) both; }

/* Stagger delays */
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }
.delay-7 { animation-delay: .7s; }
.delay-8 { animation-delay: .8s; }

/* ==========================================================================
   27. UTILITY CLASSES
   ========================================================================== */

/* Text truncation */
.crop_line_1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.crop_line_2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.crop_line_3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Text alignment */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* Spacing */
.mt-0  { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }

/* Display */
.d-none  { display: none; }
.d-block { display: block; }
.d-flex  { display: flex; }
.d-grid  { display: grid; }

/* Flex helpers */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Gap */
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* Colors */
.text-navy   { color: var(--navy) !important; }
.text-accent { color: var(--accent) !important; }
.text-gold   { color: var(--gold) !important; }
.text-white  { color: var(--white) !important; }
.text-muted  { color: var(--text-muted) !important; }

.bg-white    { background: var(--white) !important; }
.bg-navy     { background: var(--navy) !important; }
.bg-off-white { background: var(--off-white) !important; }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--gray-200) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}

/* ==========================================================================
   28. RESPONSIVE — 1024px (Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  .container { padding: 0 var(--sp-5); }

  .units-grid,
  .properties-grid,
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); }

  .single-unit-meta { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }

  .about-flex-wrapper { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .project-icons      { grid-template-columns: repeat(2, 1fr); }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-text { text-align: center; }
  .hero-grid .hero-action { justify-content: center; }
  .hero-grid .hero-search { max-width: 640px; margin: var(--sp-8) auto 0; }

  .propertyImage { height: 200px; }
}

/* ==========================================================================
   29. RESPONSIVE — 768px (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --text-2xl: 1.125rem;
  }

  section { padding: var(--sp-12) 0; }

  /* Header mobile */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-navigation .menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,26,77,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px var(--sp-6) var(--sp-6);
    z-index: calc(var(--z-fixed) - 1);
    overflow-y: auto;
    gap: var(--sp-1);
  }
  .main-navigation .menu.toggled {
    display: flex;
    animation: fadeIn .3s ease;
  }
  .main-navigation .menu li a {
    color: var(--white) !important;
    font-size: var(--text-xl);
    padding: var(--sp-4);
    border-radius: var(--r-lg);
  }
  .main-navigation .menu li a::after {
    display: none;
  }
  .main-navigation .menu li a:hover {
    background: rgba(255,255,255,.08);
    color: var(--gold-light) !important;
  }

  /* Hero */
  .hero-section { min-height: 70vh; }
  .hero-content { padding: var(--sp-16) var(--sp-4) var(--sp-8); }
  .hero-content h1 { font-size: var(--text-3xl); }
  .project-meta { flex-direction: column; align-items: center; gap: var(--sp-3); }
  .hero-stats { gap: var(--sp-3); }
  .hero-stat-card { min-width: 100px; padding: var(--sp-3) var(--sp-4); }

  /* Cards */
  .units-grid,
  .properties-grid,
  .related-grid { grid-template-columns: 1fr; }

  .propertyImage { height: 200px; }

  /* Details */
  .project-icons      { grid-template-columns: 1fr; }
  .single-unit-meta   { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-number  { font-size: var(--text-3xl); }

  /* Footer */
  .footer-widgets { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }

  /* Floating buttons — side rail */
  .floating-buttons {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    left: var(--sp-3);
    perspective: none;
  }
  .floating-buttons a {
    width: 44px;
    height: 44px;
    font-size: var(--text-lg);
  }
  .mobile-contact-btn { display: flex; }

  /* Gallery */
  .gallery-slider { grid-template-columns: 1fr; }

  /* Unit types */
  .types-grid { grid-template-columns: repeat(2, 1fr); }

  /* Filter */
  .filter-row { grid-template-columns: 1fr; }

  /* Amenities */
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }

  /* Archive header */
  .archive-header {
    padding-top: calc(70px + var(--sp-8));
  }
}

/* ==========================================================================
   30. RESPONSIVE — 576px (Small mobile)
   ========================================================================== */
@media (max-width: 576px) {
  .container { padding: 0 var(--sp-4); }

  .hero-search {
    flex-direction: column;
  }
  .hero-search .btn {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
  }

  .propertyContent { padding: 16px; }
  .unit-info { padding: 16px; }

  .propertyFooter {
    flex-direction: column;
    gap: var(--sp-2);
    align-items: stretch;
  }
  .propertyCTA { width: 100%; justify-content: center; }
}

/* ==========================================================================
   31. RESPONSIVE — 480px (Extra small)
   ========================================================================== */
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-3); }

  .single-unit-meta { grid-template-columns: 1fr; }

  .types-grid     { grid-template-columns: 1fr 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }

  .propertyImage { height: 180px; }

  .floating-buttons a {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
}

/* ==========================================================================
   32. RTL-SPECIFIC OVERRIDES
   ========================================================================== */
/* Ensure all directional properties respect RTL */
[dir="rtl"] .unit-status,
[dir="rtl"] .propertyBadge {
  right: var(--sp-3);
  left: auto;
}
[dir="rtl"] .new-badge {
  left: var(--sp-3);
  right: auto;
}
[dir="rtl"] .floating-buttons {
  left: var(--sp-6);
  right: auto;
}
[dir="rtl"] #back-to-top {
  right: var(--sp-6);
  left: auto;
}
[dir="rtl"] .footer-widget-area ul li a:hover {
  padding-right: var(--sp-2);
  padding-left: 0;
}
[dir="rtl"] .entry-content ul,
[dir="rtl"] .entry-content ol {
  padding-right: var(--sp-6);
  padding-left: 0;
}
[dir="rtl"] .entry-content ul li::before {
  right: calc(-1 * var(--sp-4));
  left: auto;
}
[dir="rtl"] .widget-title::after,
[dir="rtl"] .footer-widget-area h3::after,
[dir="rtl"] .footer-widget-area h4::after {
  right: 0;
  left: auto;
}
[dir="rtl"] .mobile-menu-overlay .menu li a {
  border-right: 3px solid transparent;
  border-left: none;
}
[dir="rtl"] .mobile-menu-overlay .menu li a:hover,
[dir="rtl"] .mobile-menu-overlay .menu li.current-menu-item a {
  border-right-color: var(--gold);
}

/* ==========================================================================
   33. PRINT STYLES
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .floating-buttons,
  .mobile-contact-btn,
  #back-to-top,
  .contact-popup,
  .hero-action,
  .social-sharing,
  .unit-actions { display: none !important; }

  body {
    background: #fff;
    color: #000;
  }
  .hero-section {
    min-height: auto;
    padding: var(--sp-8) 0;
  }
  .hero-overlay {
    background: transparent;
  }
  .hero-content h1 {
    color: #000;
    text-shadow: none;
  }
  .unit-card,
  .propertyCard {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ==========================================================================
   FIX: Footer with old WP class names — match realestate.eg footer design
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #071B4A 0%, #050F2E 100%) !important;
  color: #fff !important;
  overflow: hidden;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D4A853, #bd4802, #D4A853, transparent);
}
.site-footer .container {
  max-width: 1200px;
  padding: 56px 24px 0;
}
.site-footer .footer-widgets {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer .footer-widget-area .widget {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.site-footer .widget-title,
.site-footer .footer-widget-area h4 {
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 22px;
  padding-bottom: 12px;
  position: relative;
}
.site-footer .widget-title::after,
.site-footer .footer-widget-area h4::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 36px; height: 2.5px;
  background: linear-gradient(90deg, #D4A853, #bd4802);
  border-radius: 2px;
}
.site-footer .footer-widget-area p {
  color: rgba(255,255,255,0.55) !important;
  font-size: 14px;
  line-height: 1.9;
}
.site-footer .footer-widget-area ul {
  list-style: none;
  padding: 0; margin: 0;
}
.site-footer .footer-widget-area ul li {
  margin-bottom: 10px;
}
.site-footer .footer-widget-area ul li a {
  color: rgba(255,255,255,0.6) !important;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 4px 0;
}
.site-footer .footer-widget-area ul li a:hover {
  color: #D4A853 !important;
  gap: 12px;
}
.site-footer .footer-widget-area ul li a i {
  color: rgba(212,168,83,0.4);
  font-size: 10px;
  transition: color 0.3s ease;
}
.site-footer .footer-widget-area ul li a:hover i {
  color: #D4A853;
}
.site-footer .contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.site-footer .contact-info li i {
  color: #D4A853 !important;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(212,168,83,0.1);
  border: 1px solid rgba(212,168,83,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.site-footer .contact-info li a {
  color: rgba(255,255,255,0.6) !important;
  padding-top: 6px;
}
.site-footer .contact-info li a:hover {
  color: #D4A853 !important;
}
.site-footer .site-info {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
  padding: 18px 24px;
  text-align: center;
}
.site-footer .site-info p {
  color: rgba(255,255,255,0.4) !important;
  font-size: 13px;
  margin: 0;
}
.site-footer .site-info a {
  color: #D4A853 !important;
}

/* Floating CTA — realestate.eg 3D style */
.site-footer .floating-buttons {
  position: fixed;
  bottom: 28px; left: 20px;
  z-index: 999;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}
.site-footer .floating-buttons a {
  width: 52px; height: 52px;
  border-radius: 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  transform: perspective(500px) rotateY(0deg);
}
.site-footer .floating-buttons a:hover {
  transform: perspective(500px) rotateY(-8deg) scale(1.1);
}
.site-footer .whatsapp-btn { background: linear-gradient(135deg, #25D366, #1DB954) !important; animation: whatsappPulse 2.5s infinite; }
.site-footer .call-btn { background: linear-gradient(135deg, #0277bd, #0388d4) !important; }
.site-footer .contact-btn { background: linear-gradient(135deg, #bd4802, #a33d01) !important; }
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Back to top — styled */
#back-to-top {
  background: linear-gradient(135deg, #0277bd, #015a94) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
#back-to-top:hover {
  background: linear-gradient(135deg, #D4A853, #C4963E) !important;
}

/* ==========================================================================
   FIX: About section — modern 2-column with image
   ========================================================================== */
.about-section-responsive {
  background: #fff;
  padding: 80px 0;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.about-header {
  text-align: center;
  margin-bottom: 48px;
}
.about-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #0277bd;
  display: inline-block;
  position: relative;
}
.about-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #D4A853, #bd4802);
  border-radius: 4px;
}
.about-flex-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #4B5563;
}
.about-text-content .read-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0277bd;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 0.95rem;
  margin-top: 12px;
  transition: color 0.3s ease;
}
.about-text-content .read-more-toggle:hover {
  color: #D4A853;
}
.about-text-hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.about-text-hidden.expanded {
  max-height: 2000px;
}
.about-image-wrapper {
  position: relative;
}
.about-image-wrapper img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(10,36,99,0.12);
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Gold accent frame on about image */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 3px solid rgba(212,168,83,0.3);
  border-radius: 20px;
  z-index: -1;
}
@media (max-width: 768px) {
  .about-flex-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image-wrapper::before { display: none; }
}

/* ==========================================================================
   FIX: Units in project page — LIST view instead of grid
   ========================================================================== */
.units-section .units-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.units-section .units-grid .propertyCard,
.units-section .units-grid .unit-card,
.units-section .units-grid article {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.units-section .units-grid .propertyImage,
.units-section .units-grid .unit-thumbnail {
  height: 100% !important;
  min-height: 180px;
  aspect-ratio: unset !important;
}
.units-section .units-grid .propertyImage img,
.units-section .units-grid .unit-thumbnail img {
  height: 100% !important;
  object-fit: cover;
}
.units-section .units-grid .propertyContent,
.units-section .units-grid .unit-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px !important;
}
.units-section .units-grid .propertyFooter {
  margin-top: auto;
}
@media (max-width: 768px) {
  .units-section .units-grid .propertyCard,
  .units-section .units-grid .unit-card,
  .units-section .units-grid article {
    grid-template-columns: 1fr !important;
  }
  .units-section .units-grid .propertyImage,
  .units-section .units-grid .unit-thumbnail {
    height: 200px !important;
    min-height: unset;
  }
}

/* ==========================================================================
   FIX: Section header — gold underline consistency
   ========================================================================== */
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.2rem) !important;
  font-weight: 700 !important;
  color: #0277bd !important;
  text-align: center;
  margin-bottom: 48px !important;
  position: relative;
  display: inline-block;
  width: 100%;
}
.section-title::after {
  content: '' !important;
  position: absolute !important;
  bottom: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 80px !important;
  height: 4px !important;
  background: linear-gradient(90deg, #D4A853, #bd4802) !important;
  border-radius: 4px !important;
  display: block !important;
  margin: 0 !important;
}

/* ==========================================================================
   FIX: Hero — better bg image handling
   ========================================================================== */
.hero-section {
  background-color: #0277bd;
}

/* ==========================================================================
   Responsive footer
   ========================================================================== */
@media (max-width: 768px) {
  .site-footer .footer-widgets {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .site-footer .widget-title::after,
  .site-footer .footer-widget-area h4::after {
    right: 50% !important;
    transform: translateX(50%);
  }
  .site-footer .footer-widget-area ul li a {
    justify-content: center;
  }
  .site-footer .contact-info li {
    justify-content: center;
  }
  .site-footer .floating-buttons {
    bottom: 16px; left: 12px;
    gap: 8px;
  }
  .site-footer .floating-buttons a {
    width: 46px; height: 46px;
    font-size: 20px;
    border-radius: 14px !important;
  }
}

/* About section — actual class names used in front-page.php */
.about-text {
  order: 1;
}
.about-text .section-title {
  text-align: right !important;
  display: block !important;
  margin-bottom: 24px !important;
}
.about-text .section-title::after {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}
.about-content-wrapper {
  font-size: 1rem;
  line-height: 1.9;
  color: #4B5563;
}
.about-content {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  position: relative;
}
.about-content.expanded {
  max-height: 3000px;
}
.about-content:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
#about-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0277bd;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 0.95rem;
  margin-top: 12px;
  transition: color 0.3s ease;
  font-family: inherit;
}
#about-read-more:hover {
  color: #D4A853;
}
.about-image {
  order: 2;
  position: relative;
}
.about-image img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(10,36,99,0.12);
  width: 100%;
  height: auto;
  min-height: 300px;
  object-fit: cover;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 3px solid rgba(212,168,83,0.3);
  border-radius: 20px;
  z-index: -1;
}
@media (max-width: 768px) {
  .about-text .section-title { text-align: center !important; }
  .about-text .section-title::after { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
  .about-image { order: 1; }
  .about-text { order: 2; }
  .about-image::before { display: none; }
}

/* ==========================================================================
   Swiper Carousels on Homepage
   ========================================================================== */
.projects-swiper,
.units-swiper {
  padding-bottom: 56px !important;
  overflow: hidden;
}
.projects-swiper .swiper-slide,
.units-swiper .swiper-slide {
  height: auto;
}
.projects-swiper .swiper-slide > *,
.units-swiper .swiper-slide > * {
  height: 100%;
}
.projects-pagination,
.units-pagination {
  bottom: 8px !important;
  text-align: center;
}
.projects-pagination .swiper-pagination-bullet,
.units-pagination .swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #C9D1DC !important;
  opacity: 1 !important;
  border-radius: 50% !important;
  margin: 0 6px !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.projects-pagination .swiper-pagination-bullet-active,
.units-pagination .swiper-pagination-bullet-active {
  background: #D4A853 !important;
  width: 28px !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.45) !important;
}

/* ==========================================================================
   Units Archive — Filter Form Styling
   ========================================================================== */
.units-filter-form,
.archive-unit .filters-container {
  background: #fff !important;
  border-radius: 16px;
  padding: 24px 28px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}
.units-filter-form .filter-row,
.archive-unit .filters-container .filter-row,
.archive-unit .filters-container form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}
.units-filter-form .filter-group,
.archive-unit .filters-container .filter-group {
  display: flex;
  flex-direction: column;
}
.units-filter-form label,
.units-filter-form .filter-group h4,
.archive-unit .filters-container label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #061A4D;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.units-filter-form label i,
.archive-unit .filters-container label i {
  color: #D4A853;
  font-size: 0.85rem;
}
.units-filter-form select,
.units-filter-form input[type="number"],
.units-filter-form input[type="text"],
.archive-unit .filters-container select,
.archive-unit .filters-container input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1F2937;
  background: #F9FAFB;
  font-family: inherit;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}
.units-filter-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4A853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-left: 36px;
  cursor: pointer;
}
.units-filter-form select:focus,
.units-filter-form input:focus,
.archive-unit .filters-container select:focus,
.archive-unit .filters-container input:focus {
  outline: none;
  border-color: #D4A853;
  box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
  background: #fff;
}
.units-filter-form .filter-actions,
.archive-unit .filters-container .filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}
.units-filter-form button[type="submit"],
.archive-unit .filters-container button[type="submit"],
.archive-unit .filters-container .btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, #0277bd, #015a94);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.units-filter-form button[type="submit"]:hover,
.archive-unit .filters-container button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(2,119,189,0.35);
}
.units-filter-form a.btn,
.archive-unit .filters-container a.reset-btn,
.archive-unit .filters-container .btn-secondary {
  padding: 10px 20px;
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.units-filter-form a.btn:hover {
  background: #E5E7EB;
  color: #1F2937;
}

/* Price range inputs side by side */
.price-range-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 768px) {
  .units-filter-form .filter-row,
  .archive-unit .filters-container form {
    grid-template-columns: 1fr 1fr;
  }
  .units-filter-form .filter-actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .units-filter-form .filter-row,
  .archive-unit .filters-container form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Unit page — Price per m² badge + enhanced specs
   ========================================================================== */
.unit-price-per-m2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,168,83,0.1);
  color: #bd4802;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}
.unit-price-per-m2 i { color: #D4A853; }

/* Project info box in unit page */
.parent-project-box {
  background: linear-gradient(135deg, #0277bd, #015a94);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.parent-project-box img {
  width: 80px; height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.parent-project-box .info h4 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.parent-project-box .info p {
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-size: 0.85rem;
}
.parent-project-box .info a {
  color: #D4A853;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

/* Payment plan highlight */
.payment-highlight {
  background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(212,168,83,0.03));
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-highlight i {
  color: #D4A853;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.payment-highlight .text {
  font-size: 0.9rem;
  color: #4B5563;
  line-height: 1.6;
}
.payment-highlight .text strong {
  color: #061A4D;
}

.thankyou-hero{min-height:80vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#F0F4FF,#F9FAFB,#FEF3E7);padding:120px 24px 60px}
.thankyou-card{text-align:center;max-width:600px;margin:0 auto;background:#fff;border-radius:24px;padding:48px 40px;box-shadow:0 20px 60px rgba(2,119,189,.08)}
.thankyou-icon{margin-bottom:24px}
.thankyou-card h1{font-size:1.75rem;font-weight:800;color:#0277bd;margin-bottom:12px}
.thankyou-msg{font-size:1.05rem;color:#4B5563;line-height:1.8;margin-bottom:32px}
.thankyou-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.thankyou-actions a{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:12px;font-weight:700;font-size:.9rem;transition:all .3s ease;text-decoration:none}
.btn-wa{background:linear-gradient(135deg,#25D366,#128c7e);color:#fff!important;box-shadow:0 4px 14px rgba(37,211,102,.3)}
.btn-wa:hover{transform:translateY(-2px);color:#fff!important}
.btn-home{background:#F3F4F6;color:#1F2937!important;border:1px solid #E5E7EB}
.btn-projects{background:linear-gradient(135deg,#0277bd,#015a94);color:#fff!important;box-shadow:0 4px 14px rgba(2,119,189,.3)}
.btn-projects:hover{transform:translateY(-2px);color:#fff!important}

/* ==========================================================================
   Projects Archive — Filter Form  
   ========================================================================== */
.projects-filters-wrapper .filters-container,
.archive .filters-container {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
  margin-bottom: 32px !important;
}
.projects-filters-wrapper .filter-row,
.archive .filter-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  align-items: end !important;
}
.projects-filters-wrapper .filter-group,
.archive .filter-group {
  flex: 1;
  min-width: 200px;
}
.projects-filters-wrapper .filter-group h4,
.archive .filter-group h4 {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #061A4D !important;
  margin-bottom: 8px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.projects-filters-wrapper .filter-group h4 i,
.archive .filter-group h4 i {
  color: #D4A853;
}
.projects-filters-wrapper select,
.projects-filters-wrapper input,
.archive .filters-container select,
.archive .filters-container input[type="text"],
.archive .filters-container input[type="number"] {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  color: #1F2937 !important;
  background: #F9FAFB !important;
  font-family: inherit !important;
  transition: all 0.3s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4A853' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 12px center !important;
  background-size: 16px !important;
  padding-left: 36px !important;
  cursor: pointer;
}
.projects-filters-wrapper select:focus,
.archive .filters-container select:focus {
  outline: none !important;
  border-color: #D4A853 !important;
  box-shadow: 0 0 0 3px rgba(212,168,83,0.15) !important;
  background-color: #fff !important;
}
.projects-filters-wrapper .filter-actions,
.archive .filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}
.projects-filters-wrapper button[type="submit"],
.projects-filters-wrapper .btn-primary,
.archive .filters-container button[type="submit"] {
  padding: 10px 24px !important;
  background: linear-gradient(135deg, #0277bd, #015a94) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.projects-filters-wrapper button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(2,119,189,0.35);
}
.projects-filters-wrapper .btn-secondary,
.projects-filters-wrapper a[href*="reset"],
.archive .filters-container .btn-secondary {
  padding: 10px 20px !important;
  background: #F3F4F6 !important;
  color: #4B5563 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.filter-list {
  list-style: none !important;
  padding: 0 !important;
}
.filter-list li a {
  display: block !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  color: #4B5563 !important;
  transition: all 0.2s ease !important;
}
.filter-list li a:hover,
.filter-list li.active a {
  background: rgba(2,119,189,0.06) !important;
  color: #0277bd !important;
  font-weight: 600 !important;
}
@media (max-width: 768px) {
  .projects-filters-wrapper .filter-row,
  .archive .filter-row {
    flex-direction: column !important;
  }
  .projects-filters-wrapper .filter-group {
    min-width: 100%;
  }
}

/* ==========================================================================
   Project Details — COMPACT Redesign (realestate.eg style)
   ========================================================================== */
.project-details {
  padding: 32px 0 !important;
  background: #fff !important;
}
.project-details .section-title {
  font-size: 1.3rem !important;
  margin-bottom: 20px !important;
  text-align: right !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
}
.project-details .section-title::after {
  display: none !important;
}
.project-details .section-title::before {
  content: '\f05a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #D4A853;
  font-size: 1.1rem;
}
.project-icons {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.detail-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #F3F4F6;
  border-left: 1px solid #F3F4F6;
  transition: background 0.2s ease !important;
}
.detail-item:hover {
  background: #F9FAFB !important;
  transform: none !important;
  box-shadow: none !important;
}
.detail-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  background: rgba(2,119,189,0.06) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.detail-icon i {
  font-size: 0.9rem !important;
  color: #0277bd !important;
}
.detail-content h4 {
  font-size: 0.7rem !important;
  color: #9CA3AF !important;
  font-weight: 600 !important;
  margin: 0 0 2px !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.detail-content p {
  font-size: 0.85rem !important;
  color: #1F2937 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Price item special styling */
.detail-item:last-child .detail-content p {
  color: #bd4802 !important;
  font-size: 0.95rem !important;
}
.detail-item:last-child .detail-icon {
  background: rgba(212,168,83,0.1) !important;
}
.detail-item:last-child .detail-icon i {
  color: #D4A853 !important;
}

@media (max-width: 1024px) {
  .project-icons {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 576px) {
  .project-icons {
    grid-template-columns: 1fr !important;
  }
  .detail-item {
    border-left: none !important;
  }
}

/* ==========================================================================
   Unit Meta — COMPACT Redesign (matching project details)
   ========================================================================== */
.single-unit-meta {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
.unit-meta-item {
  text-align: right !important;
  padding: 14px 16px !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #F3F4F6;
  border-left: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.unit-meta-item:hover {
  background: #F9FAFB !important;
  transform: none !important;
  box-shadow: none !important;
}
.unit-meta-icon {
  margin: 0 !important;
}
.unit-meta-icon i {
  font-size: 1.2rem !important;
  background: none !important;
  -webkit-text-fill-color: #0277bd !important;
}
.unit-meta-value {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #1F2937 !important;
  margin: 0 !important;
}
.unit-meta-label {
  font-size: 0.7rem !important;
  color: #9CA3AF !important;
  font-weight: 600 !important;
}
@media (max-width: 768px) {
  .single-unit-meta {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   Project Statistics — Compact World-Class Design
   ========================================================================== */
.project-stats-section {
  padding: 24px 0;
  background: #F9FAFB;
  border-top: 1px solid #F3F4F6;
}
.stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stats-header i {
  color: #D4A853;
  font-size: 1rem;
}
.stats-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0277bd;
  margin: 0;
}
.stats-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Quick number cards */
.stat-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-quick {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  transition: border-color 0.3s ease;
}
.stat-quick:hover {
  border-color: #D4A853;
}
.sq-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: #0277bd;
  font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-quick:first-child .sq-value {
  color: #bd4802;
}
.sq-label {
  font-size: 0.7rem;
  color: #9CA3AF;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Unit types horizontal bars */
.stat-types-bar {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
}
.stat-types-bar h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4B5563;
  margin: 0 0 12px;
}
.types-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.type-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.tb-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4B5563;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-track {
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
}
.tb-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}
.tb-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0277bd;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 768px) {
  .stat-quick-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .type-bar-row {
    grid-template-columns: 60px 1fr 30px;
  }
}
@media (max-width: 480px) {
  .stat-quick-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-quick {
    padding: 10px 12px;
  }
  .sq-value {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Homepage Database Statistics
   ========================================================================== */
.hp-stats-section {
  padding: 48px 0;
  background: #F9FAFB;
  border-top: 1px solid #F3F4F6;
}
.hp-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hp-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-stat-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hp-stat-card:hover {
  border-color: #D4A853;
  box-shadow: 0 4px 16px rgba(212,168,83,0.12);
}
.hp-stat-card i {
  font-size: 1.3rem;
  margin-bottom: 8px;
  display: block;
}
.hp-stat-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: #061A4D;
  font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
  line-height: 1.2;
  margin-bottom: 4px;
}
.hp-stat-lbl {
  font-size: 0.72rem;
  color: #9CA3AF;
  font-weight: 600;
}
.hp-stat-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hp-chart-box {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px;
}
.hp-chart-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4B5563;
  margin: 0 0 14px;
}
.hp-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 32px;
  gap: 8px;
  align-items: center;
}
.hp-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4B5563;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-bar-track {
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
}
.hp-bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 6px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.hp-bar-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0277bd;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (max-width: 768px) {
  .hp-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .hp-stat-charts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hp-stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hp-stat-card { padding: 12px; }
  .hp-stat-val { font-size: 1.1rem; }
}


/* ==========================================================================
   NAV DROPDOWN — Territories submenu
   ========================================================================== */
.main-navigation .menu li.menu-item-has-children {
  position: relative;
}
.main-navigation .menu li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-navigation .menu li.menu-item-has-children .dropdown-arrow {
  font-size: 10px;
  transition: transform var(--dur-fast) ease;
}
.main-navigation .menu li.menu-item-has-children:hover .dropdown-arrow,
.main-navigation .menu li.menu-item-has-children.open .dropdown-arrow {
  transform: rotate(180deg);
}
.main-navigation .menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(6,26,77,.15);
  padding: var(--sp-2) 0;
  z-index: var(--z-dropdown);
  list-style: none;
  margin: 0;
  border: 1px solid var(--gray-200);
}
.main-navigation .menu li.menu-item-has-children:hover > .sub-menu,
.main-navigation .menu li.menu-item-has-children.open > .sub-menu {
  display: block;
  animation: dropdownFadeIn .2s ease;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.main-navigation .menu .sub-menu li {
  margin: 0;
}
.main-navigation .menu .sub-menu li a {
  display: block;
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 0;
  transition: all var(--dur-fast) ease;
  white-space: nowrap;
}
.main-navigation .menu .sub-menu li a::after {
  display: none;
}
.main-navigation .menu .sub-menu li a:hover {
  background: var(--off-white);
  color: var(--accent);
  padding-right: var(--sp-6);
}

/* Mobile dropdown */
@media (max-width: 991px) {
  .main-navigation .menu .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(6,26,77,.06);
    border-radius: var(--r-md);
    margin-top: var(--sp-1);
    padding: var(--sp-1) 0;
  }
  .main-navigation .menu .sub-menu li a {
    padding: var(--sp-2) var(--sp-6);
    font-size: var(--text-sm);
  }
  .mobile-menu-overlay .menu .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.06);
    border-radius: var(--r-md);
    margin-top: var(--sp-1);
    padding: var(--sp-1) 0;
  }
  .mobile-menu-overlay .menu li.menu-item-has-children.open > .sub-menu {
    display: block;
  }
  .mobile-menu-overlay .menu .sub-menu li a {
    padding: var(--sp-2) var(--sp-8);
    font-size: var(--text-base);
    color: rgba(255,255,255,.8);
  }
  .mobile-menu-overlay .menu .sub-menu li a:hover {
    color: var(--gold-light);
  }
}


/* ==========================================================================
   GALLERY SLIDER — Main image + thumbnails + arrows + counter
   ========================================================================== */
.gallery-slider {
  display: block !important;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 16/10;
}
.gallery-slider .gallery-item {
  display: none;
  position: absolute;
  inset: 0;
  aspect-ratio: unset;
  border-radius: 0;
}
.gallery-slider .gallery-item.active {
  display: block;
}
.gallery-slider .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}
.gallery-slider .gallery-item .gallery-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: zoom-in;
}

/* Slider Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: all var(--dur-fast) ease;
  z-index: 10;
}
.gallery-nav:hover {
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transform: translateY(-50%) scale(1.08);
}
.gallery-nav.prev {
  right: 16px;
}
.gallery-nav.next {
  left: 16px;
}

/* Gallery Counter */
.gallery-counter {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,.6);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-en);
  z-index: 10;
  direction: ltr;
  backdrop-filter: blur(4px);
}

/* Thumbnails strip */
.gallery-thumbnails {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.thumbnail-item {
  width: 90px;
  height: 64px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--dur-fast) ease;
  opacity: .5;
}
.thumbnail-item:hover {
  opacity: .8;
}
.thumbnail-item.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(212,168,83,.4);
}
.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox overlay */
.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10,36,99,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .25s ease;
}
.gallery-lightbox-overlay img {
  max-width: 94%;
  max-height: 90vh;
  border-radius: var(--r-xl);
  box-shadow: 0 24px 56px rgba(0,0,0,.4);
  object-fit: contain;
}
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease;
}
.gallery-lightbox-close:hover {
  background: rgba(255,255,255,.3);
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease;
}
.gallery-lightbox-nav:hover {
  background: rgba(255,255,255,.3);
}
.gallery-lightbox-nav.prev {
  right: 20px;
}
.gallery-lightbox-nav.next {
  left: 20px;
}
.gallery-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-en);
  direction: ltr;
}

/* Mobile gallery */
@media (max-width: 768px) {
  .gallery-slider {
    aspect-ratio: 4/3;
    border-radius: var(--r-lg);
  }
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .gallery-nav.prev { right: 10px; }
  .gallery-nav.next { left: 10px; }
  .thumbnail-item {
    width: 72px;
    height: 52px;
  }
}


/* ==========================================================================
   UNIT CARDS GRID — 3-col desktop, 2-col tablet, 1-col mobile
   ========================================================================== */
.units-section .units-grid {
  display: grid !important;
  flex-direction: unset !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}
.units-section .units-grid .propertyCard,
.units-section .units-grid .unit-card,
.units-section .units-grid article {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: unset !important;
  border-radius: var(--r-xl) !important;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: all var(--dur-normal) var(--ease-out);
}
.units-section .units-grid .propertyCard:hover,
.units-section .units-grid .unit-card:hover,
.units-section .units-grid article:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-4px);
  border-color: var(--gold-light);
}
.units-section .units-grid .propertyImage,
.units-section .units-grid .unit-thumbnail {
  height: 200px !important;
  min-height: unset !important;
  aspect-ratio: unset !important;
  position: relative;
  overflow: hidden;
}
.units-section .units-grid .propertyImage img,
.units-section .units-grid .unit-thumbnail img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.units-section .units-grid .propertyCard:hover .propertyImage img,
.units-section .units-grid .unit-card:hover .unit-thumbnail img {
  transform: scale(1.06);
}
.units-section .units-grid .propertyBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  font-weight: 700;
  z-index: 2;
}
.units-section .units-grid .propertyBadge--status {
  top: auto;
  bottom: 12px;
  right: 12px;
}
.units-section .units-grid .propertyContent,
.units-section .units-grid .unit-info {
  display: flex;
  flex-direction: column;
  padding: 16px 20px !important;
  flex: 1;
}
.units-section .units-grid .propertyTitle {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: var(--leading-snug);
}
.units-section .units-grid .propertyTitle a {
  color: var(--text-primary);
  text-decoration: none;
}
.units-section .units-grid .propertyTitle a:hover {
  color: var(--accent);
}
.units-section .units-grid .propertyLocation {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.units-section .units-grid .propertySpecs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.units-section .units-grid .unitSpec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.units-section .units-grid .unitSpec i {
  color: var(--gold);
  font-size: var(--text-sm);
}
.units-section .units-grid .propertyFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.units-section .units-grid .propertyPrice {
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--accent);
}
.units-section .units-grid .priceLabel {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: block;
}
.units-section .units-grid .propertyCTA {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur-fast) ease;
}
.units-section .units-grid .propertyCTA:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
  .units-section .units-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
/* Mobile: 1 column */
@media (max-width: 575px) {
  .units-section .units-grid {
    grid-template-columns: 1fr !important;
  }
  .units-section .units-grid .propertyImage,
  .units-section .units-grid .unit-thumbnail {
    height: 180px !important;
  }
}



/* ===== Mobile Menu REAL Fix ===== */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15) !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10001;
  }
  .menu-toggle .menu-icon,
  .menu-toggle .menu-icon::before,
  .menu-toggle .menu-icon::after {
    background-color: #fff !important;
  }
  #primary-menu {
    display: none !important;
  }
  #primary-menu.toggled {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    inset: 0;
    background: rgba(6,26,77,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    padding: 80px 20px 30px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    animation: fadeIn .3s ease;
  }
  #primary-menu.toggled li a {
    display: block;
    padding: 14px 20px;
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
  }
  #primary-menu.toggled li a:hover {
    background: rgba(255,255,255,0.1);
  }
  #primary-menu.toggled .sub-menu {
    display: none;
    padding-right: 20px;
  }
  #primary-menu.toggled .menu-item-has-children.open .sub-menu {
    display: block;
  }
  #primary-menu.toggled .sub-menu li a {
    font-size: 15px !important;
    padding: 10px 20px !important;
    color: rgba(255,255,255,0.8) !important;
  }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* ===== End Mobile Menu REAL Fix ===== */
