/* One final component layer for the existing controls, without duplicate inputs. */
html body .search-panel .wr-independent-toggle{
 position:relative!important;display:flex!important;align-items:center!important;
 justify-content:space-between!important;gap:12px!important;box-sizing:border-box;
 min-height:44px!important;padding:9px 12px!important;border:1px solid #d8dedb!important;
 border-radius:10px!important;background:#fffdf9!important;color:#142f50!important;
 font:400 14px/1.35 "DM Sans",sans-serif!important;cursor:pointer;
}
html body .search-panel .wr-independent-title{flex:1;position:static!important;inset:auto!important;width:auto!important;margin:0!important;transform:none!important}
html body .search-panel .search-secondary .more-filters.all-filters .quick-filters .wr-independent-toggle input[type=checkbox]{
 position:absolute!important;max-width:1px!important;max-height:1px!important;width:1px!important;height:1px!important;min-width:0!important;
 min-height:0!important;padding:0!important;margin:0!important;opacity:0!important;
 clip-path:inset(50%);overflow:hidden;
}
html body .search-panel .wr-independent-switch{
 position:relative!important;inset:auto!important;display:block!important;flex:0 0 38px!important;
 width:38px!important;height:22px!important;margin:0!important;border:1px solid #b4bfca!important;
 border-radius:20px!important;background:#e8edf1!important;box-sizing:border-box;
}
html body .search-panel .wr-independent-switch::after{
 content:""!important;position:absolute!important;width:14px!important;height:14px!important;
 top:3px!important;left:3px!important;border-radius:50%!important;background:#fff!important;
 box-shadow:0 1px 3px #142f5030;transform:none;transition:transform .15s ease;
}
html body .search-panel .wr-independent-toggle input:checked+.wr-independent-switch{background:#142f50!important;border-color:#142f50!important}
html body .search-panel .wr-independent-toggle input:checked+.wr-independent-switch::after{transform:translateX(16px)!important}
html body .search-panel .wr-independent-toggle:has(input:focus-visible){outline:2px solid #142f50!important;outline-offset:3px}
html body .search-panel .wr-independent-toggle::before,html body .search-panel .wr-independent-toggle::after{content:none!important}
@media(max-width:800px){
 html body .search-panel .filters>.search-location,
 html body .search-panel .filters>.search-radius,
 html body .search-panel .filters>.search-type,
 html body .search-panel .filters>.search-rent{
  box-sizing:border-box!important;min-height:64px!important;height:64px!important;
  padding:7px 12px!important;border:1px solid #d8dedb!important;border-radius:10px!important;
  box-shadow:none!important;background:#fff!important;
 }
 html body .search-panel .filters>.search-rent:has(.price-picker[open]){height:auto!important}
 html body .search-panel .filters>div>label,
 html body .search-panel .filters>div>.search-field-label{font-size:12px!important;line-height:16px!important}
 html body .search-panel .search-secondary .more-filters.all-filters[open]>.quick-filters{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;gap:8px!important;margin:10px 0!important;padding:0!important;
 }
 html body .search-panel .search-secondary .more-filters.all-filters:not([open])>.quick-filters{display:none!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.search-outdoor,
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field,
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.wr-independent-toggle{
  display:flex!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;grid-column:auto!important;
  min-height:64px!important;height:64px!important;margin:0!important;padding:7px 12px!important;
  border:1px solid #d8dedb!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;
 }
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field,
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.search-outdoor{flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:0!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field[hidden]{display:none!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters .advanced-field>label,
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters .outdoor-choice{
  display:block!important;position:static!important;width:100%!important;height:auto!important;
  min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;transform:none!important;font:500 12px/16px "DM Sans",sans-serif!important;color:#142f50!important;
 }
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters select,
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters input:not([type=checkbox]){
  box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;
  height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;
  border:0!important;box-shadow:none!important;background:transparent!important;background-image:none!important;
  font:400 16px/1.3 "DM Sans",sans-serif!important;color:#142f50!important;appearance:none!important;
 }
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters input[hidden],
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters select[hidden]{display:none!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters input[type=number]{-moz-appearance:textfield!important;appearance:textfield!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters input::-webkit-inner-spin-button,
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters input::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.wr-independent-toggle{grid-column:1/-1!important;flex-direction:row!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field:has(#occupants:not([hidden])){height:auto!important;min-height:96px!important}
 html body .search-panel .search-secondary .more-filters>summary{min-height:44px!important;padding:9px 12px!important;border-radius:8px!important;font:500 13px/1.3 "DM Sans",sans-serif!important}
 html body .search-panel .search-secondary .more-filters>summary::before,html body .search-panel .search-secondary .more-filters>summary::after{content:none!important;display:none!important}
}
@media(prefers-reduced-motion:reduce){html body .search-panel .wr-independent-switch::after{transition:none}}
@media(max-width:800px){
 html body .search-panel .filters>.search-rent{display:block!important}
 html body .search-panel .filters>.search-rent::before{display:block!important;line-height:16px!important;font-size:12px!important}
 html body .search-panel .filters>.search-rent>.price-picker{display:block!important;width:100%!important;min-height:0!important}
 html body .search-panel .filters>.search-rent>.price-picker>summary{height:32px!important;min-height:32px!important}
 /* The native select itself receives taps across the whole tile, including Safari. */
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field>label{position:relative!important;z-index:1;pointer-events:none}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters select{
  position:absolute!important;inset:0!important;width:100%!important;height:64px!important;min-height:64px!important;
  padding:24px 12px 8px!important;cursor:pointer;
 }
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.search-outdoor{justify-content:flex-start!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.search-outdoor .outdoor-choice{padding-top:0!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field:has(select){justify-content:flex-start!important}
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field:has(#occupants:not([hidden])) select{position:static!important;height:32px!important;min-height:32px!important;padding:0!important}
}


/* Compact language selector in the mobile navigation, without stretching to menu width. */
@media(max-width:800px){
 html body .wr-header .mobile-menu nav [data-language-picker],
 html body .mobile-menu nav select[data-language-picker]{
  display:inline-block!important;box-sizing:border-box!important;
  width:90px!important;max-width:90px!important;min-width:0!important;
  height:40px!important;min-height:40px!important;
  margin:8px 0 2px!important;padding:6px 30px 6px 12px!important;
  font:500 14px/1.3 "DM Sans",sans-serif!important;
  color:#142f50!important;background-color:#fff!important;
  border:1px solid #d8dedb!important;border-radius:9px!important;
 }
 html body .mobile-menu nav{box-sizing:border-box!important}
}

/* Mobile finishing: legible income filter, consistent typography and balanced rent range. */
@media(max-width:800px){
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters>.advanced-field:has(#incomePolicy){
  grid-column:1/-1!important;
 }
 html body .search-panel .search-secondary .more-filters.all-filters>.quick-filters #incomePolicy{
  font:400 16px/1.3 "DM Sans",sans-serif!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;
 }
 html body .search-panel .filters>.search-rent::before{
  font:500 12px/16px "DM Sans",sans-serif!important;color:#142f50!important;
 }
 html body .search-panel .filters>.search-rent .price-picker>summary,
 html body .search-panel .filters>.search-type .type-picker>summary{
  font:400 16px/1.3 "DM Sans",sans-serif!important;color:#142f50!important;
 }
 html body .search-panel .filters>.search-rent .price-popover{
  box-sizing:border-box!important;width:min(360px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px)!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
  padding:14px!important;
 }
 /* Both price groups are direct grid children; do not span rows or offset labels. */
 html body .search-panel .filters>.search-rent .price-popover>div:not([hidden]){
  min-width:0!important;grid-column:auto!important;grid-row:auto!important;
  align-self:start!important;
 }
 html body .search-panel .filters>.search-rent .price-popover>div>label{
  display:block!important;min-height:18px!important;line-height:18px!important;
  margin:0 0 6px!important;
 }
 html body .search-panel .filters>.search-rent .price-popover>div>select{
  box-sizing:border-box!important;display:block!important;
  min-height:44px!important;height:44px!important;margin:0!important;
 }
 html body .search-panel .filters>.search-rent .price-popover select{min-width:0!important;width:100%!important}
 html body .search-panel .filters>.search-rent .price-popover [hidden]{display:none!important}
}

/* Language switch: compact, clean text-only native select. */
@media(max-width:800px){
 html body .mobile-menu nav select[data-language-picker]{
  appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;
  background-image:none!important;width:64px!important;max-width:64px!important;
  padding:6px 12px!important;text-align:center!important;text-align-last:center!important;
 }
}


/* Woningtype: clean clickable field without a decorative arrow. */
html body .search-panel .search-type .type-picker>summary{
 list-style:none!important;cursor:pointer!important;
 background-image:none!important;padding-right:10px!important;
}
html body .search-panel .search-type .type-picker>summary::-webkit-details-marker{display:none!important}
html body .search-panel .search-type .type-picker>summary::marker{content:""!important}
html body .search-panel .search-type .type-picker>summary::before,
html body .search-panel .search-type .type-picker>summary::after{
 content:none!important;display:none!important;background:none!important;
}
html body .search-panel .search-type .type-picker{
 width:100%!important;min-width:0!important;
}
html body .search-panel .search-type .type-picker>summary{
 width:100%!important;box-sizing:border-box!important;
 font-weight:400!important;color:#142f50!important;
}

/* Housing-type dropdown: one maintained definition. */
/* A real, anchored dropdown: no floating checkbox rows across the form. */
.search-panel .filters .search-type{position:relative!important;overflow:visible!important;isolation:auto!important}
.search-panel .filters .search-type:has(.type-picker[open]){z-index:500!important}
.search-panel .filters .search-type .type-picker{position:static!important;display:block!important;overflow:visible!important}
.search-panel .filters .search-type .type-picker>summary{list-style:none!important;cursor:pointer!important;display:block!important;box-sizing:border-box!important;position:relative!important;background-image:none!important}
.search-panel .filters .search-type .type-picker>summary::after,.search-panel .filters .search-type .type-picker>summary::before{display:none!important;content:none!important}
.search-panel .filters .search-type .type-picker>summary::-webkit-details-marker{display:none!important}
.search-panel .filters .search-type .type-picker:not([open])>.type-popover{display:none!important}
.search-panel .filters .search-type .type-picker[open]>.type-popover{
 position:absolute!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
 top:calc(100% + 7px)!important;left:0!important;right:auto!important;bottom:auto!important;
 width:max-content!important;min-width:230px!important;max-width:min(310px,calc(100vw - 32px))!important;
 height:auto!important;max-height:min(55vh,300px)!important;overflow-y:auto!important;
 margin:0!important;padding:7px!important;z-index:501!important;
 background:#fffefa!important;border:1px solid #d5dddc!important;border-radius:12px!important;
 box-shadow:0 14px 32px rgba(16,42,67,.20)!important;visibility:visible!important;opacity:1!important;
 transform:none!important;clip-path:none!important;
}
.search-panel .filters .search-type .type-picker[open]>.type-popover>label{
 position:static!important;display:flex!important;flex-direction:row!important;align-items:center!important;
 box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:44px!important;
 margin:0!important;padding:10px 12px!important;gap:12px!important;white-space:nowrap!important;
 background:transparent!important;border:0!important;border-radius:8px!important;
 font:400 15px/1.3 'DM Sans',sans-serif!important;color:#142f50!important;
}
.search-panel .filters .search-type .type-picker[open]>.type-popover>label:active{background:#f1f5f4!important}
.search-panel .filters .search-type .type-picker[open]>.type-popover input[type=checkbox]{
 position:static!important;display:block!important;appearance:auto!important;opacity:1!important;
 width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
 margin:0!important;padding:0!important;clip-path:none!important;accent-color:#173755!important;
}
@media(max-width:800px){.search-panel .filters .search-type .type-picker[open]>.type-popover{left:auto!important;right:0!important;max-width:calc(100vw - 40px)!important}}
