/* صفحة قائمة العقارات — شبكة حديثة (نطاق محلي) */
.qre-props-section {
  --qre-coral: #f97316;
  --qre-coral-d: #ea580c;
  --qre-wa: #25d366;
  --qre-wa-d: #1ebe57;
  --qre-card: #fff;
  --qre-border: #e8eef1;
  --qre-muted: #5c727d;
  --qre-heading: #071c1f;
  --qre-radius: 1rem;
  --qre-shadow: 0 4px 24px rgba(7, 28, 31, 0.08);
  --qre-shadow-h: 0 12px 40px rgba(7, 28, 31, 0.12);
  background: linear-gradient(180deg, #f2f6f7 0%, #f8fafb 40%, #fff 100%);
}

.qre-props-section .qre-filters-card {
  background: var(--qre-card);
  border: 1px solid var(--qre-border);
  border-radius: var(--qre-radius);
  box-shadow: var(--qre-shadow);
  padding: 1.5rem 1.75rem;
}

.qre-props-section .qre-filters-card label {
  color: var(--qre-heading);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.qre-props-section .qre-filters-card input,
.qre-props-section .qre-filters-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--qre-border);
  border-radius: 0.65rem;
  padding: 0.5rem 0.9rem;
  background: #fbfdfe;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.qre-props-section .qre-filters-card input:focus,
.qre-props-section .qre-filters-card select:focus {
  outline: none;
  border-color: rgba(255, 90, 60, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.12);
}

.qre-props-section .qre-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.qre-props-section .qre-btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 0.65rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.qre-props-section .qre-btn-filter--primary {
  background: var(--qre-coral);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 90, 60, 0.35);
}

.qre-props-section .qre-btn-filter--primary:hover {
  background: var(--qre-coral-d);
  color: #fff;
  transform: translateY(-1px);
}

.qre-props-section .qre-btn-filter--ghost {
  background: transparent;
  color: var(--qre-heading);
  border: 2px solid var(--qre-border);
}

.qre-props-section .qre-btn-filter--ghost:hover {
  border-color: var(--qre-coral);
  color: var(--qre-coral);
}

/* بطاقة عقار */
.qre-props-wrap {
  margin-top: 0.5rem;
}

.qre-prop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0; /* مع min-height:auto للعناصر المرنة لا يمتد الكارت بطول صورة طويلة */
  background: var(--qre-card);
  border-radius: var(--qre-radius);
  border: 1px solid var(--qre-border);
  box-shadow: var(--qre-shadow);
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.2s;
}

.qre-prop-card:hover {
  box-shadow: var(--qre-shadow-h);
  transform: translateY(-6px);
  border-color: rgba(255, 90, 60, 0.22);
}

/* أبعاد وسلوك صورة الكارت: انظر assets/home-modern.css (.qre-prop-card__media) */

.qre-prop-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--qre-coral) 0%, #cb3421 100%);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.qre-prop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
  text-align: right;
}

.qre-prop-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--qre-heading);
  margin: 0 0 0.5rem;
}

.qre-prop-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.qre-prop-card__title a:hover {
  color: var(--qre-coral);
}

.qre-prop-card__loc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--qre-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.qre-prop-card__loc i {
  margin-top: 0.1rem;
  color: var(--qre-coral);
  font-size: 0.85rem;
}

.qre-prop-card__price {
  margin-top: auto;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--qre-heading);
  letter-spacing: -0.02em;
}

.qre-prop-card__price small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--qre-muted);
  margin-right: 0.25rem;
}

.qre-prop-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 400px) {
  .qre-prop-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .qre-prop-card__actions .qre-btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }
}

.qre-props-section .qre-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.qre-props-section .qre-btn--details {
  background: var(--qre-coral);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 90, 60, 0.28);
}

.qre-props-section .qre-btn--details:hover {
  background: var(--qre-coral-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 90, 60, 0.38);
}

.qre-props-section .qre-btn--wa {
  background: var(--qre-wa);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
}

.qre-props-section .qre-btn--wa:hover {
  background: var(--qre-wa-d);
  color: #fff;
  transform: translateY(-2px);
}

.qre-props-section .qre-btn--contact {
  background: #fff;
  color: var(--qre-wa);
  border-color: var(--qre-wa);
}

.qre-props-section .qre-btn--contact:hover {
  background: rgba(37, 211, 102, 0.08);
}

.qre-props-section .qre-btn i.icon-whatsapp {
  font-size: 1.1rem;
  line-height: 1;
}

.qre-props-section .qre-section-head {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.qre-props-section .qre-section-head h2 {
  font-weight: 800;
  color: var(--qre-heading);
  margin-bottom: 0.5rem;
}

.qre-props-section .qre-section-head p {
  color: var(--qre-muted);
  margin: 0;
  font-size: 0.95rem;
}

.qre-props-section .qre-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: var(--qre-radius);
  border: 1px dashed var(--qre-border);
  color: var(--qre-muted);
}

@media (max-width: 767.98px) {
  .qre-props-section {
    padding-left: 0;
    padding-right: 0;
  }

  .qre-props-section .qre-filters-card {
    padding: 1.1rem 1rem;
  }

  .qre-props-section .qre-section-head {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .qre-prop-card__title {
    font-size: 1.02rem;
  }

  .qre-prop-card__price {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .qre-props-section .ltn__product-area {
    padding-bottom: 3rem !important;
  }

  .qre-prop-card__badge {
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }

  .qre-props-section .qre-btn {
    min-height: 46px;
    font-size: 0.88rem;
  }
}
