:root {
  /* تعريف متغيرات CSS لسهولة التعديل وتوحيد الألوان */
  --primary-brown: rgb(158, 122, 74);
  --dark-brown: #4b3a1f;
  --light-beige: #f7f3ee;
  --hover-brown: #a17440;
  --light-gold: #ffe29a;
  --black-overlay: rgba(0, 0, 0, 0.4);
  --white-color: white;
  --gray-color: gray;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light-beige);
  margin: 0;
  color: var(--dark-brown);
  line-height: 1.6; /* تحسين قراءة النصوص */
}

/* Header */
header {
  background: var(--white-color);
  color: var(--primary-brown);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* للسماح للعناصر بالنزول لسطر جديد على الشاشات الصغيرة */
}

header h1 {
  margin: 0;
  font-size: 2rem; /* حجم خط افتراضي */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
}

/* Navigation */
nav {
  display: flex;
  gap: 30px;
  margin-left: 100px;
  flex-wrap: wrap; /* للسماح للروابط بالنزول لسطر جديد */
  justify-content: center; /* لتوسيط الروابط عند الالتفاف */
}

nav a {
  color: var(--primary-brown);
  text-decoration: none;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
  padding: 5px 0; /* إضافة بعض المساحة العلوية والسفلية للروابط */
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-brown);
  transition: width 0.3s ease;
}

nav a:hover, nav a:focus { /* إضافة focus للحصول على سهولة الوصول */
  color: var(--hover-brown);
  outline: none; /* إزالة الخط الافتراضي لتركيز المتصفح */
}

nav a:hover::after, nav a:focus::after {
  width: 100%;
  background: var(--hover-brown);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: url('skyscrapers-450793_1280.jpg'); /* تأكد من أن هذا المسار صحيح */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  padding: 40px 20px; /* زيادة Padding لتحسين المظهر */
  color: var(--white-color);
  overflow: hidden;
  display: flex; /* استخدام flex لتوسيط المحتوى بسهولة */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-section h2 {
  font-size: 2.8rem; /* حجم أكبر لعنوان جذاب */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* ظل للنص لتحسين القراءة */
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px; /* تحديد عرض أقصى للفقرة */
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--black-overlay);
  z-index: 0;
}

.hero-section h2, .hero-section p, .hero-section form {
  position: relative;
  z-index: 1;
}

/* Search Form */
.search-form {
  background: transparent; /* استخدام transparent بدلاً من rgba(0,0,0,0) */
  padding: 20px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  max-width: 900px; /* زيادة أقصى عرض لنموذج البحث */
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(158, 122, 74, 0.1);
  flex-wrap: wrap; /* للسماح للعناصر بالنزول لسطر جديد */
  align-items: center;
  justify-content: center; /* لتوسيط العناصر داخل النموذج */
}

select, input[type="text"], input[type="number"], button { /* تحديد أنواع الإدخال بدقة */
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1; /* للسماح للعناصر بالتمدد */
  min-width: 150px; /* حد أدنى للعرض لمنع الانكماش الشديد */
}

button {
  background: var(--primary-brown);
  color: var(--white-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex: none; /* منع الزر من التمدد بشكل غير مرغوب فيه */
  padding: 10px 25px; /* زيادة مساحة الزر */
}

button:hover, button:focus {
  background-color: var(--hover-brown);
  outline: none;
}

/* Property List */
.property-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* تقليل الحد الأدنى للعرض للسماح بالمزيد من الأعمدة على الشاشات الأصغر */
  gap: 25px; /* زيادة الفجوة بين البطاقات */
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.property-card {
  background: var(--white-color);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(158, 122, 74, 0.2);
  text-align: left; /* جعل محاذاة النص لليسار داخل البطاقة */
  position: relative;
  overflow: hidden; /* لإخفاء أي جزء من الصورة يخرج عن البطاقة عند التكبير */
}

.property-card img {
  width: 100%;
  height: 200px; /* زيادة ارتفاع الصورة قليلاً لتحسين الرؤية */
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease; /* إضافة انتقال لتأثير التكبير */
}

.property-card img:hover {
  transform: scale(1.05); /* تكبير الصورة قليلاً عند التمرير */
}

/* زر التنقل للصور داخل البطاقة (إذا كانت البطاقة تحتوي على معرض) */
.next-img-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7); /* خلفية شبه شفافة */
  border: none;
  color: var(--dark-brown); /* لون داكن للزر */
  padding: 8px 12px;
  font-size: 1.2rem;
  border-radius: 50%; /* لجعل الزر دائرياً */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  z-index: 2; /* تأكد من ظهوره فوق الصورة */
  display: none; /* إخفاؤه بشكل افتراضي إذا لم يكن هناك معرض صور */
}

