/* ============================================================
   دليل العاصمة العقارية — هوية بصرية حديثة وبسيطة (RTL)
   ============================================================ */

/* ------------------------- الخط الرئيسي: HayyakumAllah (مستضاف محليًا) ------------------------- */
@font-face {
  font-family: 'HayyakumAllah';
  src: url('/Fonts/HayyakumAllah-Font/WOFF2/HayyakumAllah-Light.woff2') format('woff2'),
       url('/Fonts/HayyakumAllah-Font/WOFF/HayyakumAllah-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HayyakumAllah';
  src: url('/Fonts/HayyakumAllah-Font/WOFF2/HayyakumAllah-Regular.woff2') format('woff2'),
       url('/Fonts/HayyakumAllah-Font/WOFF/HayyakumAllah-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HayyakumAllah';
  src: url('/Fonts/HayyakumAllah-Font/WOFF2/HayyakumAllah-Medium.woff2') format('woff2'),
       url('/Fonts/HayyakumAllah-Font/WOFF/HayyakumAllah-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HayyakumAllah';
  src: url('/Fonts/HayyakumAllah-Font/WOFF2/HayyakumAllah-Bold.woff2') format('woff2'),
       url('/Fonts/HayyakumAllah-Font/WOFF/HayyakumAllah-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* الألوان — اتجاه «فخامة هادئة»: أخضر غابي غامق + ذهبي دافئ على كريمي */
  --brand: #0e3b2e;
  --brand-2: #14563f;
  --brand-soft: #eaf1ee;
  --accent: #c9a24b;
  --accent-2: #e4ce93;
  --ink: #1a211e;
  --muted: #6b7069;
  --line: #e7e0d2;
  --soft: #f7f3ea;
  --cream: #f7f3ea;
  --bg: #ffffff;
  --white: #ffffff;
  --danger: #c0453b;
  --success: #1f8a5b;

  /* الظلال */
  --shadow-sm: 0 1px 2px rgba(23, 35, 31, 0.06);
  --shadow: 0 8px 24px rgba(23, 35, 31, 0.08);
  --shadow-lg: 0 20px 45px rgba(23, 35, 31, 0.12);

  /* الزوايا */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --container: 1200px;
}

/* ------------------------------- أساسيات ------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'HayyakumAllah', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.bg-soft { background: var(--soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0 12px;
  color: var(--brand);
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.text-center { text-align: center; }

/* ------------------------------- الأزرار ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-ghost { background: var(--brand-soft); color: var(--brand); }
.btn-ghost:hover { background: #dcebe6; }
.btn-whatsapp { background: #eaf4ee; color: #1c7a4f; border-color: #cfe7d9; }
.btn-whatsapp:hover { background: #1f8a5b; color: #fff; border-color: #1f8a5b; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-whatsapp svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

/* ------------------------------- الهيدر ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* على الصفحات ذات الواجهة: شفاف فوق الصورة، يطفو عند التمرير */
.site-header.has-hero {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.has-hero.scrolled {
  background: rgba(247, 243, 234, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(14, 59, 46, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; margin-inline-start: 18px; }
.logo-img { height: 76px; width: auto; display: block; }
/* تبديل الشعار الأبيض/الداكن حسب حالة الهيدر */
.logo-img--light { display: none; }
.site-header.has-hero:not(.scrolled) .logo-img--dark { display: none; }
.site-header.has-hero:not(.scrolled) .logo-img--light { display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text .name { font-weight: 800; font-size: 1.12rem; color: var(--brand); transition: color 0.3s; }
.logo-text .sub { font-size: 0.72rem; color: var(--muted); transition: color 0.3s; }
.site-header.has-hero:not(.scrolled) .logo-text .name { color: #fff; }
.site-header.has-hero:not(.scrolled) .logo-text .sub { color: rgba(255,255,255,0.75); }

/* قائمة الهامبرغر الموحّدة (لكل المقاسات) */
.menu-wrap { position: relative; }
.menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 234px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* جسر خفي يمنع انغلاق القائمة أثناء تحريك الماوس نحوها */
.menu-panel::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
/* تظهر عند المرور (سطح المكتب) أو الفتح باللمس */
.menu-wrap:hover .menu-panel,
.menu-wrap.open .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-panel a {
  padding: 11px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  transition: color 0.15s, background 0.15s;
}
.menu-panel a:hover,
.menu-panel a.active { color: var(--brand); background: var(--brand-soft); }
.menu-panel .menu-cta {
  margin-top: 6px;
  background: var(--accent);
  color: #22190a;
  text-align: center;
}
.menu-panel .menu-cta:hover { background: var(--accent-2); color: #22190a; }

.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brand);
  transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.2s;
}
.menu-toggle:hover { transform: scale(1.06); }
.site-header.has-hero:not(.scrolled) .menu-toggle {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

/* ------------------------------- الهيرو ------------------------------- */
.hero {
  position: relative;
  /* يرتفع أسفل الهيدر الشفاف */
  margin-top: -92px;
  padding: calc(92px + 90px) 0 118px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(14,59,46,0.55) 0%, rgba(14,59,46,0.35) 38%, rgba(10,38,30,0.86) 100%),
    url('/images/hero.jpeg');
  background-size: cover;
  background-position: center 32%;
  color: var(--white);
  text-align: center;
}
/* لمسة ذهبية رفيعة أسفل الواجهة (فاصل الفخامة الهادئة) */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 50%, var(--accent) 70%, transparent);
  opacity: 0.85;
}
.hero .container { position: relative; z-index: 2; }
.hero .hero-eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  padding: 13px 34px;
  border: 1px solid rgba(228,206,147,0.45);
  border-radius: var(--r-pill);
  background: rgba(14,59,46,0.28);
  backdrop-filter: blur(4px);
  line-height: 1.35;
}
.hero .he-title { color: var(--accent-2); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.5px; }
.hero .he-sub { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.86rem; }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.28; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero h1 .highlight { color: var(--accent-2); }
.hero p { font-size: 1.22rem; opacity: 0.94; max-width: 640px; margin: 0 auto; text-shadow: 0 1px 12px rgba(0,0,0,0.3); }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-actions .btn-lg { min-width: 190px; }
.btn-hero-primary { background: var(--accent); color: #22190a; }
.btn-hero-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,162,75,0.35); }
.btn-hero-ghost { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.55); backdrop-filter: blur(4px); }
.btn-hero-ghost:hover { background: rgba(255,255,255,0.20); border-color: #fff; transform: translateY(-2px); }

.search-box {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  margin-top: 40px;
  max-width: 940px;
  margin-inline: auto;
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.search-tab {
  flex: 1;
  padding: 11px;
  border-radius: var(--r-sm);
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.98rem;
  transition: all 0.18s;
}
.search-tab.active { background: var(--brand); color: var(--white); }
.search-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  align-items: stretch;
}
.search-fields .field { text-align: right; }
.search-fields label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  margin: 2px 6px 5px;
}
.search-fields select, .search-fields input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.search-fields .btn { align-self: end; height: 46px; }

/* ------------------------------- بطاقات العقارات ------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.property-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.property-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-media img { transform: scale(1.07); }

/* تدرّج داكن أسفل الصورة ليقرأ السعر والعنوان */
.property-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,30,24,0.9) 0%, rgba(10,30,24,0.4) 42%, rgba(10,30,24,0) 66%);
}

