:root {
  --resez-ink: #0f172a;
  --resez-muted: #64748b;
  --resez-line: rgba(15, 23, 42, .10);
  --resez-soft: #f8fafc;
  --resez-brand: #0f766e;
  --resez-brand-dark: #115e59;
  --resez-gold: #d97706;
  --resez-radius: 24px;
}

.resez-marketplace-shell {
  container-type: inline-size;
  margin: 1.25rem 0 2.5rem;
}

.resez-marketplace-header {
  border: 1px solid var(--resez-line);
  border-radius: calc(var(--resez-radius) + 4px);
  padding: clamp(1.2rem, 2vw, 2rem);
  margin-bottom: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(15,118,110,.14), transparent 34rem),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
}

.resez-marketplace-eyebrow {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(15,118,110,.10);
  color: var(--resez-brand-dark);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.resez-marketplace-title {
  color: var(--resez-ink);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 900;
  margin: .9rem 0 .55rem;
}

.resez-marketplace-subtitle {
  color: var(--resez-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin: 0;
  max-width: 60rem;
}

.resez-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2vw, 1.7rem);
}

.resez-property-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--resez-line);
  border-radius: var(--resez-radius);
  background: #fff;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 100%;
}

.resez-property-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15,118,110,.28);
  box-shadow: 0 30px 72px rgba(15, 23, 42, .16);
}

.resez-property-image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 16 / 11;
}

.resez-property-image-wrap img,
.resez-property-image-wrap .carousel,
.resez-property-image-wrap .card-img,
.resez-property-image-wrap .card-img-top,
.resez-property-image-wrap picture,
.resez-property-image-wrap .slideshow {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
}

.resez-badge-row {
  position: absolute;
  top: .85rem;
  left: .85rem;
  right: .85rem;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  z-index: 3;
  pointer-events: none;
}

.resez-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .45rem .7rem;
  font-size: .78rem;
  font-weight: 850;
  color: #fff;
  background: rgba(15, 23, 42, .74);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(15,23,42,.20);
}

.resez-badge-direct { background: rgba(15,118,110,.92); }
.resez-badge-featured { background: rgba(217,119,6,.92); }

.resez-property-body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.resez-property-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--resez-muted);
  font-size: .9rem;
  margin-bottom: .5rem;
}

.resez-property-type {
  color: var(--resez-brand-dark);
  font-weight: 800;
}

.resez-property-title {
  color: var(--resez-ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 .45rem;
}

.resez-property-title a {
  color: inherit;
  text-decoration: none;
}

.resez-property-title a:hover {
  color: var(--resez-brand-dark);
}

.resez-property-location {
  color: var(--resez-muted);
  font-size: .95rem;
  margin-bottom: .9rem;
  display: flex;
  gap: .4rem;
  align-items: flex-start;
}

.resez-property-features {
  min-height: 1.5rem;
  color: var(--resez-muted);
  font-size: .9rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.resez-property-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--resez-line);
  padding-top: 1rem;
}

.resez-price-label {
  color: var(--resez-muted);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.resez-price {
  color: var(--resez-ink);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.1;
}

.resez-price small {
  color: var(--resez-muted);
  font-size: .8rem;
  font-weight: 700;
}

.resez-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resez-actions .btn,
.resez-btn {
  border-radius: 999px !important;
  padding: .62rem .95rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.resez-btn-primary {
  background: var(--resez-brand) !important;
  border-color: var(--resez-brand) !important;
  color: #fff !important;
}

.resez-btn-primary:hover {
  background: var(--resez-brand-dark) !important;
  border-color: var(--resez-brand-dark) !important;
}

.resez-btn-ghost {
  background: #fff !important;
  border: 1px solid var(--resez-line) !important;
  color: var(--resez-ink) !important;
}

.resez-list-card {
  border: 1px solid var(--resez-line);
  border-radius: var(--resez-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15,23,42,.10);
  margin-bottom: 1.25rem;
}

.resez-list-card .resez-property-image-wrap { aspect-ratio: 4 / 3; height: 100%; }

#livescrolling_results { width: 100%; }

@media (max-width: 575.98px) {
  .resez-property-body { padding: 1rem; }
  .resez-property-price-row { align-items: flex-start; flex-direction: column; }
  .resez-actions { justify-content: stretch; width: 100%; }
  .resez-actions .btn, .resez-btn { flex: 1 1 auto; text-align: center; }
}
