/* General */
body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background: #f7f7f7;
  color: #222;
}

h1, h2, h3 {
  margin: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: center; /* الروابط في المنتصف */
  align-items: center;
  background: transparent; /* شفاف في البداية */
  transition: all 0.4s ease;
  z-index: 1000;
}

/* عند النزول */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* شعار الشركة */
.logo {
  position: absolute;
  right: 40px; /* اللوجو على اليسار */
}

.logo img {
  height: 110px; /* تكبير 100% */
}

/* روابط الهيدر */
.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: white; /* أبيض في البداية */
  font-weight: bold;
  font-size: 20px; /* تكبير بنسبة 50% */
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

/* تأثير عند المرور */
.nav a:hover,
.nav a:focus {
  color: #879dad;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #879dad;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* عند النزول تصبح الروابط سوداء */
.header.scrolled .nav a {
  color: #222;
}

.hero {
  height: 100vh;
  background: url('background1.png') center/cover no-repeat;
  display: flex;
  flex-direction: column; /* ترتيب العمود: نص أعلى وبحث أسفل */
  justify-content: center; /* محاذاة عمودية للنص */
  align-items: center; /* محاذاة أفقية للنص */
  color: white;
  padding: 120px 20px 40px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 48px;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content p {
  margin-top: 10px;
  font-size: 20px;
  animation: fadeIn 2.2s ease-in-out;
}

/* البحث داخل الهيرو */
.property-search {
  width: 100%;
  max-width: 1000px;
  margin-top: 0px; /* مسافة بين النص ومربع البحث */
}

/* Property Search */
.property-search {
  padding: 80px 40px;
  text-align: center;
  background: #f5f5f5; /* لون خلفية خفيف */
}

.property-search h2 {
  font-size: 36px;
  font-weight: bold;
  color: #222;
  margin-bottom: 50px;
  position: relative;
}

.property-search h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #0077cc;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Property Search */
.property-search {
  padding: 100px 20px;
  background: url('assets/search-bg.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* استيراد خط حياة */
@import url('https://fonts.googleapis.com/css2?family=Haya:wght@400;700&display=swap');

.property-search {
  padding: 100px 20px;
  background: url('assets/search-bg.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Haya', sans-serif;
}

.search-container {
  background: rgba(255, 255, 255, 0.98);
  padding: 50px 50px 40px 50px;
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.search-container h2 {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 40px;
  position: relative;
}

.search-container h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #0077cc;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* النموذج */
.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* خانة البحث النصية */
.search-input {
  flex: 2;
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 18px 50px 18px 20px;
  font-size: 18px;
  font-family: 'Haya', sans-serif;
  border-radius: 15px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

.search-input input::placeholder {
  color: #888;
  font-weight: 400;
}

.search-input input:focus {
  border-color: #0077cc;
  box-shadow: 0 5px 15px rgba(0,119,204,0.2);
}

.search-input .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #0077cc;
}

/* خيارات التخصيص */
.search-options {
  flex: 1;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.option-field {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.option-field label {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}

.option-field select {
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: 'Haya', sans-serif;
  outline: none;
  transition: 0.3s;
}

.option-field select:focus,
.option-field select:hover {
  border-color: #0077cc;
  box-shadow: 0 4px 12px rgba(0,119,204,0.2);
}

/* زر البحث */
.search-form button {
  padding: 15px 35px;
  background-color: #0077cc;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.search-form button:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}

/* متجاوب */
@media (max-width: 900px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-options {
    justify-content: space-between;
  }
}

/* بطاقة الخدمة */
.featured {
  padding: 80px 0;
  background: #f7f7f7;
  text-align: center;
}

.featured h2 {
  font-size: 36px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}

.featured h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #0077cc;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* السلايدر */
.slider-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}

.slider {
  display: flex;
  gap: 20px; /* المسافة بين البطاقات */
  transition: transform 0.5s ease-in-out;
  justify-content: center;
}

/* البطاقة */
.property-card {
  width: 50%; /* 3 بطاقات تغطي تقريباً 80% مع الفجوات */
  height: 60vh; /* نصف ارتفاع الشاشة */
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: right;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.property-card img {
  width: 100%;
  height: 60%; /* جزء من البطاقة */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.property-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.property-card p {
  font-size: 16px;
  color: #555;
}

/* أزرار التحريك */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 35px;
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.6);
}

.stats {
  padding: 80px 40px;
  text-align: center;
}

/* العنوان فوق البطاقات */
.stats-title {
  font-size: 36px;
  font-weight: bold;
  color: #222;
  margin-bottom: 50px;
  position: relative;
}

.stats-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #0077cc;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* الحاوية الرئيسية للبطاقات بشكل أفقي */
.stat-box-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap; /* منع الالتفاف */
  align-items: stretch;
  overflow-x: auto; /* التمرير أفقي إذا لزم */
  padding: 10px 0;
}

/* البطاقات */
.stat-box {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100px; /* عرض ثابت */
  text-align: center;
  flex: 0 0 auto; /* منع الالتفاف */
}

.stat-box h3 {
  font-size: 40px;
  color: #0077cc;
  margin-bottom: 10px;
}

.stat-box p {
  font-size: 18px;
  color: #555;
}


/* Services */
.services {
  padding: 80px 40px;
  text-align: center;
}

/* عنوان الخدمات */
.services h2 {
  font-size: 36px; /* نفس حجم عنوان الإحصائيات */
  font-weight: bold;
  color: #222;
  margin-bottom: 50px;
  position: relative;
}

.services h2::after {
  content: '';
  display: block;
  width: 60px; /* نفس خط الإحصائيات */
  height: 4px;
  background-color: #0077cc;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* قائمة الخدمات */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* بطاقة الخدمة */
.service-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* تأثير عند المرور على البطاقة */
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-item img {
  width: 350px;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 16px;
  color: #555;
}

/* Contact */
.contact {
  padding: 80px 40px;
  text-align: center;
}







.whatsapp-fixed {
    position: fixed !important; /* أهم شيء */
    bottom: 25px;
    right: 25px;
    z-index: 99999;
}

.whatsapp-fixed img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.whatsapp-fixed img:hover {
    transform: scale(1.1);
}
.whatsapp-fixed img {
    width: 70px !important;
    height: 70px !important;
}







.ltr-text {
    direction: ltr;   /* يجعل النص من اليسار لليمين */
    unicode-bidi: embed;  /* يضمن ترتيب الأرقام بشكل صحيح */
}





.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0); /* خلفية جذابة */
    text-align: center;
    font-family: 'Tajawal', sans-serif;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.contact h2 {
    font-size: 36px;
    font-weight: bold;
    color: #222;
    margin-bottom: 40px;
    position: relative;
}

.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0077cc;
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-info p {
    font-size: 18px;
    margin: 15px 0;
    color: #555;
}

.contact-info a {
    color: #0077cc;
    text-decoration: none;
    transition: 0.3s;
}

.contact-info a:hover {
    color: #005fa3;
}

.ltr-text {
    direction: ltr;
    unicode-bidi: embed;
}

.contact-social {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-link {
    font-size: 30px;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #405de6, #833ab4, #fd1d1d, #fcb045); /* تأثير متدرج رائع */
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}









.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa, #e4e9f0); /* خلفية جذابة */
    text-align: center;
    font-family: 'Tajawal', sans-serif;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.contact h2 {
    font-size: 36px;
    font-weight: bold;
    color: #222;
    margin-bottom: 40px;
    position: relative;
}

.contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0077cc;
    margin: 15px auto 0;
    border-radius: 2px;
}

.contact-info p {
    font-size: 18px;
    margin: 15px 0;
    color: #555;
}

.contact-info a {
    color: #0077cc;
    text-decoration: none;
    transition: 0.3s;
}

.contact-info a:hover {
    color: #005fa3;
}

.ltr-text {
    direction: ltr;
    unicode-bidi: embed;
}

.contact-social {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-link {
    font-size: 30px;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #405de6, #833ab4, #fd1d1d, #fcb045); /* تأثير متدرج رائع */
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}












@media screen and (max-width: 768px) {

  /* ======================== */
  /* Header */
  /* ======================== */
  .header {
    display: flex;
    flex-direction: column;       /* اللوجو فوق والروابط تحت */
    align-items: center;
    padding: 8px 10px;
    background-color: transparent;
    box-shadow: none;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
  }

  .header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  /* Logo */
  .header .logo img {
    width: 80px;          /* تصغير اللوجو ليناسب الهاتف */
    height: auto;
    max-width: 90%;       /* منع تجاوز الشاشة */
    display: block;
    margin-bottom: 8px;
  }

  /* روابط الهيدر */
  .header .nav {
    display: flex;
    flex-direction: row;
    justify-content: center;      /* توسيط الروابط */
    align-items: center;
    gap: 10px;                    /* مسافة متساوية بين الروابط */
    flex-wrap: nowrap;             /* كل الروابط في سطر واحد */
    width: 100%;
    max-width: 100%;               /* ضمان عدم تجاوز الشاشة */
    overflow-x: hidden;            /* منع تجاوز الروابط */
    padding: 0;
    box-sizing: border-box;
  }

  .header .nav a {
    font-size: 12px;               /* تصغير الخط قليلًا */
    font-weight: 600;
    color: #fff;                   /* نص أبيض على الشفافية */
    text-decoration: none;
    padding: 4px 6px;              /* حشو داخلي صغير */
    white-space: nowrap;           /* منع كسر السطر */
    text-align: center;
    flex-shrink: 1;                /* السماح للروابط بالانكماش */
    min-width: 0;                  /* لمنع تجاوز الشاشة */
  }

  .header .nav a:hover {
    color: #007bff;
  }

  /* ======================== */
  /* Hero Section */
  /* ======================== */
  .hero .hero-content h1 {
    font-size: 20px;
    text-align: center;
    line-height: 1.2;
  }

  .hero .hero-content p {
    font-size: 14px;
    text-align: center;
  }

  /* مربع البحث */
  .property-search {
    width: 95%;
    margin: 15px auto;
  }

  .property-search .search-container h2 {
    font-size: 16px;
    text-align: center;
  }

  .property-search .search-form input[type="text"] {
    width: 100%;
    padding: 8px;
    font-size: 14px;
  }

  .property-search .search-options {
    flex-direction: column;
    gap: 10px;
  }

  .property-search .search-form button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  /* ======================== */
  /* Featured Properties Slider */
  /* ======================== */
  .slider-container {
    overflow-x: auto;
    padding: 5px 0;
  }

  .slider {
    display: flex;
    gap: 10px;
  }

  .property-card {
    min-width: 200px;
    flex: none;
    text-align: center;
  }

  .property-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* ======================== */
  /* Stats Section */
  /* ======================== */
  .stat-box-container {
    flex-direction: column;
    gap: 12px;
  }

  .stat-box {
    text-align: center;
  }

  /* ======================== */
  /* Services Section */
  /* ======================== */
  .services-list {
    flex-direction: column;
    gap: 12px;
  }

  .service-item {
    width: 100%;
    text-align: center;
  }

  .service-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
  }

  /* ======================== */
  /* Contact Section */
  /* ======================== */
  .contact-container {
    padding: 15px;
    text-align: center;
  }

  .contact-info p {
    font-size: 14px;
    margin: 4px 0;
  }

  .contact-social a {
    font-size: 20px;
    margin: 0 5px;
  }

  /* ======================== */
  /* WhatsApp Fixed */
  /* ======================== */
  .whatsapp-fixed img {
    width: 40px;
    height: 40px;
  }
}













/* زر الهامبرجر */
.hamburger {
    display: none;
    position: fixed;  /* ثابت فوق كل شيء */
    top: 15px;
    left: 25px;      /* على يسار الشاشة */
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #222;
    border-radius: 2px;
}

/* قائمة الموبايل */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;  /* خارج الشاشة في البداية */
    width: 260px;
    height: 100%;
    background: #fff;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1500;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu a {
    color: #222;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.3);
    z-index: 1400;
}

.menu-overlay.show {
    display: block;
}

/* على الموبايل */
@media screen and (max-width: 768px) {
    .hamburger { display: flex; }
    .nav { display: none !important; }  /* اخفاء الروابط الافتراضية */
}
