/* ============================================================
   ESTATE — منصة عقارية احترافية متكاملة
   Design System • Light/Dark • RTL • Animations
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --brand: #0b1f3a;
  --brand-2: #14305c;
  --brand-3: #1d4079;
  --gold: #c9a227;
  --gold-2: #e3c25b;
  --emerald: #0e9f6e;
  --rose: #e0413d;
  --blue: #2f6bff;

  --bg: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --text: #0e1b33;
  --heading: #0b1f3a;
  --muted: #64748b;
  --line: #e4e9f2;
  --line-2: #eef2f8;

  --success: #16a34a;
  --warning: #e08c2b;
  --danger: #e0413d;

  --grad-brand: linear-gradient(135deg, #0b1f3a 0%, #1d4079 100%);
  --grad-gold: linear-gradient(135deg, #c9a227 0%, #e3c25b 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 3px rgba(11,31,58,.07);
  --shadow-sm: 0 4px 14px rgba(11,31,58,.07);
  --shadow: 0 16px 40px rgba(11,31,58,.10);
  --shadow-lg: 0 30px 70px rgba(11,31,58,.18);
  --shadow-gold: 0 14px 30px rgba(201,162,39,.38);

  --container: 1240px;
  --header-h: 80px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --trans: .3s var(--ease);
  --font: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Cairo', var(--font);
}

[data-theme="dark"] {
  --bg: #060d1a;
  --surface: #0d1830;
  --surface-2: #111f3c;
  --text: #dde6f5;
  --heading: #ffffff;
  --muted: #8aa0c2;
  --line: #1c3055;
  --line-2: #16284a;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.4);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.4);
  --shadow: 0 16px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--heading); line-height: 1.3; font-weight: 800; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--gold); color: #1a1407; }

/* ---------- 3. Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brand-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- 4. Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 90px 0; position: relative; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.grid { display: grid; gap: 28px; }
.flex { display: flex; }
.gap-10 { gap: 10px; } .gap-16 { gap: 16px; }
.mt-10{margin-top:10px}.mt-20{margin-top:20px}.mt-30{margin-top:30px}.mt-40{margin-top:40px}
.divider { height: 1px; background: var(--line); border: none; margin: 18px 0; }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold);
  font-weight: 800; letter-spacing: .5px; font-size: .82rem; text-transform: uppercase;
  margin-bottom: 14px; background: rgba(201,162,39,.1); padding: 6px 16px; border-radius: 50px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.split-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.split-head .eyebrow { margin-bottom: 10px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: .98rem;
  transition: var(--trans); white-space: nowrap; position: relative; overflow: hidden;
}
.btn i { font-size: .95em; }
.btn-primary { background: var(--grad-gold); color: #1a1407; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201,162,39,.5); }
.btn-brand { background: var(--grad-brand); color: #fff; }
.btn-brand:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid var(--line); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { border: 2px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

/* ---------- 6. Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center; transition: var(--trans);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header.transparent { background: transparent; }
.header.transparent .nav-links a, .header.transparent .logo,
.header.transparent .icon-link, .header.transparent .menu-toggle { color: #fff; }
.header.scrolled, .header.solid {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px); box-shadow: var(--shadow-sm); height: 70px;
  border-bottom: 1px solid var(--line);
}
.header.scrolled .nav-links a, .header.scrolled .logo,
.header.scrolled .icon-link, .header.scrolled .menu-toggle,
.header.solid .nav-links a, .header.solid .logo,
.header.solid .icon-link, .header.solid .menu-toggle { color: var(--text); }
body:not(.has-hero) { padding-top: var(--header-h); }

.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--heading); }
.logo .logo-mark {
  width: 44px; height: 44px; border-radius: 13px; background: var(--grad-gold);
  display: grid; place-items: center; color: var(--brand); font-size: 1.25rem; box-shadow: var(--shadow-gold);
}
.logo b { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px; border-radius: 10px; font-weight: 600; color: var(--text);
  transition: var(--trans); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; right: 50%; transform: translateX(50%);
  width: 0; height: 2px; background: var(--gold); transition: var(--trans); border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 22px; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-link {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text); transition: var(--trans); position: relative; font-size: 1.05rem;
}
.icon-link:hover { background: rgba(201,162,39,.14); color: var(--gold); }
.icon-link .badge-count {
  position: absolute; top: 4px; left: 4px; background: var(--rose); color: #fff;
  font-size: .65rem; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}
.menu-toggle { display: none; font-size: 1.5rem; color: var(--text); width: 42px; height: 42px; }
.nav-cta { display: none; }   /* drawer-only dashboard CTA, shown on mobile */

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: zoomSlow 20s ease-in-out infinite alternate; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,13,26,.94) 0%, rgba(11,31,58,.7) 50%, rgba(11,31,58,.4) 100%);
}
@keyframes zoomSlow { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-content { position: relative; padding-top: 130px; padding-bottom: 60px; width: 100%; }
.hero .badge-pill {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
  color: #fff; padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: .85rem; margin-bottom: 26px;
}
.hero .badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(227,194,91,.3); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(227,194,91,.5)} 50%{box-shadow:0 0 0 8px rgba(227,194,91,0)} }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.15; margin-bottom: 22px; color: #fff; max-width: 800px; }
.hero h1 .hl { color: var(--gold-2); position: relative; }
.hero p { font-size: 1.18rem; color: #cdd6e6; max-width: 580px; margin-bottom: 38px; }

/* Search tabs */
.search-tabs { display: flex; gap: 6px; margin-bottom: -1px; }
.search-tab {
  padding: 12px 26px; border-radius: 14px 14px 0 0; font-weight: 700; color: #cdd6e6;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); transition: var(--trans);
}
.search-tab.active { background: var(--surface); color: var(--gold); }
.search-box {
  background: var(--surface); border-radius: 0 18px 18px 18px; padding: 10px;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr) auto;
  gap: 4px; max-width: 1060px; align-items: stretch;
}
.search-box .field {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 8px 18px; border-left: 1px solid var(--line); min-height: 62px; border-radius: 12px; transition: var(--trans);
}
.search-box .field:hover { background: var(--surface-2); }
.search-box .field:last-of-type { border-left: none; }
.search-box label { font-size: .73rem; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.search-box label i { color: var(--gold); font-size: .8rem; }
.search-box select, .search-box input { border: none; background: transparent; font-weight: 700; font-size: 1rem; outline: none; color: var(--text); width: 100%; cursor: pointer; }
.search-box select option { color: #16233b; }
.search-box .btn { border-radius: 12px; padding-inline: 30px; align-self: stretch; }

.hero-stats { display: flex; gap: 50px; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 900; color: var(--gold-2); line-height: 1; }
.hero-stats .stat span { color: #b9c4d8; font-size: .92rem; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1.4rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* ---------- 8. Property Card ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.prop-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--trans); border: 1px solid var(--line);
  display: flex; flex-direction: column; position: relative;
}
.prop-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prop-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prop-card:hover .prop-media img { transform: scale(1.1); }
.prop-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,58,.5), transparent 45%); opacity: 0; transition: var(--trans); }
.prop-card:hover .prop-media::after { opacity: 1; }
.prop-tags { position: absolute; top: 14px; right: 14px; display: flex; gap: 7px; z-index: 2; }
.tag { padding: 6px 14px; border-radius: 50px; font-size: .76rem; font-weight: 800; color: #fff; backdrop-filter: blur(6px); }
.tag-sale { background: rgba(22,163,74,.92); } .tag-rent { background: rgba(47,107,255,.92); }
.tag-feature { background: var(--grad-gold); color: #1a1407; }
.tag-sold { background: rgba(224,65,61,.92); }
.prop-actions { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 2; opacity: 0; transform: translateX(-10px); transition: var(--trans); }
.prop-card:hover .prop-actions { opacity: 1; transform: translateX(0); }
.circle-btn {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--brand);
  display: grid; place-items: center; transition: var(--trans); box-shadow: var(--shadow-sm); font-size: .95rem;
}
.circle-btn:hover { background: var(--gold); color: #fff; transform: scale(1.1); }
.circle-btn.active { background: var(--rose); color: #fff; }
.prop-ref { position: absolute; bottom: 14px; right: 14px; z-index: 2; background: rgba(11,31,58,.7); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.prop-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.prop-price { font-family: var(--font-head); font-size: 1.55rem; font-weight: 900; color: var(--gold); }
.prop-price small { font-size: .82rem; color: var(--muted); font-weight: 600; }
.prop-title { font-size: 1.16rem; font-weight: 700; margin: 9px 0 7px; }
.prop-title a:hover { color: var(--gold); }
.prop-loc { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 7px; }
.prop-loc i { color: var(--gold); }
.prop-specs { display: flex; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600; }
.prop-specs span { display: flex; align-items: center; gap: 7px; }
.prop-specs i { color: var(--brand-3); }
[data-theme="dark"] .prop-specs i { color: var(--gold); }
.prop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.prop-foot .agent-mini { display: flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 700; }
.prop-foot .agent-mini img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* List variant */
.prop-card.list { flex-direction: row; }
.prop-card.list .prop-media { width: 320px; flex-shrink: 0; aspect-ratio: auto; }
@media (max-width: 700px){ .prop-card.list { flex-direction: column; } .prop-card.list .prop-media { width: 100%; aspect-ratio: 16/11; } }

/* ---------- 9. Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1.05;
  display: flex; align-items: flex-end; padding: 22px; color: #fff; transition: var(--trans);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -2; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,58,.9), rgba(11,31,58,.15)); z-index: -1; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover img { transform: scale(1.12); }
.cat-card .ic { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 1.3rem; }
.cat-card h3 { color: #fff; font-size: 1.25rem; }
.cat-card span { color: #d7deea; font-size: .88rem; }

/* ---------- 10. Why / Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: var(--trans);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ic {
  width: 64px; height: 64px; border-radius: 18px; background: rgba(201,162,39,.12); color: var(--gold);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; transition: var(--trans);
}
.feature:hover .ic { background: var(--grad-gold); color: #fff; transform: rotate(-8deg) scale(1.05); }
.feature h3 { font-size: 1.2rem; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: .95rem; }

.bg-brand { background: var(--brand); position: relative; overflow: hidden; }
.bg-brand::before { content: ''; position: absolute; top: -120px; left: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.18), transparent 70%); }
.bg-brand .section-head h2, .bg-brand h2, .bg-brand h3 { color: #fff; }
.bg-brand .section-head p { color: #b9c4d8; }
.bg-brand .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }
.bg-brand .feature p { color: #b9c4d8; }

/* ---------- 11. Counters strip ---------- */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; }
.counter-box { text-align: center; padding: 16px; }
.counter-box .ic { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.counter-box .num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 900; color: var(--heading); line-height: 1; }
.bg-brand .counter-box .num { color: #fff; }
.counter-box span { color: var(--muted); font-weight: 600; }
.bg-brand .counter-box span { color: #b9c4d8; }

/* ---------- 12. Testimonials ---------- */
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; height: 100%; }
.testi-card .stars { color: var(--gold); margin-bottom: 14px; }
.testi-card p { font-size: 1.05rem; margin-bottom: 22px; }
.testi-who { display: flex; align-items: center; gap: 14px; }
.testi-who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testi-who h4 { font-size: 1.05rem; } .testi-who small { color: var(--gold); font-weight: 700; }
.quote-mark { font-family: Georgia, serif; font-size: 3.5rem; color: var(--gold); opacity: .25; line-height: .5; }
.testi-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 16px; scrollbar-width: none; }
.testi-track::-webkit-scrollbar { display: none; }
.testi-track > .testi-card { flex: 0 0 min(420px, 85%); scroll-snap-align: center; }
.testi-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; }
.testi-nav button.arrow { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--brand); transition: var(--trans); }
.testi-nav button.arrow:hover { background: var(--grad-gold); color: #fff; border-color: transparent; }
#testiDots { display: flex; gap: 8px; }
#testiDots .tdot { border: none; cursor: pointer; transition: var(--trans); }

/* ---------- 13. Agents ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.agent-card-pub { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: var(--trans); }
.agent-card-pub:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.agent-card-pub .photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.agent-card-pub .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.agent-card-pub:hover .photo img { transform: scale(1.08); }
.agent-card-pub .socials { position: absolute; bottom: 0; right: 0; left: 0; display: flex; justify-content: center; gap: 10px; padding: 14px; background: linear-gradient(to top, rgba(11,31,58,.85), transparent); transform: translateY(100%); transition: var(--trans); }
.agent-card-pub:hover .socials { transform: translateY(0); }
.agent-card-pub .socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; transition: var(--trans); }
.agent-card-pub .socials a:hover { background: var(--gold); }
.agent-card-pub .info { padding: 22px; }
.agent-card-pub h3 { font-size: 1.2rem; } .agent-card-pub small { color: var(--gold); font-weight: 700; }
.agent-card-pub .meta { display: flex; justify-content: center; gap: 18px; margin-top: 12px; color: var(--muted); font-size: .85rem; font-weight: 700; }

/* ---------- 14. Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px,1fr)); gap: 30px; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--trans); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card .media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.blog-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .media img { transform: scale(1.08); }
.blog-card .cat-badge { position: absolute; top: 14px; right: 14px; background: var(--grad-gold); color: #1a1407; padding: 5px 14px; border-radius: 50px; font-size: .76rem; font-weight: 800; }
.blog-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card .blog-meta { display: flex; gap: 16px; color: var(--muted); font-size: .82rem; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card .read { margin-top: auto; color: var(--gold); font-weight: 700; font-size: .9rem; padding-top: 14px; }

/* ---------- 15. CTA ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 70px 50px; color: #fff; text-align: center; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,31,58,.95), rgba(29,64,121,.8)); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.cta-band p { color: #cdd6e6; font-size: 1.12rem; margin-bottom: 30px; max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 16. Footer ---------- */
.footer { background: var(--brand); color: #b9c4d8; padding: 72px 0 0; position: relative; }
[data-theme="dark"] .footer { background: #050b15; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 50px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer p { font-size: .94rem; line-height: 1.9; }
.footer h4 { color: #fff; font-size: 1.08rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 36px; height: 3px; background: var(--gold); border-radius: 2px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #b9c4d8; transition: var(--trans); font-size: .94rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--gold); padding-right: 6px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 15px; font-size: .94rem; }
.footer-contact .ic { color: var(--gold); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: var(--trans); }
.socials a:hover { background: var(--gold); color: var(--brand); transform: translateY(-3px); }
.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; outline: none; }
.newsletter input::placeholder { color: #8aa0c2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; text-align: center; font-size: .88rem; color: #8295b0; }

/* ---------- 17. Page hero ---------- */
.page-hero { position: relative; padding: 150px 0 70px; color: #fff; text-align: center; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,13,26,.92), rgba(11,31,58,.72)); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 12px; }
.breadcrumb { color: #cdd6e6; font-size: .96rem; display: flex; gap: 8px; justify-content: center; align-items: center; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: .7rem; }

/* ---------- 18. Filters & layout ---------- */
.listing-layout { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.filters-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.filters-side h3 { font-size: 1.15rem; margin-bottom: 6px; }
.field-group { margin-bottom: 18px; }
.field-group > label { font-weight: 700; font-size: .86rem; margin-bottom: 8px; display: block; }
.field-group select, .field-group input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); outline: none; transition: var(--trans); font-weight: 600;
}
.field-group select:focus, .field-group input:focus { border-color: var(--gold); background: var(--surface); }
.range-row { display: flex; gap: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 50px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: var(--trans); }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.amenity-checks { display: flex; flex-direction: column; gap: 10px; }
.amenity-checks label { display: flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 20px; }
.results-bar .count b { color: var(--gold); }
.view-toggle { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.view-toggle button { width: 38px; height: 36px; border-radius: 8px; color: var(--muted); transition: var(--trans); }
.view-toggle button.active { background: var(--surface); color: var(--gold); box-shadow: var(--shadow-xs); }
.sort-select { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; }

.map-pane { height: 600px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: sticky; top: 90px; }
#listMap, #detailMap { width: 100%; height: 100%; }
.leaflet-popup-content { font-family: var(--font); direction: rtl; }
.map-popup img { width: 100%; border-radius: 8px; margin-bottom: 8px; aspect-ratio: 16/10; object-fit: cover; }
.map-popup b { color: var(--gold); }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination button { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; transition: var(--trans); }
.pagination button:hover { border-color: var(--gold); color: var(--gold); }
.pagination button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- 19. Property detail ---------- */
.detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-top h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.detail-top .loc { color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.detail-top .price { font-family: var(--font-head); font-size: clamp(1.6rem,3vw,2.3rem); font-weight: 900; color: var(--gold); }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery-thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: pointer; opacity: .6; transition: var(--trans); }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; outline: 3px solid var(--gold); }

.detail-grid { display: grid; grid-template-columns: 1fr 370px; gap: 36px; align-items: start; margin-top: 36px; }
.detail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.detail-box h2 { font-size: 1.4rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.detail-box h2 i { color: var(--gold); }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 20px; }
.ov-item { display: flex; align-items: center; gap: 13px; }
.ov-item .ic { width: 50px; height: 50px; border-radius: 14px; background: rgba(201,162,39,.12); color: var(--gold); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.ov-item small { color: var(--muted); display: block; font-size: .82rem; }
.ov-item b { font-size: 1.05rem; }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.amenity-grid li { display: flex; align-items: center; gap: 11px; }
.amenity-grid .ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(22,163,74,.12); color: var(--success); display: grid; place-items: center; font-size: .8rem; }

/* sticky agent */
.detail-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.agent-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.agent-box .top { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.agent-box .top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-box .top h4 { font-size: 1.15rem; } .agent-box .top small { color: var(--gold); font-weight: 700; }

/* mortgage calc */
.calc-result { background: var(--grad-brand); color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 18px; }
.calc-result small { color: #cdd6e6; } .calc-result .amt { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: var(--gold-2); }
.calc-range { width: 100%; accent-color: var(--gold); }

/* ---------- 20. Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); outline: none; transition: var(--trans);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 4px rgba(201,162,39,.1); }
.form-field textarea { resize: vertical; min-height: 130px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(22,163,74,.12); color: var(--success); border: 1px solid rgba(22,163,74,.3); }
.alert-error { background: rgba(224,65,61,.1); color: var(--danger); border: 1px solid rgba(224,65,61,.3); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; }
.info-card { display: flex; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow-xs); transition: var(--trans); }
.info-card:hover { transform: translateX(-6px); box-shadow: var(--shadow-sm); }
.info-card .ic { width: 56px; height: 56px; border-radius: 15px; background: var(--grad-gold); color: #fff; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.info-card h4 { margin-bottom: 4px; } .info-card p { color: var(--muted); font-size: .94rem; }

/* ---------- 21. About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media .exp-badge { position: absolute; bottom: -24px; right: -24px; background: var(--grad-gold); color: #1a1407; border-radius: var(--radius); padding: 22px 28px; box-shadow: var(--shadow-lg); text-align: center; }
.about-media .exp-badge b { font-family: var(--font-head); font-size: 2.4rem; display: block; line-height: 1; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-list .ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(201,162,39,.14); color: var(--gold); display: grid; place-items: center; font-size: .75rem; }

/* ---------- 22. Compare ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { padding: 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table th:first-child, .compare-table td:first-child { text-align: right; background: var(--surface-2); font-weight: 800; position: sticky; right: 0; }
.compare-table img { width: 100%; max-width: 240px; aspect-ratio: 16/11; object-fit: cover; border-radius: 12px; margin: 0 auto 10px; }
.compare-table .feat-yes { color: var(--success); } .compare-table .feat-no { color: var(--muted); }

/* ---------- 23. Empty states ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .ic { font-size: 3.4rem; margin-bottom: 16px; opacity: .35; color: var(--gold); }
.empty-state h3 { margin-bottom: 8px; }

/* ---------- 24. Floating buttons ---------- */
.fab-stack { position: fixed; bottom: 26px; left: 26px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.35rem; box-shadow: var(--shadow); transition: var(--trans); }
.fab:hover { transform: scale(1.1) translateY(-2px); }
.fab.wa { background: #25d366; }
.fab.top { background: var(--brand); opacity: 0; pointer-events: none; }
.fab.top.show { opacity: 1; pointer-events: auto; }

/* ---------- 25. Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(6,13,26,.95); z-index: 3000; display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92%; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 26px; left: 26px; color: #fff; font-size: 2rem; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 1.6rem; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); transition: var(--trans); }
.lightbox .lb-nav:hover { background: var(--gold); }
.lightbox .lb-prev { right: 26px; } .lightbox .lb-next { left: 26px; }

/* ---------- 26. Animations ---------- */
[data-aos] { opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-right"] { transform: translateX(40px); }
[data-aos="fade-left"] { transform: translateX(-40px); }
[data-aos="zoom-in"] { transform: scale(.9); }
[data-aos].aos-in { opacity: 1; transform: none; }
.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}

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 44px; height: 44px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }

/* skeleton */
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ---------- 27. Responsive ---------- */
@media (max-width: 1100px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters-side, .map-pane { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media .exp-badge { right: auto; left: 20px; }
  .search-box { grid-template-columns: 1fr 1fr; }
  .search-box .field { border-left: none; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 90px 22px 22px;
    box-shadow: var(--shadow-lg); transform: translateX(110%); transition: var(--trans); z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .header.scrolled .nav-links a, .nav-links a, .header.transparent .nav-links a { color: var(--text) !important; }
  .nav-links a { padding: 15px; border-radius: 12px; border: 1px solid var(--line); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(6,13,26,.5); z-index: 998; opacity: 0; pointer-events: none; transition: var(--trans); }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  /* الهيدر: امنع تكدّس الأزرار وإخفاء زر لوحة التحكم من الشريط العلوي */
  .nav-actions { gap: 6px; }
  .nav-actions > .btn-primary { display: none; }   /* ينتقل إلى قائمة الجوال */
  .nav-cta {
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    margin-top: 8px; padding: 15px; border-radius: 12px;
    background: var(--grad-gold); color: #1a1407 !important; font-weight: 800; border: none;
  }

  .gallery-thumbs { grid-template-columns: repeat(4,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 26px; }

  /* الهيرو على الجوال */
  .hero { min-height: auto; }
  .hero-content { padding-top: 110px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero p { font-size: 1.05rem; margin-bottom: 28px; }
  .hero-stats { gap: 22px 18px; margin-top: 38px; }
  .hero-stats .stat { flex: 1 1 40%; }
  .hero-stats .stat .num { font-size: 2rem; }
}
@media (max-width: 540px) {
  .search-box { grid-template-columns: 1fr; border-radius: 0 0 18px 18px; }
  .search-tabs { gap: 4px; }
  .search-tab { flex: 1; padding: 12px 6px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3,1fr); }
  .split-head { align-items: flex-start; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats .stat .num { font-size: 1.9rem; }
}
