/* =========================================================
   الموقع العقاري — التنسيق العام (RTL)
   نظام ألوان: أخضر زمردي داكن + ذهبي هادئ على خلفية دافئة
   ========================================================= */

/* --- الخطوط المحلية Cairo --- */
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-arabic-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-arabic-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- المتغيرات --- */
:root {
  --primary: #0b3d2e;
  --primary-dark: #082b20;
  --primary-light: #14584a;
  --accent: #c8a24b;
  --accent-dark: #a8853a;
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --line: #e7e5e0;
  --danger: #b91c1c;
  --success: #15803d;
  --warning: #b45309;
  --info: #1d4ed8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 14px rgba(11, 61, 46, 0.07);
  --shadow-lg: 0 10px 34px rgba(11, 61, 46, 0.14);
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* --- أساسيات --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; right: -9999px; top: 0; background: var(--primary); color: #fff; padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 8px; }
.skip-link:focus { right: 16px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- الأزرار --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 14.5px; line-height: 1.6; transition: all .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: #201a08; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { background: #efece6; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-danger { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn-sm { padding: 5px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* =========================================================
   الترويسة
   ========================================================= */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--primary-dark); color: #d5e3dd; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; flex-wrap: wrap; padding-block: 4px; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: #cfe0d8; }
.topbar-item:hover { color: var(--accent); }
.topbar-item svg { flex: none; }

.admin-login-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #b9cdc4; font-size: 13px; padding: 3px 10px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.18); transition: all .2s;
}
.admin-login-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(200,162,75,.08); }

