/* 576px */
/* 768px */
/* 992px */
/* 1200px */

.listings-container {
  padding: 0 10px;
  max-width: 1600px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.invisible {
  position: absolute;
  margin: -1px;
  width: 1px;
  height: 1px;
  border: 0;
  overflow: hidden;
}

.archive__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #000000;
  opacity: 0.5;
  cursor: pointer;
  transition: all 10s ease-in-out;
  z-index: 99;
}

.no-results {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive__title {
  font-size: 2rem;
  font-weight: 500;
  color: #052264;
  padding: 3%;
  text-align: center;
  text-transform: uppercase;
}

.search__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.search__field,
.search__button {
  width: 100%;
}

.search__field {
  max-width: 200px;
}

.search__button {
  max-width: 130px;
}

.search__field.search__field--select {
  padding: 0;
  border: 0;
  background-color: #fff;
}

.search__field.search__field--select,
.form__custom-select {
  position: relative;
}

.search__field.search__field.search__field--select::after,
.form__custom-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  display: block;
  width: 7px;
  height: 7px;
  margin: -5px -5px 0 0;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  transform-origin: right bottom;
  transform: translateX(-5px) rotate(45deg);
  z-index: 0;
  pointer-events: none;
}

.form__custom-select select.form__select,
.search__field select.form__select {
  width: 100%;
  padding: 8px 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #666;
  color: #7f7f7f;
  background: transparent;
}

.search__button .form__button {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  color: white;
  background-color: #052264;
  cursor: pointer;
}

.search__button i.fa-search {
  color: white;
}

@media (min-width: 640px) {
  .search__fields {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .archive__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .archive__title {
    font-size: 4rem;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-column-gap: 30px;
  grid-row-gap: 35px;
  margin: 2rem 0;
}

.card {
  width: 100%;
  background-color: white;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
}

.card:hover .card__photo::after {
  opacity: 0.5;
}

.card:hover {
  -webkit-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

.card__inner {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  border-radius: 3px;
  background-color: #bb2082;
  height: 100%;
}

.card__link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.card__photo {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.card__photo::after {
  content: "";
  position: absolute;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 75%);
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  bottom: 0;
  opacity: 1;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.card__photo .card__statuslabel {
	position: absolute;
	right: 10px;
	top: 10px;
	padding: 8px 15px;
	background-color: #052264;
	border-radius: 4px;
	color: white;
}

.card__image {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: cover;
  transition: all 0.3s;
  aspect-ratio: 16/9;
}

.card__detail,
.card__footer {
  display: flex;
  position: relative;
  color: white;
  padding: 0 30px;
}

.card__detail {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card__footer {
  flex: 1;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 20px;
}

.card__address {
  flex-grow: 1;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0;
}

.card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.2rem;
  font-weight: 300;
}

.card__excerpt {
  flex: 1;
  margin-top: 25px;
  line-height: 1.5em;
  font-size: 14px;
  font-weight: 300;
}

.card__more {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: calc(100% - 50px);
  float: left;
}

.details__item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 auto;
}

.navigation span {
  opacity: 0.5;
  cursor: default;
}
