.locations-listing .hidden {
  display: none;
}

.locations-listing .visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.locations-listing .location-teaser__amenity {
  position: relative;
}

.locations-listing .location-teaser__amenity-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.locations-listing .location-teaser__amenity:hover .location-teaser__amenity-label,
.locations-listing .location-teaser__amenity:focus-within .location-teaser__amenity-label {
  z-index: 2;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.2rem 0.45rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: 0.2rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.multiselect-dropdown {
  position: relative;
  min-width: 260px;
}

.multiselect-dropdown__toggle {
  width: 100%;
  text-align: left;
}

.multiselect-dropdown__dialog {
  overflow: visible;
  box-sizing: border-box;
  width: 75vw;
  max-width: 300px;
  border: 1px solid gray;
}

.multiselect-dropdown__dialog::backdrop {
  background-color: #0009;
}

.multiselect-dropdown__scroll {
  max-height: 50vh;
  overflow-y: scroll;
}

.multiselect-dropdown__list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.locations-listing .multiselect-dropdown__item .form-type-checkbox {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.15rem 0.35rem;
}

.locations-listing .multiselect-dropdown__item .form-type-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: 0;
  flex: 0 0 auto;
}

.locations-listing .multiselect-dropdown__list label.option {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

@media screen and (min-width: 769px) {
  .multiselect-dropdown__dialog {
    position: absolute;
    z-index: 501;
    width: 100%;
    margin-top: -1px;
  }

  .multiselect-dropdown__dialog-close {
    display: none;
  }

  .multiselect-dropdown__scroll {
    max-height: 250px;
  }
}
