/* public property listing */

/* no width override: the listing sits in the same 960px column as the rest of the site */

/* filters */

/*
 * The type scale is the theme's: "#content-container form p" already sets the
 * form text, so nothing in here restates a font-size. This block only lays the
 * fields out in a row and lets the select fill its column instead of the fixed
 * 446px base.css hands every control.
 */

.property-filters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  grid-gap: 1em 1.4em;
  gap: 1em 1.4em;
  margin: 0 0 2.4em;
}

.property-filters .property-filter {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 170px;
  flex: 1 1 170px;
  min-width: 0;
  margin: 0;
}

.property-filter-label {
  margin-bottom: .2em;
}

.property-filter-select {
  width: 100%;
  max-width: none;
}

.property-filter-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  grid-gap: 1em;
  gap: 1em;
}

/*
 * The button fills its column and is pinned to the height base.css gives a select
 * at this font size. Matching padding alone lands 2px short: a select's inner box
 * is taller than a button's, and by how much is up to the browser.
 */

.property-filter-submit {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.property-filter-reset {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  color: #655d5f;
  text-decoration: underline;
  white-space: nowrap;
}

/* result count */

.property-results-count {
  font-family: Miso-Light, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.6em !important;
  line-height: 1.2;
  color: #655d5f;
  margin: 0 0 1.2em !important;
}

/* cards */

.property-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-card {
  display: block;
  min-width: 0;
}

.property-card-link {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #bebdb5;
  border-bottom: 3px solid #ddb109;
  color: inherit;
  text-decoration: none;
}

.property-card-link:hover,
.property-card-link:focus {
  color: inherit;
  text-decoration: none;
  -webkit-box-shadow: 0 6px 18px rgba(13, 13, 12, .12);
  box-shadow: 0 6px 18px rgba(13, 13, 12, .12);
}

/* the ratio is fixed so a portrait upload cannot stretch its row */

.property-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #e8e7dd;
  aspect-ratio: 3 / 2;
}

.property-card-image {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.property-card-link:hover .property-card-image {
  opacity: .88;
}

.property-card-badges {
  display: block;
  position: absolute;
  top: 10px;
  left: 10px;
}

.property-card-badge {
  display: inline-block;
  background: rgba(13, 13, 12, .72);
  color: #fff;
  font-family: Miso-Light, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.3em;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 9px;
  margin-right: 5px;
}

.property-card-badge-purpose {
  background: #9f1f63;
}

.property-card-body {
  display: block;
  padding: 1.4em 1.4em 1.6em;
}

.property-card-price {
  display: block;
  font-family: Miso-Bold, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.6em;
  line-height: 1.1;
  color: #0d0d0c;
}

.property-card-price-empty {
  color: #655d5f;
  font-size: 2em;
}

.property-card-price-suffix {
  font-family: Miso-Light, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .5em;
  letter-spacing: .04em;
  color: #655d5f;
  margin-left: .3em;
}

.property-card-title {
  display: block;
  font-family: Miso, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2em;
  line-height: 1.25;
  color: #655d5f;
  margin-top: .35em;
}

.property-card-location {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  font-family: Miso-Light, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  line-height: 1.3;
  color: #655d5f;
  margin-top: .5em;
}

.property-card-icon-pin {
  width: 15px;
  height: 15px;
  margin: 1px 6px 0 0;
  color: #9f1f63;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.property-card-specs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  grid-gap: 6px 14px;
  gap: 6px 14px;
  list-style: none;
  margin: 1em 0 0;
  padding: 1em 0 0;
  border-top: 1px solid #e8e7dd;
}

.property-card-spec {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: Miso-Light, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  line-height: 1.2;
  color: #3a3628;
}

.property-card-icon {
  display: block;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  color: #9f1f63;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

/* pagination */

.property-pagination {
  margin-top: 3em;
  text-align: center;
}

/* paginate_links puts .page-numbers on the list as well as on each link, so the
   box styling is scoped to the items or the list itself would draw a border */

.property-pagination ul.page-numbers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  grid-gap: 6px;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-pagination li {
  display: block;
}

.property-pagination li .page-numbers {
  display: block;
  font-family: Miso-Light, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.6em;
  line-height: 1;
  color: #655d5f;
  background: #fff;
  border: 1px solid #bebdb5;
  padding: 9px 13px;
  text-decoration: none;
}

.property-pagination li a.page-numbers:hover {
  border-color: #9f1f63;
  color: #9f1f63;
  text-decoration: none;
}

.property-pagination li .page-numbers.current {
  background: #9f1f63;
  border-color: #9f1f63;
  color: #fff;
}

/* empty state */

.property-empty {
  background: #fff;
  border: 1px solid #bebdb5;
  border-bottom: 3px solid #ddb109;
  padding: 2.4em;
  text-align: center;
}

.property-empty-title {
  font-family: Miso-Bold, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2.2em !important;
  line-height: 1.2;
  color: #655d5f;
  margin: 0 0 .4em !important;
}

.property-empty-text {
  font-family: Miso-Light, HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.7em !important;
  line-height: 1.4;
  color: #655d5f;
  margin: 0 !important;
}

.property-empty-text a {
  text-decoration: underline;
}

/* responsive */

@media only screen and (max-width: 767px) {
  .property-filters {
    grid-gap: 1em;
    gap: 1em;
  }

  .property-filters .property-filter {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }

  .property-cards {
    grid-template-columns: 1fr;
    grid-gap: 18px;
    gap: 18px;
  }
}