.next-img-btn:hover {
  background-color: var(--white-color);
  color: var(--primary-brown);
}

.property-card h3 {
  font-size: 1.5rem;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--primary-brown);
}

.property-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}

.property-card .price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-brown);
  margin-bottom: 15px;
}


.property-button {
  margin-top: 15px;
  background: var(--primary-brown);
  color: var(--white-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
  display: inline-block; /* لكي يعمل padding بشكل صحيح */
}

.property-button:hover, .property-button:focus {
  background-color: var(--hover-brown);
  outline: none;
}

.property-button:disabled {
  background-color: var(--gray-color);
  cursor: not-allowed;
}

.view-more-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px; /* إضافة هامش سفلي */
}

.view-more-button {
  padding: 12px 25px; /* زيادة حجم الزر */
  background-color: var(--hover-brown);
  color: var(--white-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
}

.view-more-button:hover, .view-more-button:focus {
  background-color:rgba(53, 39, 9, 0.719);
  outline: none;
}

/* Property Detail Page */
.property-detail-layout {
  display: flex;
  flex-direction: row; /* افتراضي لسطر */
  gap: 30px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 30px auto; /* هامش علوي وسفلي */
  padding: 20px;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(158, 122, 74, 0.1);
}

.image-section {
  flex: 2; /* لتأخذ مساحة أكبر من قسم المعلومات */
  display: flex;
  overflow-x: auto; /* يسمح بالتمرير الأفقي */
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 10px 0; /* إزالة padding يمين ويسار من هنا وإضافة للصور مباشرة */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; /* تمرير سلس */
}

.image-section img {
  scroll-snap-align: start; /* لتحديد بداية الصورة في التمرير */
  flex: 0 0 auto; /* يمنع الصور من الانكماش أو التمدد */
  width: 100%; /* تأخذ عرض قسم image-section */
  max-width: 450px; /* تحديد أقصى عرض للصور الفردية */
  height: 350px; /* زيادة الارتفاع قليلاً */
  object-fit: cover; /* تغطية المساحة بدلاً من contain */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-section img:hover {
  transform: scale(1.02); /* تكبير أقل لتجنب الخروج عن الإطار مع object-fit: cover */
  cursor: zoom-in; /* إشارة بأن الصورة قابلة للتكبير */
}

.info-section {
  flex: 1; /* لتأخذ مساحة أقل من قسم الصور */
  padding-left: 20px;
}

.info-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--primary-brown);
}

.info-section p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #555;
}

.form-section {
  margin-top: 30px; /* زيادة الهامش العلوي */
  padding: 20px; /* زيادة padding */
  border-top: 1px solid #eee; /* خط فاصل أفتح */
  background: #fdfdfd; /* خلفية خفيفة للنموذج */
  border-radius: 8px;
}

input[type="text"], input[type="email"], textarea { /* تحديد أنواع الإدخال بدقة */
  width: calc(100% - 20px); /* ضبط العرض مع الأخذ في الاعتبار ال padding */
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 16px;
}

textarea {
  resize: vertical; /* السماح بتغيير حجم مربع النص عمودياً */
  min-height: 100px;
}

.form-section button {
  width: auto; /* السماح للزر بأخذ حجمه الطبيعي */
  display: block; /* لكي يأخذ سطرًا كاملًا */
  margin-top: 15px;
  padding: 12px 30px;
  font-size: 18px;
}

/* Contact Page */
.contact-container {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 2rem;
  max-width: 1000px; /* زيادة أقصى عرض لصفحة الاتصال */
  margin: auto;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(158, 122, 74, 0.1);
}

.contact-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: space-between; /* معلومات على اليسار وخريطة على اليمين */
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 300px; /* يسمح بالتقلص والتمدد */
  padding: 20px;
  text-align: left;
  padding-top: 70px;   /* مسافة أكبر من الأعلى */
  padding-right: 50px; /* مسافة أكبر من اليمين */
  padding-bottom: 20px; /* تبقي المسافة أسفل كما هي */
  padding-left: 100px;
   /* المعلومات على اليسار */
}
.contact-info a {
  color: black;
  text-decoration: none; /* لإزالة الخط السفلي إن أردت */
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #7a5c36;
}