.property-badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.badge {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--white);
}
.badge-sale { background: var(--brand); }
.badge-rent { background: var(--accent); }
.badge-new { background: rgba(31,138,91,0.95); }
.badge-used { background: rgba(97,112,107,0.95); }
.badge-video {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  background: rgba(10,30,24,0.7); color: #fff; backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 5px;
}

/* السعر + العنوان فوق الصورة */
.property-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px 15px;
  z-index: 2; color: #fff;
}
.property-overlay .property-price {
  font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.property-overlay .property-price .unit { font-size: 0.8rem; font-weight: 700; color: var(--accent-2); }
.property-overlay .property-title {
  font-size: 1.02rem; font-weight: 700; margin-top: 6px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.property-overlay .property-location {
  margin-top: 5px; font-size: 0.85rem; color: rgba(255,255,255,0.82);
  display: flex; align-items: center; gap: 5px;
}
.property-overlay .property-location svg { width: 14px; height: 14px; flex-shrink: 0; }

/* شريط أيقونات المواصفات */
.property-stats {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px;
  color: var(--muted); font-size: 0.92rem; font-weight: 700;
}
.pstat { display: inline-flex; align-items: center; gap: 6px; }
.pstat svg { width: 19px; height: 19px; color: var(--accent); }
.pstat-type {
  margin-inline-start: auto;
  color: var(--brand); background: var(--brand-soft);
  padding: 5px 13px; border-radius: var(--r-pill); font-size: 0.82rem;
}

.property-actions { display: flex; gap: 8px; padding: 0 18px 18px; }
.property-actions .btn { flex: 1; }

/* ------------------------------- الإحصائيات ------------------------------- */
/* فاصل أنيق بين الأقسام */
.section-divider { padding: 12px 0; }
.section-divider .container { display: flex; align-items: center; gap: 16px; }
.section-divider .sd-line {
  flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,0.7));
}
.section-divider .sd-line:last-child { background: linear-gradient(90deg, rgba(201,162,75,0.7), transparent); }
.section-divider .sd-mark {
  position: relative;
  flex-shrink: 0;
  width: 16px; height: 16px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 6px rgba(201,162,75,0.14), 0 5px 14px rgba(201,162,75,0.4);
}
.section-divider .sd-mark::before {
  content: '';
  position: absolute; inset: 3px;
  border: 1px solid rgba(255,255,255,0.55);
}

