.properties-page {
  background: #fff;
}

.properties-hero {
  padding: 54px 0 118px;
  background:
    radial-gradient(circle at 15% 0%, rgba(239, 63, 63, 0.10), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(50, 36, 111, 0.12), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--pf-purple-pale) 100%);
}

.properties-hero__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.properties-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.properties-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.properties-hero__stats {
  min-width: 170px;
  min-height: 122px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.properties-hero__stats strong {
  color: var(--pf-purple);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.properties-hero__stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.properties-search-section {
  margin-top: -82px;
  position: relative;
  z-index: 3;
}

.properties-search-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.properties-purpose-tabs {
  width: fit-content;
  min-height: 56px;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--pf-purple-pale);
}

.properties-purpose-tabs label {
  min-width: 96px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--pf-purple);
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.properties-purpose-tabs label.active {
  background: var(--pf-purple-soft);
  font-weight: 700;
}

.properties-purpose-tabs input {
  display: none;
}

.properties-search-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.properties-search-input {
  position: relative;
  display: block;
}

.properties-search-input span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.properties-search-input input {
  width: 100%;
  min-height: 62px;
  padding: 0 54px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  outline: none;
  box-shadow: 0 12px 28px rgba(30, 20, 70, 0.07);
}

.properties-search-input::before {
  content: '⌕';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 27px;
  z-index: 1;
}

.properties-search-input input:focus {
  border-color: var(--pf-purple);
  box-shadow: 0 0 0 5px rgba(50, 36, 111, 0.10);
}

.properties-search-submit {
  min-height: 56px;
  min-width: 108px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--pf-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(239, 63, 63, 0.24);
}

.properties-search-submit:hover {
  background: var(--pf-red-dark);
}

.properties-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.properties-filter-field,
.properties-sort-field {
  display: grid;
  gap: 7px;
}

.properties-filter-field span,
.properties-sort-field span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.properties-filter-field input,
.properties-filter-field select,
.properties-sort-field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text);
  padding: 0 16px;
  outline: none;
  font-size: 15px;
  font-weight: 400;
}

.properties-filter-field select,
.properties-sort-field select {
  cursor: pointer;
}

.properties-filter-field input:focus,
.properties-filter-field select:focus,
.properties-sort-field select:focus {
  border-color: var(--pf-purple);
  box-shadow: 0 0 0 4px rgba(50, 36, 111, 0.08);
}

.properties-search-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.properties-sort-field {
  width: min(240px, 100%);
}

.properties-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.properties-reset-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--pf-purple);
  text-decoration: none;
  font-weight: 600;
}

.properties-reset-link:hover {
  background: var(--pf-purple-pale);
}

.properties-results-section {
  padding: 62px 0 88px;
}

.properties-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.properties-results-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.properties-results-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.properties-results-head strong {
  color: var(--pf-purple);
}

.properties-list-grid,
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.property-card:hover {
  transform: translateY(-7px);
  border-color: rgba(50, 36, 111, 0.24);
  box-shadow: var(--shadow);
}

.property-card__image {
  position: relative;
  height: 250px;
  display: block;
  overflow: hidden;
  background: var(--pf-purple-pale);
  text-decoration: none;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.property-card:hover .property-card__image img {
  transform: scale(1.045);
}

.property-card__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--pf-purple);
  font-weight: 600;
  background:
    radial-gradient(circle at top right, rgba(239, 63, 63, 0.12), transparent 34%),
    var(--pf-purple-pale);
}

.property-card__image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 36%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.property-card__top-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  z-index: 2;
}

.property-card__badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.property-card__badge--featured {
  background: var(--pf-red);
  color: #fff;
}

.property-card__photo-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.property-card__body {
  padding: 20px 20px 18px;
}

.property-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.property-card__meta-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--pf-purple-pale);
  color: var(--pf-purple);
  font-size: 12px;
  font-weight: 600;
}

.property-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.property-card h2 a {
  color: inherit;
  text-decoration: none;
}

.property-card h2 a:hover {
  color: var(--pf-purple);
}

