/**
 * Popup-pill redesign of the quick filter's bedroom/bath (and any other
 * attribute) fields - replaces the native <select> look with a button that
 * opens a grid of pill buttons below it. Deliberately kept separate from
 * layered-navigation.css while this is being iterated on; behavior lives in
 * quick-filter-dropdown.js. Markup is rendered by
 * LN_Quick_Filter::render_attribute_field().
 */
.advance-filter-section{
  position: relative;
  z-index: 10;
}
.ln-qf-dropdown {
  position: relative !important;
}

.ln-qf-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  font-size: 15px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  color: var(--ln-text-color, #3f4945) !important;
  font-family: var(--ln-body-font, "Teachers", sans-serif) !important;
}

.ln-qf-dropdown-chevron {
  width: 10px !important;
  height: 10px !important;
  flex: 0 0 auto !important;
  border-right: 2px solid #838383 !important;
  border-bottom: 2px solid #838383 !important;
  transform: rotate(45deg) !important;
  transition: transform 0.15s ease !important;
}

.ln-qf-dropdown.is-open .ln-qf-dropdown-chevron {
  transform: rotate(-135deg) !important;
}

.ln-qf-dropdown-value {
  display: block !important;
  font-size: 15px !important;
  color: #838383 !important;
  font-family: var(--ln-body-font, "Teachers", sans-serif) !important;
}

.ln-qf-dropdown-panel {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  left: 0 !important;
  z-index: 40 !important;
  background: #fff;
  border: 1px solid #ececec !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
  padding: 16px !important;
  min-width: 220px !important;
}

.ln-qf-dropdown-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}

.ln-qf-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 56px !important;
  min-height: 44px !important;
  padding: 8px 14px !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 10px !important;
  background: var(--ln-background-color, #fff) !important;
  color: var(--ln-text-color, #333) !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease !important;
}

.ln-qf-pill:hover {
  border-color: var(--ln-accent-color, #bd542f) !important;
}

.ln-qf-pill.is-selected {
  background: var(--ln-accent-color, #bd542f) !important;
  border-color: var(--ln-accent-color, #bd542f) !important;
  color: var(--ln-accent-text-color, #fff) !important;
}

@media (max-width: 767px) {
  .ln-qf-dropdown-panel {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}
