#distressed {
  min-height: 70vh;
  padding: 2rem 0 4.5rem;
  background: #fff;
}

.distressed-breadcrumb {
  display: flex;
  height: auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: #7a8794;
  border-bottom: 0;
  background: transparent;
  font-size: 0.875rem;
}

.distressed-breadcrumb a {
  color: #7a8794;
}

.distressed-breadcrumb a:hover {
  color: var(--orange);
}

.distressed-breadcrumb svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.distressed-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid #e9edf1;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
  box-shadow: 0 0.25rem 1.25rem rgba(23, 37, 61, 0.06);
}

.distressed-header-copy {
  max-width: 48rem;
}

.distressed-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.distressed-header h1 {
  margin: 0 0 0.75rem;
  color: #17113a;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.distressed-header p {
  max-width: 44rem;
  margin: 0;
  color: #687582;
  font-size: 1rem;
  line-height: 1.65;
}

.distressed-header-count {
  display: flex;
  min-width: 10rem;
  padding: 1rem 1.25rem;
  flex-direction: column;
  border: 1px solid #ffe0ad;
  border-radius: 0.75rem;
  background: #fff8ec;
}

.distressed-header-count strong {
  color: #17113a;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.distressed-header-count span {
  color: #7a8794;
  font-size: 0.75rem;
}

.distressed-wrapper {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.distressed-filter {
  position: sticky;
  top: 5rem;
}

.distressed-filter-box {
  height: auto;
  overflow: hidden;
  border: 1px solid #e8e1dc;
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: 0 0.25rem 1rem rgba(23, 37, 61, 0.06);
}

.distressed-filter-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid #eee7e2;
}

.distressed-filter-heading svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.distressed-filter-heading span,
.distressed-mobile-filter summary > span {
  display: flex;
  flex-direction: column;
}

.distressed-filter-heading small,
.distressed-mobile-filter summary small {
  color: #8b96a1;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.distressed-filter-heading strong,
.distressed-mobile-filter summary strong {
  color: #17113a;
  font-size: 0.9375rem;
  font-weight: 700;
}

.distressed-filter-box ul,
.distressed-mobile-filter ul {
  margin: 0;
  padding: 0.5rem;
}

.distressed-filter-link {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  color: #485563;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.distressed-filter-link:hover {
  background: #f5f7f9;
  color: #17113a;
}

.distressed-filter-link.is-active {
  background: #fff3df;
  color: #bd6800;
  font-weight: 700;
}

.distressed-mobile-filter {
  display: none;
  margin-bottom: 1.25rem;
  border: 1px solid #e8e1dc;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(23, 37, 61, 0.05);
}

.distressed-mobile-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  cursor: pointer;
  list-style: none;
}

.distressed-mobile-filter summary::-webkit-details-marker {
  display: none;
}

.distressed-mobile-filter summary > svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.distressed-mobile-filter[open] summary > svg {
  transform: rotate(180deg);
}

.distressed-mobile-filter ul {
  border-top: 1px solid #eee7e2;
}

.distressed-results-bar {
  display: flex;
  min-height: 3rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e8e1dc;
  border-radius: 0.75rem;
  background: #fff;
}

.distressed-results-bar strong {
  color: #17113a;
  font-size: 0.9375rem;
}

.distressed-results-bar span {
  color: #7a8794;
  font-size: 0.8125rem;
}

.distressed-item {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px solid #e8e1dc;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(23, 37, 61, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.distressed-item:hover {
  border-color: #f3bd6c;
  box-shadow: 0 0.65rem 1.75rem rgba(23, 37, 61, 0.1);
  transform: translateY(-1px);
}

.distressed-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.distressed-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #7a8794;
  font-size: 0.8125rem;
}

.distressed-date .distressed-date-added {
  color: #465360;
  font-size: 0.9375rem;
  font-weight: 500;
}

.distressed-date .distressed-date-added strong {
  color: #263238;
  font-weight: 700;
}

.distressed-date time::before {
  content: "•";
  margin-right: 0.5rem;
  color: #c8ced4;
}

.distressed-status {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  align-items: center;
  border-radius: 999px;
  background: #fff2dd;
  color: #c66d00;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.distressed-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: #263238;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.35;
}

.distressed-link:hover {
  color: var(--orange);
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
}

.location-item svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.distressed-address {
  margin-bottom: 0.875rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  background: #f6f8fa;
  color: #64717d;
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.distressed-address span {
  color: #3e4a55;
}

.distressed-item-bottom {
  display: flex;
  margin-top: 1rem;
  padding-top: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid #eef0f2;
}

.distressed-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.distressed-metric {
  display: flex;
  min-width: 8.5rem;
  flex-direction: column;
}

.distressed-metric span {
  margin-bottom: 0.1rem;
  color: #8a95a0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.distressed-metric strong {
  color: #17113a;
  font-size: 1rem;
  font-weight: 700;
}

.distressed-view-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  color: #17113a;
  font-size: 0.8125rem;
  font-weight: 700;
}

.distressed-view-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--orange);
  transition: transform 0.15s ease;
}

.distressed-view-link:hover {
  color: var(--orange);
}

.distressed-view-link:hover svg {
  transform: translateX(0.2rem);
}

.distressed-pagination {
  display: flex;
  height: auto;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-bottom: 0;
  background: transparent;
}

.distressed-page-link,
.distressed-page-count {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e6ea;
  border-radius: 0.65rem;
  background: #fff;
  color: #263238;
  font-size: 0.8125rem;
  font-weight: 600;
}

.distressed-page-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.distressed-page-link svg {
  fill: currentColor;
}

.distressed-page-link.is-disabled {
  cursor: default;
  opacity: 0.42;
}

.distressed-page-count {
  border-color: transparent;
  background: #f5f7f9;
}

.distressed-page-count span {
  margin-left: 0.25rem;
  color: #89949f;
  font-weight: 400;
}

.distressed-filter-link:focus-visible,
.distressed-link:focus-visible,
.distressed-view-link:focus-visible,
.distressed-page-link:focus-visible,
.distressed-mobile-filter summary:focus-visible {
  outline: 3px solid rgba(255, 156, 0, 0.28);
  outline-offset: 2px;
}

@media screen and (max-width: 991px) {
  #distressed {
    padding-top: 1.5rem;
  }

  .distressed-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .distressed-filter {
    display: none;
  }

  .distressed-mobile-filter {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  #distressed {
    padding-bottom: 3rem;
  }

  .distressed-breadcrumb {
    margin-bottom: 1rem;
  }

  .distressed-header {
    padding: 1.25rem;
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }

  .distressed-header h1 {
    font-size: 1.65rem;
  }

  .distressed-header p {
    font-size: 0.9375rem;
  }

  .distressed-header-count {
    min-width: 0;
    padding: 0.8rem 1rem;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }

  .distressed-header-count strong {
    font-size: 1.25rem;
  }

  .distressed-item {
    padding: 1.125rem;
  }

  .distressed-item-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .distressed-view-link {
    justify-content: flex-end;
  }
}

@media screen and (max-width: 479px) {
  .distressed-results-bar span {
    display: none;
  }

  .distressed-item-meta {
    align-items: flex-start;
  }

  .distressed-date {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }

  .distressed-date time::before {
    display: none;
  }

  .distressed-link {
    font-size: 1.125rem;
  }

  .distressed-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .distressed-metric {
    min-width: 0;
  }

  .distressed-pagination {
    gap: 0.4rem;
  }

  .distressed-page-link,
  .distressed-page-count {
    min-height: 2.5rem;
    padding: 0 0.7rem;
  }
}
