/* -------------------------------------------- */
/* Hero section */
/* -------------------------------------------- */

.hero {
	padding-top: 70px; /* نفس ارتفاع الهيدر */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: var(--color-gray-light);
	font-size: 24px;
	font-weight: bold;
}

.hero > h1, .hero > h3 {
	margin: 10px 0;
	padding: 0 10%;
}

.homeBlogLink {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	text-decoration: none;
	background: transparent;
	color: #222;
	padding: 10px 20px;
	border-radius: 4px;
}

.homeBlogLink:hover {
  color: var(--color-brand-primary);
  text-decoration: underline;
  transition: all ease-in-out 0.5s;
}

.search-section {
	margin-top: 2rem;
	padding: 20px;
	background: var(--color-gray-light);
	min-width: 300px;
	width: 50%;
	border-radius: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.search-section:hover {
	box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
	
}

.search-section:not(:hover) {
	opacity: 0.8;
	transition: opacity 0.4s ease;
}

.inputSection {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.inputSection input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 10px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.3s ease;
}

.inputSection input:focus {
	border-color: var(--color-brand-dark);;
	
}

.inputSection button {
	padding: 10px 20px;
	border: none;
	background-color: var(--color-brand-dark);
	color: white;
	font-size: 16px;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.inputSection button:hover {
  background: var(--color-brand-primary);
  color: var(--color-brand-dark);
  transition: all ease-in-out 0.5s;
}

.filter-boxes {
	display: flex;
	width: 100%;
	gap: 10px;
	padding: 10px 0;
	justify-content: center;
	align-items: center;
	width: 100%;
	flex-wrap: wrap;
}

.filter-boxes select {
	flex: 1;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 10px;
	font-size: 16px;
	outline: none;
	transition: border-color 0.3s ease;
	background-color: white;
	cursor: pointer;
}

.filter-boxes .residentType {
  display: none;
}

.filter-boxes select:focus {
	border-color: var(--color-brand-dark);
}

/*
 * ==========================================================
 * ALL THE OLD SLIDER CODE (.scroll-btn-1, .estatesCards, etc.)
 * HAS BEEN DELETED.
 * It is now all handled by Swiper and our component CSS files.
 * ==========================================================
 */


/* -------------------------------------------- */
/* Contact us section */
/* -------------------------------------------- */
.contactUs {
  padding: 30px 5%;
  color: white;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/big-2.jpeg') no-repeat center center/cover;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: calc(90vh - 100px);
  flex-wrap: wrap; /* يخليها تتوزع طبيعي على الموبايل */
}

/* النص */
.contactUs .contactText {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1 1 300px;
}

.contactText h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contactText h3 {
  font-weight: normal;
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.contactText .ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: 20px;
  padding: 0;
}

.contactText .ratings .singleRate {
  display: flex;
  align-items: center;
}

.contactText .ratings .singleRate h2 {
  font-size: 28px;
  color: var(--color-brand-primary);
}

.divider {
  width: 2.5px;
  height: 2.5rem;
  background-color: var(--color-brand-primary);
  margin: 0 8px;
}

/* الفورم */
.contactForm {
  background: #EEF1F3;
  color: black;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 300px;
  max-width: 450px;
}

.contactForm h1 {
  font-size: 22px;
  margin-bottom: 10px;
}

.input {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-wrap {
  position: relative;
  width: 100%;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 12px 10px;
  font-size: 16px;
  border: none;
  border-bottom: 1px solid #000;
  background: transparent;
  outline: none;
  resize: none;
}

.input-wrap label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  background-color: #EEF1F3;
  padding: 0 5px;
  color: #666;
  font-size: 16px;
  pointer-events: none;
  transition: 0.2s ease all;
}

html[dir="rtl"] .input-wrap label {
  left: auto;
  right: 10px;
}

.input-wrap input:focus + label,
.input-wrap input:not(:placeholder-shown) + label,
.input-wrap textarea:focus + label,
.input-wrap textarea:not(:placeholder-shown) + label {
  top: -2px;
  left: 5px;
  font-size: 14px;
  color: var(--color-brand-primary);
}

html[dir="rtl"] .input-wrap input:focus + label,
.input-wrap input:not(:placeholder-shown) + label,
.input-wrap textarea:focus + label,
.input-wrap textarea:not(:placeholder-shown) + label {
  left: auto;
  right: 5px;
}

.contactForm button {
  padding: 12px;
  background: var(--color-brand-dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.contactForm button:hover {
  background: var(--color-brand-primary);
  color: var(--color-brand-dark);
}

/* ============================================ */
/* featured section */
/* ============================================ */
.featuredAreas {
  padding: 30px 5%;
  background-color: #f5f9fc;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: column;
}

.featuredAreas .heading {
  font-size: 28px;
  margin-bottom: 15px;
  padding: 0 5%;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featuredAreas .heading button {
  padding: 10px 20px;
  border: none;
  background-color: var(--color-brand-dark);
  color: white;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.featuredAreas .heading button:hover {
  background: var(--color-brand-primary);
  color: var(--color-brand-dark);
  transition: all ease-in-out 0.5s;
}

.parent {
  color: white;
  font-weight: bold;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 20px;
  padding: 40px 80px;
}

.div1, .div2, .div3, .div4, .div5, .div6 {
  padding: 2rem;
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  cursor: pointer;
}

.div1:hover, .div2:hover, .div3:hover, .div4:hover, .div5:hover, .div6:hover {
  scale: 1.01;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.div1>p, .div2>p, .div3>p, .div4>p, .div5>p, .div6>p,
.div1>h5, .div2>h5, .div3>h5, .div4>h5, .div5>h5, .div6>h5 {
  position: absolute;
  left: 18px;
  margin: 0;
  width: auto;
  padding: 8px 16px;
  background: rgba(255,255,255,0.85);
  color: #222;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  z-index: 2;
}
.div1>p, .div2>p, .div3>p, .div4>p, .div5>p, .div6>p {
  top: 60px;
}

.div1>h5, .div2>h5, .div3>h5, .div4>h5, .div5>h5, .div6>h5 {
  top: 18px;
}

.div1 {
  background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('../assets/region-3.jpeg') no-repeat center center/cover;
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  border-radius: 24px;
}

.div2 {
  background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('../assets/القاهرة-الجديدة-1.jpg') no-repeat center center/cover;
  grid-row: span 3 / span 3;
  grid-column-start: 1;
  grid-row-start: 3;
  border-radius: 24px;
}

.div3 {
  background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('../assets/قرى-العين-السخنة-720x640.webp') no-repeat center center/cover;
  grid-row: span 3 / span 3;
  grid-column-start: 2;
  grid-row-start: 3;
  border-radius: 24px;
}

.div4 {
  background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('../assets/information-about-6th-october.webp') no-repeat center center/cover;
  grid-row: span 3 / span 3;
  grid-column-start: 3;
  grid-row-start: 1;
  border-radius: 24px;
}

.div5 {
  background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('../assets/الساحل-الشمالي-الشرير1.webp') no-repeat center center/cover;
  grid-row: span 3 / span 3;
  grid-column-start: 4;
  grid-row-start: 1;
  border-radius: 24px;
}

.div6 {
  background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('../assets/مول-الشانزليزيه-العاصمة-الادارية.jpg') no-repeat center center/cover;
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 4;
  border-radius: 24px;
}

/* =========================================== */
/* Discover Section */
/* =========================================== */
.discoverBestPlace {
  padding: 50px 5%;
  background-color: var(--color-gray-light);
  position: relative;
}

.discoverBestPlace .heading {
  font-size: 28px;
  margin-bottom: 15px;
  padding: 0 5%;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.discoverBestPlace > .heading > .headingText > h6 {
  margin-bottom: 5px;
  font-weight: normal;
  color: #666;
}

.discoverBestPlace > .heading > .headingText > h4 {
  margin-top: 5px;
  font-size: xx-large;
}

.discoverBestPlace .heading .typeButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.discoverBestPlace .heading button {
  padding: 10px 20px;
  border: none;
  background-color: var(--color-brand-dark);
  color: white;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.discoverBestPlace .heading button:hover {
  background: var(--color-brand-primary);
  color: var(--color-brand-dark);
  transition: all ease-in-out 0.5s;
}

.scroll-btn-2 {
  position: absolute;
  top: 50%;
  transform: translateY(75%);
  background: rgba(45, 45, 45, 0.7);
  color: #fff;
  border: none;
  font-size: 24px;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex; /* علشان السهم يبان في النص */
  align-items: center;
  justify-content: center;
}

.scroll-btn-2:hover {
  background: var(--color-brand-primary);
  color: var(--color-brand-dark);
}

.scroll-btn-2.left {
  left: 20px; /* أقرب شوية من الحافة */
}

.scroll-btn-2.right {
  right: 20px; /* أقرب شوية من الحافة */
}

html[dir="rtl"] .scroll-btn-2.left {
  transform: rotate(180deg);
}

html[dir="rtl"] .scroll-btn-2.right {
  transform: rotate(180deg);

}

/* =========================================== */
/* Clients Section */
/* =========================================== */
.clients {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px 5%;
  background: #f5f9fc;
  gap: 40px;
  flex-wrap: wrap; /* يخلي العناصر تنزل تحت بعض على الموبايل */
}

.clients .text {
  flex: 1;
  max-width: 35%;
}

.clients .text .section-subtitle {
  color: #777;
  font-size: 14px;
  margin-bottom: 8px;
}

.clients .text .section-title {
  font-size: 26px;
  margin-bottom: 15px;
  font-weight: bold;
}

.clients .text .section-desc {
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.clients .arrows {
  display: flex;
  gap: 10px;
}

html[dir="rtl"] .clients .arrows {
  display: flex;
  gap: 10px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

html[dir="rtl"] .clients .arrows .go-left {
  transform: rotate(180deg);
}

html[dir="rtl"] .clients .arrows .go-right {
  transform: rotate(180deg);
}

.clients .arrows button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-brand-dark);
  color: white;
  cursor: pointer;
  font-size: 18px;
  border-radius: 6px;
  transition: 0.3s;
}

.clients .arrows button:hover {
  background: #FFD700;
  color: #000;
}

.cards-wrapper {
  flex: 2;
  overflow: hidden;
  max-width: 900px; /* 3 كروت × 300px */
}

.client-cards {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.client-card {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 كروت في الصف */
  min-width: 280px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.client-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.client-card .stars {
  color: #FFD700;
  font-size: 16px;
  margin-bottom: 10px;
}

.client-card p {
  flex: 1;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.client-card .author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #2c3e50;
}

.client-card .quote {
  color: #FFD700;
  font-size: 20px;
}

/* ============================================ */
/* Blog Section (Permanent) */
/* ============================================ */

/* --- 1. Section Layout & Header --- */
.blog {
  padding: 50px 5%;
  background: var(--color-gray-light);
  text-align: center;
}
.blog-header {
  margin-bottom: 30px;
}
.section-subtitle {
  color: #777;
  font-size: 14px;
  margin-bottom: 5px;
}
.section-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-black);
}

/* --- 2. THE EQUAL HEIGHT FIX --- */
.blog-slider .slick-track {
  display: flex;
}
.blog-slider .slick-slide {
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}
.blog-slider .slick-slide > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-slider .blog-card {
  flex-grow: 1; /* Stretch the card */
}

/* --- 3. Slider Spacing & Arrows --- */
.blog-slider .slick-slide {
  padding: 0 8px;
  box-sizing: border-box;
}
.blog-slider .slick-arrow {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
}
.blog-slider .slick-arrow:hover {
  background-color: var(--color-brand-primary);
}
.blog-slider .slick-arrow:before {
  font-family: 'slick';
  font-size: 1.2rem;
  color: var(--color-brand-dark) !important;
  opacity: 1;
}



html[dir="rtl"] .custom-next {
  left: 15%;
  right: auto;
  transform: translateY(-50%) rotate(180deg);
  color: var(--color-brand-dark);
}

html[dir="rtl"] .custom-next:hover {
  transform: #FFD700;
}

/*
 * ============================================
 * Logo Slider Container Fix
 * ============================================
 */
.developer-logo-slider {
  /* This is the container for the slides */
  max-width: 80%; /* <-- THE FIX: Set to 80% width */
  margin: 0 auto;  /* <-- THE FIX: Center it */
}

/* -------------------------------------------- */
/* -------------------------------------------- */
/* large desktop */
/* -------------------------------------------- */
/* ========================================================= */
/* Default (Desktop First) */
/* ========================================================= */
@media (min-width: 1025px) {
  .parent {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================================= */
/* Tablet & Small Desktop (<= 1024px) */
/* ========================================================= */
@media (max-width: 1024px) {
  /* Featured Area */
  .parent {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 40px;
    grid-template-rows: auto;
  }

  .div1, .div2, .div3, .div4, .div5, .div6 {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 220px;
  }

  /* Hero */
  .hero {
    font-size: 20px;
  }

  .search-section {
    width: 70%;
  }

  /* Discover Section */
  .discoverEstates,
  .discoverBestPlace {
    padding: 40px 4%;
  }

  .discoverBestPlace .heading,
  .discoverEstates .heading {
    font-size: 24px;
  }

  .discoverBestPlace .estatesCards,
  .discoverEstates .estatesCards {
    gap: 15px;
    padding: 15px;
  }

  /* Contact Us */
  .contactUs {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    min-height: auto;
    align-content: center;
  }

  .contactUs .contactText {
    align-items: center;
    text-align: center;
  }

  .contactText h1 {
    font-size: 28px;
  }

  .contactText h3 {
    font-size: 18px;
  }

  .contactText .ratings {
    justify-content: center;
    gap: 15px 30px;
  }

  .contactForm {
    width: 85%;
    max-width: 500px;
    margin: 0 auto;
  }

  .singleRate {
    display: flex;
    align-items: center;
  }

  /* Discover Best Places buttons */
  .discoverBestPlace .heading .typeButtons {
    flex-wrap: wrap;
    gap: 12px;
  }

  .discoverBestPlace .heading button {
    font-size: 15px;
    padding: 9px 16px;
  }

  /* Clients */
  .clients {
    flex-direction: column;
  }

  .clients .text {
    max-width: 100%;
    text-align: center;
  }

  .cards-wrapper {
    max-width: 100%;
  }

  .client-card {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: 220px;
    max-width: 100%;
  }

  /* Blog Section */
  .blog-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  /* Logo Slider */
    .mySwiper {
    width: 80%;
  }

  .custom-prev {
    left: 5%;
  }

  .custom-next {
    right: 5%;
  }
}

/* ========================================================= */
/* Mobile (<= 768px) */
/* ========================================================= */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    font-size: 18px;
    padding: 50px 15px;
    height: auto;
    padding-top: 90px;
  }

  .hero > h1,
  .hero > h3 {
    padding: 0 5%;
  }

  .search-section {
    width: 90%;
    min-width: unset;
  }

  .inputSection {
    flex-direction: column;
    gap: 15px;
  }

  .inputSection input,
  .inputSection button {
    width: 100%;
  }

  .filter-boxes {
    flex-direction: column;
    gap: 15px;
  }

  .filter-boxes select {
    width: 100%;
  }

  .homeBlogLink {
    position: static;
    transform: none;
    margin-top: 20px;
    display: inline-block;
  }

  /* Discover Section */
  /* 1. Widen the whole section */
  section.discoverEstates {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 2. Remove the slide's internal padding (stronger selector) */
  section.discoverEstates .discover-listings-slider .slick-slide {
    padding-left: 5px;
    padding-right: 5px;
  }

  /* 3. Remove the card's max-width (stronger selector) */
  section.discoverEstates .discover-listings-slider .oneCard {
    max-width: none;
  }

  .discoverBestPlace,
  .discoverEstates {
    padding: 30px 3%;
  }

  .discoverBestPlace .heading,
  .discoverEstates .heading {
    font-size: 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .discoverBestPlace .heading button,
  .discoverEstates .heading button {
    font-size: 14px;
    padding: 8px 16px;
  }

  .discoverBestPlace .estatesCards,
  .discoverEstates .estatesCards {
    gap: 12px;
    padding: 10px;
  }

  /* Contact Us */
  .contactText h1 {
    font-size: 24px;
  }

  .contactText h3 {
    font-size: 16px;
  }

  .contactText .ratings .singleRate h2 {
    font-size: 22px;
  }

  .contactForm h1 {
    font-size: 24px;
  }

  /* Featured Area */
  .parent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
  }

  .div1, .div2, .div3, .div4, .div5, .div6 {
    min-height: 200px;
  }

  /* Clients */
  .clients {
    flex-direction: column;
    padding: 30px 10px;
    gap: 20px;
  }

  .clients .text {
    max-width: 100%;
    text-align: center;
  }

  .client-cards {
    gap: 10px;
  }

  .client-card {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
  }

  .clients .text .section-title {
    font-size: 20px;
  }

  .clients .text .section-desc {
    font-size: 13px;
  }

  /* Blog Section */
  .blog-card {
    flex: 0 0 45%;
  }

  .scroll-btn.left,
  .scroll-btn-1.left,
  .scroll-btn-2.left {
    left: 5px;
  }

  .scroll-btn.right,
  .scroll-btn-1.right,
  .scroll-btn-2.right {
    right: 5px;
  }

}