/* Taxonomy filters quick access and active chips */
.taxonomy-active-filters {
  background: #fff;
  border: 1px solid #eaddd5;
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.taxonomy-active-filters__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.taxonomy-active-filters__title {
  color: #3f3f46;
  font-size: 0.87rem;
  font-weight: 700;
}

.taxonomy-active-filters__clear {
  background: transparent;
  border: none;
  color: #f37249;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
}

.taxonomy-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taxonomy-active-filters__chip {
  align-items: center;
  background: #f8f5f3;
  border: 1px solid #eaddd5;
  border-radius: 20px;
  display: inline-flex;
  font-size: 0.84rem;
  gap: 8px;
  line-height: 1;
  max-width: 100%;
  padding: 7px 10px;
}

.taxonomy-active-filters__chip-label {
  color: #303038;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-active-filters__chip-remove {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.taxonomy-filters-mobile-cta {
  align-items: center;
  background: #f37249;
  border: 0;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(243, 114, 73, 0.32);
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 6px;
  padding: 12px 16px;
  position: fixed;
  right: 16px;
  z-index: 1200;
}

.taxonomy-filters-mobile-sheet {
  display: none;
}

@media (max-width: 991.98px) {
  body.taxonomy-filters-sheet-open {
    overflow: hidden;
  }

  .taxonomy-filters-mobile-cta {
    display: inline-flex;
  }

  .taxonomy-filters-mobile-sheet {
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.18s ease;
    z-index: 1250;
  }

  .taxonomy-filters-mobile-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .taxonomy-filters-mobile-sheet__backdrop {
    background: rgba(0, 0, 0, 0.5);
    inset: 0;
    position: absolute;
  }

  .taxonomy-filters-mobile-sheet__panel {
    background: #fff;
    border-radius: 16px 16px 0 0;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
    left: 0;
    max-height: 85vh;
    position: absolute;
    right: 0;
    transform: translateY(16px);
    transition: transform 0.18s ease;
  }

  .taxonomy-filters-mobile-sheet.is-open .taxonomy-filters-mobile-sheet__panel {
    transform: translateY(0);
  }

  .taxonomy-filters-mobile-sheet__header {
    align-items: center;
    border-bottom: 1px solid #f1eeeb;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .taxonomy-filters-mobile-sheet__close {
    background: transparent;
    border: none;
    color: #3f3f46;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0 4px;
  }

  .taxonomy-filters-mobile-sheet__body {
    max-height: calc(85vh - 58px);
    overflow-y: auto;
    padding: 12px 12px 24px;
  }

  .taxonomy-filters-mobile-sheet__body .block--exposedformtaxonomy-termpage-1 {
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 992px) {
  .taxonomy-filters-mobile-cta,
  .taxonomy-filters-mobile-sheet {
    display: none !important;
  }
}

/* ── Filter form overrides (bypass PurgeCSS — do not move to SCSS) ──── */

/* Hide "Πόλη / Περιοχή" label above geocoder input */
label[for^='edit-proximity-center-geocoder'] {
  display: none !important;
}

/* Hide geocoder description text */
small[id^='edit-proximity-center-geocoder'][id$='--description'] {
  display: none !important;
}

/* Hide proximity distance row (label + "15" input) */
div:has(> input[name='proximity']) {
  display: none !important;
}

/* Geocoder input: match left padding of other inputs, bottom margin */
input[name='proximity_center[geocoder][geolocation_geocoder_address]'] {
  padding-left: 12px !important;
  margin-bottom: 12px !important;
}

/* Price: hide Min / Max labels */
.form-item-price-min label,
.form-item-price-max label {
  display: none !important;
}

/* Price inputs: plain text */
input[name='price[min]'],
input[name='price[max]'] {
  border: none !important;
  padding: 0 !important;
  font-size: 0.95em;
  font-weight: 600;
  color: #334155;
  background: transparent !important;
  box-shadow: none !important;
}

input[name='price[max]'] {
  text-align: right;
}

/* Price inputs: reduce height */
input[name='price[min]'],
input[name='price[max]'] {
  height: 24px !important;
  line-height: 24px !important;
}

/* Price fieldset legend: no bottom margin */
legend.fieldset-legend {
  margin-bottom: 0 !important;
}

/* Αναλαμβάνει: top margin to separate from slider */
.form-item-level {
  margin-top: 16px !important;
}

/* Checkbox: remove left padding, horizontal layout */
.form-item-cer {
  padding-left: 0 !important;
}
