.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;
}

{#******* FILTERS INSIDE THE TOOLBAR: COUNT ON THE LEFT, BUILDER DROPDOWN ON THE RIGHT *******#}
.hubdb__toolbar .hubdb__filters{
  flex: 0 0 auto;
  width: auto;
  gap: 12px;
}
.hubdb__toolbar .hubdb__filter-field{
  width: auto;
}
.hubdb__toolbar .hubdb__filter-field select{
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  height: auto;
  min-width: 300px;
  padding: 14px 44px 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__filter-field select:focus{
  outline: none;
  border-color: #314963;
}
.hubdb__toolbar .hubdb__filter-field label::after{
  content: none;
}

@media (max-width: 767px){
  .hubdb__toolbar .hubdb__filters,
  .hubdb__toolbar .hubdb__filter-field,
  .hubdb__toolbar .hubdb__filter-field select{
    width: 100%;
    min-width: 0;
  }
}
.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 {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #3149631A;
}

.hubdb__featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hubdb__card:hover .hubdb__featured-image {
  transform: scale(1.03);
}

.hubdb__card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 24px 24px;
  text-align: center;
}

.hubdb__builder {
  margin: 0 0 8px;
  font-family: Cinzel, serif;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #4A7C93;
}

.hubdb__name {
  margin: 0 0 18px;
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--secondary);
}

{#******* STAT ROW: BEDS / BATHS / HALF / SQ FT, PARSED FROM THE `details` COLUMN *******#}
.hubdb__stats {
  display: flex;
  width: 100%;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid #3149631A;
}

.hubdb__stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hubdb__stat + .hubdb__stat {
  border-left: 1px solid #3149631A;
}

.hubdb__stat-value {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--secondary);
}

.hubdb__stat-label {
  font-family: Cinzel, serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1E2D3DA6;
  white-space: nowrap;
}

{#******* CTA *******#}
.hubdb__cta {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 16px 20px;

  background: #15628F;
  color: #fff;

  font-family: Cinzel, serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;

  transition: background-color .25s ease;
}

.hubdb__cta:hover,
.hubdb__cta:focus-visible {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
}


/* 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__name {
    font-size: 21px;
  }

  .hubdb__stat-label {
    letter-spacing: 1.5px;
  }
}


/* MOBILE */
@media (max-width: 767px) {
  .hubdb__card-body {
    padding: 22px 18px 22px;
  }

  .hubdb__stat-value {
    font-size: 16px;
  }

  .hubdb__stat-label {
    font-size: 9px;
    letter-spacing: 1px;
  }
}


.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%;
  }
}
