/* ============================================================
   ELITE REAL ESTATE — Master Stylesheet
   ============================================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Noto+Sans+Arabic:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Core palette */
  --navy:        #0F2C4A;
  --gold:        #C9A84C;
  --gold-light:  #E8C56B;
  --gold-dark:   #A07830;

  /* Light theme */
  --bg:          #FAFAF8;
  --bg2:         #F2EFE9;
  --bg-card:     #FFFFFF;
  --txt:         #1A1310;
  --txt2:        #5C5047;
  --txt-muted:   #9A8F84;
  --accent:      #0F2C4A;
  --accent-h:    #1a4268;
  --border:      #E0D8CC;
  --shadow-s:    0 2px 8px rgba(15,44,74,.07);
  --shadow-m:    0 8px 28px rgba(15,44,74,.11);
  --shadow-l:    0 20px 60px rgba(15,44,74,.16);
  --nav-bg:      rgba(250,250,248,.96);
  --overlay:     rgba(15,44,74,.58);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:          #08080F;
  --bg2:         #0E0E18;
  --bg-card:     #12121E;
  --txt:         #F0ECE6;
  --txt2:        #9A9080;
  --txt-muted:   #5C5650;
  --accent:      #C9A84C;
  --accent-h:    #E8C56B;
  --border:      #1E1E2E;
  --shadow-s:    0 2px 8px rgba(0,0,0,.35);
  --shadow-m:    0 8px 28px rgba(0,0,0,.45);
  --shadow-l:    0 20px 60px rgba(0,0,0,.55);
  --nav-bg:      rgba(8,8,15,.96);
  --overlay:     rgba(8,8,15,.7);
}

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

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* RTL base */
[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif; }

img { max-width: 100%; display: block; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.2;
  color: var(--txt);
}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,
[dir="rtl"] h4,[dir="rtl"] h5 {
  font-family: 'Noto Sans Arabic', sans-serif;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem);  font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem);  font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 12px; }
.section-sub {
  color: var(--txt2);
  font-size: 1.05rem;
  max-width: 560px;
}
.section-sub.center { margin-inline: auto; text-align: center; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8       { gap: 8px; }
.gap-16      { gap: 16px; }
.gap-24      { gap: 24px; }
.hidden      { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .btn-primary { color: #0a0808; }
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
[data-theme="dark"] .btn-outline:hover { color: #0a0808; }

.btn-gold {
  background: var(--gold);
  color: #1a1200;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}

.btn-ghost {
  color: var(--txt2);
  padding-inline: 0;
}
.btn-ghost:hover { color: var(--accent); }

.btn-sm { padding: 9px 20px; font-size: .84rem; }
.btn-lg { padding: 16px 38px; font-size: 1rem; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge-sale { background: var(--gold); color: #1a1200; }
.badge-rent { background: var(--navy); color: #fff; }
[data-theme="dark"] .badge-rent { background: #1E3A5F; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  height: 64px;
  box-shadow: var(--shadow-m);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: -.5px;
}
[data-theme="dark"] .nav-logo-icon { background: var(--gold); color: #0a0808; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.nav-logo-text span {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--txt2);
  transition: all var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--txt); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Nav controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--txt2);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn svg { width: 14px; height: 14px; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-l);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  overflow: hidden;
}
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--txt2);
  cursor: pointer;
  transition: all var(--transition);
}
.lang-option:hover { background: var(--bg2); color: var(--txt); }
.lang-option.active { color: var(--accent); font-weight: 500; }
.lang-flag { font-size: 1.1rem; }

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt2);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Book CTA nav button */
.nav-book {
  padding: 9px 22px;
  font-size: .84rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--txt);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--bg-card);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition);
}
[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--txt2);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); background: var(--bg2); }