.contact-map {
  flex: 1 1 300px;
  padding: 20px;
  text-align: center; /* الخريطة مركزة */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 80px;
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  border: 0;
  margin-bottom: 12px; /* مساحة تحت الخريطة للأزرار */
}

/* أزرار المواقع تحت الخريطة */
.location-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.location-buttons button {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  background-color: var(--primary-brown, #9e7a4a);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.location-buttons button:hover {
  background-color: #7a5c36;
}

.contact-info h2,
.contact-map h2 {
  margin-bottom: 1rem;
  color: var(--primary-brown);
  font-size: 1.8rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-form {
  padding: 2rem;
  border-top: 1px solid #eee;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--dark-brown);
}

.contact-form input,
.contact-form textarea {
  width: calc(100% - 20px);
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.contact-form button {
  width: auto;
  padding: 12px 30px;
  font-size: 18px;
  margin-top: 10px;
}


#loading {
  text-align: center;
  font-size: 20px;
  margin-top: 2rem;
  color: var(--gray-color);
}

main {
  background: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(158, 122, 74, 0.05);
  margin: 20px auto;
  max-width: 1200px;
  box-sizing: border-box; /* لضمان أن padding لا يزيد عن max-width */
}

footer {
  background: black;
  color: var(--white-color);
  text-align: center;
  padding: 25px; /* زيادة padding */
  margin-top: 40px;
  font-size: 0.9rem;
}

/* Home Page Sections */
.welcome-section {
  text-align: center;
  padding: 50px 20px; /* زيادة padding */
  background-color: var(--black-overlay);
  color: var(--white-color); /* لجعل جميع النصوص بيضاء افتراضيا في هذا القسم */
}

.welcome-section h2 {
  color: var(--primary-brown);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.welcome-section p {
  font-size: 1.1rem;
  color: var(--light-gold);
  max-width: 800px;
  margin: 0 auto;
}

.why-choose-section {
  padding: 50px 20px; /* زيادة padding */
  background-color: var(--light-beige);
}

.why-choose-section h2 {
  text-align: center;
  color: var(--primary-brown);
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.why-choose-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.why-card {
  flex: 1 1 280px; /* تعديل الأساس ليكون 280px */
  background: var(--white-color);
  padding: 25px; /* زيادة padding */
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(158, 122, 74, 0.1);
  margin-top: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* إضافة انتقال للظل */
}

.why-card h3 {
  color: var(--dark-brown);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.why-card p {
  color: #555;
  font-size: 0.95rem;
}

.why-card:hover {
  transform: translateY(-8px); /* زيادة الانتقال للأعلى قليلاً */
  box-shadow: 0 8px 18px rgba(158, 122, 74, 0.4); /* ظل أقوى وأوضح عند التمرير */
}

.call-to-action {
  background-color: var(--primary-brown);
  color: var(--white-color);
  text-align: center;
  padding: 50px 20px; /* زيادة padding */
}
.call-to-action h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.call-to-action p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 25px auto;
}

.call-to-action a {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px; /* زيادة حجم الزر */
  background-color: var(--white-color);
  color: var(--primary-brown);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1rem;
}

.call-to-action a:hover, .call-to-action a:focus {
  background-color: #e6d8bc;
  color: #7b6d56;
  outline: none;
}


/* =========================================== */
/* MEDIA QUERIES FOR RESPONSIVENESS  */
/* =========================================== */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .property-list {
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة بشكل عام للشاشات الكبيرة جدا */
  }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) { /* أو max-width: 1200px بدون .98 للاختبار */
  header {
    padding: 1rem 1.5rem;
  }
  nav {
    margin-left: 50px;
    gap: 20px;
  }
  .property-list {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* يمكن أن يكون 2 عمود أو أكثر حسب المتاح */
    padding: 1.5rem;
  }
  .property-detail-layout {
    flex-direction: row; /* يظل سطراً */
    gap: 20px;
    max-width: 90%;
    padding: 15px;
  }
  .image-section img {
    max-width: 100%; /* السماح للصور بالتمدد أكثر */
    height: 300px;
  }
  .contact-container {
    max-width: 90%;
    padding: 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) { /* أو max-width: 992px بدون .98 للاختبار */
  header {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  .logo {
    margin-bottom: 15px;
  }
  nav {
    margin-left: 0;
    justify-content: center;
    gap: 15px;
    width: 100%; /* تأخذ عرض كامل */
  }
  nav a {
    font-size: 16px;
    padding: 3px 0;
  }

  .hero-section h2 {
    font-size: 2.2rem;
  }
  .hero-section p {
    font-size: 1rem;
    max-width: 90%;
  }

  .search-form {
    flex-direction: column; /* جعل عناصر البحث تتكدس عموديًا */
    align-items: stretch; /* لتتمدد بالعرض */
    max-width: 90%;
    padding: 15px;
  }
  select, input[type="text"], input[type="number"], button {
    width: 100%; /* تأخذ عرض كامل */
    min-width: unset; /* إزالة الحد الأدنى للعرض هنا */
  }
  button {
    margin-top: 10px;
  }

  .property-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* تقليل الحد الأدنى للحجم لعمودين على الأقل */
    padding: 1rem;
    gap: 15px;
  }
  .property-card img {
    height: 180px;
  }

  .property-detail-layout {
    flex-direction: column; /* تكديس قسم الصورة والمعلومات عموديًا */
    max-width: 95%;
    padding: 15px;
  }
  .image-section {
    width: 100%; /* تأخذ عرض كامل في التكديس */
    padding: 0; /* لا يوجد padding أفقي هنا */
  }
  .image-section img {
    width: 95%; /* لجعلها تأخذ معظم العرض مع ترك مسافة للتمرير */
    height: 280px;
    margin: 0 auto; /* توسيط الصور داخل شريط التمرير */
  }
  .info-section {
    padding-left: 0;
    margin-top: 20px;
  }

  .contact-container {
    flex-direction: column; /* تكديس أقسام الاتصال عموديًا */
    padding: 1.5rem;
    max-width: 95%;
  }
  .contact-top {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center; /* توسيط العناصر */
  }
  .contact-info, .contact-map {
    padding: 0; /* إزالة padding الكبير */
    min-width: unset;
    width: 100%;
  }
  .contact-form {
    padding: 1rem; /* تقليل padding */
  }

  .welcome-section h2 {
    font-size: 2rem;
  }
  .welcome-section p {
    font-size: 1rem;
  }
  .why-choose-section h2 {
    font-size: 1.8rem;
  }
  .why-card {
    flex: 1 1 250px; /* تعديل الأساس ليكون 250px */
    padding: 20px;
  }
  .call-to-action h2 {
    font-size: 1.8rem;
  }
  .call-to-action p {
    font-size: 1rem;
  }
}

/* Small devices (phones, 576px and up) */
@media (max-width: 767.98px) { /* أو max-width: 768px بدون .98 للاختبار */
  header {
    padding: 0.8rem 1rem;
  }
  .logo img {
    width: 80px;
    height: 80px;
  }
  header h1 {
    font-size: 1.8rem;
  }
  nav {
    flex-direction: column; /* روابط التنقل عمودية */
    gap: 10px;
    margin-top: 10px;
    align-items: center; /* توسيط الروابط */
  }
  nav a {
    font-size: 15px;
  }

  .hero-section {
    min-height: 300px;
    padding: 30px 15px;
  }
  .hero-section h2 {
    font-size: 1.8rem;
  }
  .hero-section p {
    font-size: 0.9rem;
  }

  .search-form {
    padding: 10px;
    gap: 5px;
  }
  select, input[type="text"], input[type="number"], button {
    padding: 8px;
    font-size: 15px;
  }
  button {
    padding: 10px 20px;
  }

  .property-list {
    grid-template-columns: 1fr; /* عمود واحد فقط على الشاشات الصغيرة جداً */
    padding: 0.8rem;
    gap: 10px;
  }
  .property-card {
    padding: 0.8rem;
  }
  .property-card img {
    height: 160px;
  }
  .property-card h3 {
    font-size: 1.3rem;
  }
  .property-card p {
    font-size: 0.85rem;
  }
  .property-card .price {
    font-size: 1.1rem;
  }
  .property-button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .view-more-button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .property-detail-layout {
    padding: 10px;
    gap: 15px;
  }
  .image-section img {
    height: 200px;
  }
  .info-section h2 {
    font-size: 24px;
  }
  .info-section p {
    font-size: 16px;
  }
  .form-section {
    padding: 15px;
  }
  input[type="text"], input[type="email"], textarea {
    padding: 8px;
    font-size: 15px;
  }
  .form-section button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .contact-container {
    padding: 1rem;
    gap: 1.5rem;
  }
  .contact-info h2, .contact-map h2 {
    font-size: 1.5rem;
  }
  .contact-info p {
    font-size: 1rem;
  }
  .contact-map iframe {
    height: 200px;
  }
  .contact-form {
    padding: 0.8rem;
  }

  main {
    padding: 15px;
    margin: 10px auto;
  }
  footer {
    padding: 15px;
    font-size: 0.8rem;
  }

  .welcome-section {
    padding: 30px 15px;
  }
  .welcome-section h2 {
    font-size: 1.8rem;
  }
  .welcome-section p {
    font-size: 0.9rem;
  }

  .why-choose-section {
    padding: 30px 15px;
  }
  .why-choose-section h2 {
    font-size: 1.6rem;
  }
  .why-card {
    flex: 1 1 100%; /* كل بطاقة تأخذ عرض كامل على الشاشات الصغيرة جداً */
    padding: 15px;
  }

  .call-to-action {
    padding: 30px 15px;
  }
  .call-to-action h2 {
    font-size: 1.6rem;
  }
  .call-to-action p {
    font-size: 0.9rem;
  }
  .call-to-action a {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) { /* أو max-width: 576px بدون .98 للاختبار */
  header h1 {
    font-size: 1.5rem;
  }
  .logo img {
    width: 70px;
    height: 70px;
  }
  nav a {
    font-size: 14px;
    padding: 2px 0;
  }
  .hero-section h2 {
    font-size: 1.5rem;
  }
  .hero-section p {
    font-size: 0.8rem;
  }
  select, input[type="text"], input[type="number"], button {
    font-size: 14px;
  }
  .property-list {
    padding: 0.5rem;
  }
  .property-card img {
    height: 140px;
  }
  .property-card h3 {
    font-size: 1.2rem;
  }
  .property-detail-layout {
    margin: 15px auto;
  }
  .image-section img {
    height: 180px;
  }
  .info-section h2 {
    font-size: 20px;
  }
  .info-section p {
    font-size: 14px;
  }
  .contact-info h2, .contact-map h2 {
    font-size: 1.3rem;
  }
}
/* =========================================== */
/* News Section Styles */
/* =========================================== */
/* =========================================== */
/* News Section Styles */
/* =========================================== */
.news-section {
  padding: 2rem;
  background-color: #f9f9f9;
}

.news-section h2 {
  color: var(--primary-brown);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 2.2rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

/* كل خبر يعرض بعرض كامل */
.news-card {
  width: 100%;
  background-color: var(--white-color);
  padding: 1.5rem;
  border-left: 5px solid var(--primary-brown);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* صور الأخبار */
.news-images {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.news-images::-webkit-scrollbar {
  height: 6px;
}

.news-images::-webkit-scrollbar-thumb {
  background-color: var(--primary-brown);
  border-radius: 4px;
}

.news-images::-webkit-scrollbar-track {
  background-color: #eee;
  border-radius: 4px;
}

.news-images img {
  flex: 0 0 auto;
  width: 400px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  scroll-snap-align: start;
}


/* دعم شاشة صغيرة: صورة واحدة في السطر */
@media (max-width: 576px) {
  .news-images img {
    width: 100%;
    height: 180px;
  }
}

.news-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--dark-brown);
}

.news-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.news-date {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* =========================================== */
/* MEDIA QUERIES RESPONSIVE */
/* =========================================== */

@media (max-width: 1199.98px) {
  .news-section {
    padding: 2rem;
  }
}

@media (max-width: 991.98px) {
  .news-section {
    padding: 1.5rem;
  }

  .news-section h2 {
    font-size: 2rem;
  }

  .news-list {
    gap: 1.2rem;
  }

  .news-card {
    padding: 1.2rem;
  }

  .news-card h3 {
    font-size: 1.3rem;
  }

  .news-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  .news-section {
    padding: 1rem;
  }

  .news-section h2 {
    font-size: 1.8rem;
  }

  .news-list {
    gap: 1rem;
  }

  .news-card {
    padding: 1rem;
    border-left-width: 4px;
  }

  .news-card h3 {
    font-size: 1.2rem;
  }

  .news-card p {
    font-size: 0.9rem;
  }

  .news-date {
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .news-section h2 {
    font-size: 1.6rem;
  }

  .news-card {
    padding: 0.8rem;
    border-left-width: 3px;
  }

  .news-card h3 {
    font-size: 1.1rem;
  }

  .news-card p {
    font-size: 0.85rem;
  }
}


