/* file: style.css احذف نشود */

/* تنظیمات پایه */
body {
  background-color:rgb(40, 86, 139);
  font-family: sans-serif;
  direction: rtl;
  padding: 20px;
  font-size: 1rem;
}

/* فرم جستجو */
form#filterForm {
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.price-wrapper {
  background-color: #457cbb;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 15px; 
}

label,
select,
button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  font-size: 1rem;
  padding: 8px;
  box-sizing: border-box;
}

input[type=number] {
  font-size: 1.3rem;
  padding: 12px;
}

.price-text {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 10px;
}

#priceSlider {
  margin: 20px 0;
}

.price-values {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

button {
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  padding: 10px;
}

button:hover {
  background-color: #218838;
}

.error {
  color: red;
  margin-bottom: 15px;
}

/* کارت ملک */
.property-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

/* چیدمان کارت‌ها */
.property-grid,
#results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* چیدمان اطلاعات و عکس */
.property-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.property-info {
  flex: 1;
  min-width: 250px;
}

.image-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 250px;
  margin-top: 0px;
  text-align: center;
}

.slider-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.slider-image:hover {
  transform: scale(1.02);
}

.next-image-btn,
.fullscreen-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 8px;
}

.next-image-btn:hover,
.fullscreen-btn:hover {
  background-color: #218838;
}

/* ناوبری */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgb(17, 46, 80);
  padding: 12px 0;
  direction: rtl;
  font-family: 'Tahoma', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  background-color: #84abd5;
  color: #333;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  background-color: #dcdcdc;
  color: #000;
}

/* عنوان اصلی */
h2 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 20px;
  text-align: center;
}

/* کادر قیمت */
.price-wrapper label,
.price-wrapper input,
.price-wrapper .price-text,
.price-wrapper button {
  color: rgb(4, 4, 4);
}

.price-wrapper button {
  background-color: #ffffff;
  color: #0b2139;
  font-weight: bold;
}

.price-wrapper button:hover {
  background-color: #e0e0e0;
  color: #fbfbfb;
}

/* گروه قیمت‌ها */
.price-group {
  display: flex;
  gap: 5px;
  margin-bottom:5px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.price-item {
  flex: 1;
  min-width: 250px;
}

/* فوتر */
.site-footer {
  background-color: #0b2139;
  color: #fff;
  padding: 30px 20px 15px;
  margin-top: 40px;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 220px;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #84abd5;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #84abd5;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #4470a1;
  padding-top: 10px;
  font-size: 0.9rem;
  color: #ccc;
}
/* ریسپانسیو برای موبایل و تبلت */
@media (max-width: 1024px) {
  .property-grid,
  #results {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .property-info,
  .image-slider {
    min-width: unset;
    width: 100%;
  }

  .property-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 15px;
  }

  .property-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


@media (max-width: 768px) {
  .property-content {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .property-info {
    font-size: 14px;
    line-height: 1.6;
  }

  .slider-image {
    width: 90%;
    margin-top: 20px;
  }

  .next-image-btn,
  .fullscreen-btn,
  .price-wrapper button {
    width: 100%;
    font-size: 1.2rem;
    padding: 12px;
  }

  .price-group {
    flex-direction: column;
    gap: 15px;
  }

  .price-item {
    width: 100%;
    min-width: unset;
  }

  .navbar {
    padding: 10px;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    width: 90%;
    margin: 0 auto;
    font-size: 1rem;
    padding: 10px;
  }

  h2 {
    font-size: 1.2rem;
    padding: 0 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  form#filterForm {
    padding: 0 8px;
  }

  .form-row > div,
  .price-item {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 10px;
  }

  select,
  input[type=number],
  button {
    font-size: 0.95rem;
    padding: 6px;
  }

  label {
    font-size: 0.9rem;
  }

  .price-wrapper {
    padding: 15px;
    border-radius: 8px;
  }

  h2 {
    font-size: 1rem;
    padding: 0 5px;
  }

  .nav-menu li a {
    font-size: 0.95rem;
    padding: 6px 12px;
  }
}

@media (max-width: 360px) {
  .form-row > div,
  .price-item {
    max-width: 240px;
    margin: 0 auto 10px;
  }

  select,
  input[type=number],
  button {
    font-size: 0.85rem;
    padding: 5px;
  }

  label {
    font-size: 0.85rem;
  }

  .price-wrapper {
    padding: 12px;
    border-radius: 6px;
  }

  .slider-image {
    width: 100%;
    height: auto;
  }

  .property-info {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  h2 {
    font-size: 0.95rem;
    padding: 0 5px;
  }

  .nav-menu li a {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}

/* باقیمانده چیدمان پایه برای دسکتاپ بزرگ */
@media (min-width: 1025px) {
  .property-grid,
  #results {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 420px) {
  .property-grid,
  #results {
    grid-template-columns: 1fr;
  }

  .property-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 15px;
  }

  .property-info,
  .image-slider {
    min-width: unset;
    width: 100%;
  }

  .property-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.intro-section {
  background-color: #ffffff !important ;
  color: #0b2139;
  padding: 25px;
  border-radius: 12px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.intro-section h1 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #2c4f78;
}

.intro-section p {
  font-size: 1rem;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .intro-section {
   background-color: #ffffff !important;
    padding: 20px;
    margin: 20px auto;
  }

  .intro-section h1 {
    font-size: 1.3rem;
  }

  .intro-section p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
.custom-label {
  font-family: 'IRANSans', sans-serif; /* یا هر فونت دلخواه */
  font-size: 18px;
  color: #0077cc; /* آبی ملایم */
  font-weight: bold;
}
.property-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.property-card:hover {
  transform: scale(1.02);
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.property-type {
  background-color: #007bff;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.property-details p {
  margin: 4px 0;
  font-size: 15px;
}

.property-description {
  margin-top: 10px;
  background-color: #fffbe6;
  padding: 10px;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
}

.property-description p {
  margin: 0;
  line-height: 1.6;
}
.property-grid {
  display: flex;
  flex-direction: column;
  align-items: center; /* ⬅️ این خط باعث مرکز چین شدن کارت‌ها می‌شود */
  padding: 10px;
}





