.apt-filters__wrapper {
  display: flex;
  gap: 15px;
  position: relative;
  flex-direction: column;
  margin-bottom: 10px;
}

.apt-filters__field {
  flex: 2;
}

.apt-filters__field__select {
  padding: 13px;
  color: var(--wp--preset--color--dark-gray);
  width: 100%;
}

.apt-filters__field__price {
  margin-top: 7px;
  padding-left: 10px;
  padding-right: 10px;
}

.apt-filters__field__price .ui-slider-range {
  top: -1px !important;
  box-sizing: content-box;
  border: 1px solid var(--wp--preset--color--primary) !important;
  background-image: none;
  background-color: var(--wp--preset--color--primary);
}

.apt-filters__field__price__range-label {
  display: block;
  text-align: center;
  margin-top: 5px;
}

.apt-filters__submit .button {
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 150px;
  text-align: center;
  justify-content: center;
}

.apt-filters__submit .button:hover {
  background-color: var(--wp--preset--color--primary-hover) !important;
}

.apt-filters__extras {
  display: flex;
  gap: 15px;
}

.apt-filters__buttons {
  display: flex;
  gap: 15px;
  z-index: 99;
}

.apt-filters__mobile-btn__wrapper {
  display: none;
}

/* Extra filters */
.apt-filters__extras {
  transition: opacity 200ms, height 200ms;
  opacity: 0;
  height: 0;
  width: calc(100% + 20px);
}

.apt-filters__extras.active {
  transition: opacity 200ms, height 200ms;
  opacity: 1;
  height: auto;
}

@media (min-width: 980px) {
  .apt-filters__wrapper {
    flex-direction: row;
  }

  .apt-filters__field--big {
    flex: 3;
  }

  .apt-filters__extras {
    position: absolute;
    top: 50px;
  }

  /* Extra filters */
  .apt-filters__extras {
    padding: 10px;
    margin: -5px -10px;
  }

  .apt-filters__extras.active {
    transition: opacity 200ms, height 200ms;
    opacity: 1;
    height: auto;
  }
}

.apt-filters__btn {
  cursor: pointer;
  background: var(--wp--preset--color--background-light);
  padding: 15px;
  display: flex;
  transition: 0.2s;
  max-width: 50px;
}

.apt-filters__btn:hover {
  filter: brightness(0.5);
}

/* hide labels, but show for screen readers*/
.show-for-sr {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

/*breadcrumbs in cover adding here but could be global */
.wp-block-cover__inner-container .yoast-breadcrumbs {
  position: absolute;
  top: 10px;
  width: var(--wp--style--global--content-size);
  padding-left: 10px;
  left: 0;
  right: 0;
}

.wp-block-cover__inner-container .breadcrumb_last {
  color: white !important;
}

/* Mobile 

two versions, one with results and one without results */

@media (max-width: 980px) {
  .apt-filters__buttons {
    flex-direction: row-reverse;
  }

  .apt-filters__submit {
    flex: 1;
  }

  .apt-filters__extras {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}

/* apartment filters with results */

@media (min-width: 980px) {
  .apt-filters--wresults .apt-filters__extras { /* only with results */
    background: white;
    z-index: 9;
  }

  .apt-title-filters {
    padding-left: 60px !important;
  }
}


@media (max-width: 980px) {
  .apt-filters--wresults .apt-filters__mobile-btn__wrapper {
    display: block;
  }

  .apt-filters--wresults .apt-filters__wrapper {
    transition: opacity 200ms, height 200ms;
    opacity: 0;
    height: 0;
    background: white;
  }

  .apt-filters--wresults .apt-filters__wrapper.active {
    padding: 10px 0 20px;
    margin-bottom: 0;
    transition: opacity 200ms, height 200ms;
    opacity: 1;
    height: auto;
  }

  .apt-filters--wresults .apt-filters__mobile-btn {
    margin-right: 0;
    margin-left: auto;
  }

  .apt-filters--wresults {
    left: 0;
    width: 100vw;
    position: absolute;
    z-index: 99;
  }

  .apt-filters--wresults:has(.apt-filters__wrapper.active) {
    box-shadow: 0 8px 4px -4px var(--wp--preset--color--dark-gray);
  }

  .apt-filters--wresults .apt-filters__extras-btn {
    display: none;
  }

  .apt-filters--wresults .apt-filters__extras {
    transition: opacity 200ms, height 200ms;
    opacity: 1;
    height: auto;
  }

  .apt-filters--wresults .apt-filters__buttons {
    display: contents;
  }
}
