/* CayLiving location multi-select — styles stay inside this component. */
#listingLocationFilter {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

#listingLocationFilter .listing-location-trigger {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  gap: 12px;
}

#listingLocationFilter .listing-location-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#listingLocationFilter .listing-location-trigger[aria-expanded="true"] {
  border-color: #8aa8a5;
}

#listingLocationFilter .listing-location-panel {
  position: absolute;
  z-index: 10001;
  top: calc(100% + 6px);
  left: 0;
  display: none;
  flex-direction: column;
  width: 100%;
  min-width: min(260px, calc(100vw - 24px));
  max-width: 100%;
  max-height: var(--location-panel-height, 300px);
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

#listingLocationFilter .listing-location-panel.open {
  display: flex;
}

#listingLocationFilter .listing-location-panel.is-flipped {
  top: auto;
  bottom: calc(100% + 6px);
}

#listingLocationFilter .listing-location-panel.is-align-right {
  right: 0;
  left: auto;
}

#listingLocationFilter .listing-location-options {
  max-height: var(--location-panel-height, 300px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
}

#listingLocationFilter .listing-location-options .ms-option {
  min-height: 40px;
  box-sizing: border-box;
}

#listingLocationFilter .listing-location-options .ms-option.is-any-location {
  border-bottom: 1px solid #eef0ef;
  color: #315c59;
  font-weight: 600;
}

#listingLocationFilter .listing-location-options .ms-option.is-unknown-location span {
  color: #6b7280;
}

#listingLocationFilter .listing-location-options input[type="checkbox"]:focus-visible {
  outline: 2px solid #315c59;
  outline-offset: 2px;
}

