/* Catalogue and departure filters share the same controls on phones and larger screens. */
.res-toolbar #result-filter-toggle {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:8px 15px; border:1px solid #729382; border-radius:24px;
  background:#f6faf3; color:#204a3b; font-weight:650;
}
#result-filter-toggle b { padding:2px 7px; border-radius:20px; background:#20513f; color:white; font-size:.8rem; }
.result-filter-chips { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.result-filter-chip, #afbud-active button:not(.af-reset) {
  display:inline-flex; align-items:center; justify-content:center; flex-wrap:wrap; column-gap:5px;
  min-height:44px; padding:6px 12px; border:1px solid #b1c5b6; border-radius:22px;
  background:#eef4eb; color:#234736; font-size:.9rem; font-weight:600;
}
.result-filter-chip span { font:inherit; }
.result-filter-chip .chip-x { margin-inline-start:3px; font-size:1.15rem; }
#sheet:is([data-view="result-filters"],[data-view="dealFilters"]) {
  width:min(33rem,calc(100vw - 28px)); max-height:calc(100dvh - 24px); overflow:hidden;
}
#sheet:is([data-view="result-filters"],[data-view="dealFilters"])[open] { display:flex; flex-direction:column; }
#sheet:is([data-view="result-filters"],[data-view="dealFilters"]) .dialog-head { flex:none; }
#sheet:is([data-view="result-filters"],[data-view="dealFilters"]) #sheet-body { overflow:auto; min-height:0; padding-bottom:0; }
#sheet .travel-filter-form { display:grid; gap:0; color:#214437; }
#sheet .travel-filter-form > :is(fieldset,.form-field,.filter-field-pair) {
  min-width:0; margin:0; padding:15px 0; border:0;
}
#sheet .travel-filter-form > :is(fieldset,.form-field,.filter-field-pair) + :is(fieldset,.form-field,.filter-field-pair) {
  border-top:1px solid #dce5db;
}
#sheet .travel-filter-form fieldset { display:flow-root; }
#sheet .travel-filter-form legend { float:left; width:100%; margin:0 0 9px; padding:0; font-size:.94rem; font-weight:700; }
#sheet .travel-filter-form legend + * { clear:both; }
#sheet .travel-filter-form .form-field { display:grid; gap:7px; min-width:0; font-size:.94rem; font-weight:700; }
.filter-field-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
#sheet .travel-filter-form select, .filter-budget {
  min-width:0; width:100%; min-height:46px; border:1px solid #8da597; border-radius:9px;
  background-color:white; color:#203e34; font-size:1rem;
}
.filter-budget { display:flex; align-items:center; gap:8px; padding:0 12px; box-sizing:border-box; }
#sheet .filter-budget input { flex:1; min-width:0; width:100%; min-height:44px; padding:0; border:0; background:transparent; color:inherit; font:inherit; }
.filter-budget:focus-within { outline:2px solid #266482; outline-offset:2px; }
#sheet .filter-budget input:focus { outline:none; box-shadow:none; }
.filter-budget > span:last-child { color:#52695d; font-size:.9rem; }
.filter-presets,.filter-choices,#sheet .result-theme-choices { display:flex; flex-wrap:wrap; gap:6px; }
.filter-presets { margin-top:7px; }
.filter-choices label,#sheet .result-theme-choices label { position:relative; display:grid; cursor:pointer; }
.filter-choices input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.filter-choices label span,#sheet .result-theme-choices label span,.filter-presets button {
  display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:44px;
  padding:6px 13px; border:1px solid #afc1b2; border-radius:24px; background:#fafcf7;
  color:#254837; font-size:.92rem; font-weight:600;
}
.filter-choices input:checked + span,#sheet .result-theme-choices input:checked + span,.filter-presets button[aria-pressed=true] {
  border-color:#24533f; background:#24533f; color:white;
}
.filter-choices input:focus-visible + span,#sheet .result-theme-choices input:focus-visible + span,.filter-presets button:focus-visible {
  outline:3px solid #266482; outline-offset:2px;
}
@media (hover:hover) {
  .filter-choices label:hover span,#sheet .result-theme-choices label:hover span,.filter-presets button:hover,.result-filter-chip:hover {
    border-color:#24533f; text-decoration:underline; text-underline-offset:.18em;
  }
}
.filter-no-matches { margin:0 0 12px; color:#79472a; font-size:.92rem; }
.filter-actions {
  position:sticky; z-index:1; bottom:0; display:flex; justify-content:space-between; align-items:center; gap:10px;
  margin:0; padding:12px 0 max(12px,env(safe-area-inset-bottom)); border-top:1px solid #c9d7c9; background:white;
}
.filter-actions button { min-height:46px; }
.filter-actions .primary { min-width:9rem; justify-content:center; }
@media (max-width:680px) {
  #sheet:is([data-view="result-filters"],[data-view="dealFilters"]) { width:100%; max-width:none; max-height:calc(100dvh - 12px); margin:auto 0 0; border-radius:18px 18px 0 0; }
  .filter-actions .primary { flex:1; max-width:16rem; }
  .res-toolbar #result-filter-toggle { padding-inline:12px; }
}
@media (max-width:380px) { .filter-field-pair { grid-template-columns:1fr; } }
@media (forced-colors:active) {
  .filter-choices input:checked + span,.filter-presets button[aria-pressed=true] { outline:2px solid Highlight; }
}
