/* ===========================
   تنظیم فونت و جهت صفحه
=========================== */
html {
  direction: rtl;
}
body, h1, h2, h3, h4, h5, h6 {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  text-align: right;
}
body {
  background: #f5f7fa;
  margin: 3px;
  padding: 5px;
  overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

/* ===========================
   هدر سایت
=========================== */
header {
  background-color: #e6f0f9;
  border-bottom: 1px solid #cce0f0;
}
header h1 {
  color: #0d3b66;
  font-weight: bold;
}
header .btn-light {
  background-color: #fff;
  border: 1px solid #0d3b66;
  color: #0d3b66;
}
header .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}
header img {
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.2));
}

/* ===========================
   فرم جستجو
=========================== */
form {
  margin-top: 60px;
  background: #DCF0DA;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
form label {
  font-weight: bold;
  color: #6D8406;
}
form select,
form input {
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
form button {
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}
form button:hover {
  background: #1f6391;
}
form button[type="button"] {
  background: #3337D7;
}
form button[type="button"]:hover {
  background: #2B6EC0;
}

/* ===========================
   کارت‌های ملک
=========================== */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
}
.card-title {
  font-size: 18px;
  color: #0d3b66;
  font-weight: bold;
}
.card p {
  font-size: 14px;
  margin: 6px 0;
}
.card p strong {
  color: #333;
}

/* ===========================
   اسلایدر عمومی
=========================== */
.swiper {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}
.swiper-wrapper {
  display: flex; /* جلوگیری از افتادن عکس‌ها زیر هم */
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* دکمه‌های ناوبری */
.swiper-button-next,
.swiper-button-prev {
  color: #198754;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
}
.swiper-button-next { right: 10px; }
.swiper-button-prev { left: 10px; }

/* نقاط pagination */
.swiper-pagination-bullet {
  background: #6c757d;
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #198754;
  opacity: 1;
}

/* ===========================
   اسلایدر اصلی
=========================== */
.main-swiper {
  padding: 44px;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 60px;
}
.main-swiper .swiper-slide img {
  padding: 5px;
}

/* اسلایدر کارت‌های املاک */
.property-swiper {
  position: relative;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 60px;
}
.property-swiper .swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

/* اسلایدر جزئیات ملک */
.details-swiper .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

/* ===========================
   صفحه جزئیات ملک
=========================== */
.details-container {
  max-width: 500px;
  margin: auto;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
}
.details-container h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 20px;
  margin-bottom: 16px;
}
.details-container p {
  margin: 6px 0;
  line-height: 1.6;
  color: #555;
}
.details-container .swiper {
  height: 240px;
  margin-bottom: 20px;
}
.details-container .swiper-pagination-bullet {
  background-color: #2961B9;
}
.details-container .swiper-pagination-bullet-active {
  background-color: #3CE76F;
}
.details-container .actions {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.details-container .actions a,
.details-container .actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}
.details-container .whatsapp {
  background-color: #25D366;
  color: #fff;
}
.details-container .print {
  background-color: #34495e;
  color: #fff;
}
.details-container .back {
  background-color: #bdc3c7;
  color: #2c3e50;
}

/* ===========================
   فرم جستجوی افقی
=========================== */
.horizontal-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  background: #DCF0DA;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin: 20px auto;
  max-width: 1000px;
}
.horizontal-search input,
.horizontal-search select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  min-width: 120px;
}
.horizontal-search button {
  padding: 6px 16px;
  background-color: #2980b9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.horizontal-search button:hover {
  background-color: #1f6391;
}

/* ===========================
   جزییات اضافی
=========================== */
.search-panel {
  display: none;
  transition: all 0.4s ease;
  border-bottom: 1px solid #ccc;
}
.search-panel.active {
  display: block;
}
.search-toggle-wrapper {
  margin-right: 10px;
}
a {
  color: #2980b9;
  text-decoration: none;
  font-weight: bold;
}
a:hover {
  text-decoration: underline;
}

/* دکمه همه موارد */
.btn-all {
  color: #000 !important;
  font-weight: bold;
  font-size: 1.25rem;
  padding: 12px 32px;
}

/* دکمه‌های عمومی مرحله‌ای */
#stepForm .btn {
  font-size: 0.8rem !important;
  padding: 0.4rem 0.5rem !important;
  border-radius: 6px !important;
}

/* دکمه‌های اصلی (مرحله قبل و فیلتر) */
#stepForm .btn-outline-dark,
#stepForm .btn-success {
  font-size: 0.6rem !important;
	padding: 0.5rem}
/* ===========================
   دکمه‌های گزینه‌ها
=========================== */
#stepContainer .btn {
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  margin: 0.2rem;
}

/* ===========================
   لینک‌های متنی در هدر
=========================== */
.header-link {
  font-size: 0.5rem;
  color: #0d3b66;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}
.header-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* ===========================
   فیلد قیمت با لیبل داخل فیلد
=========================== */
.price-field {
  position: relative;
  width: 140px;
}
.price-field input {
  padding-right: 0;
  text-align: left;
  font-size: 13px;
}

/* ===========================
   دکمه‌های زیر هدر
=========================== */
.bg-light a:hover {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}

/* ===========================
   واکنش‌گرایی بیشتر
=========================== */
@media (max-width: 992px) {
  .card-title {
    font-size: 16px;
  }
  .card p {
    font-size: 13px;
  }
  .details-container {
    max-width: 100%;
    padding: 12px;
  }
}
