/*
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);
}

/* FIX: Menu icon visibility — when header has BOTH transparent-header + scrolled, scroll wins */
.site-header.transparent-header.scrolled .menu-icon,
.site-header.transparent-header.scrolled .menu-icon::before,
.site-header.transparent-header.scrolled .menu-icon::after {
  background: #0F1B2C !important;
}
.site-header.transparent-header.scrolled .site-title a,
.site-header.transparent-header.scrolled .menu a {
  color: #0F1B2C !important;
}

/* 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 ===== */
/* ==========================================================================
   PROJECT PAGE V2 — World-Class Navy Edition
   Appended to Realestate-theme style.css (namespaced with .v2-)
   ========================================================================== */

:root{
  --v2-navy:       #0F1B2C;
  --v2-navy-2:     #122339;
  --v2-blue:       #2563EB;
  --v2-blue-soft:  #3B82F6;
  --v2-blue-tint:  #EAF2FF;
  --v2-cream:      #F7F5EF;
  --v2-cream-2:    #F1F5F9;
  --v2-ink:        #0F1B2C;
  --v2-muted:      #64748B;
  --v2-line:       #E5E9F0;
  --v2-r:          16px;
  --v2-r-lg:       22px;
  --v2-shadow:     0 10px 30px -10px rgba(15,27,44,.18);
  --v2-shadow-sm:  0 4px 12px rgba(15,27,44,.08);
  --v2-shadow-lg:  0 28px 60px -24px rgba(15,27,44,.28);
}

/* Generic reveal */
.v2-fact-card, .v2-amenity, .v2-timeline-step, .v2-related-card, .v2-mosaic-item, .v2-faq-item{
  opacity:0; transform: translateY(18px);
  transition: opacity .7s var(--ease-out, ease), transform .7s var(--ease-out, ease);
}
.v2-fact-card.v2-in, .v2-amenity.v2-in, .v2-timeline-step.v2-in, .v2-related-card.v2-in, .v2-mosaic-item.v2-in, .v2-faq-item.v2-in{
  opacity:1; transform:none;
}

