/* ============================================
   Search Filters - Branch fix/search-filter-dropdowns
   (CSS direto - sem compilação Gulp)
   ============================================ */

/* --- Area filter (ex area-filter.css) --- */
.state-area-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
  width: 100%;
}

/* St. Thomas areas in all-filters dropdown */
.refine-area-list .state-area-row .facet {
  flex: 1;
  min-width: 0;
}

.state-area-row .state-expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  font-size: 11px;
  color: inherit;
  transition: transform 200ms;
  line-height: 1;
}

.state-area-row .state-expand-btn[aria-expanded="true"] {
  transform: rotate(90deg);
}

.state-area-row .state-neighborhoods {
  width: 100%;
  padding-left: 20px;
}

/* Hide native checkbox - use custom span:before/after (same as state checkboxes) */
.state-area-row
  .state-neighborhoods
  label.neighborhood-checkbox
  input[type="checkbox"] {
  display: none;
}
/* Ensure label has base checkbox layout */
.state-area-row .state-neighborhoods label.neighborhood-checkbox {
  position: relative;
  padding-left: 1.5rem;
  overflow: hidden;
  cursor: pointer;
}
/* Ensure span pseudo-elements exist */
.state-area-row .state-neighborhoods label.neighborhood-checkbox span:before,
.state-area-row .state-neighborhoods label.neighborhood-checkbox span:after {
  display: inline-block;
  content: " ";
  position: absolute;
  line-height: 1;
}
/* Neighborhood checkbox: square style (top 3px, left 0, border #939393, 0.875rem), no border-radius */
.state-area-row .state-neighborhoods label.neighborhood-checkbox span:before {
  top: 3px;
  left: 0;
  border: 1px solid #939393;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 0;
}
/* Neighborhood checkbox checked: small black square inside (same as Crown Prince state) */
.state-area-row .state-neighborhoods label.neighborhood-checkbox span:after {
  top: 7px;
  left: 0.25rem;
  width: 0.375rem;
  height: 0.375rem;
}
.state-area-row
  .state-neighborhoods
  label.neighborhood-checkbox
  input[type="checkbox"]:checked
  + span:after {
  background: #003a69;
}

.state-area-row .state-neighborhoods .neighborhood-checkbox,
.state-area-row .neighborhood-checkbox {
  display: block;
  margin: 6px 0 0 0;
  font-size: 13px;
}
/* Neighborhood text: keep previous style (gray), not blue like state checkboxes */
.state-area-row .state-neighborhoods label.neighborhood-checkbox,
.state-area-row .state-neighborhoods label.neighborhood-checkbox span {
  color: #4d4d4d;
  font-weight: 400;
}

.state-area-row .state-neighborhoods label.neighborhood-checkbox input:disabled,
.state-area-row .neighborhood-checkbox input:disabled {
  cursor: not-allowed;
}
.state-area-row
  .state-neighborhoods
  label.neighborhood-checkbox
  input:disabled
  + span,
.state-area-row .neighborhood-checkbox input:disabled + span {
  opacity: 0.5;
}

.neighborhoods-loading,
.neighborhoods-empty {
  display: block;
  font-size: 12px;
  padding: 4px 0;
  color: #888;
}

/* --- Refine area list / Island dropdowns (from _listings.scss) --- */
.refine-area-list {
  overflow-y: auto;
}

.refine-area-list .island-dropdowns {
  list-style: none;
  margin-left: 0;
}

.refine-area-list .island-dropdowns .accordion-title::before,
.refine-area-list .island-dropdowns .accordion-title::after,
.refine-area-list .island-dropdowns [data-accordion-item] > a::before,
.refine-area-list .island-dropdowns [data-accordion-item] > a::after {
  display: none !important;
  content: none !important;
}

.refine-area-list .island-dropdowns .island-label,
.refine-area-list .island-dropdowns [data-accordion-item] > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Lato, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: rgb(98, 98, 98);
  margin: 0;
  padding: 0.25rem 0;
  border-bottom: none !important;
  background-color: #f8f8f8;
}

.refine-area-list .island-dropdowns .island-label .island-dropdown-icon {
  display: inline-block;
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  -webkit-transition: transform 250ms ease;
  -moz-transition: transform 250ms ease;
  transition: transform 250ms ease;
}

.refine-area-list
  .island-dropdowns
  .island-dropdown-item.is-active
  .island-dropdown-icon {
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  transform: rotate(180deg);
}

.refine-area-list
  .island-dropdowns
  .island-dropdown-item.is-active
  .island-label {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #f8f8f8;
}

/* Remove white bar between accordion label and content - unify background */
.refine-area-list .island-dropdowns .accordion-content {
  background-color: #f8f8f8;
  margin: 0;
  padding: 0.5rem;
  border: none;
}

.refine-area-list .island-dropdowns .accordion-content .column-block {
  padding-left: 1rem;
}

/* --- Advanced search columns (medium+) --- */
@media (min-width: 767px) {
  #all-filters .column.medium-7 > .row {
    margin-left: 0;
    margin-right: 0;
  }
  #all-filters .column.medium-7 > .row > .column.medium-6 {
    padding-left: 0;
  }
}

/* --- Status filter checkboxes --- */
.new-advanced-search .status-filter .status-checkboxes {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
}

.new-advanced-search .status-filter .status-checkboxes .checkbox {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
