.deb-search { color: var(--deb-ink); font-family: 'DEB Space Grotesk', sans-serif; }
.deb-search button, .deb-search input, .deb-search select { font-family: inherit; letter-spacing: normal; text-transform: none; }
.deb-search [hidden] { display: none !important; }
.deb-header.has-search-open::before { position: fixed; z-index: -1; inset: 0; content: ''; background: rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.deb-header--transparent:not(.is-scrolled):has(.deb-search[data-home-hero="1"])::before { content: none; }
.deb-search__modes { display: flex; align-items: center; padding: 5px 14px; background: #fff; border-radius: 40px; }
.deb-search__modes button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 35px; padding: 0 18px; border: 0; background: transparent; color: #777; font-size: 16px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.deb-search__modes button + button { border-left: 1px solid #ccc; }
.deb-search__modes button[aria-expanded="true"], .deb-search__modes button:hover { color: var(--deb-ink); text-decoration: underline; text-underline-offset: 6px; }
.deb-search__modes .deb-search__icon { flex-shrink:0; width: 24px; height: 24px; object-fit: contain; }
.deb-search__overlay { position: absolute; top: 103px; left: 0; right: 0; }
.deb-search__panels { position: relative; width: min(1032px, calc(100% - 64px)); margin: auto; }
.deb-search__form { position: relative; display: flex; align-items: center; min-height: 77px; margin: 0; padding: 6px 10px 6px 0; background: var(--deb-cream); border: 2px solid #fff; border-radius: 50px; box-shadow: 0 5px 25px rgb(0 0 0 / .12); }
.deb-search__field { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0 30px; font-size: 16px; line-height: 22px; font-weight: 500; }
.deb-search__field + .deb-search__field { border-left: 1px solid #c6c6c6; }
.deb-search__field > span, .deb-search__field summary > span, .deb-search__keyword-input > label { display: block; margin: 0 0 5px; font-size: 12px; line-height: 16px; font-weight: 400; }
.deb-search .deb-search__field select { display: block; width: 100%; height: 24px; min-height: 0; margin: 0; padding: 0 22px 0 0; border: 0; border-radius: 0; color: var(--deb-ink); font-size: 16px; line-height: 24px; font-weight: 500; background-color: transparent; text-overflow: ellipsis; }
.deb-search__select { position: relative; }
.deb-search button.deb-search__select-button { position: relative; display: block; width: 100%; margin: 0; padding: 0 24px 0 0; border: 0; border-radius: 6px; background: transparent; color: var(--deb-ink); text-align: left; font-size: 16px; line-height: 24px; font-weight: 500; }
.deb-search__select-button > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deb-search__select-button::after { content: ''; position: absolute; right: 2px; top: 5px; width: 9px; height: 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.deb-search__select-button[aria-expanded="true"]::after { top: 10px; transform: rotate(225deg); }
.deb-search .deb-search__select-button:hover, .deb-search .deb-search__select-button[aria-expanded="true"] { color: var(--deb-green-dark); }
.deb-search .deb-search__options { position: absolute; z-index: 3; top: calc(100% + 30px); left: -30px; width: max(100% + 60px, 280px); max-height: min(360px, 45dvh); margin: 0; padding: 10px; overflow-y: auto; overscroll-behavior: contain; list-style: none; border: 2px solid #fff; border-radius: 24px; background: var(--deb-cream); box-shadow: 0 5px 20px rgb(0 0 0 / .15); scrollbar-width: thin; scrollbar-color: var(--deb-green) transparent; }
.deb-search__field:first-of-type .deb-search__options { width: max(100% + 60px, 350px); }
.deb-search__options [role="option"] { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 10px 34px 10px calc(14px + var(--deb-option-depth, 0) * 14px); border-radius: 12px; font-size: 16px; line-height: 22px; font-weight: 400; cursor: pointer; }
.deb-search__options [role="option"]:hover, .deb-search__options .is-active { background: #fff; color: var(--deb-green-dark); }
.deb-search__options [aria-selected="true"] { color: var(--deb-green-dark); font-weight: 500; }
.deb-search__options [aria-selected="true"]::after { content: ''; position: absolute; right: 15px; top: calc(50% - 7px); width: 7px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.deb-search__options[aria-multiselectable] [role="option"] { padding-right: 14px; }
.deb-search__options[aria-multiselectable] [aria-selected="true"]::after { display: none; }
.deb-search__checkbox { position: relative; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #939a7f; border-radius: 5px; background: #fff; }
.deb-search__options [aria-selected="true"] .deb-search__checkbox { border-color: var(--deb-green); background: var(--deb-green); }
.deb-search__options [aria-selected="true"] .deb-search__checkbox::after { content: ''; position: absolute; top: 3px; left: 6px; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.deb-search__options .is-partial .deb-search__checkbox::after { content: ''; position: absolute; inset: 8px 4px; height: 2px; background: var(--deb-green); }
.deb-search__choice-icon { flex: 0 0 24px; width: 24px; height: 24px; background: var(--deb-choice-color, var(--deb-ink)); mask: var(--deb-choice-icon) center / contain no-repeat; -webkit-mask: var(--deb-choice-icon) center / contain no-repeat; }
.deb-search__choice-icon--difficulty { position: relative; background: transparent; mask: none; -webkit-mask: none; }
.deb-search__choice-icon--difficulty::before, .deb-search__choice-icon--difficulty::after { content: ''; position: absolute; inset: 0; background: #fff; mask: var(--deb-choice-icon) center / contain no-repeat; -webkit-mask: var(--deb-choice-icon) center / contain no-repeat; }
.deb-search__choice-icon--difficulty::after { inset: 1px; background: var(--deb-choice-color); }
.deb-search__select-button:focus-visible, .deb-search__field summary:focus-visible { outline: 2px solid var(--deb-green-dark); outline-offset: 5px; }
.deb-search__field summary { position: relative; padding-right: 20px; cursor: pointer; list-style: none; }
.deb-search__field summary::-webkit-details-marker { display: none; }
.deb-search__field summary::after { content: ''; position: absolute; right: 2px; bottom: 8px; width: 9px; height: 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.deb-search__distance-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.deb-search button.deb-search__submit { display: flex; flex: 0 0 59px; align-items: center; justify-content: center; width: 59px; height: 59px; padding: 0; margin: 0; background: var(--deb-green); border: 0; border-radius: 50%; color: #fff; }
.deb-search button.deb-search__submit:is(:hover,:focus,:active) { background: var(--deb-green-dark); color: #fff; }
.deb-search button.deb-search__submit:focus-visible { outline: 2px solid var(--deb-green-dark); outline-offset: 3px; }
.deb-search__submit > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.deb-search__magnifier { position: relative; display: block; width: 25px; height: 25px; margin: -6px 6px 0 0; border: 3px solid currentColor; border-radius: 50%; }
.deb-search__magnifier::after { position: absolute; content: ''; width: 17px; height: 3px; right: -13px; bottom: -7px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.deb-search__close { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #ddd; border-radius: 50%; background: var(--deb-cream); color: var(--deb-ink); font-size: 26px; line-height: 1; }
.deb-search__close:hover { background: #fff; color: var(--deb-green-dark); }
.deb-search__range { position: absolute; z-index: 2; top: calc(100% + 30px); left: 0; width: 326px; padding: 14px 20px; border: 2px solid #fff; border-radius: 24px; background: var(--deb-cream); box-shadow: 0 5px 20px rgb(0 0 0 / .15); }
.deb-search__range-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 18px; }
.deb-search__range-heading strong { font-weight: 500; }
.deb-search__units { position: relative; display: inline-flex; align-items: center; min-height: 32px; margin: -4px 0; cursor: pointer; }
.deb-search .deb-search__units input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.deb-search__units > span { position: relative; min-width: 66px; padding: 3px 8px 3px 24px; border-radius: 20px; background: var(--deb-green); color: #fff; font-size: 12px; line-height: 16px; pointer-events: none; }
.deb-search__units > span::before { content: ''; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.deb-search__units input:checked + span { padding-right: 24px; padding-left: 8px; }
.deb-search__units input:checked + span::before { left: calc(100% - 18px); }
.deb-search__units input:focus-visible + span { outline: 2px solid var(--deb-green-dark); outline-offset: 3px; }
.deb-search__units:hover > span { background: var(--deb-green-dark); }
.deb-search__range-sliders { position: relative; height: 24px; margin: 0 5px; }
.deb-search__range-sliders::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 5px; background: #fff; border-radius: 5px; }
.deb-search__range-sliders input { position: absolute; inset: 0; width: 100%; height: 5px; margin: 8px 0; padding: 0; border: 0; appearance: none; pointer-events: none; border-radius: 5px; background: transparent; }
.deb-search__range-sliders input::-moz-range-track { background: transparent; border: 0; }
.deb-search__range-sliders input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--deb-green); pointer-events: auto; cursor: grab; }
.deb-search__range-sliders input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--deb-green); pointer-events: auto; cursor: grab; }
.deb-search__range-sliders input:focus-visible { outline-offset: 8px; z-index: 1; }
.deb-search__range-inputs, .deb-search__range-actions { display: flex; gap: 8px; }
.deb-search__range-inputs label { display: flex; align-items: center; flex: 1; min-width: 0; margin: 0; padding: 0 12px; background: #fff; border-radius: 30px; }
.deb-search .deb-search__range-inputs input[type="number"] { width: 100%; max-width: none; min-width: 0; min-height: 34px; margin: 0; padding: 2px 0; border: 0; box-shadow: none; font-size: 16px; background: transparent; color: var(--deb-ink); }
.deb-search__unit-label { font-size: 14px; }
.deb-search__range-actions { margin-top: 10px; }
.deb-search__range-actions button { flex: 1; padding: 7px 12px; min-height: 36px; border: 1px solid var(--deb-ink); border-radius: 10px; background: transparent; color: var(--deb-ink); font-size: 14px; line-height: 20px; font-weight: 500; }
.deb-search__range-actions [data-distance-apply] { color: #fff; background: var(--deb-green); border-color: var(--deb-green); }
.deb-search__range-actions button:hover { background: var(--deb-green-dark); color: #fff; }
.deb-search__keywords { background: var(--deb-cream); }
.deb-search__keyword-input { position: relative; display: flex; flex: 1; flex-direction: column; align-self: stretch; justify-content: center; min-width: 0; margin: -8px 10px -8px -2px; padding: 14px 36px; border: 2px solid transparent; border-radius: 50px; }
.deb-search__keyword-input:focus-within { border-color: #fff; background: #fff; }
.deb-search .deb-search__keyword-input input[type="search"] { width: 100%; min-height: 24px; margin: 0; padding: 0; border: 0; border-radius: 6px; box-shadow: none; background: transparent; color: var(--deb-ink); font-size: 16px; line-height: 24px; }
.deb-search input:focus-visible { outline: 2px solid var(--deb-green-dark); outline-offset: 3px; }
.deb-search .deb-search__keyword-input input[type="search"]:focus { outline: none; box-shadow: none; }
.deb-search__keyword-input input::-webkit-search-cancel-button { display: none; }
.deb-scope .deb-search-reset { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:8px 12px; border:1px solid transparent; border-radius:22px; color:var(--deb-green-dark); background:var(--deb-cream); font:500 14px/20px 'DEB Space Grotesk',sans-serif; text-decoration:none; white-space:nowrap; }
.deb-scope .deb-search-reset[hidden] { display:none; }
.deb-scope .deb-search-reset:is(:hover,:focus,:active) { background:var(--deb-green); color:#fff; }
.deb-scope .deb-search-reset:focus-visible { outline:2px solid var(--deb-green-dark); outline-offset:3px; }
.deb-search-reset__icon { display:block; flex:none; width:18px; height:18px; background:currentColor; mask:url('../images/search-reset.svg') center / contain no-repeat; -webkit-mask:url('../images/search-reset.svg') center / contain no-repeat; }
.deb-search .deb-search__form > .deb-search-reset { flex:none; width:44px; height:44px; margin-left:6px; padding:0; gap:0; font-size:0; }
.deb-search .deb-search__form > .deb-search-reset[hidden] { display:none; }
.deb-search-results { max-width: 1568px; margin: 0 auto; padding: 60px 32px; }
.deb-search-results--entry { min-height: 70vh; }
.deb-search-results h1 { font: 700 38px/1.15 'DEB Space Grotesk', sans-serif; color: var(--deb-ink); }
.deb-search-results__count { margin-bottom: 24px !important; }
.deb-search-results__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.deb-search-results .facetwp-pager { display: flex; justify-content: center; gap: 15px; margin-top: 40px; }
.deb-search-results > .deb-search { margin: 20px 0 60px; position: relative; }
@media (max-width: 1100px) {
	.deb-search__field { padding-inline: 18px; }
	.deb-search .deb-search__options { left: -18px; }
	.deb-search-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.deb-search .deb-search__form > .deb-search-reset { display:flex; width:max-content; height:auto; margin:10px 0 0 auto; padding:8px 14px; gap:7px; font-size:14px; }
	.deb-header__inner { width: calc(100% - 32px); gap: 8px; }
	.deb-header__logo, .deb-header__burger { flex-shrink: 0; }
	.deb-header:has(.deb-search) .deb-logo { width: 60px; height: 60px; }
	.deb-header:has(.deb-search) .deb-header__burger { width: 52px; height: 52px; }
	.deb-search { flex: 1; min-width: 0; }
	.deb-search__modes { justify-content: center; width: 100%; padding: 7px 5px; }
	.deb-search__modes button { flex: 1; flex-direction: column; gap: 3px; padding: 0 6px; font-size: 13px; line-height: 16px; min-width: 0; }
	.deb-search__modes .deb-search__icon { width: 20px; height: 20px; }
	.deb-search__modes button[aria-expanded="true"] { text-underline-offset: 3px; }
	.deb-header.deb-header--transparent.has-search-open { background: var(--deb-green-dark); }
	.deb-search__overlay { position: fixed; top: 82px; bottom: 0; overflow: auto; overscroll-behavior: contain; padding: 5px 16px 30px; background: var(--deb-cream); }
	.admin-bar .deb-search__overlay { top: 128px; }
	.admin-bar .deb-header.is-scrolled .deb-search__overlay { top: 82px; }
	.deb-search__panels { width: 100%; }
	.deb-search__form { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
	.deb-search__field { display: block; width: 100%; min-height: 77px; margin-bottom: 10px; padding: 14px 36px; border: 2px solid #fff; border-radius: 48px; background: var(--deb-cream); }
	.deb-search__field + .deb-search__field { border-left: 2px solid #fff; }
	.deb-search__field select { font-size: 16px; }
	.deb-search__select-button::after { top: -4px; }
	.deb-search__select-button[aria-expanded="true"]::after { top: 1px; }
	.deb-search__field summary::after { top: 17px; bottom: auto; }
	.deb-search__field:has(.deb-search__select-button[aria-expanded="true"]) { border-radius: 28px; }
	.deb-search .deb-search__field > .deb-search__select > .deb-search__options { position: static; width: calc(100% + 44px); max-height: min(320px, 40dvh); margin: 14px -22px -2px; padding: 4px; border: 0; border-radius: 16px; box-shadow: none; }
	.deb-search__distance:has(details[open]) { padding: 0; border: 0; background: transparent; }
	.deb-search__distance details[open] summary { padding: 14px 36px; min-height: 77px; border: 2px solid #fff; border-radius: 48px; background: var(--deb-cream); }
	.deb-search__distance details[open] summary::after { right: 38px; top: 38px; transform: rotate(225deg); }
	.deb-search__range { position: static; width: calc(100% - 24px); margin: 10px auto 0; }
	.deb-search button.deb-search__submit { gap: 18px; width: 100%; height: 77px; margin-top: 10px; border-radius: 50px; }
	.deb-search__submit > span { position: static; width: auto; height: auto; clip-path: none; font-size: 20px; font-weight: 500; }
	.deb-search__keyword-input { align-self: auto; margin: 0; border-color: #fff; border-radius: 48px; background: var(--deb-cream); min-height: 77px; }
	.deb-search__keyword-input:focus-within { background: #fff; }
	.deb-search__keywords { display: flex; flex-direction: column; align-items: stretch; }
	.deb-search__keywords button.deb-search__submit { flex-basis: auto; }
	.deb-search__close { display: grid; position: sticky; z-index: 4; top: 0; margin: 0 0 12px auto; }
	.deb-search-results { padding: 40px 20px; }
	.deb-search-results h1 { font-size: 30px; }
	.deb-search-results__grid { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
	.deb-header:has(.deb-search) .deb-logo { width: 42px; height: 42px; }
	.deb-header:has(.deb-search) .deb-header__burger { width: 42px; height: 42px; }
	.deb-search__modes button { padding-inline: 4px; font-size: 12px; }
}