.v2-btn{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.9rem 1.6rem; border-radius: 999px;
  font: 700 .95rem/1 var(--font-ar, 'Tajawal', sans-serif);
  text-decoration:none; cursor:pointer; border:0;
  transition: transform .2s var(--ease-out, ease), box-shadow .2s var(--ease-out, ease), background .2s;
}
.v2-btn i{ font-size:.95em }
.v2-btn:hover{ transform: translateY(-2px); }
.v2-btn-primary{ background: var(--v2-blue); color:#fff; box-shadow: 0 10px 24px -10px rgba(37,99,235,.65); }
.v2-btn-primary:hover{ background: var(--v2-navy); color:#fff; }
.v2-btn-outline{ background: transparent; color: var(--v2-navy); border:1.5px solid var(--v2-navy); }
.v2-btn-outline:hover{ background: var(--v2-navy); color:#fff; }
.v2-btn-ghost-light{ background: rgba(255,255,255,.12); color:#fff; backdrop-filter: blur(12px); border:1px solid rgba(255,255,255,.3); }
.v2-btn-ghost-light:hover{ background: rgba(255,255,255,.22); color:#fff; }
.v2-btn-whatsapp{ background:#25D366; color:#fff; box-shadow: 0 10px 24px -10px rgba(37,211,102,.65); }
.v2-btn-whatsapp:hover{ background:#1ebe5a; color:#fff; }
.v2-btn-block{ width:100%; justify-content:center; padding:1.05rem 1.6rem; }

/* ============ 1. HERO ============ */
.v2-hero{
  position:relative; min-height: min(92vh, 820px);
  display:flex; align-items:flex-end; overflow:hidden;
  color:#fff; background:#000;
}
.v2-hero-swiper,
.v2-hero .swiper.v2-hero-swiper { 
  position: absolute !important; 
  inset: 0 !important; 
  width: 100% !important; 
  height: 100% !important; 
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}
.v2-hero .swiper-wrapper { height: 100% !important; }
.v2-hero-slide { min-height: 100%; }
.v2-hero-slide{
  width:100%; height:100%;
  background-size: cover; background-position: center;
  transform: scale(1.08); animation: v2-kenburns 10s ease-in-out infinite alternate;
}
@keyframes v2-kenburns{
  0%{ transform: scale(1.02) translate3d(0,0,0); }
  100%{ transform: scale(1.12) translate3d(-1%,-1%,0); }
}
.v2-hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(15,27,44,.35) 0%, rgba(15,27,44,.55) 50%, rgba(15,27,44,.92) 100%),
    linear-gradient(90deg, rgba(15,27,44,.55) 0%, rgba(15,27,44,.15) 55%, transparent 100%);
}
.v2-hero-content{
  position:relative; z-index:2;
  width:100%; padding: 6rem 0 4.5rem;
}
.v2-crumbs{ display:flex; gap:.5rem; align-items:center; font-size:.85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.v2-crumbs a{ color: rgba(255,255,255,.85); text-decoration:none; }
.v2-crumbs a:hover{ color:#fff; }
.v2-hero-title{
  font: 900 clamp(2rem, 4.5vw, 4rem)/1.1 var(--font-ar, 'Tajawal', sans-serif);
  margin: 0 0 1.2rem; max-width: 880px;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
  letter-spacing: -.02em;
}
.v2-hero-pills{ display:flex; flex-wrap:wrap; gap:.55rem; margin-bottom: 1.8rem; }
.v2-pill{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.55rem 1.05rem; border-radius:999px;
  font: 600 .88rem var(--font-ar, 'Tajawal', sans-serif);
}
.v2-pill-glass{
  background: rgba(255,255,255,.12); color:#fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border:1px solid rgba(255,255,255,.22);
}
.v2-pill-glass i{ color: var(--v2-blue-soft); }

/* Hero price with shimmer */
.v2-hero-price{
  position:relative; display:inline-flex; flex-direction:column; align-items:flex-start;
  padding: 1.15rem 1.8rem; margin-bottom: 1.6rem;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 55%, #3B82F6 100%);
  border-radius: var(--v2-r);
  text-decoration:none; color:#fff;
  box-shadow: 0 20px 40px -20px rgba(37,99,235,.7);
  overflow:hidden; cursor:pointer;
  transition: transform .2s var(--ease-out, ease);
}
.v2-hero-price:hover{ transform: translateY(-3px); color:#fff; }
.v2-hero-price-label{ font-size:.82rem; opacity:.85; font-weight:500; }
.v2-hero-price-value{ font: 900 1.7rem/1 var(--font-ar, 'Tajawal', sans-serif); margin-top:.25rem; letter-spacing:-.01em; }
.v2-shimmer{
  position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(100%); animation: v2-shimmer 2.8s infinite;
}
@keyframes v2-shimmer{ 100%{ transform: translateX(-100%); } }

.v2-hero-actions{ display:flex; flex-wrap:wrap; gap:.75rem; }
.v2-hero-pagination{
  position:absolute !important; bottom: 1.3rem !important; left:0; right:0;
  text-align:center; z-index:3;
}
.v2-hero-pagination .swiper-pagination-bullet{ background: rgba(255,255,255,.5); opacity:1; width:30px; height:3px; border-radius:2px; }
.v2-hero-pagination .swiper-pagination-bullet-active{ background: var(--v2-blue-soft); width:50px; }

.v2-hero-scroll{
  position:absolute; bottom: 2.5rem; left:50%; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(255,255,255,.55); border-radius:14px;
  z-index:3; display:flex; justify-content:center; padding-top:7px;
}
.v2-hero-scroll span{ width:3px; height:8px; background:#fff; border-radius:3px; animation: v2-scroll 1.8s infinite; }
@keyframes v2-scroll{ 0%{ opacity:1; transform:translateY(0);} 100%{ opacity:0; transform:translateY(12px);} }

/* ============ 2. STICKY SUBNAV ============ */
.v2-subnav{
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--v2-line);
}
.v2-subnav-inner{
  display:flex; gap:.25rem; overflow-x:auto; scrollbar-width:none;
  padding: .6rem 0;
}
.v2-subnav-inner::-webkit-scrollbar{ display:none; }
.v2-subnav a{
  display:inline-flex; align-items:center; gap:.45rem;
  padding: .55rem 1rem; white-space:nowrap; border-radius:999px;
  color: var(--v2-muted); text-decoration:none;
  font: 600 .88rem var(--font-ar, 'Tajawal', sans-serif);
  transition: all .2s var(--ease-out, ease);
}
.v2-subnav a:hover{ color: var(--v2-navy); background: var(--v2-cream-2); }
.v2-subnav a.active{ background: var(--v2-navy); color:#fff; }
.v2-subnav a i{ font-size:.82em; }

/* ============ Section heads ============ */
.v2-section-head{ margin-bottom: 2.5rem; }
.v2-section-head--center{ text-align:center; max-width:720px; margin-inline:auto; margin-bottom: 3rem; }
.v2-eyebrow{
  display:inline-block; font: 700 .78rem/1 var(--font-ar, 'Tajawal', sans-serif);
  color: var(--v2-blue); text-transform: uppercase; letter-spacing: .12em;
  padding: .45rem .85rem; background: var(--v2-blue-tint);
  border-radius: 999px; margin-bottom: .8rem;
}
.v2-eyebrow-light{ background: rgba(255,255,255,.15); color:#fff; }
.v2-section-title{
  font: 900 clamp(1.5rem, 3vw, 2.6rem)/1.2 var(--font-ar, 'Tajawal', sans-serif);
  color: var(--v2-navy); letter-spacing:-.01em; margin:0 0 .5rem;
}
.v2-section-sub{ color: var(--v2-muted); font-size: 1rem; margin:0; }

/* ============ 3. FACTS ============ */
.v2-facts{ background: var(--v2-cream); padding: 3.5rem 0; margin-top: -60px; position:relative; z-index:5; }
.v2-facts-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem;
  max-width: 1100px; margin-inline:auto;
}
.v2-fact-card{
  background:#fff; border-radius: var(--v2-r-lg);
  padding: 1.8rem 1.5rem; text-align:center;
  box-shadow: var(--v2-shadow);
  border: 1px solid var(--v2-line);
  position:relative; overflow:hidden;
  transition: transform .3s var(--ease-out, ease), box-shadow .3s;
}
.v2-fact-card:hover{ transform: translateY(-5px); box-shadow: var(--v2-shadow-lg); }
.v2-fact-card::before{
  content:''; position:absolute; top:0; inset-inline-start:0; width:100%; height:4px;
  background: linear-gradient(90deg, var(--v2-blue), var(--v2-blue-soft));
}
.v2-fact-featured{ background: linear-gradient(135deg, var(--v2-navy), var(--v2-navy-2)); color:#fff; border-color: transparent; }
.v2-fact-featured::before{ background: linear-gradient(90deg, var(--v2-blue-soft), #93C5FD); }
.v2-fact-icon{
  width: 56px; height: 56px; margin: 0 auto 1rem;
  display:flex; align-items:center; justify-content:center;
  border-radius: 16px;
  background: var(--v2-blue-tint); color: var(--v2-blue);
  font-size: 1.4rem;
}
.v2-fact-featured .v2-fact-icon{ background: rgba(255,255,255,.12); color:#fff; }
.v2-fact-label{ color: var(--v2-muted); font-size:.88rem; margin-bottom: .35rem; font-weight:500; }
.v2-fact-featured .v2-fact-label{ color: rgba(255,255,255,.75); }
.v2-fact-value{ font: 900 1.5rem/1.2 var(--font-ar, 'Tajawal', sans-serif); color: var(--v2-navy); letter-spacing:-.01em; }
.v2-fact-featured .v2-fact-value{ color:#fff; }
.v2-fact-small{ font-size: .98rem !important; font-weight:700 !important; }

/* ============ 4. OVERVIEW ============ */
.v2-overview{ padding: 5rem 0 3rem; background:#fff; }
.v2-prose{ font: 400 1.08rem/1.9 var(--font-ar, 'Tajawal', sans-serif); color:#334155; }
.v2-prose > p:first-of-type::first-letter{
  font-size: 3.4rem; font-weight: 900; color: var(--v2-blue);
  float: right; margin-inline-start: 0; margin-inline-end: .5rem;
  line-height: 1; padding-top: .3rem;
}
.v2-prose p{ margin-bottom: 1.2rem; }
.v2-prose h2, .v2-prose h3{ color: var(--v2-navy); margin: 2rem 0 1rem; }
.v2-pullquote{
  position:relative; margin: 2.5rem 0;
  padding: 1.8rem 2rem; padding-inline-start: 3.2rem;
  background: var(--v2-cream); border-radius: var(--v2-r);
  border-inline-start: 5px solid var(--v2-blue);
  font: 700 1.1rem/1.7 var(--font-ar, 'Tajawal', sans-serif); color: var(--v2-navy);
}
.v2-pullquote i{
  position:absolute; top: 1.2rem; inset-inline-start: 1rem;
  color: var(--v2-blue); opacity:.3; font-size: 1.8rem;
}

/* ============ 5. GALLERY / MASTER PLAN ============ */
.v2-gallery{ padding: 5rem 0; background: var(--v2-cream); }
.v2-mosaic{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px; gap: 12px;
}
.v2-mosaic-item{
  position:relative; overflow:hidden; border-radius: var(--v2-r);
  cursor: zoom-in; display:block;
  box-shadow: var(--v2-shadow-sm);
}
.v2-mosaic-item img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease-out, ease); }
.v2-mosaic-item:hover img{ transform: scale(1.08); }
.v2-mosaic-item::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,27,44,.55) 100%);
  opacity:0; transition: opacity .25s;
}
.v2-mosaic-item:hover::after{ opacity:1; }
.v2-mosaic-zoom{
  position:absolute; top: 12px; inset-inline-end: 12px;
  width:40px; height:40px; border-radius:50%;
  background: rgba(255,255,255,.92); color: var(--v2-navy);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform: scale(.8); transition: all .25s;
}
.v2-mosaic-item:hover .v2-mosaic-zoom{ opacity:1; transform: scale(1); }
.v2-mosaic-big{ grid-column: span 2; grid-row: span 2; }
.v2-mosaic-tall{ grid-row: span 2; }
.v2-center-btn{ text-align:center; margin-top: 2.5rem; }

/* ============ 6. UNITS ============ */
.v2-units{ padding: 5rem 0; background: #fff; }
.v2-units-grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}

/* ============ 7. AMENITIES ============ */
.v2-amenities{
  padding: 5rem 0;
  background:
    radial-gradient(1000px circle at 10% 0%, rgba(37,99,235,.08), transparent 50%),
    radial-gradient(800px circle at 90% 100%, rgba(59,130,246,.06), transparent 50%),
    var(--v2-cream);
}
.v2-amenities-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
}
.v2-amenity{
  background:#fff; border-radius: var(--v2-r);
  padding: 1.5rem 1rem; text-align:center;
  border:1px solid var(--v2-line);
  transition: all .3s var(--ease-out, ease);
  display:flex; flex-direction:column; align-items:center; gap:.8rem;
}
.v2-amenity:hover{
  transform: translateY(-4px);
  border-color: var(--v2-blue);
  box-shadow: var(--v2-shadow);
}
.v2-amenity-icon{
  width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--v2-blue-tint), #fff);
  color: var(--v2-blue); font-size: 1.6rem;
  border:1px solid rgba(37,99,235,.15);
}
.v2-amenity:hover .v2-amenity-icon{
  background: linear-gradient(135deg, var(--v2-blue), var(--v2-blue-soft));
  color:#fff; border-color: transparent;
  transform: scale(1.08);
}
.v2-amenity span{ font: 700 .92rem var(--font-ar, 'Tajawal', sans-serif); color: var(--v2-navy); }

/* ============ 8. PAYMENT TIMELINE ============ */
.v2-payment{ padding: 5rem 0; background:#fff; }
.v2-timeline{
  list-style:none; padding:0; margin: 0 0 2.5rem;
  display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; position:relative;
  counter-reset: step;
}
.v2-timeline::before{
  content:''; position:absolute; top: 28px; left:5%; right:5%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--v2-blue) 0 8px, transparent 8px 16px);
  z-index:0;
}
.v2-timeline-step{ position:relative; z-index:1; text-align:center; }
.v2-timeline-dot{
  width: 56px; height: 56px; border-radius:50%;
  background: linear-gradient(135deg, var(--v2-blue), var(--v2-blue-soft));
  color:#fff; display:flex; align-items:center; justify-content:center;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 24px -10px rgba(37,99,235,.6);
  font-size: 1.3rem;
  border: 4px solid #fff;
}
.v2-timeline-card{
  background: var(--v2-cream); border-radius: var(--v2-r);
  padding: 1.4rem 1.2rem;
  border:1px solid var(--v2-line);
  position:relative;
}
.v2-timeline-num{
  position:absolute; top:-14px; inset-inline-end:14px;
  background:#fff; color: var(--v2-blue);
  font: 900 .85rem var(--font-ar, 'Tajawal', sans-serif);
  padding:.3rem .55rem; border-radius:8px;
  border:1px solid var(--v2-blue-tint);
}
.v2-timeline-card h4{ font: 800 1rem var(--font-ar, 'Tajawal', sans-serif); color: var(--v2-navy); margin:0 0 .4rem; }
.v2-timeline-card p{ font-size:.92rem; color: var(--v2-muted); margin:0; line-height:1.6; }

/* ============ 9. LOCATION / MAP ============ */
.v2-location{ padding: 5rem 0; background: var(--v2-cream); }
.v2-map-wrap{
  border-radius: var(--v2-r-lg); overflow:hidden;
  box-shadow: var(--v2-shadow-lg);
  border: 6px solid #fff;
  aspect-ratio: 16 / 7;
  background: var(--v2-cream-2);
}
.v2-map-wrap iframe{ width:100%; height:100%; border:0; display:block; }

/* ============ 10. FAQ ============ */
.v2-faq{ padding: 5rem 0; background:#fff; }
.v2-faq-list{ display:flex; flex-direction:column; gap:.9rem; }
.v2-faq-item{
  background: var(--v2-cream); border-radius: var(--v2-r);
  border:1px solid var(--v2-line);
  transition: box-shadow .25s, border-color .25s;
  overflow:hidden;
}
.v2-faq-item[open]{ border-color: var(--v2-blue); box-shadow: var(--v2-shadow-sm); }
.v2-faq-item summary{
  list-style:none; cursor:pointer;
  padding: 1.2rem 1.4rem;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  font: 700 1.05rem var(--font-ar, 'Tajawal', sans-serif); color: var(--v2-navy);
}
.v2-faq-item summary::-webkit-details-marker{ display:none; }
.v2-faq-item summary i{
  width:32px; height:32px; border-radius:50%;
  background: var(--v2-blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:.8rem;
  transition: transform .3s;
}
.v2-faq-item[open] summary i{ transform: rotate(45deg); }
.v2-faq-a{ padding: 0 1.4rem 1.2rem; color: #475569; line-height: 1.9; font-size:.98rem; }

/* ============ 11. RELATED ============ */
.v2-related{ padding: 5rem 0; background: var(--v2-cream); }
.v2-related-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.v2-related-card{
  background:#fff; border-radius: var(--v2-r-lg); overflow:hidden;
  text-decoration:none; color: inherit;
  box-shadow: var(--v2-shadow-sm);
  border:1px solid var(--v2-line);
  transition: all .3s var(--ease-out, ease);
  display:flex; flex-direction:column;
}
.v2-related-card:hover{ transform: translateY(-6px); box-shadow: var(--v2-shadow-lg); color:inherit; }
.v2-related-img{ aspect-ratio: 16/10; overflow:hidden; }
.v2-related-img img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease-out, ease); }
.v2-related-card:hover .v2-related-img img{ transform: scale(1.08); }
.v2-related-body{ padding: 1.3rem 1.4rem 1.4rem; flex:1; display:flex; flex-direction:column; }
.v2-related-body h3{ font: 800 1.15rem var(--font-ar, 'Tajawal', sans-serif); color: var(--v2-navy); margin:0 0 .5rem; }
.v2-related-loc{ font-size:.88rem; color: var(--v2-muted); margin: 0 0 .5rem; }
.v2-related-loc i{ color: var(--v2-blue); margin-inline-end:.3rem; }
.v2-related-price{ font-size:.95rem; color:#334155; margin: auto 0 .9rem; }
.v2-related-price strong{ color: var(--v2-blue); font-weight: 900; }
.v2-related-cta{ font: 700 .9rem var(--font-ar, 'Tajawal', sans-serif); color: var(--v2-blue); display:inline-flex; align-items:center; gap:.4rem; }

/* ============ 12. CONTACT ============ */
.v2-contact{ padding: 5rem 0; background: linear-gradient(135deg, var(--v2-navy) 0%, var(--v2-navy-2) 100%); position:relative; overflow:hidden; }
.v2-contact::before{
  content:''; position:absolute; top:-200px; inset-inline-end:-200px;
  width:500px; height:500px; border-radius:50%;
  background: radial-gradient(circle, rgba(59,130,246,.18), transparent 70%);
}
.v2-contact-card{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1fr 1.2fr; gap: 3rem;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
  border-radius: var(--v2-r-lg);
  padding: 2.8rem;
}
.v2-contact-copy{ color:#fff; }
.v2-contact-copy h2{ font: 900 1.8rem/1.3 var(--font-ar, 'Tajawal', sans-serif); margin: .5rem 0 1rem; }
.v2-contact-copy p{ color: rgba(255,255,255,.75); line-height:1.8; margin-bottom: 1.5rem; }
.v2-contact-points{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.7rem; }
.v2-contact-points li{ color: rgba(255,255,255,.9); display:flex; gap:.6rem; align-items:center; font-size:.95rem; }
.v2-contact-points i{ color: #22c55e; }

.v2-form{ display:flex; flex-direction:column; gap: 1rem; }
.v2-field{ display:flex; flex-direction:column; gap:.4rem; }
.v2-field label{ font: 700 .88rem var(--font-ar, 'Tajawal', sans-serif); color: rgba(255,255,255,.85); }
.v2-field label span{ color:#ef4444; }
.v2-field input, .v2-field textarea{
  padding: .9rem 1rem; border-radius: 12px;
  border:1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color:#fff;
  font: 500 1rem var(--font-ar, 'Tajawal', sans-serif);
  transition: all .2s;
}
.v2-field input::placeholder, .v2-field textarea::placeholder{ color: rgba(255,255,255,.45); }
.v2-field input:focus, .v2-field textarea:focus{
  outline:none; border-color: var(--v2-blue-soft);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.v2-field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v2-form-note{ font-size:.82rem; color: rgba(255,255,255,.55); text-align:center; margin:.5rem 0 0; }
.v2-form-note i{ color: #22c55e; margin-inline-end:.3rem; }

/* ============ 13. FLOATING CTAs ============ */
.v2-floating{
  position: fixed; bottom: 25px; inset-inline-start: 20px;
  display:flex; flex-direction:column; gap: .7rem;
  z-index: 95;
}
.v2-float{
  width: 52px; height: 52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; text-decoration:none; font-size: 1.3rem;
  box-shadow: 0 10px 24px -8px rgba(15,27,44,.4);
  transition: transform .2s var(--ease-out, ease);
}
.v2-float:hover{ transform: scale(1.1) translateY(-2px); color:#fff; }
.v2-float-wa{ background:#25D366; }
.v2-float-call{ background: var(--v2-blue); }
.v2-float-chat{ background: var(--v2-navy); }
.v2-float-wa{ animation: v2-pulse 2.2s infinite; }
@keyframes v2-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Mobile sticky bottom bar */
.v2-mobile-cta{
  position: fixed; bottom: 0; left:0; right:0;
  display:none; z-index: 96;
  background: #fff; border-top:1px solid var(--v2-line);
  padding: .6rem; gap:.5rem;
  box-shadow: 0 -10px 30px -10px rgba(15,27,44,.2);
}
.v2-mcta{
  flex:1; text-align:center; padding: .85rem .5rem;
  border-radius: 12px; text-decoration:none;
  font: 700 .9rem var(--font-ar, 'Tajawal', sans-serif);
  display:flex; align-items:center; justify-content:center; gap:.4rem;
}
.v2-mcta-call{ background: var(--v2-cream-2); color: var(--v2-navy); }
.v2-mcta-wa{ background:#25D366; color:#fff; }
.v2-mcta-main{ background: var(--v2-blue); color:#fff; flex: 1.3; }

/* ============ Legacy overrides (neutralize old gold) ============ */
.btn-gold{ background: var(--v2-blue) !important; color:#fff !important; }
.btn-gold:hover{ background: var(--v2-navy) !important; }
.hero-section.project-hero{ display:none; } /* hide legacy hero if the new template is used side-by-side */

/* ============ Responsive ============ */
@media (max-width: 1024px){
  .v2-contact-card{ grid-template-columns: 1fr; padding: 2rem; }
  .v2-mosaic{ grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .v2-mosaic-big{ grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 768px){
  .v2-hero{ min-height: 80vh; }
  .v2-hero-content{ padding: 5rem 0 5rem; }
  .v2-hero-title{ font-size: 2rem; }
  .v2-subnav-inner{ padding: .5rem 0; }
  .v2-subnav a{ padding: .45rem .8rem; font-size: .82rem; }
  .v2-facts{ margin-top: -40px; padding: 2rem 0; }
  .v2-facts-grid{ grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .v2-fact-card{ padding: 1.2rem .9rem; }
  .v2-fact-icon{ width: 46px; height: 46px; font-size: 1.15rem; }
  .v2-fact-value{ font-size: 1.15rem; }
  .v2-fact-small{ font-size: .85rem !important; }
  .v2-overview, .v2-gallery, .v2-units, .v2-amenities, .v2-payment, .v2-location, .v2-faq, .v2-related, .v2-contact{ padding: 3.5rem 0; }
  .v2-section-head{ margin-bottom: 2rem; }
  .v2-mosaic{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap:8px; }
  .v2-mosaic-big{ grid-column: span 2; grid-row: span 2; }
  .v2-mosaic-tall{ grid-row: auto; }
  .v2-timeline::before{ display:none; }
  .v2-field-row{ grid-template-columns: 1fr; }
  .v2-contact-card{ padding: 1.5rem; }
  .v2-contact-copy h2{ font-size: 1.4rem; }
  .v2-floating{ bottom: 80px; }
  .v2-mobile-cta{ display:flex; }
  body{ padding-bottom: 72px; }
}

@media (max-width: 480px){
  .v2-hero-price-value{ font-size: 1.4rem; }
  .v2-hero-actions .v2-btn{ flex:1; justify-content:center; }
  .v2-amenities-grid{ grid-template-columns: repeat(2, 1fr); }
  .v2-amenity{ padding: 1rem .7rem; }
  .v2-amenity-icon{ width:52px; height:52px; font-size:1.3rem; }
  .v2-amenity span{ font-size:.82rem; }
}

/* ============ RTL tweaks (RTL is default on these sites) ============ */
[dir="rtl"] .v2-hero-scroll, :root .v2-hero-scroll{ /* stays centered */ }
/* ============================================================
   FRONT PAGE — EDITORIAL CINEMA v3
   Refined magazine aesthetic · navy + cream + soft blue · NO gold
   All classes fp-* · no conflicts with existing theme
   ============================================================ */

:root {
  --fp-navy:       #0F1B2C;
  --fp-navy-2:     #152942;
  --fp-navy-deep:  #08101C;
  --fp-cream:      #F7F5EF;
  --fp-cream-2:    #EFEBE0;
  --fp-paper:      #FBFAF6;
  --fp-ink:        #1F2937;
  --fp-ink-2:      #475569;
  --fp-mute:       #94A3B8;
  --fp-line:       #E5E7EB;
  --fp-blue:       #2563EB;
  --fp-blue-2:     #3B82F6;
  --fp-blue-soft:  #EFF6FF;
  --fp-radius:     14px;
  --fp-radius-lg:  22px;
  --fp-font-ar:    "Cairo", "Tajawal", "IBM Plex Arabic", -apple-system, sans-serif;
  --fp-font-ltr:   "Fraunces", "Playfair Display", Georgia, serif;
}

.fp-main {
  background: var(--fp-paper);
  color: var(--fp-ink);
  font-family: var(--fp-font-ar);
  overflow-x: hidden;
}
.fp-main *, .fp-main *::before, .fp-main *::after { box-sizing: border-box; }

/* ═══ CINEMATIC HERO ═══ */
.fp-hero {
  position: relative;
  min-height: 94vh;
  min-height: 94dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--fp-navy-deep);
  padding-bottom: clamp(60px, 8vh, 120px);
}
.fp-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: fp-kenburns 18s ease-out forwards;
  filter: brightness(.78) contrast(1.08) saturate(.95);
}
.fp-hero__bg--solid {
  background: linear-gradient(160deg, var(--fp-navy-deep) 0%, var(--fp-navy) 70%, var(--fp-navy-2) 100%);
  transform: none;
  animation: none;
}
@keyframes fp-kenburns {
  from { transform: scale(1.14); }
  to   { transform: scale(1.02); }
}

/* Cinematic grain overlay */
.fp-hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.fp-hero__gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(8,16,28,.35) 55%, rgba(8,16,28,.88) 100%),
    linear-gradient(90deg, rgba(8,16,28,.45) 0%, transparent 50%);
  pointer-events: none;
}

.fp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 64px);
  color: #fff;
  animation: fp-rise .9s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes fp-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  animation: fp-rise .9s .1s cubic-bezier(.2,.8,.3,1) both;
}
.fp-hero__rule {
  width: 50px;
  height: 1.5px;
  background: var(--fp-blue-2);
}
.fp-hero__eyebrow-text {
  font-size: 13px;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  opacity: .9;
}
.fp-hero__eyebrow-text span { opacity: .55; margin: 0 6px; }

.fp-hero__title {
  font-size: clamp(40px, 7.5vw, 104px);
  line-height: 1.02;
  font-weight: 900;
  margin: 0 0 26px;
  letter-spacing: -.025em;
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.45);
  animation: fp-rise 1s .18s cubic-bezier(.2,.8,.3,1) both;
}

.fp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  animation: fp-rise 1s .28s cubic-bezier(.2,.8,.3,1) both;
}
.fp-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.fp-hero__pill--accent {
  background: linear-gradient(135deg, var(--fp-blue-2), var(--fp-blue));
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
}
.fp-hero__pill strong { font-weight: 800; }

.fp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fp-rise 1s .4s cubic-bezier(.2,.8,.3,1) both;
}

.fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all .22s cubic-bezier(.2,.8,.3,1);
  white-space: nowrap;
}
.fp-btn--primary {
  background: #fff;
  color: var(--fp-navy);
  box-shadow: 0 6px 22px rgba(0,0,0,.2);
}
.fp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  color: var(--fp-blue);
}
.fp-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.fp-btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}
[dir="rtl"] .fp-btn svg { transform: scaleX(-1); }

.fp-hero__scrollhint {
  position: absolute;
  bottom: 24px;
  inset-inline-start: clamp(20px, 5vw, 64px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  opacity: .65;
  animation: fp-rise 1s .6s cubic-bezier(.2,.8,.3,1) both;
}
.fp-hero__scrollhint-text {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
}
.fp-hero__scrollhint-line {
  width: 1.5px;
  height: 50px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.fp-hero__scrollhint-line::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--fp-blue-2);
  animation: fp-scroll-line 2s ease-in-out infinite;
}
@keyframes fp-scroll-line {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ═══ MARQUEE TICKER ═══ */
.fp-marquee {
  background: var(--fp-navy);
  color: #fff;
  padding: 16px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.08);
}
.fp-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: fp-marq 36s linear infinite;
  padding-inline-start: 100%;
}
.fp-marquee__item {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
}
.fp-marquee__item::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--fp-blue-2);
  border-radius: 50%;
  margin-inline-end: 10px;
  vertical-align: middle;
}
.fp-marquee__dot {
  color: var(--fp-blue-2);
  font-size: 9px;
  opacity: .5;
}
@keyframes fp-marq {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}
[dir="rtl"] .fp-marquee__track {
  animation-name: fp-marq-rtl;
}
@keyframes fp-marq-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ═══ CHAPTER SECTIONS ═══ */
.fp-chapter {
  padding: clamp(60px, 10vw, 140px) 0 clamp(40px, 7vw, 80px);
  position: relative;
}
.fp-chapter--about {
  padding-top: clamp(80px, 12vw, 160px);
  background: var(--fp-paper);
}
.fp-chapter--tight { padding-block: clamp(40px, 6vw, 80px); }

.fp-chapter__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: flex-start;
  margin-bottom: clamp(30px, 4vw, 60px);
}
.fp-chapter__aside {
  position: sticky;
  top: 90px;
}
.fp-chapter__num {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .25em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fp-blue);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--fp-line);
}
.fp-chapter__label {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--fp-navy);
  margin: 0;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.fp-chapter__body {
  padding-top: 6px;
}
.fp-chapter__lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.65;
  color: var(--fp-ink);
  font-weight: 500;
  margin: 0;
  max-width: 68ch;
}
.fp-chapter__lead::first-letter {
  font-family: var(--fp-font-ltr);
  font-weight: 900;
  font-size: 2.4em;
  float: inline-start;
  line-height: 1;
  margin-inline-end: 8px;
  margin-block-start: 4px;
  color: var(--fp-blue);
}

.fp-chapter__more {
  text-align: center;
  margin-top: clamp(30px, 4vw, 50px);
}
.fp-chapter__more .fp-btn--ghost {
  color: var(--fp-navy);
  border-color: var(--fp-navy);
}
.fp-chapter__more .fp-btn--ghost:hover {
  background: var(--fp-navy);
  color: #fff;
}

/* ═══ STATS AS ART ═══ */
.fp-stats {
  background: var(--fp-cream);
  padding: clamp(60px, 8vw, 100px) 0;
  border-block: 1px solid var(--fp-line);
}
.fp-stats__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.fp-stat {
  padding: 24px clamp(14px, 2vw, 32px);
  border-inline-end: 1px dashed rgba(15,27,44,.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-stat:last-child { border-inline-end: 0; }
.fp-stat__num {
  font-size: clamp(58px, 9vw, 120px);
  font-weight: 900;
  line-height: .95;
  color: var(--fp-navy);
  letter-spacing: -.04em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.fp-stat__label {
  font-size: 13.5px;
  color: var(--fp-ink-2);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.35;
  max-width: 10ch;
}

/* ═══ PROJECTS GRID — ASYMMETRIC ═══ */
.fp-projects {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.fp-proj {
  position: relative;
  border-radius: var(--fp-radius);
  overflow: hidden;
  background: var(--fp-navy);
  grid-column: span 2;
  grid-row: span 2;
}
.fp-proj--hero { grid-column: span 4; grid-row: span 3; }
.fp-proj--tall { grid-row: span 3; }
.fp-proj--std  { grid-row: span 2; }

.fp-proj__link {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}
.fp-proj__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.8,.3,1);
}
.fp-proj:hover .fp-proj__img { transform: scale(1.08); }
.fp-proj__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,28,.0) 25%, rgba(8,16,28,.45) 55%, rgba(8,16,28,.92) 100%);
  transition: background .3s;
}
.fp-proj:hover .fp-proj__veil {
  background: linear-gradient(180deg, rgba(8,16,28,.05) 15%, rgba(8,16,28,.55) 50%, rgba(8,16,28,.95) 100%);
}
.fp-proj__content {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  padding: clamp(16px, 2vw, 28px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fp-proj__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fp-blue-2);
  opacity: .95;
}
.fp-proj__sep { opacity: .5; }
.fp-proj__title {
  font-size: clamp(17px, 2.4vw, 30px);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.fp-proj--hero .fp-proj__title { font-size: clamp(24px, 3.2vw, 42px); }
.fp-proj__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.fp-proj__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  opacity: .85;
  font-weight: 500;
}
.fp-proj__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
}
.fp-proj__price-lbl {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
}
.fp-proj__price strong {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 800;
  color: #fff;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

/* ═══ UNIT TYPES — EDITORIAL ICONS ═══ */
.fp-types {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.fp-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  text-decoration: none;
  color: var(--fp-navy);
  transition: all .22s;
}
.fp-type:hover {
  border-color: var(--fp-blue);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37,99,235,.12);
}
.fp-type__num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--fp-blue);
  line-height: 1;
  font-feature-settings: "tnum";
}
.fp-type__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-ink);
}