.mobile-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: var(--accent);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .22;
}
[data-theme="dark"] .page-hero-bg { opacity: .12; }
.page-hero-content {
  position: relative;
  z-index: 1;
  padding-block: 60px 48px;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* ============================================================
   HERO SECTION (index)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-block: 80px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero p {
  color: rgba(255,255,255,.82);
  font-size: 1.12rem;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Search form in hero */
.hero-search {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 600px;
  box-shadow: var(--shadow-l);
}

.hero-search input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  background: transparent;
  font-size: .92rem;
  color: var(--txt);
  outline: none;
  min-width: 0;
}
.hero-search input::placeholder { color: var(--txt-muted); }

.hero-search select {
  padding: 8px 14px;
  border: none;
  background: var(--bg2);
  border-radius: 8px;
  font-size: .86rem;
  color: var(--txt2);
  outline: none;
  cursor: pointer;
}

.hero-search button {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* Hero stats strip */
.hero-stats {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  padding: 20px 28px;
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat:last-child { border-inline-end: none; }
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: .78rem;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   SECTION SPACERS
   ============================================================ */
.section { padding-block: 100px; }
.section-sm { padding-block: 64px; }

/* ============================================================
   SERVICES (AJAX)
   ============================================================ */
.services-section { background: var(--bg2); }

.services-head {
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--accent);
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: .9rem;
  color: var(--txt2);
  line-height: 1.6;
}

.service-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
  transition: gap var(--transition);
}
.service-card:hover .arrow { gap: 10px; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--border) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sk-icon  { width: 52px; height: 52px; border-radius: 12px; }
.sk-title { width: 60%; height: 20px; }
.sk-text  { width: 100%; height: 14px; }
.sk-text2 { width: 80%; height: 14px; }

/* ============================================================
   PROPERTIES GRID
   ============================================================ */
.props-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.prop-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.prop-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-6px);
  border-color: transparent;
}

.prop-img {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
}
.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.prop-card:hover .prop-img img { transform: scale(1.06); }

.prop-badge {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
}

.prop-fav {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.prop-fav:hover { background: #fff; transform: scale(1.1); }

.prop-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prop-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.prop-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--txt);
}

.prop-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--txt-muted);
  margin-bottom: 16px;
}
.prop-location svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.prop-specs {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.prop-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--txt2);
  font-weight: 500;
}
.prop-spec svg { width: 14px; height: 14px; opacity: .65; }

.prop-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.prop-footer .btn { flex: 1; justify-content: center; padding-block: 10px; }

/* ============================================================
   ABOUT PREVIEW
   ============================================================ */
.about-section { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
[dir="rtl"] .about-grid { direction: rtl; }

.about-img-wrap {
  position: relative;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-img-accent {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 55%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--bg2);
  box-shadow: var(--shadow-l);
}
[dir="rtl"] .about-img-accent { right: auto; left: -28px; }

.about-badge {
  position: absolute;
  top: 28px;
  right: -20px;
  background: var(--gold);
  color: #1a1200;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-m);
}
[dir="rtl"] .about-badge { right: auto; left: -20px; }
.about-badge .num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  line-height: 1;
}
.about-badge .label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-content p { color: var(--txt2); line-height: 1.75; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--txt2);
}
.about-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201,168,76,.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-section {
  background: var(--accent);
  padding-block: 72px;
}
[data-theme="dark"] .stats-section { background: #0E1824; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 20px;
  border-inline-end: 1px solid rgba(255,255,255,.15);
}
[data-theme="dark"] .stat-item { border-inline-end-color: var(--border); }
.stat-item:last-child { border-inline-end: none; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
[data-theme="dark"] .stat-label { color: var(--txt2); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
}
.testi-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-3px);
}
.testi-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: .7;
  margin-bottom: 16px;
  opacity: .6;
}
.testi-text {
  font-size: .92rem;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-stars { color: var(--gold); font-size: .85rem; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.testi-name { font-weight: 600; font-size: .9rem; }
.testi-role { font-size: .78rem; color: var(--txt-muted); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  position: relative;
  padding-block: 100px;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,44,74,.9) 0%, rgba(15,44,74,.75) 100%);
}
[data-theme="dark"] .cta-overlay { background: linear-gradient(135deg, rgba(8,8,15,.92) 0%, rgba(12,20,35,.85) 100%); }

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
}
.cta-content h2 { color: #fff; margin-bottom: 14px; }
.cta-content p  { color: rgba(255,255,255,.78); margin-bottom: 36px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SEARCH / FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 40px;
  box-shadow: var(--shadow-s);
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.filter-field label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--txt-muted);
}
.filter-field input,
.filter-field select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--txt);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}
.filter-field input:focus,
.filter-field select:focus { border-color: var(--accent); }

/* ============================================================
   FORMS (Contact / Booking)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--txt2);
}
.form-control {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--txt);
  font-size: .92rem;
  outline: none;
  transition: all var(--transition);
  width: 100%;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
textarea.form-control { min-height: 130px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 40px;
}

.form-success {
  text-align: center;
  padding: 40px;
  display: none;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201,168,76,.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text strong { display: block; font-size: .88rem; margin-bottom: 3px; }
.contact-info-text span  { font-size: .88rem; color: var(--txt2); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt2);
  transition: all var(--transition);
  font-size: .9rem;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
[data-theme="dark"] .social-link:hover { color: #0a0808; }

.map-placeholder {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: .9rem;
  color: var(--txt-muted);
}

/* ============================================================
   BOOKING PAGE
   ============================================================ */
