/* Real Estate marketplace listing */
.amal-re-page {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 28%, #fff 100%);
  padding-bottom: 56px;
}

.amal-re-page .amal-all-clubs-hero__content {
  max-width: 700px;
}

.amal-re-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.amal-re-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.amal-re-cat:hover {
  transform: translateY(-1px);
  border-color: #2563eb;
  color: #1d4ed8;
}

.amal-re-cat.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.amal-re-cat img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  /* Category PNGs are white line icons — force dark on light pills */
  filter: brightness(0);
}

.amal-re-cat.is-active img {
  filter: brightness(0) invert(1);
}

.amal-re-toolbar-wrap {
  padding-top: 28px;
  padding-bottom: 8px;
}

.amal-re-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.amal-re-toolbar__field {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}

.amal-re-toolbar__field--select {
  flex: 0 1 220px;
}

.amal-re-toolbar__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.amal-re-toolbar__input,
.amal-re-toolbar__select {
  width: 100%;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 14px 0 42px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
}

.amal-re-toolbar__select {
  padding-left: 14px;
  cursor: pointer;
}

.amal-re-toolbar__input:focus,
.amal-re-toolbar__select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.amal-re-toolbar__submit {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.amal-re-toolbar__submit:hover {
  background: #020617;
}

.amal-re-toolbar__reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.amal-re-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 16px;
}

.amal-re-list-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.amal-re-grid {
  padding-bottom: 24px;
}

.amal-re-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amal-re-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.amal-re-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  background: #e2e8f0;
  overflow: hidden;
}

.amal-re-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.amal-re-card:hover .amal-re-card__media img {
  transform: scale(1.04);
}

.amal-re-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.amal-re-card__cat-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 750;
}

.amal-re-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  flex: 1;
}

.amal-re-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.amal-re-card__type {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.amal-re-card__price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #2563eb;
  white-space: nowrap;
}

.amal-re-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 750;
  color: #0f172a;
}

.amal-re-card__title a {
  color: inherit;
  text-decoration: none;
}

.amal-re-card__title a:hover {
  color: #1d4ed8;
}

.amal-re-card__location {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.amal-re-card__location i {
  color: #2563eb;
  margin-top: 2px;
}

.amal-re-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.amal-re-card__specs li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  color: #475569;
  font-weight: 600;
}

.amal-re-card__specs i {
  color: #94a3b8;
}

.amal-re-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.amal-re-card__tags li {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 650;
}

.amal-re-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.amal-re-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.amal-re-card__company {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.amal-re-card__date {
  font-size: 0.76rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.amal-re-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.amal-re-card__like {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.amal-re-card__like.is-liked,
.amal-re-card__like:hover {
  color: #dc2626;
  border-color: #fecaca;
}

.amal-re-card__cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 700;
}

.amal-re-card__cta:hover {
  background: #1d4ed8;
}

.amal-re-empty {
  margin: 24px 0 8px;
  padding: 28px 20px;
  text-align: center;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-weight: 600;
}

.amal-re-pagination {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.amal-re-pagination .pagination {
  margin: 0;
}

/* Single property detail */
.amal-re-detail__eyebrow {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.amal-re-detail__eyebrow span {
  font-weight: 600;
  color: #94a3b8;
}

.amal-re-detail__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
}

.amal-re-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.amal-re-detail__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 650;
}

.amal-re-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.amal-re-detail__fact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.amal-re-detail__fact:last-child {
  border-bottom: none;
}

.amal-re-detail__fact dt {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: #64748b;
}

.amal-re-detail__fact dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.amal-re-detail__location {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #334155;
}

.amal-re-detail__location i {
  color: #2563eb;
  margin-top: 2px;
}

@media (max-width: 767px) {
  .amal-re-toolbar {
    padding: 12px;
  }

  .amal-re-card__footer {
    flex-wrap: wrap;
  }

  .amal-re-detail__facts {
    grid-template-columns: 1fr;
  }
}
