body {
  font-family: "Arial", sans-serif;
  background-color: #f8f9fa;
  direction: ltr;
  /* Overall page direction for English */
  text-align: left;
  /* Text alignment to left */

  overflow-x: hidden; /* پنهان کردن هر گونه اسکرول افقی */
}

.navbar {
  background-color: #343a40 !important;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #ffffff !important;
}

/* Aligning navbar items for English direction */
.navbar-nav {
  margin-left: auto !important;
  /* Instead of ms-auto for ltr */
  margin-right: 0 !important;
}

.header-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://via.placeholder.com/1500x500") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.header-section {
  position: relative; /* برای قرار گرفتن لایه پس‌زمینه روی تصویر */
  height: 60vh; /* ارتفاع هدر را تنظیم می‌کند */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: url("../images/2.png"); /* **آدرس تصویر خود را اینجا قرار دهید** */
  background-size: cover;
  background-position: center;
}

/* لایه تیره روی تصویر */
.header-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* مقدار شفافیت را می‌توانید از 0 تا 1 تغییر دهید */
  z-index: 1; /* این لایه زیر محتوای اصلی قرار می‌گیرد */
}

/* محتوای داخل هدر (متن و دکمه) را بالاتر از لایه تیره قرار می‌دهد */
.header-section > .container {
  position: relative;
  z-index: 2;
}

/* استایل دکمه جستجو در هدر */
.header-section .search-section {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 960px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 3; /* بالاتر از همه قرار می‌گیرد */
}

.header-section .green-button {
  background-color: #28a745;
  border-color: #28a745;
}

.search-section {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  z-index: 10;
}

.search-section .form-control,
.search-section .form-select,
.search-section .btn {
  height: 50px;
}

.search-section .btn {
  font-size: 1.1em;
}

.property-card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  margin: 10px;
  flex-shrink: 0;
}

.property-card:hover {
  transform: translateY(-5px);
}

.property-image {
  height: 180px;
  object-fit: cover;
}

.property-card-thin {
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
  margin: 5px;
  height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.property-card-thin:hover {
  transform: translateY(-3px);
}

.property-image-thin {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 15px;
}

.property-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 100%;
  text-align: center;
  padding: 10px 5px;
  box-sizing: border-box;
}

.card-title-thin {
  font-size: 1em;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* LTR adjustments for Font Awesome icons spacing */
.card-text .fa-bath {
  margin-left: 0.75rem !important;
  /* Instead of me-3 */
  margin-right: 0;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  background-color: #8bc34a !important;
  /* رنگ سبز دکمه ها */
  border-color: #8bc34a !important;
  /* رنگ کادر دکمه ها */
  color: white !important;
  border-radius: 50% !important;
  width: 40px;
  height: 40px;
  font-size: 20px;
  opacity: 0.8;
  transition: opacity 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* For ltr, prev should be on the left and next on the right */
}

.owl-carousel .owl-nav button.owl-prev {
  left: -20px;
  right: auto;
}

.owl-carousel .owl-nav button.owl-next {
  right: -20px;
  left: auto;
}

@media (max-width: 767.98px) {
  .owl-carousel .owl-nav button.owl-prev {
    left: 0px;
    /* فلش قبلی در سمت چپ باقی بماند */
    right: auto;
    /* از تنظیم right خودداری کنید */
  }

  .owl-carousel .owl-nav button.owl-next {
    right: 0px;
    /* فلش بعدی به سمت راست منتقل شود */
    left: auto;
    /* از تنظیم left خودداری کنید */
  }
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background-color: #7cb342 !important;
  /* سبز تیره تر برای هاور */
  border-color: #7cb342 !important;
  /* سبز تیره تر برای هاور */
  opacity: 1;
}

.owl-carousel .owl-dots .owl-dot span {
  background: #007bff !important;
  /* نقطه ها آبی باقی می مانند مگر اینکه تغییر دهید */
}

.owl-carousel .owl-dots .owl-dot.active span {
  background: #0056b3 !important;
  /* نقطه فعال آبی تیره باقی می ماند */
}

.footer {
  background-color: #343a40 !important;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.green-button {
  background-color: #8bc34a !important;
  border-color: #8bc34a !important;
  color: white !important;
}

.green-button:hover {
  background-color: #7cb342 !important;
  /* Slightly darker green on hover */
  border-color: #7cb342 !important;
}

/* افکت پارالاکس */
/* افکت پارالاکس */
/* افکت پارالاکس */
.parallax-section {
  background-image: url("../images/3.png"); /* آدرس تصویر پس‌زمینه را اینجا قرار دهید */
  background-attachment: fixed; /* این خط باعث افکت پارالاکس می‌شود */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 500px; /* ارتفاع بخش را می‌توانید تغییر دهید */
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* لایه تیره روی تصویر برای خوانایی بهتر متن */
.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.4
  ); /* مقدار شفافیت را می‌توانید تغییر دهید */
}

/* محتوای روی بخش پارالاکس */
.parallax-section .container {
  position: relative;
  z-index: 2;
}



/* ................... */
/* ..................... */
.image-overlay-container {
  position: absolute;
  bottom: -20px;
  /* تصویر را 20px از پایین عکس بیرون می‌زند */
  left: 50%;
  /* تصویر را در مرکز افقی قرار می‌دهد */
  transform: translateX(-50%);
  /* موقعیت‌دهی دقیق افقی بر اساس اندازه خودش */
  z-index: 10;
}

.overlay-image {
  width: 150px;
  /* اندازه تصویر را برای موبایل کوچک‌تر می‌کنیم */
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ------------------- */

/* استایل‌های مربوط به تصویر دوم در دسکتاپ (صفحات بزرگتر از 768px) */
@media (min-width: 768px) {
  .image-overlay-container {
    top: 80%;
    /* تصویر را در پایین‌تر قرار می‌دهد */
    left: 90%;
    transform: translate(-50%, -50%);
    /* موقعیت‌دهی دقیق */
  }

  .overlay-image {
    width: 300px;
    /* اندازه تصویر را برای دسکتاپ بزرگ‌تر می‌کنیم */
    height: 300px;
  }
}
