/* HS Horse Filter Styles (rebuilt)
 * Simple, container-friendly styles for the main filter form
 * and the small top filters. All layouts are 100% width
 * inside their Elementor columns, with no global overrides.
 */

/* === MAIN HORSE FILTER FORM (LEFT COLUMN) === */

.horse-filter-form {
  width: 100%;
  margin: 0 0 8px;
}

/* Stack all filter fields in a single column on all devices */
.horse-filter-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.horse-filter-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.horse-filter-field label,
.horse-filter-label {
  font-weight: 600;
  font-size: 14px;
  color: #2d3b3f;
  line-height: 1.4;
}

/* Native inputs/selects inside fields */
.horse-filter-field select,
.horse-filter-field input:not([type="hidden"]) {
  width: 100%;
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
}

.horse-filter-field select[multiple] {
  height: auto;
  min-height: 100px;
}

/* Age/price slider blocks */
.horse-filter-age-block,
.horse-filter-age,
.horse-filter-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px !important;
  margin-top: 15px !important
}

.horse-filter-age-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.horse-filter-age-label {
  font-weight: 600;
  font-size: 15px;
  color: #2d3b3f;
}

.horse-filter-age .age-slider-values,
.horse-filter-price .price-slider-values {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #426571;
  font-size: 15px;
  margin-top: 5px !important
}

.horse-age-slider,
.horse-price-slider {
  margin: 12px 10px;
}

/* Select2 integration inside main filter form */
.horse-filter-field .select2-container {
  width: 100% !important;
}

/* Single select2 fields – style similar to multi-select chips */
.content-wrapper .select2-container.select2-container--default .select2-selection--single,
.select2-container.select2-container--default .select2-selection--single,
.horse-filter-form .select2-container--default .select2-selection--single {
  background: #fff;
  min-height: 35px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #999;
  font-size: 15px;
}

.select2-container--default .select2-selection--multiple {
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  padding: 4px;
  min-height: 35px;
}

.select2-container .select2-search--inline .select2-search__field {
    margin: 0px 6px 3px 0 !important;
    padding: 2px 6px !important;
    font-size: 15px !important;
    min-height: 27px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #426571;
  color: #fff !important;
}

.select2-selection__choice {
  background-color: #426571 !important;
  color: #fff !important;
  border: 1px solid #a8d5ba;
  font-size: 14px;
  padding: 3px 8px !important;
  margin: 3px 4px 3px 0;
  border-radius: 5px;
}

.select2-selection__choice__remove {
  color: #666 !important;
  font-size: 0.8em !important;
  margin-left: 6px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.select2-selection__choice:hover .select2-selection__choice__remove {
  opacity: 1;
  visibility: visible;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* No responsive override needed – fields are already single-column */


/* === SMALL TOP FILTERS (currency / height / measurement) === */

.hs-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.hs-filter__label {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.hs-filter__select {
  min-width: 140px;
  height: 34px;
  padding: 2px 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background-color: #fff;
  color: #2d3b3f;
}

.hs-filter .hs-filter__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 33px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: 1px solid #426571 !important;
  background: #426571 !important;
  color: #fff !important;
  cursor: pointer !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: transform 0.02s ease, filter 0.15s ease !important;
}

.hs-filter .hs-filter__btn:hover {
  background: #426571 !important;
  filter: brightness(1.05) !important;
}

.hs-filter .hs-filter__btn:active {
  transform: translateY(1px) !important;
}

/* Top filter selects – use same accent color #426571 for hover/focus */
.hs-filter__select:hover,
.hs-filter__select:focus {
  border-color: #426571;
  box-shadow: 0 0 0 2px rgba(66, 101, 113, 0.25);
  outline: none;
}

.hs-filter__select option:checked,
.hs-filter__select option:hover {
  background-color: #426571;
  color: #ffffff;
}

@media (max-width: 600px) {
  .hs-filter {
    justify-content: flex-start;
  }
}

/* Ensure label, select and button stay on one row
   for the small top filters (currency/height/jump). */
.hs-filter.hs-filter--currency,
.hs-filter.hs-filter--height,
.hs-filter.hs-filter--jump {
  flex-wrap: nowrap !important;
  width: 100% !important
}

.horse-filter-form {
  display: block !important; /* override any Elementor grid layout */
  gap: 14px !important;
  margin-bottom: 5px !important;
}