.sales-overview {
  --page-decoration-top: 200px;
  --page-decoration-rise: 27.083333vw;

  position: relative;
  overflow: hidden;
  min-height: 1498px;
  padding-block: var(--space-64);
  background-color: #f5f5f5;
}

.sales-overview::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--color-surface-subtle);
  clip-path: polygon(
    0 calc(var(--page-decoration-top) + var(--page-decoration-rise)),
    100% var(--page-decoration-top),
    100% 100%,
    0 100%
  );
  content: "";
  pointer-events: none;
}

.sales-overview__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--container-content));
  margin-inline: auto;
}

.sales-property-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.sales-property {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-height: 196px;
  padding: var(--space-20) var(--space-64);
  background: var(--color-surface-primary);
  border-radius: var(--radius-lg);
}

.sales-property__summary {
  display: flex;
  align-items: flex-end;
  gap: var(--space-12);
  width: 100%;
}

.sales-property__identity {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.sales-property__name-row,
.sales-property__statuses,
.sales-property__address {
  display: flex;
  align-items: center;
}

.sales-property__name-row,
.sales-property__statuses {
  gap: var(--space-8);
}

.sales-property__name-row h3 {
  font-size: var(--font-size-24);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-32);
}

.sales-property__status {
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-14);
  line-height: var(--line-height-21);
  white-space: nowrap;
}

.sales-property__status--sale {
  color: var(--color-status-sale-text);
  background: var(--color-status-sale-surface);
}

.sales-property__status--rent {
  color: var(--color-status-rent-text);
  background: var(--color-status-rent-surface);
}

.sales-property__address {
  gap: 5px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-16);
  line-height: var(--line-height-24);
}

.sales-property__address img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sales-property__map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
}

.sales-property__map-link img {
  flex-basis: 16.667px;
  width: 16.667px;
  height: 16.667px;
  transform: scale(1);
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

@media (min-width: 1024px) and (hover: hover) {
  .sales-property__map-link:hover img {
    transform: scale(1.08);
  }
}

.sales-property__contact {
  flex: 0 0 auto;
  color: var(--color-text-secondary);
  font-size: var(--font-size-16);
  line-height: var(--line-height-24);
  white-space: nowrap;
}

.sales-property__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: var(--space-16) var(--space-40);
  background: var(--color-surface-secondary);
  border-radius: var(--radius-md);
}

.sales-property__detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 96px;
}

.sales-property__detail dt {
  color: var(--color-text-secondary);
  font-size: var(--font-size-14);
  line-height: var(--line-height-21);
}

.sales-property__detail dd {
  font-size: var(--font-size-18);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-27);
}

@media (max-width: 1023px) {
  .sales-overview__inner {
    width: calc(100% - 64px);
  }

  .sales-property {
    padding-inline: var(--space-32);
  }

  .sales-property__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-property__details {
    padding-inline: var(--space-24);
  }
}

@media (max-width: 767px) {
  .sales-overview__inner {
    width: calc(100% - 48px);
  }

  .sales-overview {
    --page-decoration-top: 240px;

    min-height: 0;
    padding-block: var(--space-40);
  }

  .sales-property {
    gap: var(--space-8);
    min-height: 0;
    padding: var(--space-24) var(--space-16);
    border-radius: var(--radius-lg);
  }

  .sales-property__name-row {
    align-items: center;
    flex-wrap: wrap;
  }

  .sales-property__name-row h3 {
    font-size: var(--font-size-20);
    line-height: var(--line-height-28);
  }

  .sales-property__address {
    font-size: var(--font-size-16);
    line-height: var(--line-height-24);
    white-space: nowrap;
  }

  .sales-property__contact {
    font-size: var(--font-size-14);
    line-height: var(--line-height-21);
    white-space: normal;
  }

  .sales-property__details {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-16);
    min-height: 0;
    padding: var(--space-16);
  }

  .sales-property__detail {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-16);
    width: 100%;
  }

  .sales-property__detail dt,
  .sales-property__detail dd {
    font-size: var(--font-size-16);
    line-height: var(--line-height-24);
  }
}