/* ------------------------------- من نحن ------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-visual {
  background: linear-gradient(140deg, var(--brand), #0a2b21);
  border: 1px solid rgba(228,206,147,0.22);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-logo {
  width: 46%; max-width: 240px; height: auto;
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 26px rgba(0,0,0,0.45));
}
.about-visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(228,206,147,0.16), transparent 42%),
    radial-gradient(circle at 82% 86%, rgba(255,255,255,0.06), transparent 40%);
}
.about-content h2 { color: var(--brand); font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-hashtag { color: var(--accent); overflow-wrap: anywhere; }
.about-content p { color: var(--muted); margin-bottom: 16px; }
.about-points { display: grid; gap: 12px; margin: 20px 0; }
.about-points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.about-points .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem;
}

/* ------------------------------- الخدمات ------------------------------- */
/* شبكة الخدمات — تتوسّط الصف الأخير (5 كروت: 3 + 2) */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.services-grid .service-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 240px; }
@media (max-width: 980px) { .services-grid .service-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .services-grid .service-card { flex-basis: 100%; min-width: 0; } }

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  height: 100%;
  overflow: hidden;
}
/* خطّ ذهبي علوي يظهر عند المرور */
.service-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 62px; height: 62px;
  background: var(--brand-soft);
  border: 1px solid rgba(228,206,147,0.5);
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 1.85rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(14,59,46,0.08);
  transition: transform 0.25s ease;
}
.service-card:hover .service-icon { transform: scale(1.06) rotate(-3deg); }
.service-card h3 { font-size: 1.18rem; font-weight: 800; color: var(--brand); margin-bottom: 12px; }
.service-card h3::after {
  content: ''; display: block; width: 34px; height: 2px; margin-top: 10px;
  background: var(--accent); border-radius: 2px;
}
.service-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.75; }

/* ------------------------------- النشرة البريدية ------------------------------- */
.newsletter {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: var(--r-lg);
  padding: 50px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.newsletter h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.newsletter p { opacity: 0.9; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 1rem;
}

/* ------------------------------- اتصل بنا ------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
a.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(201,162,75,0.45); }
.contact-item .ci-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(228,206,147,0.5);
  border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item .ci-icon-wa { color: #1c7a4f; }
a.contact-item:hover .ci-icon { background: var(--brand); color: #fff; }
a.contact-item:hover .ci-icon-wa { background: #1f8a5b; color: #fff; }
.contact-item .ci-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 2px; }
.contact-item .ci-value { font-weight: 700; color: var(--ink); }

.form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  transition: border 0.18s, box-shadow 0.18s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  margin-bottom: 20px;
}
.alert-success { background: #e6f5ee; color: var(--success); border: 1px solid #b9e5cf; }
.alert-error { background: #fbeae8; color: var(--danger); border: 1px solid #f2c9c4; }

/* ------------------------------- الفوتر ------------------------------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0e3b2e, #0a2b21);
  color: rgba(255,255,255,0.82);
  padding-top: 66px;
}
/* خيط ذهبي علوي (يوحّد الفوتر مع الواجهة والأقسام) */
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 50%, var(--accent) 70%, transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--accent); border-radius: 2px; }
.footer-brand p { font-size: 0.95rem; opacity: 0.8; margin-top: 14px; max-width: 260px; }
.footer-logo-img { height: 74px; width: auto; display: block; }

.footer-links li { margin-bottom: 11px; }
.footer-links a { display: inline-block; font-size: 0.93rem; opacity: 0.82; transition: opacity 0.18s, color 0.18s, transform 0.18s; }
.footer-links a:hover { opacity: 1; color: var(--accent-2); transform: translateX(-5px); }

