.hubdb{
  scroll-margin-top:160px;
}
{#******* TOOLBAR: RESULTS COUNT + SORT *******#}
.hubdb__toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.hubdb__results-count{
  margin: 0;
  color: #1E2D3DA6;
  font-family: Cinzel, serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 4.28px;
  text-transform: uppercase;
}
.hubdb__toolbar .hubdb__sort{
  width: auto;
  flex: 0 0 auto;
}
.hubdb__toolbar .hubdb__sort select{
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  height: auto;
  min-width: 240px;
  padding: 14px 40px 14px 20px;
  border: 1px solid #B5B5B5;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M0.470894 1.66577L3.98518 5.18006C4.01083 5.20739 4.04181 5.22917 4.07621 5.24406C4.11061 5.25896 4.1477 5.26664 4.18518 5.26664C4.22266 5.26664 4.25975 5.25896 4.29415 5.24406C4.32855 5.22917 4.35953 5.20739 4.38518 5.18006L7.89947 1.66577' stroke='%23314963' stroke-width='1.71429' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) 50%;
  color: #314963;
  font-family: Cinzel, serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.hubdb__toolbar .hubdb__sort select:focus{
  outline: none;
  border-color: #314963;
}
@media (max-width: 480px){
  .hubdb__toolbar .hubdb__sort,
  .hubdb__toolbar .hubdb__sort select{
    width: 100%;
  }
}
{#******* FILTERS *******#}
.hubdb__filters{
  display: flex; 
  justify-content: space-between;
  gap:20px;
}
.hubdb__filter-field{
  width:100%;
}
.hubdb__filter-field input,
.hubdb__filter-field select{
  padding: 10px;
  width:100%;
  border: 1px solid #B5B5B5;
}
.hubdb__filter-field select{
  height: 50px;
}
.hubdb__filter-field input:not([type="checkbox"], [type="radio"]){
  height: 50px;
}
.hubdb__filter-field input::placeholder,
.hubdb__filter-field select{
  color: #B5B5B5;
}
.hubdb__filter-field select:focus{
  color:revert;
}
.hubdb__filter-field input[type="checkbox"],
.hubdb__filter-field input[type="radio"]{
  display: block;
}

.hubdb__filter-field label{
  display: block;
}
.hubdb__filter-field--multiselect:not(.hubdb--SELECT),
.hubdb__filter-field--foreign_id:not(.hubdb--SELECT),
.hubdb__filter-field--select:not(.hubdb--SELECT){
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.hubdb__filter--checkbox-subfield{
  text-align: center;
  margin: 0 10px;
}
.hubdb__filter--checkbox-subfield label{
  display: block;
}
.hubdb__filter-subfield{
  margin: 10px;
}
.hubdb__filter-field label::after{
  content: "*";
  padding-left:4px;
  color: #EB5D57;
}
.hubdb__not-found-results{
  color:var(--secondary)
}
.hubdb__information .hubdb__card-button.button {
  margin: unset;
  display: inline-block;
  text-transform:uppercase;
  margin-bottom:8px;
}
.hubdb .hubdb__load-more{
  margin: 0 auto;
  display: none;
}
.hubdb__load-more.button.button--active {
  display: flex;
  justify-content: center;
  margin: 64px auto 32px;
  width: fit-content;
}

{#******* PAGINATION *******#}
.hubdb__pagination{
  margin: 64px auto 32px;
  text-align: center;
  width: fit-content;
  position: relative;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.hubdb__pagination-container{
  padding: 0 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hubdb__button-prev,
.hubdb__button-next{
  pointer-events: none;
  cursor: initial;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .3s ease-in-out;
  opacity:0.6;
  text-decoration:none;
}
.hubdb__button-prev.button--active,
.hubdb__button-next.button--active{
  pointer-events: initial;
  cursor: pointer;
  opacity:0.95;
}
.hubdb__button-prev:hover,
.hubdb__button-next:hover{
  opacity:1;
}
.hubdb--pagination-hide .hubdb__button-prev,
.hubdb--pagination-hide .hubdb__button-next{
  display:none;
  transition: all .3s ease;
}
.hubdb__button-prev{
  left: -32px;
}
.hubdb__button-next{
  right: -32px;
}
.hubdb__button-page {
  width:40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration:none;
  transition: all .3s ease;
}
.hubdb__button-page--active{
  pointer-events:none;
}
.hubdb__button-page:hover{
  text-decoration:none;
}
{#******* CARD *******#}
.hubdb__container{
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.hubdb__card {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  background: #1a1a1a;
  isolation: isolate;
}

.hubdb__featured-image {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.hubdb__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

  height: 55%;

  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0) 100%
  );

  pointer-events: none;
}

.hubdb__status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;

  padding: 10px;

  background: var(--primary);
  color: #fff;
  font-family: Cinzel;
  font-weight: 700;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 4.28px;
  text-transform: uppercase;
  pointer-events: none;
}

.hubdb__information {
  position: absolute;
  right: 20px;
  bottom: 24px;
  left: 24px;
  z-index: 3;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 20px;

  color: #fff;

  pointer-events: none;
}

.hubdb__address,
.hubdb__price {
  margin: 0;
}

.hubdb__address {
  max-width: 220px;
  color: #FFFFFFEB;
  font-family: Cinzel;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 4.28px;
  text-transform: uppercase;
}

.hubdb__price {
  font-family: 'Libre Baskerville';
  font-weight: 400;
  font-style: Italic;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: 0px;
  white-space: nowrap;
}

{#******* DETAILS ROW: BEDS/BATHS/SQFT + BUTTON, REVEALED ON HOVER/FOCUS. THE BUTTON IS THE ONLY CLICKABLE ELEMENT IN THE CARD *******#}
.hubdb__details-row {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;

  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}

.hubdb__card:hover .hubdb__details-row,
.hubdb__card:focus-within .hubdb__details-row {
  margin-top: 14px;
  max-height: 60px;
  opacity: 1;
}

.hubdb__specs {
  margin: 0;
  color: #FFFFFFEB;
  font-family: Cinzel;
  font-weight: 400;
  font-size: 11px;
  line-height: 100%;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hubdb__details-button {
  pointer-events: auto;
  flex: 0 0 auto;

  display: inline-block;
  padding: 10px 20px;

  border: 1px solid rgba(255, 255, 255, .85);
  color: #fff;
  font-family: Cinzel;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;

  transition: background-color .2s ease, color .2s ease;
}

.hubdb__details-button:hover,
.hubdb__details-button:focus-visible {
  background-color: #fff;
  color: #1E2D3D;
}

.hubdb__card:hover .hubdb__featured-image {
  transform: scale(1.04);
}

.hubdb__card:hover .hubdb__featured-image {
  filter: brightness(0.96);
}


/* ACCESSIBILITY */
.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}


/* TABLET */
@media (max-width: 991px) {
  .hubdb__card {
    min-height: 460px;
  }

  .hubdb__information {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .hubdb__address {
    max-width: 250px;
  }
}


/* MOBILE */
@media (max-width: 767px) {
  .hubdb__card {
    min-height: 420px;
  }

  .hubdb__status {
    top: 14px;
    right: 14px;

    padding: 9px 12px;

    font-size: 9px;
    letter-spacing: 0.25em;
  }

  .hubdb__information {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hubdb__address {
    max-width: 100%;
    padding-right: 30px;
  }

  {#*** HOVER ISN'T RELIABLE ON TOUCHSCREENS, SO ALWAYS SHOW THE DETAILS ROW ON MOBILE ***#}
  .hubdb__details-row {
    margin-top: 14px;
    max-height: none;
    opacity: 1;
  }
}


.hubdb--hide{
  display:none;
}
{#*************** MEDIA QUERYS ***************#}
@media screen and (max-width: 992px){
  .hubdb__filters{
    flex-wrap: wrap;
    align-items: center;
  }
  .hubdb__filter-field{
    width:48%;
  }
  .hubdb__card{
    margin: 0 auto;
    height: fit-content;
    flex-direction: column;
    align-items: stretch;
    max-width: 818px;
    width: 100%;
  }
}
@media(max-width:765px){
  .hubdb__filter-field{
    width:100%;
  }
}