/* ═══ UNITS GRID ═══ */
.fp-units {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.fp-unit {
  background: #fff;
  border-radius: var(--fp-radius);
  overflow: hidden;
  border: 1px solid var(--fp-line);
  transition: transform .25s, box-shadow .25s;
}
.fp-unit:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15,27,44,.09);
}
.fp-unit__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.fp-unit__img {
  aspect-ratio: 16/10;
  background: var(--fp-navy);
  background-size: cover;
  background-position: center;
}
.fp-unit__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-unit__type {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fp-blue);
  font-weight: 700;
}
.fp-unit__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--fp-navy);
  margin: 0;
  line-height: 1.3;
}
.fp-unit__proj {
  font-size: 13px;
  color: var(--fp-ink-2);
}
.fp-unit__specs {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--fp-ink-2);
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px dashed var(--fp-line);
}
.fp-unit__specs span { display: inline-flex; align-items: center; gap: 4px; }
.fp-unit__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--fp-line);
}
.fp-unit__price span {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fp-ink-2);
  font-weight: 600;
}
.fp-unit__price strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--fp-navy);
  font-feature-settings: "tnum";
}

/* ═══ CONTACT — DARK EDITORIAL ═══ */
.fp-contact {
  background: linear-gradient(160deg, var(--fp-navy) 0%, var(--fp-navy-2) 100%);
  color: #fff;
  padding: clamp(60px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.fp-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 15% 0%, rgba(37,99,235,.25), transparent 60%);
  pointer-events: none;
}
.fp-contact__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  position: relative;
  z-index: 2;
}
.fp-contact__intro .fp-chapter__num { color: var(--fp-blue-2); border-bottom-color: rgba(255,255,255,.15); }
.fp-contact__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -.03em;
  color: #fff;
}
.fp-contact__sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  max-width: 46ch;
}
.fp-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fp-contact__list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: 14.5px;
}
.fp-contact__list li svg { color: var(--fp-blue-2); flex-shrink: 0; }

