/* =========================================================
   Sea You Property — Search filter fields (Property Type, Category,
   Locations = native selects; Bedroom = checkbox dropdown)
   Same height as the "Search Properties" button (50px), text centered
   horizontally and vertically, one shared chevron.
   Scoped to the filter Select / Checkboxes widgets only.
   ========================================================= */

/* ---------- native selects ---------- */
body .elementor-widget-jet-smart-filters-select .jet-select__control {
  box-sizing: border-box;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 24px !important;
  line-height: normal !important;
  text-align: center !important;
  text-align-last: center !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23281D0F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}
body .elementor-widget-jet-smart-filters-select .jet-select__control option { text-align: left; }

/* ---------- Bedroom checkbox dropdown ---------- */
body .elementor-widget-jet-smart-filters-checkboxes .jet-filter-items-dropdown__label {
  position: relative;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 24px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap;
  cursor: pointer;
}
body .elementor-widget-jet-smart-filters-checkboxes .jet-filter-items-dropdown__label::after {
  content: "" !important;
  position: absolute !important;
  right: 9px !important;
  top: 50% !important;
  left: auto !important;
  display: block !important;
  width: 12px !important;
  height: 8px !important;
  margin: -4px 0 0 0 !important;
  border: 0 !important;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23281D0F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / 12px 8px !important;
  transform: none !important;
}

@media (max-width: 767px) {
  body .elementor-widget-jet-smart-filters-select .jet-select__control,
  body .elementor-widget-jet-smart-filters-checkboxes .jet-filter-items-dropdown__label { height: 48px !important; min-height: 48px !important; }
}
/* labels above the fields stay on one line so all boxes sit at the same height */
body .elementor-widget-jet-smart-filters-select .jet-filter-label,
body .elementor-widget-jet-smart-filters-checkboxes .jet-filter-label { white-space: nowrap; }
/* Vacation Rental has a 5th filter (Rental Type): give the bar more room so no field text is clipped */
body .elementor-54 .elementor-element-1d10ce2 { width: 100% !important; max-width: 1320px; gap: 14px !important; padding-left: 20px !important; padding-right: 20px !important; }
/* narrower desktops (e.g. 1280px): a bit less side padding so the longest labels still fit */
@media (min-width: 768px) and (max-width: 1399px) {
  body .elementor-widget-jet-smart-filters-select .jet-select__control,
  body .elementor-widget-jet-smart-filters-checkboxes .jet-filter-items-dropdown__label { padding-left: 16px !important; padding-right: 16px !important; }
}
/* Rental Type exists in the shared filter popup, but only makes sense on the Vacation Rental page (ID 54) */
body:not(.page-id-54) .elementor-element-b3dr0rt2 { display: none !important; }
/* dropdown labels (Bedroom / Rental Type) use the same text size and color as the native selects */
body .elementor-widget-jet-smart-filters-checkboxes .jet-filter-items-dropdown__label { font-size: 14px !important; color: #281D0F !important; }
/* Vacation Rental, iPad landscape / small laptops (1025-1399px): five fields + price + button do not fit in one row.
   Row 1 = the five fields (equal room, text never clipped); row 2 = price slider + Search button. */
@media (min-width: 1025px) and (max-width: 1399px) {
  body .elementor-54 .elementor-element-1d10ce2 { flex-wrap: wrap !important; row-gap: 18px !important; align-items: flex-end !important; }
  body .elementor-54 .elementor-element-1d10ce2 > .elementor-widget-jet-smart-filters-select { flex: 3 1 480px !important; width: auto !important; min-width: 0; }
  body .elementor-54 .elementor-element-1d10ce2 > .elementor-widget-jet-smart-filters-checkboxes { flex: 1 1 150px !important; width: auto !important; min-width: 0; }
  body .elementor-54 .elementor-element-1d10ce2 > .elementor-widget-jet-smart-filters-range { flex: 1 1 55% !important; width: auto !important; min-width: 0; }
  body .elementor-54 .elementor-element-1d10ce2 > .elementor-widget-jet-smart-filters-apply-button { flex: 0 0 auto !important; }
  /* the three selects inside the group share the row equally, so there is no empty gap before Bedroom */
  body .elementor-54 .elementor-element-1d10ce2 .jet-filters-group { width: 100%; }
  body .elementor-54 .elementor-element-1d10ce2 .jet-filters-group > .jet-filter { flex: 1 1 0 !important; min-width: 0; }
}

/* Equal, precise spacing between all filter fields: 14px (desktop + tablet landscape).
   - selects inside the group lose their 5px side margins and share one 14px gap
   - Bedroom / Rental Type dropdowns are exactly as wide as their widget (no spill into the gap)
   - gap between the widgets in the bar is also 14px (Home, Real Estate, Vacation Rental) */
@media (min-width: 1025px) {
  body .jet-filters-group { gap: 14px; }
  body .jet-filters-group > .jet-filter { margin-left: 0 !important; margin-right: 0 !important; }
  body .elementor-widget-jet-smart-filters-checkboxes .jet-filter-items-dropdown { width: 100% !important; max-width: none !important; }
  body .elementor-widget-jet-smart-filters-checkboxes { width: 160px; flex: 0 0 160px; }
  body .elementor-element-adfc447, body .elementor-element-7d0d026, body .elementor-element-1d10ce2 { column-gap: 14px !important; }
}
/* spacing, part 2: cancel the leftover negative margins and the 203px cap so every gap is exactly 14px */
@media (min-width: 1025px) {
  body .jet-filters-group { margin-left: 0 !important; margin-right: 0 !important; }
  body .elementor-widget-jet-smart-filters-checkboxes > .elementor-widget-container { margin-left: 0 !important; margin-right: 0 !important; }
  body .jet-filters-group .jet-select { width: 100% !important; max-width: none !important; flex: 1 1 auto !important; }
}
/* price slider: "+" directly after the maximum when it sits at USD 1.000.000 (class added by price-range.js) */
body .jet-range__values-max.sy-open::after { content: "+"; }