/* EL-08 search cards share the homepage's image and content hierarchy. */
body.el-08-residences .residence-results .result-card {
  border: 1px solid #d8d8d8;
  background: var(--paper);
}

body.el-08-residences .residence-results .result-photo,
body.el-08-residences .residence-results .result-photo-frame {
  display: block;
  width: 100%;
  aspect-ratio: 983 / 656;
  background: #d8d5cb;
  overflow: hidden;
}

body.el-08-residences .residence-results .result-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 983 / 656;
  object-fit: cover;
  object-position: left bottom;
}

body.el-08-residences .residence-results .result-card-copy {
  display: block;
  padding: 0 20px 21px;
}

body.el-08-residences .residence-results .card-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px 20px !important;
  min-height: 0;
  margin: 20px 0 12px;
}

body.el-08-residences .residence-results .card-location {
  font: 400 16px/1.5 var(--sans);
  letter-spacing: .06em;
  text-transform: none;
}

body.el-08-residences .residence-results .card-price {
  font: 500 18px/1.5 var(--sans);
  letter-spacing: 0;
}

body.el-08-residences .residence-results .result-card h2 {
  min-height: 0;
  margin: 0 0 15px;
  font: 400 18px/1.12 var(--serif);
  letter-spacing: -.025em;
}

body.el-08-residences .residence-results .card-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px 20px;
  min-height: 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font: 400 16px/1.5 var(--sans);
}

body.el-08-residences .residence-results .features {
  display: block;
  color: var(--ink);
  opacity: .7;
}

body.el-08-residences .residence-results .features span + span::before {
  content: "/";
  padding: 0 .5em;
}

body.el-08-residences .residence-results .card-view {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font: inherit;
}

body.el-08-residences .residence-results .card-view:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 520px) {
  body.el-08-residences .residence-results .result-card-copy {
    padding: 0 18px 20px;
  }
}

/* The main search fields and a separate, full-width amenities row. */
body.el-08-residences .filter-bar {
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}
body.el-08-residences .filter-control {
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
body.el-08-residences .amenities-filter {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
body.el-08-residences .amenities-filter legend {
  float: left;
  margin-right: 32px;
  padding: 0;
  font-weight: 500;
  line-height: 1.5;
}
body.el-08-residences .amenities-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
body.el-08-residences .amenities-options label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  cursor: pointer;
}
body.el-08-residences .amenities-options input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #1b3967;
}
body.el-08-residences .filter-button {
  display: flex;
  min-height: 44px;
}
@media (max-width: 1100px) {
  body.el-08-residences .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.el-08-residences .filter-control:nth-child(3) { border: 0; padding-right: 0; }
}
@media (max-width: 650px) {
  body.el-08-residences .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.el-08-residences .filter-control:nth-child(3) { border-right: 1px solid var(--line); padding-right: 18px; }
  body.el-08-residences .filter-control:nth-child(even) { border: 0; padding-right: 0; }
  body.el-08-residences .amenities-filter legend { float: none; margin: 0 0 14px; }
  body.el-08-residences .amenities-options { gap: 10px 20px; }
}