.fp-contact__form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--fp-radius-lg);
  padding: clamp(24px, 3vw, 40px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.fp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fp-form__row { display: flex; flex-direction: column; gap: 6px; }
.fp-form__row--full { grid-column: 1/-1; }
.fp-form__row label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.fp-form__row label span { color: var(--fp-blue-2); }
.fp-form__row input,
.fp-form__row select,
.fp-form__row textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  color: #fff;
  transition: border-color .2s, background .2s;
  outline: none;
}
.fp-form__row input::placeholder,
.fp-form__row textarea::placeholder {
  color: rgba(255,255,255,.4);
}
.fp-form__row input:focus,
.fp-form__row select:focus,
.fp-form__row textarea:focus {
  border-color: var(--fp-blue-2);
  background: rgba(255,255,255,.12);
}
.fp-form__row select option { background: var(--fp-navy); color: #fff; }
.fp-form__row textarea { resize: vertical; min-height: 110px; }
.fp-form__submit { grid-column: 1/-1; }
.fp-btn--full { width: 100%; justify-content: center; padding: 15px 28px; font-size: 16px; }

.fp-form__msg {
  grid-column: 1/-1;
  font-size: 14px;
  padding: 0;
}
.fp-form__msg.success {
  padding: 14px 18px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.45);
  border-radius: 10px;
  color: #bbf7d0;
}
.fp-form__msg.error {
  padding: 14px 18px;
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.45);
  border-radius: 10px;
  color: #fecaca;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
  .fp-chapter__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fp-chapter__aside { position: static; }
  .fp-chapter__label { font-size: clamp(28px, 7vw, 42px); }
  .fp-projects {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .fp-proj, .fp-proj--hero, .fp-proj--tall, .fp-proj--std {
    grid-column: span 2;
    grid-row: span 1;
  }
  .fp-proj--hero { grid-row: span 2; }
  .fp-contact__inner { grid-template-columns: 1fr; }
  .fp-form { grid-template-columns: 1fr; }
  .fp-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .fp-stat:nth-child(2) { border-inline-end: 0; }
  .fp-stat:nth-child(1), .fp-stat:nth-child(2) { border-bottom: 1px dashed rgba(15,27,44,.18); }
}
@media (max-width: 640px) {
  .fp-hero { min-height: 80vh; padding-bottom: 80px; }
  .fp-hero__title { font-size: clamp(34px, 10vw, 56px); }
  .fp-projects { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .fp-proj, .fp-proj--hero, .fp-proj--tall, .fp-proj--std {
    grid-column: 1/-1;
    grid-row: span 1;
  }
  .fp-stat__num { font-size: clamp(52px, 14vw, 80px); }
  .fp-chapter__lead::first-letter { font-size: 2em; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-hero__bg { animation: none; transform: scale(1); }
  .fp-hero__content, .fp-hero__eyebrow, .fp-hero__title, .fp-hero__meta, .fp-hero__cta, .fp-hero__scrollhint { animation: none !important; }
  .fp-marquee__track { animation-duration: 80s; }
}
/* ============================================================
   v2 Units LIST VIEW — luxury editorial list
   ============================================================ */
.v2-units-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.v2-unit-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.v2-unit-row::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2563EB, #3B82F6);
  opacity: 0;
  transition: opacity .3s;
}
.v2-unit-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 27, 44, .10);
  border-color: #3B82F6;
}
.v2-unit-row:hover::before { opacity: 1; }

.v2-unit-row__img {
  width: 180px;
  height: 130px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  transition: transform .4s;
}
.v2-unit-row:hover .v2-unit-row__img { transform: scale(1.04); }

.v2-unit-row__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.v2-unit-row__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v2-unit-row__type {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2563EB;
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 999px;
}
.v2-unit-row__badge {
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.v2-unit-row__title {
  font-size: 17px;
  font-weight: 800;
  color: #0F1B2C;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-unit-row__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.v2-unit-row__specs span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.v2-unit-row__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 18px 8px 12px;
  border-inline-start: 2px dashed #E5E7EB;
  min-width: 170px;
  position: relative;
  text-align: end;
}
.v2-unit-row__price-lbl {
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 700;
}
.v2-unit-row__price strong {
  font-size: 22px;
  font-weight: 900;
  color: #0F1B2C;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.v2-unit-row__currency {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
}
.v2-unit-row__arrow {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  transition: all .25s;
}
.v2-unit-row:hover .v2-unit-row__arrow {
  background: #2563EB;
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .v2-unit-row { grid-template-columns: 1fr; padding: 10px; gap: 12px; }
  .v2-unit-row__img { width: 100%; height: 180px; }
  .v2-unit-row__price {
    border-inline-start: 0;
    border-top: 2px dashed #E5E7EB;
    padding: 10px 0 0;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    gap: 8px;
  }
  .v2-unit-row__price-lbl { font-size: 10px; }
  .v2-unit-row__price strong { font-size: 19px; }
  .v2-unit-row__arrow { position: static; margin-inline-start: auto; }
}

/* ============ Enhanced About Section on Homepage ============ */
.fp-chapter--about .fp-chapter__body { position: relative; }
.fp-chapter--about .fp-chapter__lead {
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.75;
  max-width: 68ch;
  color: #334155;
}
.fp-about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid #E5E7EB;
}
.fp-about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-about-stat__n {
  font-size: 36px;
  font-weight: 900;
  color: #2563EB;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.fp-about-stat__l {
  font-size: 13px;
  color: #64748B;
  font-weight: 600;
}
.fp-about-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.fp-about-loc {
  padding: 6px 14px;
  background: #F1F5F9;
  color: #1F2937;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
}
.fp-about-loc:hover {
  background: #2563EB;
  color: #fff;
}

