@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  /* الألوان */
  --primary-color: #006c75;
  --primary-dark: #00555c;
  --primary-light: rgba(0, 108, 117, 0.08);
  --accent-color: #c9a227; /* لون ذهبي للمسات الفخمة */
  --dark-color: #1a1a1a;
  --text-gray: #555;
  --bg-body: #fdfdfd;
  --bg-cards: #ffffff;
  
  /* المسافات والحدود */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 100px;
  
  /* الظلال الناعمة (Modern Shadows) */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 32px rgba(0, 108, 117, 0.15);

  /* الحركة */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  direction: ltr;
  background-color: var(--bg-body);
  color: var(--dark-color);
  line-height: 1.7;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
/* --- التعديل النهائي والمنظم للهيدر --- */

/* =========================
   Header (Makeen-like) فقط
========================= */
.je3-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 90px;

  /* شفاف فوق الهيرو */
  background: transparent;
  border: 0;

  display: flex;
  align-items: center;
}
.je3-header__inner{
  width: 100%;
  margin: 0;
  padding: 0 18px;           /* مسافة بسيطة من الطرف */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}


/* يسار */
.je3-left{
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.je3-icon{
  width: 36px;
  height: 36px;
  display: grid;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: .92;
}
.je3-icon svg{ width: 22px; height: 22px; }
.je3-icon:hover{ opacity: 1; }

.je3-lang{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .6px;
  opacity: .92;
}
.je3-lang:hover{ 
    opacity: 1; 
    height: 20px;
}

/* روابط الدخول/الحساب */
.je3-auth{ display:flex; align-items:center; gap:10px; }
.je3-auth__link{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  opacity: .95;
}
.je3-auth__link:hover{ opacity: 1; }
.je3-auth__link--outline{ background: rgba(255,255,255,.08); }

/* عند النزول: الهيدر يصبح أبيض والألوان غامقة */
.je3-header._scrolled{ background:#fff; border-bottom:1px solid #eaeaea; }
.je3-header._scrolled .je3-icon{ color: var(--dark-color); }
.je3-header._scrolled .je3-lang{ color: var(--dark-color); }
.je3-header._scrolled .main-nav ul li a{ color: var(--dark-color); }
.je3-header._scrolled .je3-auth__link{ color: var(--dark-color); border-color: rgba(0,0,0,.15); }
.je3-header._scrolled .je3-auth__link--outline{ background: rgba(0,0,0,.04); }

/* الوسط */
.main-nav{
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-nav ul{
  display: flex;
  list-style: none;
  gap: 38px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.main-nav ul li a{
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  opacity: .92;
}
.main-nav ul li a:hover{ opacity: 1; }

/* اليمين: الشعار */
.logo{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 0 !important;
  padding-right: 0 !important;
}
.je3-header .site-logo{
  height: 66px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}

/* في مكين غالباً ما يظهر نص جنب الشعار */
.brand-name{
  display: none;
}

/* موبايل */
@media (max-width: 980px){
  .je3-header{ height: 76px; }
  .je3-header__inner{ grid-template-columns: 1fr 1fr; }
  .main-nav{ display: none; }
  .je3-header .site-logo{ height: 48px; }
}

/* =========================
   2. قسم الهيرو (Cinematic Hero)
   ========================= */
.hero-banner {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* لضمان توسط المحتوى بصرياً */
}

/* الخلفيات المتحركة */
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.2s ease, transform 8s ease; /* زووم بطيء جداً وفخم */
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  /* تدرج لوني سينمائي */
  background: linear-gradient(
    270deg, 
    rgba(0,0,0,0.85) 0%, 
    rgba(0,0,0,0.6) 50%, 
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  max-width: 750px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-hero {
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-hero.primary {
  background: #fff; color: var(--dark-color);
}
.btn-hero.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}
.btn-hero.outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(5px);
}
.btn-hero.outline:hover { background: #fff; color: var(--dark-color); }

/* نقاط التنقل */
.hero-dots {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 20;
}
.hero-dots button {
  width: 40px; height: 4px; /* شكل خطوط بدلاً من نقاط */
  background: rgba(255,255,255,0.3);
  border: none; border-radius: 4px;
  cursor: pointer; transition: var(--transition);
}
.hero-dots button.active { background: #fff; width: 60px; }

/* =========================
   3. الكروت والأقسام (Aesthetic Cards)
   ========================= */
.content-section { padding: 100px 0; position: relative; }
.content-section:nth-of-type(even) { background-color: #fafafa; }

.section-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: 32px; font-weight: 700; color: var(--dark-color);
  margin-bottom: 16px; position: relative; display: inline-block;
}
/* خط زخرفي تحت العنوان */
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--primary-color); margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle { font-size: 16px; color: var(--text-gray); }

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

.modern-card {
  background: var(--bg-cards);
  border-radius: var(--radius-m);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.03); /* حدود شبه مخفية */
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
/* تأثير زخرفي عند الهوفر */
.modern-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
  background: var(--primary-color); transition: 0.4s;
}
.modern-card:hover::before { height: 100%; }

.modern-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--primary-color); }
.modern-card p { font-size: 15px; color: var(--text-gray); line-height: 1.8; margin: 0; }

/* =========================
   4. بحث الأراضي ونماذج الاتصال
   ========================= */
.search-container {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid rgba(0,0,0,0.04);
}

.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.input-group { position: relative; }
.input-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--dark-color); margin-bottom: 8px;
}
.input-field {
  width: 100%; height: 52px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-s);
  padding: 0 16px;
  font-size: 15px;
  transition: var(--transition);
  background: #fcfcfc;
}
.input-field:focus {
  border-color: var(--primary-color);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.land-card {
  background: #fff; border-radius: var(--radius-m);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid #eee;
  display: flex; flex-direction: column;
}
.land-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.land-body { padding: 24px; flex: 1; }
.land-footer {
  background: #fcfcfc; padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex; gap: 10px; align-items: center;
}
.tag {
  display: inline-block; padding: 4px 10px;
  background: var(--primary-light); color: var(--primary-color);
  border-radius: 6px; font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
/* زر الواتساب العائم */
.wa-float {
  position: fixed; right: 24px; bottom: 24px;
 background: linear-gradient(135deg, var(--primary-color), #0a8b96);
color: #fff;
  padding: 14px 28px; border-radius: 50px;
 box-shadow: 0 12px 28px rgba(0, 108, 117, 0.35);
  font-weight: 700; display: flex; align-items: center; gap: 8px;
  z-index: 9999; transition: var(--transition);
}
.wa-float:hover { transform: scale(1.05) translateY(-2px); }

.wa-float { text-decoration: none; }

.wa-float .add-land-icon{
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  font-size: 18px;
  line-height: 1;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 900px) {
  .cards-grid, .search-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .je3-header { padding: 0 20px; height: 70px; }
  .nav-toggle { display: block; color: #fff; font-size: 24px; background: none; border: none; }
  .je3-header._scrolled .nav-toggle { color: var(--dark-color); }
  
  .main-nav {
    position: fixed; top: 0; right: 0; width: 80%; max-width: 300px;
    height: 100vh; background: #fff;
    padding: 80px 24px; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { color: var(--dark-color); padding: 16px 0; border-bottom: 1px solid #f5f5f5; font-size: 16px; }
  .main-nav a:hover::after { width: 0; }
  
  .user-actions { display: none; }
  .mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
  
  .cards-grid, .search-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 36px; }
}


html[dir="ltr"] .hero-content{
  padding-right: 0;
  padding-left: 1%;
}
html[dir="ltr"] .logo{
  justify-self: start;
}
html[dir="ltr"] .je3-left{
  justify-content: flex-end;
}
html[dir="ltr"] .search-grid,
html[dir="ltr"] .cards-grid,
html[dir="ltr"] .contact-grid{
  direction: ltr;
}
html[dir="ltr"] .input-field,
html[dir="ltr"] select,
html[dir="ltr"] textarea{
  text-align: left;
}
html[dir="ltr"] .wa-float{
  left: auto;
  right: 24px;
}


/* =========================================================
   Mobile responsive fix - added 2026
   يحافظ على نسخة الكمبيوتر، ويضبط نسخة الجوال فقط
========================================================= */
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:14px;
  background:rgba(255,255,255,.10);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  z-index:1201;
}
.je3-header._scrolled .nav-toggle{
  color:var(--dark-color);
  border-color:rgba(0,0,0,.12);
  background:rgba(0,0,0,.04);
}

@media (max-width: 980px){
  html,body{ width:100%; overflow-x:hidden; }
  .container{ width:100%; max-width:100%; padding-inline:18px; }

  .je3-header{
    height:72px;
    padding:0;
  }
  .je3-header__inner{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:10px;
    padding:0 14px;
  }
  .logo{ justify-self:start; min-width:0; }
  .je3-header .site-logo{ height:54px; max-width:150px; }
  .nav-toggle{ display:inline-flex; justify-self:end; }
  .je3-left{
    justify-self:end;
    gap:8px;
    min-width:0;
  }
  .je3-icon{ width:34px; height:34px; }
  .je3-lang{ font-size:13px; }
  .je3-auth{ gap:6px; }
  .je3-auth__link{
    padding:7px 8px;
    font-size:12px;
    border-radius:10px;
  }

  .main-nav{
    display:flex !important;
    position:fixed;
    top:0;
    right:0;
    width:min(82vw, 330px);
    height:100vh;
    background:#fff;
    padding:88px 22px 28px;
    box-shadow:-18px 0 45px rgba(0,0,0,.16);
    transform:translateX(105%);
    transition:transform .35s ease;
    z-index:1200;
    align-items:flex-start;
    justify-content:flex-start;
  }
  .main-nav.is-open{ transform:translateX(0); }
  .main-nav ul{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:0;
  }
  .main-nav ul li a,
  .je3-header._scrolled .main-nav ul li a{
    display:block;
    color:var(--dark-color);
    padding:15px 4px;
    border-bottom:1px solid #f0f0f0;
    font-size:16px;
    opacity:1;
  }

  .hero-banner{
    height:auto;
    min-height:640px;
    padding-top:90px;
    padding-bottom:80px;
    align-items:center;
  }
  .hero-overlay{
    background:linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.35) 100%);
  }
  .hero-content{
    max-width:100%;
    padding:0;
    text-align:center;
  }
  .hero-content h1{
    font-size:clamp(30px, 8vw, 44px);
    line-height:1.35;
    margin-bottom:16px;
  }
  .hero-content p{
    font-size:16px;
    line-height:1.9;
    margin:0 auto 26px;
    max-width:95%;
  }
  .hero-cta{
    justify-content:center;
    gap:10px;
  }
  .btn-hero{
    padding:13px 20px;
    font-size:14px;
    min-height:46px;
  }
  .hero-dots{ bottom:24px; }
  .hero-dots button{ width:28px; }
  .hero-dots button.active{ width:42px; }

  .content-section{ padding:58px 0; }
  .section-header{ margin-bottom:32px; padding-inline:4px; }
  .section-title{ font-size:26px; line-height:1.35; }
  .section-subtitle{ font-size:15px; line-height:1.8; }
  .cards-grid,
  .search-grid,
  .contact-grid{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
  .modern-card{
    padding:22px;
    border-radius:18px;
  }
  .search-container{
    padding:20px;
    border-radius:18px;
  }
  .input-field{
    height:48px;
    font-size:14px;
  }
  .land-footer{
    padding:14px 18px;
    flex-wrap:wrap;
  }
  .land-footer .btn-hero{
    flex:1 1 100% !important;
  }
  .wa-float{
    right:14px;
    bottom:14px;
    padding:12px 18px;
    font-size:14px;
  }
}

@media (max-width: 520px){
  .je3-header__inner{ grid-template-columns:auto auto 1fr; padding-inline:10px; }
  .je3-header .site-logo{ height:48px; max-width:125px; }
  .je3-auth__link{ font-size:11px; padding:6px 7px; }
  .je3-icon{ display:none; }
  .hero-banner{ min-height:600px; }
  .hero-content h1{ font-size:30px; }
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .hero-cta .btn-hero{ width:100%; }
  .section-title{ font-size:24px; }
  #lands .section-header > div[style]{ justify-content:center !important; }
  #lands .section-header .btn-hero{ width:100%; }
  .search-container div[style*="text-align:left"]{ text-align:center !important; }
  #resetBtn{ margin-right:0 !important; margin-top:8px; }
}
/* =========================
   Footer
========================= */

.site-footer {
  background: #214A2D;
  color: #ffffff;
  padding: 70px 0 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px 45px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.9;
}

.footer-col strong {
  color: #ffffff;
  font-weight: 700;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-col ul li a {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  transition: 0.3s ease;
}

.footer-col ul li a:hover {
  color: #c9a227;
  padding-left: 5px;
}

/* RTL support (important for Arabic version consistency) */
[dir="rtl"] .footer-col ul li a:hover {
  padding-left: 0;
  padding-right: 5px;
}

.footer-logo {
  width: 110px;
  height: auto;
  margin-bottom: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 420px;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-trust span {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: #ffffff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 18px;
  text-align: center;
  background: rgba(0,0,0,.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    padding: 0 16px 34px;
  }

  .footer-col {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 20px;
    padding: 22px 18px;
  }

  .footer-brand {
    background: transparent;
    border: 0;
    padding-top: 0;
  }

  .footer-logo {
    width: 96px;
    margin: 0 auto 12px;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.95;
  }

  .footer-col h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .footer-col p,
  .footer-col ul li a {
    font-size: 14px;
    line-height: 1.9;
  }

  .footer-col ul li a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
  }

  .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-bottom {
    padding: 16px 12px;
  }

  .footer-bottom p {
    font-size: 12.5px;
    line-height: 1.8;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding-top: 38px;
  }

  .footer-container {
    gap: 14px;
    padding-inline: 12px;
  }

  .footer-col {
    border-radius: 18px;
    padding: 20px 14px;
  }

  .footer-logo {
    width: 86px;
  }

  .footer-col h3 {
    font-size: 17px;
  }

  .footer-col p,
  .footer-col ul li a {
    font-size: 13.5px;
  }
}