.booking-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.booking-info { display: flex; flex-direction: column; gap: 32px; }
.booking-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.booking-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
[data-theme="dark"] .booking-step-num { background: var(--gold); color: #0a0808; }
.booking-step-body h4 { margin-bottom: 4px; font-size: .95rem; }
.booking-step-body p  { font-size: .86rem; color: var(--txt2); }

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.time-slot {
  padding: 8px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .8rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--txt2);
  background: var(--bg);
}
.time-slot:hover,
.time-slot.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201,168,76,.06);
}

/* ============================================================
   SINGLE PROPERTY PAGE
   ============================================================ */
.property-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.property-info { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.property-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}
.property-title { font-size: 1.3rem; margin-bottom: 4px; }
.property-address { font-size: .88rem; color: var(--txt-muted); }

.property-specs-row {
  display: flex;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.property-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--txt2);
}
.property-spec-item svg { width: 18px; height: 18px; color: var(--gold); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.feature-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--txt2);
}
.feature-tag::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: .8rem;
}

/* Sidebar */
.property-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.sidebar-agent {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-agent img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar-agent-name { font-weight: 600; margin-bottom: 2px; }
.sidebar-agent-role { font-size: .8rem; color: var(--txt-muted); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
}
.team-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-4px);
}
.team-img {
  aspect-ratio: 1;
  overflow: hidden;
}
.team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-img img { transform: scale(1.05); }
.team-body {
  padding: 20px;
}
.team-name { font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: .82rem; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.team-bio  { font-size: .84rem; color: var(--txt2); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-m); }
.value-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border-radius: 10px;
}
.value-card h4 { margin-bottom: 6px; }
.value-card p  { font-size: .88rem; color: var(--txt2); }

/* Awards */
.awards-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.award-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .85rem;
}
.award-icon { font-size: 1.4rem; }
.award-item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-muted); }
.award-item span { font-weight: 600; color: var(--txt); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding-top: 72px;
}
[data-theme="dark"] .footer { background: #060a10; border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
[data-theme="dark"] .footer-grid { border-bottom-color: var(--border); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1200;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
}
.footer-logo-text strong {
  display: block;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-logo-text span {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-tagline { font-size: .88rem; margin-bottom: 20px; }
.footer-col h5 {
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.62);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: rgba(255,255,255,.62);
  margin-bottom: 10px;
}
.footer-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-design a {
  color: var(--gold);
  font-weight: 600;
  transition: opacity var(--transition);
}
.footer-design a:hover { opacity: .8; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ============================================================
   LIGHTBOX / MODAL
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-m);
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition);
  pointer-events: none;
  z-index: 500;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
[dir="rtl"] .scroll-top { right: auto; left: 28px; }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 80px;
  right: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-l);
  font-size: .9rem;
  z-index: 999;
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition);
  pointer-events: none;
  max-width: 320px;
}
[dir="rtl"] .toast { right: auto; left: 28px; transform: translateX(-20px); }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-icon { font-size: 1.2rem; }
.toast-success .toast-icon::before { content: '✓'; color: #22c55e; font-weight: 700; }
.toast-error   .toast-icon::before { content: '✕'; color: #ef4444; font-weight: 700; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .property-layout { grid-template-columns: 1fr; }
  .property-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-book { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-inline-end: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 480px; margin-inline: auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-inline-end: none; }

  .testi-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .container { padding-inline: 16px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .services-grid { grid-template-columns: 1fr; }
  .props-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .hero-search { flex-direction: column; }
  .hero-search select { display: none; }

  .hero-stats { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .property-sidebar { grid-template-columns: 1fr; }
  .property-layout { gap: 28px; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .cta-btns { flex-direction: column; align-items: center; }

  .about-img-accent { display: none; }
  .about-badge { display: none; }

  .filter-bar { flex-direction: column; }
  .filter-field { min-width: 100%; }

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

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

@media (max-width: 480px) {
  .nav-controls .lang-btn .lang-label { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RTL ADJUSTMENTS
   ============================================================ */
[dir="rtl"] .hero-label::before { display: none; }
[dir="rtl"] .hero-label::after {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--gold);
}
[dir="rtl"] .section-sub { margin-right: 0; }
[dir="rtl"] .prop-footer { flex-direction: row-reverse; }
[dir="rtl"] .service-card::before { inset-inline-start: auto; inset-inline-end: 0; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .nav-logo { flex-direction: row-reverse; }