.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.92rem; opacity: 0.85; }
.footer-contact .fc-ic { flex-shrink: 0; }
.footer-contact a { transition: color 0.18s; }
.footer-contact a:hover { color: var(--accent-2); }

.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(228,206,147,0.22);
  border-radius: 12px;
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
  color: #fff;
}
.social-row a svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: #22190a; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  text-align: center;
  font-size: 0.86rem;
  opacity: 0.78;
}

/* ------------------------------- شريط صفحة داخلي ------------------------------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand), #0a2b21);
  color: var(--white);
  padding: 64px 0 58px;
  text-align: center;
  overflow: hidden;
}
/* خيط ذهبي سفلي (نفس فاصل الواجهة والأقسام) */
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 50%, var(--accent) 70%, transparent);
  opacity: 0.85;
}
/* لمسة إضاءة ناعمة */
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 15%, rgba(228,206,147,0.12), transparent 45%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 8px; }
.page-hero h1 .highlight, .page-hero .accent { color: var(--accent-2); }
.breadcrumb { opacity: 0.85; font-size: 0.92rem; }
.breadcrumb a:hover { color: var(--accent-2); }

/* ------------------------------- فلتر قائمة العقارات ------------------------------- */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.filter-fields { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.filter-fields .field label { display:block; font-size: 0.75rem; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.filter-fields select, .filter-fields input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-family: inherit; font-size: 0.92rem; background: var(--white);
}
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.results-head .count { color: var(--muted); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 14px; }

/* ------------------------------- صفحة العقار الواحد ------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: start; }
.detail-gallery img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 16/10; object-fit: cover; }
.detail-title { font-size: 1.9rem; font-weight: 800; color: var(--brand); margin: 22px 0 8px; }
.detail-loc { color: var(--muted); margin-bottom: 20px; }
.detail-price {
  background: var(--brand-soft); color: var(--brand);
  display: inline-block; padding: 10px 20px; border-radius: var(--r);
  font-size: 1.5rem; font-weight: 800; margin-bottom: 24px;
}
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.spec {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; text-align: center;
}
.spec .s-icon { font-size: 1.4rem; }
.spec .s-val { font-weight: 800; font-size: 1.1rem; color: var(--brand); margin-top: 4px; }
.spec .s-label { font-size: 0.8rem; color: var(--muted); }
.detail-section { margin: 30px 0; }
.detail-section h3 { font-size: 1.3rem; font-weight: 800; color: var(--brand); margin-bottom: 14px; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.feature-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.detail-aside {
  position: sticky; top: 90px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.detail-aside h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.detail-aside .muted { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.detail-aside .btn { margin-bottom: 10px; }

/* ------------------------------- الأسئلة الشائعة ------------------------------- */
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  padding: 20px 22px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .plus { color: var(--accent); font-size: 1.4rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: all 0.28s ease; color: var(--muted); }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 320px; }

/* ------------------------------- المدونة ------------------------------- */
.blog-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: all 0.25s; height: 100%;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-soft), #dcebe6); display: grid; place-items: center; font-size: 2.5rem; }
.blog-body { padding: 20px; }
.blog-body .date { color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.blog-body h3 { font-size: 1.15rem; font-weight: 800; margin: 8px 0; }
.blog-body p { color: var(--muted); font-size: 0.92rem; }

/* ------------------------------- CTA ------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--r-lg);
  padding: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  color: var(--white); box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 1.7rem; font-weight: 800; }
.cta-band p { opacity: 0.95; }

/* ------------------------------- استجابة الشاشات ------------------------------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .filter-fields { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .logo-img { height: 60px; }
  .logo { margin-inline-start: 20px; }
  .header-inner { height: 80px; }
  .hero { margin-top: -80px; padding-top: calc(80px + 64px); }
  .hero .he-title { font-size: 1.02rem; }
  .hero .he-sub { font-size: 0.78rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.05rem; }
  .hero-actions .btn-lg { min-width: 160px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-logo-img { margin: 0 auto; }
  .footer-brand p { max-width: none; }
  .social-row { justify-content: center; }
  .footer-col h4::after { right: 50%; transform: translateX(50%); }
  .footer-contact li { justify-content: center; }
  .footer-links a:hover { transform: none; }
  .newsletter, .cta-band { padding: 32px 22px; }
  .cta-band { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .spec-grid, .feature-list { grid-template-columns: 1fr 1fr; }
}