/* ============ Footer Polish ============ */
.site-footer {
  background: linear-gradient(160deg, #0F1B2C, #152942) !important;
  color: #fff !important;
  padding: clamp(60px, 7vw, 90px) 0 30px !important;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3B82F6, transparent);
}
.site-footer a { color: #CBD5E1 !important; transition: color .15s; }
.site-footer a:hover { color: #3B82F6 !important; }
.site-footer h3, .site-footer h4, .site-footer strong { color: #fff !important; }
.site-footer .footer-bottom,
.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 20px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
/* ══════════════════════════════════════════════════════════════
   EDITORIAL UPGRADE v2 — Gallery × Mashrabiya
   Warmer ink, architectural typography, atmospheric depth
   Overrides: fp-* and v2-* scopes
   ══════════════════════════════════════════════════════════════ */

/* Load distinctive fonts */
@import url('https://fonts.googleapis.com/css2?family=Reem+Kufi:wght@400;500;600;700&family=Cormorant+Infant:ital,wght@0,400;0,600;0,700;1,400&family=Tajawal:wght@400;500;700;900&display=swap');

/* ── Warmer editorial tokens ── */
.fp-main, body:has(.v2-hero) {
  --fp-ink:         #1A1812;
  --fp-ink-soft:    #3A352E;
  --fp-cream:       #F7F2EA;
  --fp-cream-2:     #EFE8D8;
  --fp-sand:        #E8DCC4;
  --fp-paper:       #FBF7EE;
  --fp-bronze:      #8B5E3C;
  --fp-bronze-2:    #B8754C;
  --fp-deep:        #2C1810;
  --fp-accent:      #2563EB;
  --fp-accent-soft: #DBEAFE;
  --fp-line-warm:   rgba(26, 24, 18, 0.08);
  --fp-line-strong: rgba(26, 24, 18, 0.16);

  --fp-font-display: "Reem Kufi", "Tajawal", serif;
  --fp-font-body:    "Tajawal", system-ui, sans-serif;
  --fp-font-latin:   "Cormorant Infant", Georgia, serif;
}

/* Base body typography */
.fp-main {
  background: var(--fp-paper);
  color: var(--fp-ink);
  font-family: var(--fp-font-body);
  font-feature-settings: "ss01";
}
.fp-main [lang="en"], .fp-main .latin { font-family: var(--fp-font-latin); font-style: italic; }

/* ═══════════════ HERO — warmer grain, serif whisper ═══════════════ */
.fp-hero {
  background: var(--fp-deep);
}
.fp-hero__gradient {
  background:
    linear-gradient(180deg, transparent 0%, rgba(26,24,18,.35) 55%, rgba(26,24,18,.92) 100%),
    linear-gradient(90deg, rgba(26,24,18,.55) 0%, transparent 55%, transparent 100%) !important;
}
.fp-hero__grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .05 0 0 0 0 .04 0 0 0 0 .03 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .22;
  mix-blend-mode: overlay;
}
.fp-hero__eyebrow-text {
  font-family: var(--fp-font-display);
  letter-spacing: .28em;
  font-weight: 500;
  font-size: 12px;
}
.fp-hero__rule {
  height: 1px;
  background: var(--fp-bronze-2);
  width: 60px;
}
.fp-hero__title {
  font-family: var(--fp-font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: .98;
  font-feature-settings: "ss01", "ss02";
  max-width: 13ch;
}
.fp-hero__pill {
  font-family: var(--fp-font-body);
  font-weight: 500;
  background: rgba(247,242,234,.08);
  border-color: rgba(247,242,234,.18);
  color: var(--fp-cream);
}
.fp-hero__pill--accent {
  background: linear-gradient(135deg, var(--fp-bronze), var(--fp-bronze-2));
  box-shadow: 0 10px 28px rgba(139,94,60,.42);
}
.fp-btn--primary {
  background: var(--fp-cream);
  color: var(--fp-deep);
  border-radius: 2px;  /* sharper, editorial */
  font-family: var(--fp-font-display);
  letter-spacing: .02em;
  font-weight: 600;
}
.fp-btn--ghost {
  border-radius: 2px;
  font-family: var(--fp-font-display);
  letter-spacing: .05em;
}

/* ═══════════════ MARQUEE ═══════════════ */
.fp-marquee {
  background: var(--fp-deep);
  border-color: rgba(247,242,234,.08);
}
.fp-marquee__item {
  font-family: var(--fp-font-display);
  font-weight: 500;
  letter-spacing: .04em;
  font-size: 14px;
  color: var(--fp-cream);
}
.fp-marquee__item::before { background: var(--fp-bronze-2); }
.fp-marquee__dot { color: var(--fp-bronze-2); }

/* ═══════════════ CHAPTER — architectural ═══════════════ */
.fp-chapter {
  padding-block: clamp(80px, 10vw, 160px);
}
.fp-chapter__aside {
  position: relative;
}
.fp-chapter__num {
  display: block;
  font-family: var(--fp-font-latin);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--fp-bronze);
  border: none;
  padding: 0;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.fp-chapter__num::before {
  content: "Ch. ";
  font-size: .35em;
  letter-spacing: .3em;
  opacity: .6;
  font-style: normal;
  display: block;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--fp-ink-soft);
  font-family: var(--fp-font-display);
}
.fp-chapter__label {
  font-family: var(--fp-font-display);
  font-weight: 600;
  color: var(--fp-ink);
  letter-spacing: -.025em;
  line-height: 1;
}
.fp-chapter__lead {
  font-family: var(--fp-font-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--fp-ink-soft);
}
.fp-chapter__lead::first-letter {
  font-family: var(--fp-font-latin);
  font-style: italic;
  color: var(--fp-bronze);
  font-size: 3em;
  font-weight: 600;
  margin-block-start: 8px;
}

/* ═══════════════ STATS — monolithic ═══════════════ */
.fp-stats {
  background: var(--fp-cream);
  border-block: 1px solid var(--fp-line-strong);
  padding-block: clamp(70px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.fp-stats::before {
  /* Mashrabiya pattern bg — very subtle */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%231A1812' stroke-width='0.5' stroke-opacity='0.06'><path d='M40 0 L80 40 L40 80 L0 40 Z'/><circle cx='40' cy='40' r='20'/><path d='M20 20 L60 60 M20 60 L60 20'/></g></svg>");
  background-size: 80px 80px;
  opacity: .4;
  pointer-events: none;
}
.fp-stat {
  padding: 32px clamp(18px, 3vw, 40px);
  border-inline-end: 1px solid var(--fp-line-warm);
  position: relative;
  z-index: 1;
}
.fp-stat__num {
  font-family: var(--fp-font-display);
  font-weight: 500;
  color: var(--fp-deep);
  letter-spacing: -.045em;
  font-feature-settings: "ss01", "tnum";
  line-height: .92;
}
.fp-stat__label {
  font-family: var(--fp-font-display);
  font-weight: 500;
  color: var(--fp-ink-soft);
  letter-spacing: .08em;
  font-size: 12.5px;
  text-transform: uppercase;
  margin-top: 14px;
}

/* ═══════════════ PROJECTS — gallery cards ═══════════════ */
.fp-proj {
  background: var(--fp-deep);
  border-radius: 4px;
}
.fp-proj__veil {
  background: linear-gradient(180deg, rgba(26,24,18,.0) 20%, rgba(26,24,18,.55) 55%, rgba(26,24,18,.95) 100%);
}
.fp-proj:hover .fp-proj__veil {
  background: linear-gradient(180deg, rgba(26,24,18,.1) 10%, rgba(26,24,18,.65) 50%, rgba(26,24,18,.98) 100%);
}
.fp-proj__eyebrow {
  font-family: var(--fp-font-display);
  font-weight: 500;
  color: var(--fp-bronze-2);
  letter-spacing: .22em;
  font-size: 11px;
}
.fp-proj__title {
  font-family: var(--fp-font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.12;
}
.fp-proj__foot {
  border-top: 1px solid rgba(247,242,234,.18);
}
.fp-proj__price strong {
  font-family: var(--fp-font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Image grain overlay on hover */
.fp-proj::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 2;
}
.fp-proj:hover::after { opacity: 1; }

/* ═══════════════ UNIT TYPES ═══════════════ */
.fp-type {
  background: var(--fp-paper);
  border: 1px solid var(--fp-line-warm);
  border-radius: 4px;
}
.fp-type:hover {
  border-color: var(--fp-bronze);
  box-shadow: 0 16px 36px rgba(26,24,18,.08);
}
.fp-type__num {
  font-family: var(--fp-font-display);
  color: var(--fp-bronze);
  font-weight: 500;
  letter-spacing: -.03em;
}
.fp-type__label {
  font-family: var(--fp-font-display);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ═══════════════ UNITS ═══════════════ */
.fp-unit {
  background: var(--fp-paper);
  border: 1px solid var(--fp-line-warm);
  border-radius: 4px;
}
.fp-unit__type {
  color: var(--fp-bronze);
  font-family: var(--fp-font-display);
  letter-spacing: .2em;
  font-weight: 500;
}
.fp-unit__title {
  font-family: var(--fp-font-display);
  font-weight: 600;
  color: var(--fp-deep);
  letter-spacing: -.005em;
}
.fp-unit__price strong {
  font-family: var(--fp-font-display);
  font-variant-numeric: tabular-nums;
  color: var(--fp-deep);
}

/* ═══════════════ CONTACT — warm deep, not cold navy ═══════════════ */
.fp-contact {
  background: var(--fp-deep);
  color: var(--fp-cream);
}
.fp-contact::before {
  background: radial-gradient(ellipse 900px 600px at 15% 0%, rgba(184, 117, 76, .22), transparent 60%);
}
.fp-contact__title {
  font-family: var(--fp-font-display);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1;
}
.fp-contact__intro .fp-chapter__num { color: var(--fp-bronze-2); }
.fp-contact__intro .fp-chapter__num::before { color: rgba(247,242,234,.55); }
.fp-contact__form {
  background: rgba(247,242,234,.04);
  border-color: rgba(247,242,234,.1);
  border-radius: 4px;
}
.fp-form__row input,
.fp-form__row select,
.fp-form__row textarea {
  border-radius: 2px;
  font-family: var(--fp-font-body);
}
.fp-form__row input:focus,
.fp-form__row textarea:focus {
  border-color: var(--fp-bronze-2);
  background: rgba(247,242,234,.14);
}
.fp-btn--full {
  background: var(--fp-bronze-2);
  color: #fff;
  border-radius: 2px;
  font-family: var(--fp-font-display);
  letter-spacing: .02em;
}
.fp-btn--full:hover { background: var(--fp-bronze); transform: translateY(-1px); }

/* ═══════════════ MASHRABIYA DIVIDER — between sections ═══════════════ */
.fp-chapter + .fp-chapter::before,
.fp-stats + .fp-chapter::before {
  content: "";
  display: block;
  height: 40px;
  max-width: 200px;
  margin: 0 auto 60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'><g fill='none' stroke='%238B5E3C' stroke-width='1' stroke-opacity='.4'><circle cx='100' cy='20' r='8'/><path d='M80 20 L92 20 M108 20 L120 20 M60 20 L76 20 M124 20 L140 20 M40 20 L56 20 M144 20 L160 20'/><path d='M92 12 L108 28 M92 28 L108 12'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200px 40px;
}

/* ═══════════════ v2 project page refinements ═══════════════ */
body:has(.v2-hero) {
  --v2-ink: #1A1812;
  --v2-cream: #F7F2EA;
  --v2-bronze: #8B5E3C;
}
.v2-hero-title {
  font-family: var(--fp-font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
  line-height: .98 !important;
}
.v2-section-title {
  font-family: var(--fp-font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}
.v2-eyebrow {
  font-family: var(--fp-font-display) !important;
  letter-spacing: .22em !important;
  font-size: 11px !important;
  color: var(--v2-bronze) !important;
}
.v2-fact-value {
  font-family: var(--fp-font-display) !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums !important;
}
.v2-hero-price-value {
  font-family: var(--fp-font-display) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
}

/* Units list — warm */
.v2-unit-row__type {
  color: var(--v2-bronze, #8B5E3C) !important;
  background: rgba(139, 94, 60, .08) !important;
  font-family: var(--fp-font-display) !important;
  letter-spacing: .18em !important;
}
.v2-unit-row__price strong { font-family: var(--fp-font-display) !important; font-weight: 600 !important; }
.v2-unit-row::before { background: linear-gradient(180deg, #8B5E3C, #B8754C) !important; }
.v2-unit-row:hover { border-color: #B8754C !important; }
.v2-unit-row__arrow { color: #8B5E3C !important; }
.v2-unit-row:hover .v2-unit-row__arrow { background: #8B5E3C !important; }

/* ═══════════════ Section-transition reveal ═══════════════ */
@media (prefers-reduced-motion: no-preference) {
  .fp-chapter, .fp-proj, .fp-stat, .fp-unit, .fp-type {
    opacity: 0;
    transform: translateY(28px);
    animation: fp-reveal-in 1s cubic-bezier(.2,.8,.3,1) forwards;
    animation-delay: .1s;
  }
  .fp-stats__grid .fp-stat:nth-child(1) { animation-delay: .05s; }
  .fp-stats__grid .fp-stat:nth-child(2) { animation-delay: .15s; }
  .fp-stats__grid .fp-stat:nth-child(3) { animation-delay: .25s; }
  .fp-stats__grid .fp-stat:nth-child(4) { animation-delay: .35s; }
  .fp-proj:nth-child(1) { animation-delay: .1s; }
  .fp-proj:nth-child(2) { animation-delay: .2s; }
  .fp-proj:nth-child(3) { animation-delay: .3s; }
  .fp-proj:nth-child(4) { animation-delay: .4s; }
  .fp-proj:nth-child(5) { animation-delay: .5s; }
  .fp-proj:nth-child(6) { animation-delay: .6s; }
}
@keyframes fp-reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ Custom scrollbar ═══════════════ */
body:has(.fp-main)::-webkit-scrollbar { width: 10px; }
body:has(.fp-main)::-webkit-scrollbar-track { background: var(--fp-cream); }
body:has(.fp-main)::-webkit-scrollbar-thumb { background: var(--fp-bronze); border: 2px solid var(--fp-cream); border-radius: 0; }
body:has(.fp-main)::-webkit-scrollbar-thumb:hover { background: var(--fp-deep); }

/* About rich section additions */
.fp-about-portrait { margin-top: 24px; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; border: 1px solid var(--fp-line-warm); }
.fp-about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.fp-about-portrait:hover img { transform: scale(1.04); }
.fp-about-story { font-family: var(--fp-font-body, 'Tajawal', sans-serif); font-size: 17px; line-height: 1.85; color: var(--fp-ink-soft, #3A352E); max-width: 70ch; }
.fp-about-story p { margin: 0 0 16px; }
.fp-about-story p:first-of-type::first-letter {
  font-family: var(--fp-font-latin, 'Cormorant Infant', serif);
  font-style: italic; color: var(--fp-bronze, #8B5E3C);
  font-size: 3em; font-weight: 600;
  float: inline-start; line-height: 1; margin-inline-end: 10px; margin-block-start: 8px;
}
.fp-about-story strong { color: var(--fp-ink, #1A1812); font-weight: 700; }
.fp-about-locs-wrap { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--fp-line-warm); }
.fp-about-locs-title { font-family: var(--fp-font-display, sans-serif); font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--fp-ink-soft, #3A352E); font-weight: 600; margin-bottom: 14px; display: block; }
.fp-about-loc { text-decoration: none; padding: 8px 16px; background: rgba(26,24,18,.05); color: var(--fp-ink, #1A1812); border-radius: 2px; font-family: var(--fp-font-display, sans-serif); font-weight: 500; font-size: 13px; letter-spacing: .02em; transition: all .2s; display: inline-block; }
.fp-about-loc:hover { background: var(--fp-bronze-2, #B8754C); color: #fff; transform: translateY(-1px); }

/* ══════════════ MARKET STATS (DB-driven) ══════════════ */
.fp-market { background: var(--fp-cream, #F7F2EA); padding-block: clamp(70px, 8vw, 110px); }
.fp-market-wrap {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.fp-market-card {
  background: #fff;
  border: 1px solid rgba(26,24,18,.08);
  border-radius: 4px;
  padding: clamp(22px, 3vw, 36px);
}
.fp-market-card__title {
  font-family: var(--fp-font-display, 'Reem Kufi', sans-serif);
  font-weight: 600;
  color: var(--fp-ink, #1A1812);
  font-size: clamp(18px, 2vw, 22px);
  margin: 0 0 22px;
  letter-spacing: -.01em;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26,24,18,.08);
}
.fp-market-bars { display: flex; flex-direction: column; gap: 14px; }
.fp-market-bar {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.fp-market-bar__label {
  font-size: 13px;
  color: var(--fp-ink-soft, #3A352E);
  font-weight: 600;
  text-align: start;
}
.fp-market-bar__track {
  height: 10px;
  background: rgba(26,24,18,.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.fp-market-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fp-bronze, #8B5E3C), var(--fp-bronze-2, #B8754C));
  border-radius: 2px;
  transition: width 1s cubic-bezier(.2,.8,.3,1);
}
.fp-market-bar__cnt {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--fp-deep, #2C1810);
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.fp-market-locs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.fp-market-loc {
  padding: 16px 14px;
  background: var(--fp-cream, #F7F2EA);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.fp-market-loc:hover { border-color: var(--fp-bronze-2, #B8754C); }
.fp-market-loc__n {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--fp-bronze, #8B5E3C);
  line-height: 1;
  letter-spacing: -.02em;
}
.fp-market-loc__name {
  font-size: 12.5px;
  color: var(--fp-ink-soft, #3A352E);
  font-weight: 600;
  letter-spacing: .01em;
}
@media (max-width: 820px) {
  .fp-market-wrap { grid-template-columns: 1fr; gap: 16px; }
  .fp-market-bar { grid-template-columns: 100px 1fr 36px; gap: 8px; }
  .fp-market-bar__label { font-size: 12px; }
}

/* Unit types cards — refined */
.fp-type {
  padding: 24px 20px;
  align-items: center;
  text-align: center;
}
.fp-type__num {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 6px;
}
.fp-type__label { text-align: center; }
/* ══════════════════════════════════════════════════════════════
   UNIT v2 styles + section label cleanup
   ══════════════════════════════════════════════════════════════ */

/* === UNIT PAGE (uv2-*) === */
.uv2-main {
  background: var(--fp-paper, #FBF7EE);
  color: var(--fp-ink, #1A1812);
  font-family: var(--fp-font-body, 'Tajawal', sans-serif);
}
.uv2-main *, .uv2-main *::before, .uv2-main *::after { box-sizing: border-box; }

.uv2-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px);
  background: var(--fp-deep, #2C1810);
}
.uv2-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: uv2-kenburns 18s ease-out infinite alternate;
  filter: brightness(.78) contrast(1.05);
}
@keyframes uv2-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.uv2-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,24,18,.3) 0%, rgba(26,24,18,.6) 55%, rgba(26,24,18,.95) 100%);
}
.uv2-hero__content {
  position: relative; z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}
.uv2-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
  letter-spacing: .02em;
  font-weight: 500;
}
.uv2-breadcrumb a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
}
.uv2-breadcrumb a:hover { color: var(--fp-bronze-2, #B8754C); }
.uv2-breadcrumb span { opacity: .5; }

.uv2-hero__title {
  font-family: var(--fp-font-display, 'Reem Kufi', sans-serif);
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  max-width: 22ch;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.uv2-hero__pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px;
}
.uv2-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(247,242,234,.1);
  border: 1px solid rgba(247,242,234,.18);
  border-radius: 2px;
  color: #fff;
  font-family: var(--fp-font-display, sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.uv2-pill--status {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.4);
  color: #bbf7d0;
}
.uv2-price {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 28px;
  background: linear-gradient(135deg, var(--fp-bronze, #8B5E3C), var(--fp-bronze-2, #B8754C));
  border-radius: 4px;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(139,94,60,.48);
}
.uv2-price__lbl {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.uv2-price__val {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.uv2-price__val span {
  font-size: 14px;
  font-weight: 500;
  opacity: .85;
  margin-inline-start: 6px;
}
.uv2-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.uv2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 2px;
  font-family: var(--fp-font-display, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.uv2-btn--dark {
  background: #fff;
  color: var(--fp-deep, #2C1810);
}
.uv2-btn--dark:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.uv2-btn--wa {
  background: #25D366;
  color: #fff;
}
.uv2-btn--wa:hover { background: #1EBE5A; transform: translateY(-2px); }
.uv2-btn--primary {
  background: var(--fp-bronze, #8B5E3C);
  color: #fff;
  padding: 14px 32px;
  justify-content: center;
}
.uv2-btn--primary:hover { background: var(--fp-deep, #2C1810); }

/* FACTS */
.uv2-facts {
  background: var(--fp-cream, #F7F2EA);
  padding: clamp(40px, 6vw, 70px) 0;
  border-bottom: 1px solid rgba(26,24,18,.06);
}
.uv2-facts__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}
.uv2-fact {
  padding: 24px clamp(16px, 2vw, 32px);
  border-inline-end: 1px solid rgba(26,24,18,.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.uv2-fact:last-child { border-inline-end: 0; }
.uv2-fact__icon { font-size: 24px; margin-bottom: 4px; }
.uv2-fact__val {
  font-family: var(--fp-font-display, sans-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--fp-deep, #2C1810);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.uv2-fact__val small { font-size: .45em; margin-inline-start: 6px; opacity: .65; font-weight: 500; }
.uv2-fact__val--text { font-size: clamp(20px, 2.5vw, 28px); }
.uv2-fact__lbl {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--fp-ink-soft, #3A352E);
  font-weight: 500;
  margin-top: 8px;
}

/* SECTIONS */
.uv2-section-title {
  font-family: var(--fp-font-display, sans-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--fp-ink, #1A1812);
  letter-spacing: -.02em;
  margin: 0 0 28px;
}
.uv2-desc, .uv2-gallery, .uv2-similar {
  padding: clamp(50px, 7vw, 90px) 0;
}
.uv2-desc__inner, .uv2-gallery__inner, .uv2-similar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.uv2-desc__body {
  font-family: var(--fp-font-body, sans-serif);
  font-size: 17px;
  line-height: 1.85;
  color: var(--fp-ink-soft, #3A352E);
}
.uv2-desc__body p:first-of-type::first-letter {
  font-family: var(--fp-font-latin, serif);
  font-style: italic;
  color: var(--fp-bronze, #8B5E3C);
  font-size: 3em;
  font-weight: 600;
  float: inline-start;
  margin-inline-end: 10px;
  margin-block-start: 8px;
  line-height: 1;
}

/* GALLERY */
.uv2-gallery {
  background: var(--fp-cream, #F7F2EA);
}
.uv2-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.uv2-gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  position: relative;
}
.uv2-gallery__item--hero {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 16/10;
}
.uv2-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.uv2-gallery__item:hover img { transform: scale(1.05); }

/* PROJECT LINK CARD */
.uv2-project-link {
  padding: clamp(50px, 6vw, 80px) clamp(20px, 5vw, 64px);
}
.uv2-project-card {
  display: block;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 21/9;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}
.uv2-project-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s;
}
.uv2-project-card:hover .uv2-project-card__img { transform: scale(1.05); }
.uv2-project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,24,18,.85) 0%, rgba(26,24,18,.45) 70%, rgba(26,24,18,.2) 100%);
}
.uv2-project-card__body {
  position: relative; z-index: 2;
  padding: clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: 600px;
}
.uv2-project-card__eyebrow {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fp-bronze-2, #B8754C);
  font-weight: 600;
  margin-bottom: 12px;
}
.uv2-project-card__title {
  font-family: var(--fp-font-display, sans-serif);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.uv2-project-card__more {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
}

/* SIMILAR UNITS */
.uv2-similar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.uv2-similar__card {
  background: #fff;
  border: 1px solid rgba(26,24,18,.06);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.uv2-similar__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(26,24,18,.08);
  border-color: var(--fp-bronze-2, #B8754C);
}
.uv2-similar__img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--fp-deep, #2C1810);
}
.uv2-similar__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.uv2-similar__type {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fp-bronze, #8B5E3C);
  font-weight: 600;
}
.uv2-similar__title {
  font-family: var(--fp-font-display, sans-serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--fp-ink, #1A1812);
  line-height: 1.35;
}
.uv2-similar__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(26,24,18,.08);
  font-size: 13px;
  color: var(--fp-ink-soft, #3A352E);
}
.uv2-similar__meta strong {
  font-family: var(--fp-font-display, sans-serif);
  color: var(--fp-deep, #2C1810);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* CONTACT */
.uv2-contact {
  background: linear-gradient(160deg, var(--fp-deep, #2C1810), var(--fp-ink, #1A1812));
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0;
}
.uv2-contact__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.uv2-contact__text h2 {
  font-family: var(--fp-font-display, sans-serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: #fff;
}
.uv2-contact__text p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.75);
  max-width: 40ch;
}
.uv2-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(247,242,234,.05);
  border: 1px solid rgba(247,242,234,.1);
  padding: 28px;
  border-radius: 4px;
}
.uv2-form__row input,
.uv2-form__row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  background: rgba(247,242,234,.08);
  border: 1px solid rgba(247,242,234,.15);
  border-radius: 2px;
  color: #fff;
  outline: none;
  transition: border-color .2s;
}
.uv2-form__row input::placeholder,
.uv2-form__row textarea::placeholder { color: rgba(255,255,255,.4); }
.uv2-form__row input:focus,
.uv2-form__row textarea:focus { border-color: var(--fp-bronze-2, #B8754C); }
.uv2-form__row textarea { resize: vertical; min-height: 90px; }
.uv2-form__row--full { grid-column: 1/-1; }
.uv2-form__submit { grid-column: 1/-1; background: var(--fp-bronze-2, #B8754C); }
.uv2-form__submit:hover { background: var(--fp-bronze, #8B5E3C); }
.uv2-form__msg.success { grid-column: 1/-1; padding: 14px; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.4); border-radius: 2px; color: #bbf7d0; font-size: 14px; }
.uv2-form__msg.error { grid-column: 1/-1; padding: 14px; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); border-radius: 2px; color: #fecaca; font-size: 14px; }

@media (max-width: 820px) {
  .uv2-contact__inner { grid-template-columns: 1fr; }
  .uv2-form { grid-template-columns: 1fr; }
  .uv2-facts__grid { grid-template-columns: repeat(2, 1fr); }
  .uv2-fact:nth-child(2) { border-inline-end: 0; }
  .uv2-fact:nth-child(1), .uv2-fact:nth-child(2) { border-bottom: 1px solid rgba(26,24,18,.08); }
  .uv2-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .uv2-gallery__item--hero { grid-column: span 2; aspect-ratio: 16/10; }
}

/* ══════════════ CLEANUP: remove Chapter labels visually ══════════════ */
/* Make the chapter number small + minimal */
.fp-chapter__num {
  font-family: var(--fp-font-display, 'Reem Kufi', sans-serif) !important;
  font-style: normal !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .25em !important;
  color: var(--fp-bronze, #8B5E3C) !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin-bottom: 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(139,94,60,.3) !important;
  display: inline-block !important;
}
.fp-chapter__num::before {
  content: none !important;
}
.fp-chapter__label {
  font-family: var(--fp-font-display, 'Reem Kufi', sans-serif) !important;
  font-weight: 600 !important;
  font-size: clamp(34px, 5vw, 60px) !important;
  letter-spacing: -.025em !important;
  line-height: 1 !important;
  color: var(--fp-ink, #1A1812) !important;
  margin: 0 !important;
}

/* ══════════════ MOBILE MENU FIX ══════════════ */
@media (max-width: 768px) {
  /* JS uses #site-navigation.active — make that work */
  #site-navigation .menu {
    display: none;
  }
  #site-navigation.active .menu,
  .main-navigation.active .menu,
  .main-navigation .menu.toggled {
    display: flex !important;
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #1A1812 0%, #2C1810 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 100px 24px 32px;
    z-index: 9999;
    overflow-y: auto;
    gap: 6px;
    animation: menuFadeIn .35s cubic-bezier(.2,.8,.3,1);
  }
  #site-navigation.active .menu li,
  .main-navigation.active .menu li {
    opacity: 0;
    transform: translateY(16px);
    animation: menuItemIn .45s cubic-bezier(.2,.8,.3,1) forwards;
  }
  #site-navigation.active .menu li:nth-child(1) { animation-delay: .08s; }
  #site-navigation.active .menu li:nth-child(2) { animation-delay: .14s; }
  #site-navigation.active .menu li:nth-child(3) { animation-delay: .2s; }
  #site-navigation.active .menu li:nth-child(4) { animation-delay: .26s; }
  #site-navigation.active .menu li:nth-child(5) { animation-delay: .32s; }
  #site-navigation.active .menu li:nth-child(6) { animation-delay: .38s; }
  #site-navigation.active .menu li:nth-child(7) { animation-delay: .44s; }
  #site-navigation.active .menu li:nth-child(8) { animation-delay: .5s; }

  #site-navigation.active .menu li a,
  .main-navigation.active .menu li a {
    color: #fff !important;
    font-family: 'Reem Kufi', 'Tajawal', sans-serif !important;
    font-size: 22px;
    padding: 14px 20px !important;
    border-radius: 2px !important;
    border: 1px solid rgba(247,242,234,.08);
    background: rgba(247,242,234,.03);
    transition: all .2s;
  }
  #site-navigation.active .menu li a:hover,
  #site-navigation.active .menu li a:focus {
    background: rgba(184,117,76,.2) !important;
    border-color: #B8754C !important;
    color: #B8754C !important;
  }

  /* Body scroll lock when menu open */
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(26,24,18,.6);
    z-index: 9998;
    animation: fadeIn .25s;
  }

  @keyframes menuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes menuItemIn {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* PROJECT STATS (DB-driven) */
.v2-stats { background: #F7F2EA; padding: 80px 0; border-top: 1px solid rgba(26,24,18,.06); position: relative; overflow: hidden; }
.v2-stats .container { position: relative; z-index: 1; }
.v2-stats-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; max-width: 1200px; margin: 32px auto 0; }
.v2-stats-chart-card, .v2-stats-summary { background: #fff; border: 1px solid rgba(26,24,18,.08); border-radius: 4px; padding: 32px; }
.v2-stats-card-title { font-family: 'Reem Kufi', sans-serif; font-size: 18px; font-weight: 600; color: #1A1812; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(26,24,18,.08); }
.v2-stats-bars { display: flex; flex-direction: column; gap: 18px; }
.v2-stat-bar { display: flex; flex-direction: column; gap: 6px; }
.v2-stat-bar__head { display: flex; justify-content: space-between; align-items: baseline; }
.v2-stat-bar__label { font-family: 'Reem Kufi', sans-serif; font-size: 14.5px; font-weight: 600; color: #1A1812; }
.v2-stat-bar__cnt { font-family: 'Reem Kufi', sans-serif; font-size: 13px; color: #3A352E; font-weight: 500; }
.v2-stat-bar__track { height: 10px; background: rgba(26,24,18,.06); border-radius: 2px; overflow: hidden; }
.v2-stat-bar__fill { display: block; height: 100%; border-radius: 2px; transition: width 1.2s cubic-bezier(.2,.8,.3,1); }
.v2-stat-bar__foot { display: flex; justify-content: space-between; font-size: 11.5px; color: #3A352E; }
.v2-stat-bar__foot strong { color: #2C1810; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-stats-summary { display: flex; flex-direction: column; gap: 16px; }
.v2-stats-mini { padding: 18px 20px; background: #F7F2EA; border-radius: 4px; display: flex; flex-direction: column; gap: 4px; border-inline-start: 3px solid #8B5E3C; }
.v2-stats-mini--accent { background: linear-gradient(135deg, #8B5E3C, #B8754C); border: 0; }
.v2-stats-mini--accent .v2-stats-mini__n, .v2-stats-mini--accent .v2-stats-mini__l { color: #fff; }
.v2-stats-mini__n { font-family: 'Reem Kufi', sans-serif; font-size: 30px; font-weight: 700; color: #2C1810; line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.v2-stats-mini__n small { font-size: .5em; margin-inline-start: 4px; opacity: .75; font-weight: 500; }
.v2-stats-mini__l { font-family: 'Reem Kufi', sans-serif; font-size: 12px; color: #3A352E; font-weight: 600; letter-spacing: .05em; margin-top: 6px; }
@media (max-width: 820px) { .v2-stats-grid { grid-template-columns: 1fr; } }
/* ══════════════════════════════════════════════════════════════
   FRONT PAGE v4 EXTRAS — real-estate showroom additions
   ══════════════════════════════════════════════════════════════ */

/* Quick filter bar under hero */
.fp-filters {
  background: var(--fp-deep, #2C1810);
  padding: 24px 0;
  position: relative;
  z-index: 5;
  border-block: 1px solid rgba(247,242,234,.1);
}
.fp-filters__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.fp-filter-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.fp-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-filter-group label {
  font-family: 'Reem Kufi', 'Tajawal', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,242,234,.55);
  font-weight: 600;
}
.fp-filter-group select {
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  background: rgba(247,242,234,.06);
  border: 1px solid rgba(247,242,234,.14);
  border-radius: 2px;
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.fp-filter-group select:hover,
.fp-filter-group select:focus {
  border-color: var(--fp-bronze-2, #B8754C);
  background: rgba(247,242,234,.1);
}
.fp-filter-group select option { background: var(--fp-deep, #2C1810); color: #fff; }
.fp-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: 'Reem Kufi', sans-serif;
  font-size: 15px;
  font-weight: 700;
  background: var(--fp-bronze-2, #B8754C);
  color: #fff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.fp-filter-submit:hover { background: var(--fp-bronze, #8B5E3C); transform: translateY(-1px); }

@media (max-width: 820px) {
  .fp-filter-form { grid-template-columns: 1fr 1fr; }
  .fp-filter-submit { grid-column: 1/-1; padding: 13px; }
}
@media (max-width: 500px) {
  .fp-filter-form { grid-template-columns: 1fr; }
}

/* Section layout (replaces chapter pattern) */
.fp-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px);
}
.fp-section--tight { padding-block: clamp(40px, 5vw, 70px); }
.fp-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 50px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(26,24,18,.08);
}
.fp-eyebrow {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 11.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--fp-bronze, #8B5E3C);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}
.fp-section-title {
  font-family: 'Reem Kufi', 'Tajawal', sans-serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 600;
  color: var(--fp-ink, #1A1812);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.fp-section__more {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-bronze, #8B5E3C);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--fp-bronze, #8B5E3C);
  border-radius: 2px;
  transition: all .2s;
  white-space: nowrap;
}
.fp-section__more:hover {
  background: var(--fp-bronze, #8B5E3C);
  color: #fff;
}

/* Trust strip */
.fp-trust {
  background: var(--fp-cream, #F7F2EA);
  padding: clamp(50px, 6vw, 80px) clamp(20px, 5vw, 64px);
  border-block: 1px solid rgba(26,24,18,.08);
}
.fp-trust__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}
.fp-trust__item {
  padding: 20px clamp(18px, 3vw, 40px);
  border-inline-end: 1px solid rgba(26,24,18,.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: start;
}
.fp-trust__item:last-child { border-inline-end: 0; }
.fp-trust__n {
  font-family: 'Reem Kufi', sans-serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 600;
  color: var(--fp-deep, #2C1810);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.fp-trust__l {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--fp-ink-soft, #3A352E);
  font-weight: 600;
}

/* Projects grid — tighter */
.fp-projects-section .fp-projects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.fp-projects-section .fp-proj {
  grid-column: span 2; grid-row: span 2;
}
.fp-projects-section .fp-proj--hero { grid-column: span 4; grid-row: span 3; }
.fp-projects-section .fp-proj--tall { grid-row: span 3; }
@media (max-width: 820px) {
  .fp-projects-section .fp-projects { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .fp-projects-section .fp-proj,
  .fp-projects-section .fp-proj--hero,
  .fp-projects-section .fp-proj--tall { grid-column: 1/-1; grid-row: span 1; }
}

/* Types + Units grid */
.fp-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.fp-units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* About v4 — compact side-by-side */
.fp-about-v4 {
  background: var(--fp-cream, #F7F2EA);
  padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 64px);
  max-width: none;
  margin: 0;
}
.fp-about-v4__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.fp-about-v4__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}
.fp-about-v4__image img { width: 100%; height: 100%; object-fit: cover; }
.fp-about-v4__body {
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--fp-ink-soft, #3A352E);
  margin-top: 18px;
}
.fp-about-v4__body p { margin: 0 0 12px; }
.fp-about-v4__body strong { color: var(--fp-ink, #1A1812); }
.fp-about-v4__locs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.fp-about-v4__loc {
  padding: 8px 16px;
  background: #fff;
  color: var(--fp-ink, #1A1812);
  border: 1px solid rgba(26,24,18,.08);
  border-radius: 2px;
  font-family: 'Reem Kufi', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.fp-about-v4__loc:hover {
  background: var(--fp-bronze-2, #B8754C);
  color: #fff;
  border-color: transparent;
}
@media (max-width: 820px) {
  .fp-about-v4__grid { grid-template-columns: 1fr; }
  .fp-about-v4__image { max-width: 400px; }
}

/* Contact list polish */
.fp-contact__list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.fp-contact__list li {
  font-family: 'Reem Kufi', sans-serif;
  font-size: 14.5px;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.fp-contact__list li::first-letter { color: var(--fp-bronze-2, #B8754C); font-weight: 800; font-size: 1.2em; }

/* v4 hero refinements — accent pills */
.fp-hero--v4 .fp-hero__pill--accent {
  background: linear-gradient(135deg, var(--fp-bronze, #8B5E3C), var(--fp-bronze-2, #B8754C));
  box-shadow: 0 12px 32px rgba(139, 94, 60, .48);
  font-size: 14.5px;
  padding: 11px 20px;
}
.fp-hero--v4 .fp-btn--primary {
  background: #fff;
  color: var(--fp-deep, #2C1810);
  padding: 15px 30px;
  font-size: 15px;
}
/* ══════════════════════════════════════════════════════════════
   PALETTE OVERRIDE — Real Estate Navy/Blue/White
   Removes all warm bronze/sand/cream tones site-wide.
   Appended last → wins via specificity + source order.
   ══════════════════════════════════════════════════════════════ */

.fp-main, body:has(.v2-hero), body:has(.uv2-main), body {
  --fp-ink:         #0F1B2C;
  --fp-ink-soft:    #475569;
  --fp-mute:        #94A3B8;
  --fp-paper:       #FFFFFF;
  --fp-cream:       #F8F9FB;
  --fp-cream-2:     #EFF2F6;
  --fp-sand:        #F1F5F9;
  --fp-bronze:      #0277BD;
  --fp-bronze-2:    #0288D1;
  --fp-deep:        #0A1929;
  --fp-navy:        #0A1929;
  --fp-navy-2:      #0F1B2C;
  --fp-accent:      #0277BD;
  --fp-accent-2:    #03A9F4;
  --fp-accent-soft: #E3F2FD;
  --fp-line-warm:   rgba(15, 27, 44, 0.08);
  --fp-line-strong: rgba(15, 27, 44, 0.12);
  --v2-ink:         #0F1B2C;
  --v2-cream:       #F8F9FB;
  --v2-bronze:      #0277BD;
}

/* ═══ HERO — deep navy, not warm brown ═══ */
.fp-hero, .uv2-hero {
  background: #0A1929 !important;
}
.fp-hero__gradient {
  background:
    linear-gradient(180deg, transparent 0%, rgba(10,25,41,.35) 55%, rgba(10,25,41,.92) 100%),
    linear-gradient(90deg, rgba(10,25,41,.6) 0%, transparent 55%) !important;
}
.fp-hero__grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .04 0 0 0 0 .08 0 0 0 0 .12 0 0 0 .45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") !important;
}
.fp-hero__rule { background: #0288D1 !important; }
.fp-hero__pill--accent {
  background: linear-gradient(135deg, #0277BD, #0288D1) !important;
  box-shadow: 0 10px 28px rgba(2,119,189,.42) !important;
}
.fp-hero__eyebrow-text { color: #fff !important; }

.fp-btn--primary {
  background: #fff !important;
  color: #0A1929 !important;
  border-radius: 4px !important;
}
.fp-btn--primary:hover { color: #0277BD !important; }

/* Marquee */
.fp-marquee { background: #0A1929 !important; }
.fp-marquee__item::before { background: #0288D1 !important; }
.fp-marquee__dot { color: #0288D1 !important; }

/* Filter bar */
.fp-filters { background: #0A1929 !important; }
.fp-filter-group select:hover,
.fp-filter-group select:focus {
  border-color: #0288D1 !important;
}
.fp-filter-submit {
  background: #0277BD !important;
}
.fp-filter-submit:hover { background: #01579B !important; }

/* Section head + eyebrow */
.fp-eyebrow, .v2-eyebrow,
.fp-chapter__num, .uv2-similar__type,
.fp-unit__type, .fp-proj__eyebrow {
  color: #0277BD !important;
}
.fp-chapter__num {
  border-bottom-color: rgba(2,119,189,.3) !important;
}
.fp-section-title, .fp-chapter__label, .v2-section-title,
.uv2-hero__title, .uv2-section-title,
.fp-contact__title, .fp-about-v4 .fp-section-title {
  color: #0F1B2C !important;
}
.fp-section__more {
  color: #0277BD !important;
  border-color: #0277BD !important;
}
.fp-section__more:hover {
  background: #0277BD !important;
  color: #fff !important;
}

/* Trust strip */
.fp-trust {
  background: #F8F9FB !important;
}
.fp-trust__n { color: #0A1929 !important; }

/* Stats + stats-art */
.fp-stats { background: #F8F9FB !important; }
.fp-stat__num { color: #0A1929 !important; }
.fp-stat__label { color: #475569 !important; }
.fp-stats::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%230F1B2C' stroke-width='.5' stroke-opacity='.06'><circle cx='40' cy='40' r='20'/><path d='M20 20 L60 60 M20 60 L60 20'/></g></svg>") !important;
}

/* About v4 */
.fp-about-v4 { background: #F8F9FB !important; }
.fp-about-v4__loc {
  background: #fff !important;
  color: #0F1B2C !important;
  border-color: rgba(15,27,44,.08) !important;
}
.fp-about-v4__loc:hover {
  background: #0277BD !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* Drop cap — blue not bronze */
.fp-chapter__lead::first-letter,
.fp-about-story p:first-of-type::first-letter,
.uv2-desc__body p:first-of-type::first-letter {
  color: #0277BD !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic !important;
}

/* Project cards */
.fp-proj {
  background: #0A1929 !important;
  border-radius: 6px !important;
}
.fp-proj__veil {
  background: linear-gradient(180deg, rgba(10,25,41,.0) 20%, rgba(10,25,41,.5) 50%, rgba(10,25,41,.95) 100%) !important;
}
.fp-proj__eyebrow { color: #4FC3F7 !important; letter-spacing: .18em !important; }
.fp-proj__foot { border-top-color: rgba(255,255,255,.18) !important; }

/* Unit cards */
.fp-type, .fp-unit {
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 6px !important;
}
.fp-type:hover {
  border-color: #0277BD !important;
  box-shadow: 0 14px 32px rgba(2,119,189,.12) !important;
}
.fp-type__num { color: #0277BD !important; }
.fp-unit:hover {
  border-color: #0277BD !important;
  box-shadow: 0 14px 36px rgba(2,119,189,.14) !important;
}
.fp-unit__type { color: #0277BD !important; }
.fp-unit__title { color: #0F1B2C !important; }
.fp-unit__price strong { color: #0A1929 !important; }
.fp-unit__specs { border-top-color: rgba(15,27,44,.08) !important; }

/* Contact — navy */
.fp-contact, .uv2-contact {
  background: linear-gradient(160deg, #0A1929 0%, #0F1B2C 100%) !important;
}
.fp-contact::before {
  background: radial-gradient(ellipse 900px 600px at 15% 0%, rgba(2,119,189,.28), transparent 60%) !important;
}
.fp-btn--full, .uv2-form__submit {
  background: #0277BD !important;
  color: #fff !important;
}
.fp-btn--full:hover, .uv2-form__submit:hover { background: #01579B !important; }

.fp-form__row input:focus,
.fp-form__row select:focus,
.fp-form__row textarea:focus,
.uv2-form__row input:focus,
.uv2-form__row textarea:focus {
  border-color: #0288D1 !important;
}

/* Market chart bars */
.fp-market { background: #F8F9FB !important; }
.fp-market-bar__fill {
  background: linear-gradient(90deg, #0277BD, #0288D1) !important;
}
.fp-market-loc__n { color: #0277BD !important; }
.fp-market-loc:hover { border-color: #0288D1 !important; }

/* Stats section in project page */
.v2-stats { background: #F8F9FB !important; }
.v2-stats::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><g fill='none' stroke='%230F1B2C' stroke-width='.5' stroke-opacity='.06'><path d='M40 0 L80 40 L40 80 L0 40 Z'/><path d='M20 20 L60 60 M20 60 L60 20'/></g></svg>") !important;
}
.v2-stats-mini { border-inline-start-color: #0277BD !important; background: #F1F5F9 !important; }
.v2-stats-mini--accent {
  background: linear-gradient(135deg, #0277BD, #0288D1) !important;
}

/* Units list hover */
.v2-unit-row__type {
  color: #0277BD !important;
  background: #E3F2FD !important;
}
.v2-unit-row::before { background: linear-gradient(180deg, #0277BD, #0288D1) !important; }
.v2-unit-row:hover { border-color: #0288D1 !important; }
.v2-unit-row__arrow { color: #0277BD !important; background: #F1F5F9 !important; }
.v2-unit-row:hover .v2-unit-row__arrow { background: #0277BD !important; color: #fff !important; }

/* Unit v2 hero — dark navy */
.uv2-hero { background: #0A1929 !important; }
.uv2-price {
  background: linear-gradient(135deg, #0277BD, #0288D1) !important;
  box-shadow: 0 12px 32px rgba(2,119,189,.45) !important;
}
.uv2-pill--status {
  background: rgba(76,175,80,.22) !important;
  border-color: rgba(76,175,80,.4) !important;
  color: #C8E6C9 !important;
}
.uv2-btn--dark { color: #0A1929 !important; }
.uv2-btn--primary { background: #0277BD !important; }
.uv2-btn--primary:hover { background: #01579B !important; }

/* Facts cards */
.uv2-facts { background: #F8F9FB !important; }
.uv2-fact__val { color: #0A1929 !important; }
.uv2-fact__lbl { color: #475569 !important; }

/* Similar units cards */
.uv2-similar__card { background: #fff !important; border: 1px solid #E5E7EB !important; border-radius: 6px !important; }
.uv2-similar__card:hover { border-color: #0288D1 !important; box-shadow: 0 14px 40px rgba(2,119,189,.12) !important; }
.uv2-similar__type { color: #0277BD !important; }
.uv2-similar__title { color: #0F1B2C !important; }
.uv2-similar__meta strong { color: #0A1929 !important; }

.uv2-project-card__eyebrow { color: #4FC3F7 !important; }
.uv2-gallery { background: #F8F9FB !important; }

/* Body & main bg */
.fp-main { background: #FFFFFF !important; }
.uv2-main { background: #FFFFFF !important; }

/* Custom scrollbar — navy */
body:has(.fp-main)::-webkit-scrollbar-thumb {
  background: #0A1929 !important;
  border: 2px solid #FFFFFF !important;
}
body:has(.fp-main)::-webkit-scrollbar-track { background: #F8F9FB !important; }

/* Remove mashrabiya divider (was Islamic bronze) — replace with subtle line */
.fp-chapter + .fp-chapter::before,
.fp-stats + .fp-chapter::before {
  background-image: none !important;
  height: 1px !important;
  max-width: 120px !important;
  background: #0277BD !important;
  margin-bottom: 40px !important;
}

/* Mobile menu — navy not warm */
@media (max-width: 768px) {
  #site-navigation.active .menu,
  .main-navigation.active .menu {
    background: linear-gradient(160deg, #0A1929 0%, #0F1B2C 100%) !important;
  }
  #site-navigation.active .menu li a:hover,
  #site-navigation.active .menu li a:focus {
    background: rgba(2,119,189,.22) !important;
    border-color: #0288D1 !important;
    color: #4FC3F7 !important;
  }
}

/* Fonts — keep Reem Kufi for display, switch accent from Cormorant (Islamic-feeling) to Playfair Display (classic real-estate) */
.fp-hero__eyebrow-text, .v2-eyebrow, .fp-eyebrow,
.fp-chapter__num, .fp-about-v4__loc, .fp-section__more,
.fp-unit__type, .fp-proj__eyebrow {
  font-family: "Inter", "Reem Kufi", system-ui, sans-serif !important;
  font-weight: 600 !important;
}

/* FORCE WHITE HERO TITLES (project + unit pages) */
.v2-hero .v2-hero-title,
.v2-hero h1,
.v2-hero-content h1,
.v2-hero-content .v2-hero-title,
section.v2-hero h1,
.uv2-hero .uv2-hero__title,
.uv2-hero h1,
.fp-hero .fp-hero__title,
.fp-hero h1 {
  color: #FFFFFF !important;
}
.v2-crumbs, .v2-crumbs a,
.uv2-breadcrumb, .uv2-breadcrumb a {
  color: rgba(255,255,255,.75) !important;
}
.v2-crumbs a:hover, .uv2-breadcrumb a:hover {
  color: #fff !important;
}

/* Project card titles on dark overlay — force WHITE */
.fp-proj .fp-proj__title,
.fp-proj .fp-proj__content .fp-proj__title,
article.fp-proj h3 {
  color: #FFFFFF !important;
}
.fp-proj .fp-proj__eyebrow,
.fp-proj .fp-proj__meta,
.fp-proj .fp-proj__price-lbl { color: rgba(255,255,255,.85) !important; }
.fp-proj .fp-proj__price strong { color: #FFFFFF !important; }

/* ═══════════════ ABOUT SECTION POLISH ═══════════════ */
.fp-about-v4 {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px) !important;
  background: linear-gradient(180deg, #F8F9FB 0%, #FFFFFF 100%) !important;
  border-block: 1px solid #E5E7EB;
}
.fp-about-v4__grid {
  grid-template-columns: 1fr 1.5fr !important;
  gap: clamp(40px, 6vw, 80px) !important;
  align-items: start !important;
}
.fp-about-v4__image {
  aspect-ratio: 4/5 !important;
  border-radius: 6px !important;
  box-shadow: 0 24px 60px rgba(15,27,44,.12), 0 0 0 1px rgba(15,27,44,.04) !important;
  position: relative;
  overflow: hidden;
}
.fp-about-v4__image::after {
  content: ;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(2,119,189,.08) 100%);
  pointer-events: none;
}

/* Text column layout */
.fp-about-v4__text .fp-eyebrow {
  font-size: 11px !important;
  letter-spacing: .3em !important;
  margin-bottom: 12px !important;
}
.fp-about-v4__text .fp-section-title {
  font-size: clamp(32px, 4.5vw, 56px) !important;
  margin-bottom: 22px !important;
  letter-spacing: -.025em !important;
  line-height: 1.05 !important;
}

/* Body — cleaner, readable, with highlighted stats */
.fp-about-v4__body {
  font-family: 'Tajawal', system-ui, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.95 !important;
  color: #334155 !important;
  margin-top: 8px !important;
  max-width: 62ch;
  position: relative;
}
.fp-about-v4__body p {
  margin: 0 0 14px !important;
}
.fp-about-v4__body p:first-child {
  font-size: 18px;
  color: #0F1B2C;
  line-height: 1.75;
  padding-inline-start: 16px;
  border-inline-start: 3px solid #0277BD;
  margin-bottom: 20px;
}
.fp-about-v4__body p:first-child::first-letter {
  color: #0277BD !important;
  font-weight: 700 !important;
  font-size: 1.8em !important;
  float: none !important;
  font-family: 'Tajawal', sans-serif !important;
  font-style: normal !important;
  margin: 0 !important;
}
.fp-about-v4__body strong { color: #0A1929 !important; font-weight: 700 !important; }

/* Locations — premium pills grid */
.fp-about-v4__locs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
  margin-top: 30px !important;
  padding-top: 26px !important;
  border-top: 1px solid #E5E7EB !important;
}
.fp-about-v4__locs::before {
  content: المواقع;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 700;
  flex-basis: 100%;
  margin-bottom: 4px;
}
.fp-about-v4__loc {
  padding: 10px 18px !important;
  background: #fff !important;
  color: #0F1B2C !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 999px !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fp-about-v4__loc::before {
  content: 📍;
  opacity: .5;
  font-size: 11px;
}
.fp-about-v4__loc:hover {
  background: #0A1929 !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,25,41,.18) !important;
}
.fp-about-v4__loc:hover::before { opacity: 1; }

/* Hide text if bio too long — use line-clamp gracefully */
.fp-about-v4__body {
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
