.product-card,
.seo-listing-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe7eb;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgb(21 51 62 / 6%);
}

.product-card .product-image,
.seo-listing-card img,
.seo-listing-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  background: #edf4f6;
  box-shadow: none;
}

.product-card .product-image img,
.seo-listing-card img {
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.seo-listing-card img {
  height: auto;
}

.product-card .product-image .empty {
  display: grid;
  height: 100%;
  min-height: 0;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 0;
  border-radius: 0;
}

.product-card .product-image .empty p {
  margin: 0;
}

.product-card .product-info,
.seo-listing-card div {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: clamp(11px, 1.3vw, 17px);
}

.product-card-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.product-card .product-price,
.seo-listing-card strong {
  color: #075b82;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.product-card .product-price small {
  font-size: .68em;
  font-weight: 500;
}

.product-card .product-title,
.seo-listing-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #15333e;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
}

.product-card .product-meta,
.seo-listing-card p {
  margin: 0;
  color: #526b76;
  font-size: .8125rem;
  line-height: 1.35;
}

.product-card .product-delivery {
  justify-self: start;
  margin: 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: #edf5f7;
  color: #325b6c;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-card > .save-button {
  top: 10px;
  inset-inline-end: 10px;
  width: 44px;
  height: 44px;
  background: #fff;
  box-shadow: 0 1px 8px rgb(21 51 62 / 15%);
}

.product-card :is(a, button):focus-visible,
.seo-listing-card a:focus-visible {
  outline: 2px solid #087aab;
  outline-offset: -2px;
}

.listing-seo-layout .listing-seo-details {
  padding: clamp(20px, 3vw, 34px);
  border-color: #dbe7eb;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgb(21 51 62 / 8%);
}

.listing-seo-layout .listing-seo-details h1 {
  margin-top: 8px;
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.listing-seo-layout .listing-seo-price {
  color: #075b82;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-variant-numeric: tabular-nums;
}

.listing-seo-layout .listing-seo-facts span {
  border-radius: 8px;
  color: #325b6c;
  font-size: .8125rem;
}

.listing-seo-layout .listing-seo-gallery img {
  border-radius: 18px;
}

.listing-seo-layout .listing-seo-gallery img:first-child {
  object-fit: contain;
  background: #edf4f6;
}

.past-listings-link {
  padding: 18px 0;
  text-align: center;
}

.past-listings-link a,
.past-listings-back {
  color: #075b82;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.estate-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.estate-past-link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.past-listings {
  max-width: 1260px;
  padding-bottom: 80px;
}

.past-listings-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #dbe7eb;
}

.past-listings-logo img {
  display: block;
}

.past-listings-intro,
.past-listing-detail {
  padding-top: clamp(28px, 5vw, 60px);
}

.past-listings h1 {
  margin: 0 0 12px;
  color: #15333e;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.past-listings-intro p,
.past-listing-detail p {
  margin: 0 0 22px;
  color: #526b76;
}

.past-listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.past-listing-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid #dbe7eb;
  border-radius: 999px;
  color: #325b6c;
  font-size: .875rem;
  font-weight: 600;
}

.past-listing-filters a[aria-current='page'] {
  border-color: #075b82;
  background: #075b82;
  color: #fff;
}

.past-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 46%), 1fr));
  gap: clamp(10px, 1.6vw, 20px);
}

.past-listing-card:hover .product-title {
  text-decoration: underline;
}

.past-listing-detail .past-listings-back {
  display: inline-block;
  margin-bottom: 18px;
}

.past-listing-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(325px, 100%), 1fr));
  gap: 12px;
  align-items: start;
  max-width: 920px;
}

.past-listing-photos img {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 14px;
  background: #edf4f6;
}
