/* ===== التميز العقاري — تنسيقات الموقع العام ===== */
:root {
  color-scheme: only light;
  --navy-900: #0a1f36;
  --navy-800: #0e2a47;
  --navy-700: #163a5f;
  --navy-100: #e7edf4;
  --gold-600: #b08a3c;
  --gold-500: #c9a04e;
  --gold-100: #f6eedc;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #15202b;
  --ink-2: #4a5560;
  --ink-3: #7b858f;
  --line: #e4e2db;
  --ok: #15803d;
  --ok-bg: #e7f6ec;
  --warn: #a15c07;
  --warn-bg: #fdf1dc;
  --bad: #b42318;
  --bad-bg: #fde8e7;
  --info: #1d5fa8;
  --info-bg: #e5effa;
  --wa: #1fa855;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 31, 54, .06), 0 8px 24px rgba(10, 31, 54, .06);
  --shadow-lg: 0 18px 50px rgba(10, 31, 54, .16);
  --container: 1200px;
  --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: #d6b062; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: #d6b062; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18914a; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy-800); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text strong { display: block; font-size: 20px; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.brand-text small { display: block; font-size: 12px; color: var(--gold-600); font-weight: 700; letter-spacing: .3px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--ink-2); transition: .2s; }
.main-nav a:hover { color: var(--navy-800); background: var(--navy-100); }
.main-nav a.active { color: var(--navy-800); background: var(--gold-100); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- البطل Hero ---------- */
.hero { background: #fff; padding: 56px 0 96px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--gold-100); color: var(--gold-600); font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; color: var(--navy-800); }
.hero h1 span { color: var(--gold-600); }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0; }
.hero-media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- صندوق البحث ---------- */
.search-box {
  position: relative; z-index: 5; margin-top: -56px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line);
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.search-tabs button {
  border: 0; background: var(--bg); padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.search-tabs button.active { background: var(--gold-100); color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--gold-500); }
.search-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field select, .field input, .field textarea {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .2s;
}
.field textarea { height: auto; padding: 10px 12px; min-height: 110px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px var(--navy-100); }
.range-pair { display: flex; gap: 6px; }
.range-pair input { min-width: 0; }

/* ---------- الأقسام ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--navy-800); margin: 0; }
.section-head p { color: var(--ink-3); margin: 6px 0 0; }
.kicker { color: var(--gold-600); font-weight: 800; font-size: 14px; display: block; margin-bottom: 4px; }

/* ---------- بطاقة العقار ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.prop-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; border: 1px solid #eeece6;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prop-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-100); overflow: hidden; }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prop-card:hover .prop-media img { transform: scale(1.05); }
.prop-badges { position: absolute; top: 12px; right: 12px; left: 12px; display: flex; justify-content: space-between; gap: 6px; }
.prop-media .media-count {
  position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--navy-800); font-weight: 700; font-size: 12px;
  padding: 3px 10px; border-radius: 999px; display: flex; gap: 5px; align-items: center;
}
.media-count svg { width: 14px; height: 14px; }
.prop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prop-price { font-size: 21px; font-weight: 800; color: var(--navy-800); }
.prop-price small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.prop-title { font-size: 17px; font-weight: 700; margin: 0; }
.prop-loc { color: var(--ink-3); font-size: 14px; display: flex; gap: 4px; align-items: center; }
.prop-loc svg { width: 16px; height: 16px; flex: none; }
.prop-specs { display: flex; gap: 14px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.prop-specs span { display: inline-flex; align-items: center; gap: 5px; }
.prop-specs svg { width: 17px; height: 17px; color: var(--gold-600); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.badge-purpose { background: rgba(255,255,255,.94); color: var(--navy-800); }
.badge-متاح { background: var(--ok-bg); color: var(--ok); }
.badge-محجوز { background: var(--warn-bg); color: var(--warn); }
.badge-مباع { background: var(--bad-bg); color: var(--bad); }
.badge-مؤجر { background: var(--info-bg); color: var(--info); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-purpose::before { display: none; }
.badge-featured { background: var(--gold-500); color: var(--navy-900); }
.badge-featured::before { display: none; }

/* ---------- لماذا نحن / الإحصائيات ---------- */
.stats-band { background: #fff; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid > div + div { border-inline-start: 1px solid var(--line); }
.stat-num { font-size: 40px; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat-label { color: var(--ink-3); font-weight: 500; }

.feature { background: var(--surface); padding: 26px; border-radius: var(--radius); border: 1px solid #eeece6; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; color: var(--navy-800); }
.feature p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* ---------- الأخبار ---------- */
.news-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid #eeece6; transition: .25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card .thumb { aspect-ratio: 16 / 9; background: var(--navy-100); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-date { color: var(--gold-600); font-weight: 700; font-size: 13px; }
.news-card h3 { font-size: 18px; color: var(--navy-800); margin: 0; }
.news-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.read-more { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--navy-800); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- شريط التواصل ---------- */
.cta {
  background: var(--gold-100); border-radius: 24px; border: 1px solid #ecdfc0;
  padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
}
.cta h2 { font-size: 30px; font-weight: 800; color: var(--navy-800); }
.cta p { color: var(--ink-2); margin: 0; }
.lead-form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.lead-form input { flex: 1; border: 0; outline: none; padding: 0 14px; min-width: 0; height: 46px; background: transparent; direction: ltr; text-align: right; }
.lead-note { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.form-msg { font-size: 14px; margin-top: 8px; font-weight: 700; }
.ts-box:not(:empty) { margin-top: 10px; }
.consent { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }
.consent a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; }
.license-box { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; margin-top: 14px; }
.license-box .code-line strong { color: var(--navy-800); }

/* ---------- سياسة الخصوصية ---------- */
.policy { max-width: 820px; margin: 0 auto; padding: 36px 16px 80px; }
.policy section { background: var(--surface); border: 1px solid #eeece6; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.policy h2 { font-size: 19px; color: var(--navy-800); margin-bottom: 10px; }
.policy p, .policy li { color: var(--ink-2); }
.policy ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.policy p:last-child { margin-bottom: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--bad); }

/* ---------- صفحة العقارات ---------- */
.page-head { background: #fff; padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 0; color: var(--navy-800); }
.page-head p { color: var(--ink-3); margin: 6px 0 0; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a:hover { color: var(--navy-800); }

.listing { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; padding-top: 34px; padding-bottom: 70px; }
.filters { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 92px; display: grid; gap: 14px; }
.filters h3 { font-size: 18px; margin: 0; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { border: 0; background: none; color: var(--gold-600); font-weight: 700; cursor: pointer; font-size: 14px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.chip.active { background: var(--gold-100); color: var(--navy-800); border-color: var(--gold-500); }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.results-bar strong { color: var(--navy-800); }
.results-bar select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.filters-toggle { display: none; }

/* صورة بنسبة مختلفة عن إطارها: تظهر كاملة فوق نسخة ضبابية منها */
.img-fit { position: relative; isolation: isolate; }
.img-fit::before {
  content: ''; position: absolute; inset: -24px; z-index: -1;
  background: var(--fit-bg) center / cover no-repeat; filter: blur(22px) brightness(.9) saturate(1.1);
}
.img-fit > img { object-fit: contain !important; }

/* ترقيم صفحات العقارات */
.pagination:not(:empty) { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.pager-info { font-size: 14px; color: var(--ink-3); }
.pager-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pg-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; transition: .15s;
}
.pg-btn svg { width: 18px; height: 18px; }
.pg-btn:hover:not(:disabled):not(.active) { border-color: var(--gold-500); color: var(--navy-800); }
.pg-btn.active { background: var(--gold-100); border-color: var(--gold-500); color: var(--navy-800); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-gap { color: var(--ink-3); padding: 0 4px; }
@media (max-width: 600px) {
  .pg-btn { min-width: 38px; height: 38px; padding: 0 8px; }
  .pg-nav span { display: none; }
}
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: var(--radius); color: var(--ink-3); }
.empty svg { width: 56px; height: 56px; color: var(--gold-500); margin: 0 auto 10px; }

/* ---------- تفاصيل العقار ---------- */
.detail { padding-top: 30px; padding-bottom: 80px; }
.detail-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-top h1 { font-size: clamp(24px, 3.4vw, 34px); color: var(--navy-800); font-weight: 800; margin: 6px 0 4px; }
.detail-price { font-size: 30px; font-weight: 800; color: var(--navy-800); text-align: left; }
.detail-price small { display: block; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 470px; border-radius: 18px; overflow: hidden; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: var(--navy-100); position: relative; overflow: hidden; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single button:first-child { grid-row: auto; grid-column: 1; }
.gallery .more { position: absolute; inset: 0; background: rgba(255,255,255,.72); color: var(--navy-800); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 26px; margin-top: 26px; align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 22px; border: 1px solid #eeece6; }
.panel h2 { font-size: 20px; color: var(--navy-800); margin-bottom: 14px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spec { background: var(--bg); border-radius: 12px; padding: 14px; text-align: center; }
.spec svg { width: 24px; height: 24px; color: var(--gold-600); margin: 0 auto 6px; }
.spec strong { display: block; font-size: 18px; color: var(--navy-800); }
.spec span { font-size: 13px; color: var(--ink-3); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.feature-list li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.feature-list svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-wrap { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--navy-100); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.side-card { position: sticky; top: 92px; }
.side-card .agent { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.agent-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-100); display: grid; place-items: center; color: var(--gold-600); }
.agent-avatar svg { width: 26px; height: 26px; }
.side-actions { display: grid; gap: 10px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.code-line { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 14px; }

/* عارض الصور */
.lightbox { position: fixed; inset: 0; background: rgba(250,249,246,.97); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; object-fit: contain; box-shadow: 0 18px 50px rgba(10,31,54,.18); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.lb-btn:hover { background: var(--gold-100); border-color: var(--gold-500); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 18px; left: 18px; }
.lb-prev { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; color: var(--ink-2); font-weight: 700; }

/* ---------- صفحة الخبر ---------- */
.article { max-width: 820px; margin: 0 auto; padding: 36px 16px 80px; }
.article .cover { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 26px; background: var(--navy-100); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 18px; color: var(--ink-2); white-space: pre-line; }

/* ---------- اتصل بنا ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--ink-3); font-size: 13px; }
.contact-item strong { color: var(--navy-800); font-size: 17px; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ---------- الفوتر ---------- */
.site-footer { background: #fff; color: var(--ink-2); padding: 56px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--navy-800); font-size: 17px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--gold-600); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0; display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; gap: 8px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); color: var(--navy-800); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }

/* زر واتساب العائم */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31,168,85,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

.toast { position: fixed; bottom: 24px; right: 50%; transform: translateX(50%) translateY(20px); background: #fff; color: var(--navy-800); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px 22px; border-radius: 999px; opacity: 0; transition: .3s; z-index: 300; font-weight: 700; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }

.skeleton { background: linear-gradient(90deg, #eceae4 0%, #f5f4f0 50%, #eceae4 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- التجاوب ---------- */
@media (max-width: 1180px) and (min-width: 601px) {
  .listing .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .search-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 900px) {
  .hero { padding: 36px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { aspect-ratio: 16 / 9; }
  .stats-grid > div:nth-child(3) { border-inline-start: 0; }
  .main-nav { display: none; position: absolute; top: 74px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .menu-toggle { display: grid; }
  .header-actions .btn-call { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 90vw); z-index: 150; border-radius: 0; transform: translateX(110%); transition: transform .3s; overflow-y: auto; align-content: start; }
  .filters.open { transform: translateX(0); }
  .filters-toggle { display: inline-flex; }
  .cta { grid-template-columns: 1fr; padding: 30px 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .gallery { height: 340px; }
}
@media (max-width: 600px) {
  .header-inner { height: 64px; }
  .main-nav { top: 64px; }
  .brand-text strong { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-actions .btn-wa span { display: none; }
  .header-actions .btn-wa { padding: 10px; }
  .hero { padding: 56px 0 120px; }
  .hero p.lead { font-size: 16px; }
  .search-box { padding: 16px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .field-wide, .search-grid .search-submit { grid-column: 1 / -1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery button { aspect-ratio: 4 / 3; }
  .gallery button:first-child { grid-row: auto; }
  .gallery button:nth-child(n+2) { display: none; }
  .detail-price { text-align: right; }
  .feature-list { grid-template-columns: 1fr; }
  .lead-form { flex-direction: column; border-radius: 16px; }
  .lead-form .btn { width: 100%; }
  .stat-num { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
