body .filter-bar{margin:0 24px;padding-top:12px;padding-bottom:12px}
body .filter-bar .filters{grid-template-columns:minmax(180px,1fr) minmax(150px,.9fr) minmax(260px,1.4fr) minmax(160px,1fr);align-items:start}
.project-filter{position:relative;min-width:0;font-size:13px}
.project-filter summary{cursor:pointer;min-height:64px;padding:12px;border:1px solid #c9d0d5;border-radius:8px;background:white;color:#14263d}
#project-count{display:block;font-size:12px;margin-top:4px;color:#526171}
.project-panel{position:absolute;top:100%;left:0;z-index:45;width:340px;max-width:80vw;padding:16px;background:#fff;border:1px solid #c9d0d5;border-radius:12px;box-shadow:0 12px 32px #14263d26}
#project-options{max-height:240px;overflow:auto;margin-top:12px}
body #project-options label{display:flex;align-items:center;gap:10px;padding:10px 0;cursor:pointer}
body #project-options label[hidden]{display:none}
body #project-options input{width:18px;height:18px;flex:none;accent-color:#14263d}
body .price-range{border:0;padding:0;margin:0;min-width:0;font-size:12px;color:#405267}
.price-range legend{padding:0;margin-bottom:8px}
.price-range>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body .price-range label{font-size:11px;display:grid;gap:4px}
body .price-range input{width:100%;min-width:0;font-size:14px;padding:10px}
#price-error{display:block;color:#a22d25;margin-top:6px}
#price-error[hidden]{display:none}
.price-range input[aria-invalid=true]{border-color:#a22d25}
body .filter-feedback{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#405267}
body .clear-filters{font-size:11px;min-height:36px;padding:8px 12px;background:transparent;text-transform:none;letter-spacing:0}
body .location-map [data-label-place]:focus{outline:none}
@media(max-width:1100px){body .filter-bar .filters{grid-template-columns:1fr 1fr}}
@media(max-width:1100px){
 body .filter-bar{margin:0 12px}
 body .filter-bar .filter-toggle{font-size:13px;letter-spacing:0;text-transform:none;min-height:54px;padding:12px 18px;background:#14263d;color:#fff;border:1px solid #14263d;font-weight:600}
 body .filter-bar .filters{grid-template-columns:1fr 1fr}
 .project-panel{position:static;width:100%;max-width:none;box-shadow:none;margin-top:8px}
 .project-filter[open]{grid-column:1/-1}
}
@media(max-width:540px){body .filter-bar .filters{grid-template-columns:1fr}.filter-feedback{flex-wrap:wrap}body .filter-bar.has-selection .filter-toggle{max-width:calc(100% - 150px);padding:10px;font-size:12px}}

body #projektek{scroll-margin-top:var(--catalog-filter-height,180px)}
/* Shared label baseline and 48px controls across every filter field. */
body .filter-bar .filter-field{display:flex;flex-direction:column;gap:8px;min-width:0}
body .filter-bar .filter-label,
body .filter-bar .location-filter>span,
body .filter-bar .price-range label{font-size:12px;line-height:20px;color:#405267}
body .filter-bar .location-filter{gap:8px}
body .filter-bar .price-range legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .filter-bar .price-range label{gap:8px}
body .filter-bar .project-filter summary,
body .filter-bar .feature-filter summary,
body .filter-bar #open-locations,
body .filter-bar .price-range input{height:48px;min-height:48px;padding:0 12px;border:1px solid #9eabb7;border-radius:8px;background:#fff;color:#14263d;font:400 14px/1.4 var(--body);letter-spacing:0;text-transform:none}
body .filter-bar .project-filter summary,
body .filter-bar .feature-filter summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
body .filter-bar summary::-webkit-details-marker{display:none}
body .filter-bar .project-filter summary::after,
body .filter-bar .feature-filter summary::after{content:'⌄';font-size:18px;line-height:1}
body .filter-bar details[open]>summary::after{content:'⌃'}
body .filter-bar #project-count{display:inline;margin:0;font:inherit;color:inherit}
body .filter-bar .feature-filter{align-self:stretch}
body .filter-bar #open-locations{justify-content:flex-start;width:100%}
body .filter-bar .filter-feedback{border-top:1px solid #d8d8d2;padding-top:12px;margin-top:2px}
@media(max-width:1100px){
 body .filter-bar .filter-field:has(details[open]){grid-column:1/-1}
 body .filter-bar .feature-panel{position:static;width:100%;max-width:none;margin-top:8px}
}
/* Keep one basket slot without resizing or moving the filter columns. */
body .filter-bar,body .filter-bar.has-selection{padding-right:0;transition:none}
body .filter-bar .filter-feedback{padding-right:174px;min-height:60px}
body .filter-bar .selection-dock.selection-integrated{animation:none;transition:none;bottom:26px;top:auto;right:26px!important}
body #filter-feedback{display:inline-block;padding:8px 12px;border-radius:8px;background:#e2eee8;color:#214f3c;font-weight:600;line-height:1.5}
#filter-feedback.just-updated{animation:results-confirm .7s ease}
@keyframes results-confirm{from{box-shadow:0 0 0 4px #86b6a066}to{box-shadow:0 0 0 0 transparent}}
@media(max-width:1100px){
 body .filter-bar .filter-feedback{padding-right:0}
 body .filter-bar .filter-toggle,body .filter-bar.has-selection .filter-toggle{margin-right:150px;max-width:calc(100% - 150px)}
 body .filter-bar .selection-dock.selection-integrated{top:15px;bottom:auto;right:0!important}
}
@media(prefers-reduced-motion:reduce){#filter-feedback.just-updated{animation:none}}

body .result-line{flex-wrap:wrap;align-items:center}
body #result-count.results-updated{background:#e2eee8;color:#214f3c;padding:6px 10px;border-radius:8px;font-weight:600}

/* Desktop action alignment; initial load has no update announcement. */
body .filter-bar .clear-filters{margin-left:auto;flex-shrink:0}
body #filter-feedback,body #result-count.results-updated{background:#14263d;color:#fff;border-left:4px solid #ffccb0;font-weight:700;box-shadow:0 3px 10px #14263d18}
@media(min-width:1101px){
 body .filter-bar .filter-feedback{padding-right:0;transition:padding-right .28s ease}
 body .filter-bar.has-selection .filter-feedback{padding-right:174px}
 body .filter-bar .selection-dock.selection-integrated:not([hidden]){animation:selection-appear .28s ease both}
}
@keyframes selection-appear{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){body .filter-bar .filter-feedback{transition:none}body .filter-bar .selection-dock.selection-integrated:not([hidden]){animation:none}}

body .project-panel .project-apply{display:flex;width:100%;justify-content:center;margin-top:12px;min-height:44px;background:#14263d;color:#fff;border-color:#14263d;font-size:13px;letter-spacing:0;text-transform:none}
body .project-panel .project-apply:hover{background:#263e58}

body button#filter-feedback{font:inherit;font-weight:700;text-align:left;border:0;border-left:4px solid #ffccb0;cursor:pointer}
body button#filter-feedback:not(:disabled):hover{background:#263e58;text-decoration:underline;text-underline-offset:3px}
body button#filter-feedback:focus-visible{outline:3px solid #b46b3e;outline-offset:3px}
body button#filter-feedback:disabled{cursor:default}

/* Fit mobile browser chrome and the on-screen keyboard without shrinking text. */
@media(max-width:1100px){
 body .filter-bar .filters{max-height:calc(var(--filter-viewport-height,100dvh) - 100px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:12px;gap:12px}
 body .project-panel{padding:12px}
 body #project-options{max-height:min(180px,28dvh);overflow-y:auto;overscroll-behavior-y:contain}
 body #project-options label{min-height:44px;padding:8px 0}
 body #project-options input{min-height:20px;height:20px;width:20px;padding:0;margin:0}
 body .project-panel .project-apply{position:sticky;bottom:0;margin-top:10px;box-shadow:0 -6px 0 3px #fff}
 body .filter-bar input[type=search],body .filter-bar .price-range input{font-size:16px}
}