.navbar-wrap { border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 13px; flex: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark-lg { width: 60px; height: 60px; margin-inline: auto; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-text strong { color: var(--primary); font-size: 19px; font-weight: 800; }
.brand-text small { color: var(--text-muted); font-size: 12px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  display: inline-block; padding: 9px 15px; border-radius: 9px;
  color: var(--text); font-weight: 600; font-size: 15px; transition: all .18s;
}
.main-nav a:not(.btn):hover { background: #f1efe9; color: var(--primary); }
.main-nav a.active { background: rgba(11,61,46,.07); color: var(--primary); }
.nav-cta { margin-inline-start: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--primary); border-radius: 2px; transition: all .25s; }

/* =========================================================
   الواجهة الرئيسية (Hero)
   ========================================================= */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--primary-dark); }
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(8,43,32,.82), rgba(8,43,32,.9)), url('../img/hero-bg.jpg');
  background-size: cover; background-position: center;
}
.hero-inner { position: relative; padding: 72px 0 56px; text-align: center; }
.hero-title { font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.hero-subtitle { max-width: 640px; margin: 0 auto 34px; color: #cfe0d8; font-size: clamp(15px, 1.6vw, 17.5px); }

.hero-search {
  background: rgba(255,255,255,.97); color: var(--text);
  border-radius: 16px; padding: 18px; display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end;
  box-shadow: var(--shadow-lg); text-align: right; max-width: 1060px; margin: 0 auto;
}
.hs-field { display: flex; flex-direction: column; gap: 5px; }
.hs-field label { font-size: 12.5px; font-weight: 700; color: var(--primary); }
.hs-field select, .hs-field input {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  background: #fff; transition: border-color .15s;
}
.hs-field select:focus, .hs-field input:focus { border-color: var(--accent); outline: none; }
.hs-submit { height: 44px; padding-inline: 26px; }

.hero-stats { display: flex; justify-content: center; gap: clamp(18px, 5vw, 60px); margin-top: 38px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--accent); }
.hero-stats span { font-size: 13.5px; color: #cfe0d8; }

/* =========================================================
   الأقسام العامة
   ========================================================= */
.section { padding: 64px 0; }
.no-top-padding { padding-top: 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(22px, 2.8vw, 30px); color: var(--primary); font-weight: 800; margin-bottom: 6px; }
.section-head p { color: var(--text-muted); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: right; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 2px; }
.section-head-row .btn { margin-bottom: 4px; }

/* أنواع العقارات */
.categories-section { background: var(--surface); border-block: 1px solid var(--line); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.category-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(11,61,46,.07); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.category-card:hover .cat-icon { background: var(--primary); color: var(--accent); }
.cat-name { font-weight: 700; color: var(--primary); font-size: 15px; }
.cat-count { font-size: 12.5px; color: var(--text-muted); }

/* شبكة العقارات */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.property-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .22s; display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d8d2c4; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 2.6; overflow: hidden; background: #eceae4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .card-media img { transform: scale(1.05); }
.card-trans {
  position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.card-trans.trans-rent { background: var(--info); }
.card-featured {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #201a08;
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px;
}
.card-sold {
  position: absolute; bottom: 12px; left: 12px; background: rgba(185,28,28,.92); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.card-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-price { font-size: 19px; font-weight: 800; color: var(--primary); }
.card-price small { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.card-title { font-size: 16px; line-height: 1.6; min-height: 3.2em; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-location { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13.5px; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-muted); padding-block: 8px; border-top: 1px dashed var(--line); }
.card-specs li { display: inline-flex; align-items: center; gap: 5px; }
.card-type { font-weight: 700; color: var(--primary); }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card-ref { font-size: 12px; color: var(--text-muted); }
.card-more { font-weight: 700; font-size: 13.5px; color: var(--accent-dark); }
.card-more:hover { color: var(--primary); }

/* الخدمات */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; transition: all .2s; }
.service-card:hover { box-shadow: var(--shadow); border-color: #d8d2c4; }
.service-icon {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
}
.service-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* شريط الدعوة */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary-light)); color: #fff; padding: 52px 0; }
.cta-band-sm { border-radius: var(--radius); margin-block: 30px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(20px, 2.6vw, 27px); margin-bottom: 6px; }
.cta-inner p { color: #cfe0d8; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   صفحة العناوين والفواصل
   ========================================================= */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 34px 0 22px; }
.page-head h1 { font-size: clamp(22px, 3vw, 30px); color: var(--primary); font-weight: 800; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); margin-top: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* =========================================================
   صفحة العقارات (القائمة)
   ========================================================= */
.listings-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-block: 34px; align-items: start; }
.filters-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 130px; }
.filters-panel h3 { font-size: 14px; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.filter-group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--line); }
.filter-group:last-of-type { border-bottom: none; }
.filters-panel select, .filters-panel input[type="text"], .filters-panel input[type="number"] {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
}
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.radio-row label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input { min-width: 0; }
.filter-check label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; font-weight: 600; }
.filter-actions { display: flex; flex-direction: column; gap: 10px; }
.filters-toggle { display: none; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.results-count { color: var(--text-muted); font-size: 14.5px; }
.results-count strong { color: var(--primary); }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.sort-form select { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; }
.properties-grid-listings { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.empty-state {
  background: var(--surface); border: 1px dashed #d8d2c4; border-radius: var(--radius);
  padding: 60px 24px; text-align: center; color: var(--text-muted);
}
.empty-state svg { margin-inline: auto; margin-bottom: 14px; color: var(--accent); }
.empty-state h2 { color: var(--primary); font-size: 20px; margin-bottom: 8px; }
.empty-state .btn { margin-top: 16px; }

/* ترقيم الصفحات */
.pagination { margin: 30px 0 10px; }
.pagination ul { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pg-disabled {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-weight: 600; background: var(--surface);
}
.pagination a:hover { border-color: var(--primary); }
.pg-active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }
.pg-disabled { color: var(--text-muted); background: transparent; cursor: default; }
.pg-dots { border: none; background: none; }

/* =========================================================
   صفحة تفاصيل العقار
   ========================================================= */
.property-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding-block: 30px; align-items: start; }
.card-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.block-title { font-size: 18px; color: var(--primary); margin-bottom: 16px; font-weight: 800; }

.gallery-main-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #eceae4; aspect-ratio: 16 / 10; }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--primary); font-size: 26px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: all .15s; line-height: 1;
}
.gal-nav:hover { background: var(--primary); color: #fff; }
.gal-prev { left: 14px; }
.gal-next { right: 14px; }
.gal-counter { position: absolute; bottom: 12px; left: 14px; background: rgba(8,43,32,.8); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumb { flex: none; width: 110px; border: 2px solid transparent; border-radius: 9px; overflow: hidden; padding: 0; background: none; opacity: .75; transition: all .15s; }
.gal-thumb.active { border-color: var(--accent); opacity: 1; }
.gal-thumb:hover { opacity: 1; }

.property-info .property-title-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.property-info h1 { font-size: clamp(19px, 2.4vw, 25px); color: var(--primary); line-height: 1.5; }
.property-price-box { text-align: left; }
.property-price { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--accent-dark); display: block; }
.property-price-box small { color: var(--text-muted); }
.property-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.property-meta strong { color: var(--primary); }
.meta-sold { color: var(--danger); font-weight: 700; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.specs-grid li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.spec-label { font-size: 12px; color: var(--text-muted); }
.spec-value { font-weight: 800; color: var(--primary); font-size: 16px; }
.property-description { color: var(--text); line-height: 2; white-space: normal; }
.location-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map-link { font-size: 13.5px; color: var(--info); }
.map-link:hover { text-decoration: underline; }

.property-sidebar { position: sticky; top: 130px; }
.inquiry-box .direct-contact { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.similar-section { border-top: 1px solid var(--line); }

/* =========================================================
   النماذج والتنبيهات
   ========================================================= */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: var(--primary); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; }
.form-field textarea { resize: vertical; }
.req { color: var(--danger); }
.field-help, .form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.alert { border-radius: 10px; padding: 13px 16px; margin-bottom: 16px; font-size: 14.5px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: var(--warning); }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: var(--info); }
.alert a { font-weight: 700; text-decoration: underline; }
.alert ul { margin: 6px 18px 0 0; list-style: disc; }

/* =========================================================
   اتصل بنا / من نحن
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; padding-block: 34px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: rgba(11,61,46,.07); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list strong { display: block; color: var(--primary); font-size: 14px; }
.contact-list a, .contact-list span { color: var(--text); font-size: 15px; }
.contact-list a:hover { color: var(--primary); }

.about-container { padding-block: 34px; }
.about-intro { max-width: 900px; }
.about-lead { font-size: 16.5px; line-height: 2.1; }
.about-tagline { margin-top: 12px; font-weight: 700; color: var(--accent-dark); }
.container-inner { max-width: 1000px; margin-inline: auto; }

/* =========================================================
   التذييل
   ========================================================= */
.site-footer { background: var(--primary-dark); color: #c8d8d0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding: 48px 0 36px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 2.5px; background: var(--accent); border-radius: 2px; }
.brand-footer { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--accent); }
.brand-footer strong { color: #fff; font-size: 18px; }
.footer-about p { font-size: 14px; line-height: 1.9; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  color: #cfe0d8; display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.footer-social a:hover { background: var(--accent); color: #201a08; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #c8d8d0; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { font-size: 14px; margin-bottom: 9px; }
.footer-contact a { color: #c8d8d0; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 16px 0; font-size: 13.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-admin .admin-login-link { color: #8fa89e; }
.footer-admin .admin-login-link:hover { color: var(--accent); }
.footer-simple { background: var(--primary-dark); }

/* =========================================================
   صفحة 404
   ========================================================= */
.error-page { padding: 80px 0; text-align: center; }
.error-code { font-size: 90px; font-weight: 800; color: rgba(11,61,46,.12); line-height: 1; }
.error-page h1 { color: var(--primary); font-size: 26px; margin: 10px 0; }
.error-page p { color: var(--text-muted); max-width: 480px; margin-inline: auto; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* =========================================================
   صفحة تسجيل الدخول
   ========================================================= */
.login-page-body { background: linear-gradient(140deg, var(--primary-dark), var(--primary-light)); min-height: 100vh; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card {
  background: #fff; border-radius: 18px; padding: 38px 34px; width: min(430px, 100%);
  box-shadow: var(--shadow-lg);
}
.login-head { text-align: center; margin-bottom: 22px; }
.login-head h1 { color: var(--primary); font-size: 22px; margin-top: 12px; }
.login-head p { color: var(--text-muted); font-size: 13.5px; }
.login-note { font-size: 12.5px; color: var(--text-muted); margin-top: 18px; text-align: center; }
.login-back { text-align: center; margin-top: 10px; font-size: 13.5px; }

/* =========================================================
   تجاوب
   ========================================================= */
@media (max-width: 1024px) {
  .listings-layout { grid-template-columns: 1fr; }
  .property-layout { grid-template-columns: 1fr; }
  .property-sidebar { position: static; }
  .filters-panel { position: static; display: none; }
  .filters-panel.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 44px 0; }
  .hero-inner { padding: 48px 0 40px; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hs-submit { grid-column: 1 / -1; }
  .navbar-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding-block: 12px; border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a:not(.btn) { padding: 11px 14px; }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .topbar-contact { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-search { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .properties-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
}

/* طباعة عامة */
@media print {
  .site-header, .site-footer, .filters-panel, .results-bar, .pagination,
  .gal-nav, .inquiry-box, .cta-band, .breadcrumb, .skip-link { display: none !important; }
  body { background: #fff; }
  .property-layout, .listings-layout { grid-template-columns: 1fr; }
  .card-block { box-shadow: none; border-color: #ccc; }
}