.property-card__location {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.property-card__specs span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.property-card__footer strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.property-card__footer a {
  color: var(--pf-purple);
  text-decoration: none;
  font-weight: 700;
}

.property-card__footer a:hover {
  color: var(--pf-red);
}

.properties-empty-state {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(239, 63, 63, 0.10), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.properties-empty-state span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 24px;
  background: var(--pf-purple-pale);
  color: var(--pf-purple);
  font-size: 34px;
}

.properties-empty-state h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.properties-empty-state p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.properties-empty-state__actions {
  display: grid;
  gap: 12px;
  min-width: 210px;
}

.properties-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.properties-pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.properties-pagination a.active,
.properties-pagination a:hover {
  background: var(--pf-purple);
  color: #fff;
  border-color: var(--pf-purple);
}

@media (max-width: 1180px) {
  .properties-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .properties-list-grid,
  .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .properties-hero {
    padding: 42px 0 96px;
  }

  .properties-hero__content,
  .properties-results-head,
  .properties-empty-state,
  .properties-search-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .properties-hero__stats {
    width: 100%;
  }

  .properties-search-card {
    padding: 20px;
    border-radius: 28px;
  }

  .properties-purpose-tabs {
    width: 100%;
  }

  .properties-search-main {
    grid-template-columns: 1fr;
  }

  .properties-search-submit {
    width: 100%;
  }

  .properties-filter-grid {
    grid-template-columns: 1fr;
  }

  .properties-sort-field,
  .properties-search-actions,
  .properties-search-actions .btn,
  .properties-reset-link {
    width: 100%;
  }

  .properties-list-grid,
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-card__image {
    height: 230px;
  }

  .properties-empty-state__actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .properties-purpose-tabs {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .properties-purpose-tabs label {
    width: 100%;
  }

  .properties-hero h1 {
    font-size: 38px;
  }

  .property-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================================================
   PROPERTY CARD SVG ICONS — remove keyboard emoji look
   ضع هذا البلوك آخر public/css/properties.css
========================================================= */

.property-card__photo-count {
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  background: rgba(20, 14, 45, 0.66) !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 22px rgba(20, 14, 45, 0.22) !important;
}

.property-card__photo-count svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.property-card__location {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.property-card__inline-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  color: #f43b40 !important;
  line-height: 1 !important;
}

.property-card__inline-icon svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.property-card__specs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.property-card__specs .property-card__spec-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(247, 245, 253, 0.96) !important;
  color: #2d215f !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.property-card__spec-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  color: #4b3a8f !important;
  line-height: 1 !important;
}

.property-card__spec-icon svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

@media (max-width: 767px) {
  .property-card__photo-count {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 12px !important;
  }

  .property-card__photo-count svg {
    width: 17px !important;
    height: 17px !important;
  }

  .property-card__specs {
    gap: 8px !important;
  }

  .property-card__specs .property-card__spec-item {
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 12.5px !important;
  }

  .property-card__spec-icon,
  .property-card__inline-icon {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
  }

  .property-card__spec-icon svg,
  .property-card__inline-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
}
/* =========================================================
   PROPERTY CARD SVG ICONS — FINAL FIX
   يحل مشكلة الأيقونات الفارغة داخل كروت العقارات
   ضع هذا البلوك آخر public/css/properties.css
========================================================= */

.property-card__photo-count {
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  background: rgba(20, 14, 45, 0.66) !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 10px 22px rgba(20, 14, 45, 0.22) !important;
}

.property-card__photo-count svg,
.property-card__photo-count svg * {
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.property-card__photo-count svg {
  width: 18px !important;
  height: 18px !important;
}

/* Location row */
.property-card__location {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: 100% !important;
  color: #6f6683 !important;
}

.property-card__location > span:not(.property-card__inline-icon) {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.property-card__inline-icon {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f43b40 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.property-card__inline-icon svg,
.property-card__inline-icon svg * {
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.property-card__inline-icon svg {
  width: 17px !important;
  height: 17px !important;
}

/* Specs pills */
.property-card__specs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.property-card__specs .property-card__spec-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 7px !important;
  width: auto !important;
  min-width: auto !important;
  max-width: max-content !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(247, 245, 253, 0.96) !important;
  box-shadow: none !important;
  color: #2d215f !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.property-card__specs .property-card__spec-item::before,
.property-card__specs .property-card__spec-item::after,
.property-card__specs .property-card__spec-icon::before,
.property-card__specs .property-card__spec-icon::after {
  display: none !important;
  content: none !important;
}

.property-card__specs .property-card__spec-item > span:not(.property-card__spec-icon) {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.property-card__spec-icon {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #4b3a8f !important;
  font-size: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
}

.property-card__spec-icon svg,
.property-card__spec-icon svg * {
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke !important;
}

.property-card__spec-icon svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
}

/* Extra hard reset against old generic span rules */
.property-card__specs span.property-card__spec-icon,
.property-card__specs span.property-card__spec-icon svg,
.property-card__specs span.property-card__spec-icon svg path,
.property-card__specs span.property-card__spec-icon svg circle {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .property-card__photo-count {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 12px !important;
  }

  .property-card__photo-count svg {
    width: 17px !important;
    height: 17px !important;
  }

  .property-card__specs {
    gap: 8px !important;
  }

  .property-card__specs .property-card__spec-item {
    height: 34px !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    font-size: 12.5px !important;
  }

  .property-card__spec-icon,
  .property-card__inline-icon {
    flex-basis: 17px !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
  }

  .property-card__spec-icon svg,
  .property-card__inline-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
}
/* =========================================================
   PROPERTY SAVE BUTTONS — saved properties feature
   ضع هذا آخر public/css/properties.css
========================================================= */

.property-card {
  position: relative !important;
}

.property-card__save-form {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 8 !important;
  margin: 0 !important;
}

.property-card__save-button,
.property-card__save-login {
  display: inline-grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #32246f !important;
  box-shadow: 0 12px 26px rgba(20, 14, 45, 0.16) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease !important;
}

.property-card__save-button:hover,
.property-card__save-login:hover {
  transform: translateY(-2px) !important;
  color: #f43b40 !important;
  box-shadow: 0 16px 34px rgba(20, 14, 45, 0.20) !important;
}

.property-card__save-button.active,
.property-card--saved .property-card__save-button {
  background: #f43b40 !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 16px 34px rgba(244, 59, 64, 0.30) !important;
}

.property-card__save-button svg,
.property-card__save-login svg {
  width: 19px !important;
  height: 19px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.property-card__save-button.active svg,
.property-card--saved .property-card__save-button svg {
  fill: currentColor !important;
}

.property-summary-actions .property-save-form {
  margin: 0;
}

.property-summary-actions .property-save-form button,
.property-save-login-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--pf-purple);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.property-summary-actions .property-save-form button svg,
.property-save-login-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.property-summary-actions .property-save-form button.active {
  border-color: transparent;
  background: #f43b40;
  color: #fff;
}

.property-summary-actions .property-save-form button.active svg {
  fill: currentColor;
}

.profile-saved-grid {
  margin-top: 26px;
}

@media (max-width: 767px) {
  .property-card__save-form {
    top: 12px !important;
    left: 12px !important;
  }

  .property-card__save-button,
  .property-card__save-login {
    width: 40px !important;
    height: 40px !important;
  }
}
/* =========================================================
   SAVE BUTTON AJAX STATE
   ضع هذا آخر public/css/properties.css
========================================================= */

.property-card__save-button.is-loading,
.property-summary-actions .property-save-form button.is-loading {
  pointer-events: none !important;
  opacity: 0.72 !important;
}

.property-card__save-button.is-loading svg,
.property-summary-actions .property-save-form button.is-loading svg {
  animation: saveButtonPulse 700ms ease-in-out infinite alternate;
}

@keyframes saveButtonPulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(0.84);
  }
}
/* =========================================================
   SAVE SEARCH FROM PROPERTIES PAGE
   ضع هذا آخر public/css/properties.css
========================================================= */

.properties-save-search-message {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(50, 36, 111, 0.12);
  border-radius: 18px;
  background: #fbfaff;
  color: #32246f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
  box-shadow: 0 14px 34px rgba(20, 14, 45, 0.05);
}

.properties-save-search-panel {
  margin-top: 14px;
}

.properties-save-search-form,
.properties-save-search-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(50, 36, 111, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(244, 59, 64, 0.08), transparent 36%),
    linear-gradient(135deg, #ffffff, #fbfaff);
  box-shadow: 0 16px 42px rgba(20, 14, 45, 0.05);
}

.properties-save-search-form strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
}

.properties-save-search-form p,
.properties-save-search-hint {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.properties-save-search-form p {
  margin: 4px 0 0;
}

.properties-save-search-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .properties-save-search-form,
  .properties-save-search-hint {
    display: grid;
    gap: 14px;
  }

  .properties-save-search-form .btn {
    width: 100%;
  }
}
/* =========================================================
   SAVE SEARCH AJAX STATE
   ضع هذا آخر public/css/properties.css
========================================================= */

.properties-save-search-form button.is-loading {
  pointer-events: none !important;
  opacity: 0.72 !important;
}

.properties-save-search-form button.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-inline-start: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: savedSearchSpin 700ms linear infinite;
}

@keyframes savedSearchSpin {
  to {
    transform: rotate(360deg);
  }
}
/* =========================================================
   HARD FIX: Logged-out favorite button creates top white gap
   يحوّل أي زر/فورم فوق الصورة إلى overlay بدل ما يدفع الصورة لتحت
   ========================================================= */

.property-card {
  position: relative !important;
  overflow: hidden !important;
  padding-top: 0 !important;
}

/* أي عنصر أول داخل الكرت وليس صورة العقار = غالباً زر/فورم الحفظ */
.property-card > :first-child:not(.property-card__image) {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 80 !important;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* إذا الصورة جاية بعد زر الحفظ، رجّعها تلزق بأعلى الكرت */
.property-card > :first-child:not(.property-card__image) + .property-card__image,
.property-card > .property-card__image {
  margin-top: 0 !important;
  width: 100% !important;
  height: 250px !important;
  display: block !important;
  overflow: hidden !important;
  border-radius: 28px 28px 0 0 !important;
  background: var(--pf-purple-pale) !important;
}

/* الصورة نفسها تعبّي البوكس بدون فراغات */
.property-card > .property-card__image img,
.property-card__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
}

/* placeholder بدون صورة كمان يبدأ من فوق */
.property-card > .property-card__image .property-card__placeholder,
.property-card__placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: 250px !important;
  border-radius: 0 !important;
}

/* زر القلب نفسه مهما كان نوعه */
.property-card > :first-child:not(.property-card__image) button,
.property-card > :first-child:not(.property-card__image) a,
.property-card > :first-child:not(.property-card__image) [role='button'] {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--pf-purple) !important;
  box-shadow: 0 12px 28px rgba(30, 20, 70, 0.14) !important;
  backdrop-filter: blur(10px);
  cursor: pointer !important;
}

/* حماية إضافية لو زر القلب عنده كلاسات مختلفة */
.property-card .favorite-btn,
.property-card .save-btn,
.property-card .save-property-btn,
.property-card .property-save-btn,
.property-card .property-favorite-btn,
.property-card [data-save-property],
.property-card [data-favorite-property] {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--pf-purple) !important;
  box-shadow: 0 12px 28px rgba(30, 20, 70, 0.14) !important;
  backdrop-filter: blur(10px);
}

/* البادجات فوق الصورة */
.property-card__top-badges {
  top: 18px !important;
  right: auto !important;
  left: 18px !important;
  z-index: 40 !important;
}

/* عداد الصور */
.property-card__photo-count {
  z-index: 40 !important;
}

/* موبايل */
@media (max-width: 860px) {
  .property-card > :first-child:not(.property-card__image) {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
  }

  .property-card > :first-child:not(.property-card__image) + .property-card__image,
  .property-card > .property-card__image {
    height: 230px !important;
  }

  .property-card > .property-card__image .property-card__placeholder,
  .property-card__placeholder {
    min-height: 230px !important;
  }
}