/* Optional catalog visual trial. Remove its marked search.html link to restore the baseline. */
.search-results-page .rs-heading { max-width:none; }
.search-results-page .rs-filter-heading h2 { font-size:20px; font-weight:650; }

/* Quiet ink-blue surfaces follow the existing panel into the mobile dialog.
   Selected controls and category colors retain their established accents. */
#searchFilterPanel,#searchFilterDialog {
  --filter-surface:#1d2638;
  --filter-control:#2b3548;
  --filter-control-hover:#354157;
  --filter-border:#4a576f;
  --filter-selected-surface:#342c62;
  --filter-selected-hover:#44367a;
  --filter-selected-active:#503f8b;
  --filter-selected-border:#9784db;
  --rs-muted:#c0cbdc;
  --rs-link:var(--outlo-brand-on-dark,#c7d2fe);
  --rs-line:#405066;
  --text-soft:#e1e7f0;
  --soft-strong:#162031;
}
#searchFilterHome .rs-filter-heading-icon { color:var(--outlo-brand-accent,#4f46e5); }
#searchFilterHome .rs-filter-body {
  padding:14px;
  border-color:#4a576f;
  background:linear-gradient(155deg,#29354a 0%,#222d41 48%,var(--filter-surface) 100%);
  box-shadow:0 10px 28px #1720331c;
}
#searchFilterPanel .section-title,#searchFilterPanel .section-title span { font-size:15px; }
#searchFilterPanel .origin-input-wrap input {
  --public-field-focus-border:#a18aff;
  --public-field-focus-halo:#a391ff33;
  min-height:44px;
  border-color:#d9e1eb;
  background:#f7f8fa;
  color:#243044;
  color-scheme:light;
  font-size:15px;
}
#searchFilterPanel .origin-input-wrap input::placeholder { color:#647084; font-size:13.5px; }
#searchFilterPanel .origin-input-wrap::before { color:var(--outlo-brand-accent,#4f46e5); }
#searchFilterPanel .origin-input-wrap input:hover { border-color:#b6c3d4; }
#searchFilterPanel .origin-input-wrap input:focus { border-color:#a18aff; background:#fff; }
#searchFilterPanel .origin-clear-button { color:#647084; }
#searchFilterPanel .origin-clear-button:hover { background:#e4eaf0; color:var(--outlo-brand-text-hover,#3730a3); }
#searchFilterPanel .rs-map-filters #customDateRange .mdf-fields input:focus { background:#354157; }
#searchFilterPanel .origin-autocomplete { background:#253146; }
#searchFilterPanel .rs-map-filters #customDateRange { background:#192234; }
#searchFilterPanel #useLocation { min-height:44px; font-size:14px; }
/* Keep the original wrapping category chips and their saturated category icons. */
#searchFilterPanel .chip-grid button[data-category="hudebni"] { --filter-icon-color:#a56aff; }
#searchFilterPanel .chip-grid button[data-category="festivaly"] { --filter-icon-color:#23d45f; }
#searchFilterPanel .chip-grid button[data-category="kulturni"] { --filter-icon-color:#ff4d9f; }
#searchFilterPanel .chip-grid button[data-category="sport"] { --filter-icon-color:#1cbdff; }
#searchFilterPanel .chip-grid button[data-category-group="auto-moto"] { --filter-icon-color:#ff881b; }
#searchFilterPanel .chip-grid button[data-category="gastro"] { --filter-icon-color:#ffcd24; }
#searchFilterPanel .chip-grid button[data-category="trhy"] { --filter-icon-color:#c38d56; }
#searchFilterPanel .chip-grid button[data-category="priroda"] { --filter-icon-color:#30d76a; }
#searchFilterPanel .chip-grid button[data-category="ostatni"] { --filter-icon-color:#e8e4ff; }
#searchFilterPanel .chip-grid button .category-chip-icon { color:var(--filter-icon-color,var(--chip-color)); opacity:1; }

/* Surface-only polish: keep the original layout, chip geometry and selected states. */
@media (forced-colors:none) {
  #searchFilterHome .rs-filter-body {
    border-color:#4a576f;
    background:radial-gradient(ellipse at top left,#94a3b814,transparent 65%),linear-gradient(155deg,#2b374e 0%,#222d41 48%,var(--filter-surface) 100%);
    box-shadow:inset 0 1px 0 #dbe5f01f,0 14px 32px #17203326;
  }
  #searchFilterDialog {
    border-color:#4a576f;
    background:linear-gradient(180deg,#253146 0 84px,var(--filter-surface) 65%);
    box-shadow:inset 0 1px 0 #dbe5f01f,0 -12px 40px #17203333;
  }
  #searchFilterDialog .rs-filter-heading { background:#253146; }
  #searchFilterPanel .chip-grid button:where(:not(.active):not([aria-pressed="true"])) {
    background:#2b3548;
    color:#f0f3f8;
  }
}

.search-results-page .rs-reset {
  justify-content:center;
  gap:8px;
  width:100%;
  max-width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #d9deec;
  border-radius:12px;
  background:#f8f9fd;
  color:#526077;
  font-size:13px;
  font-weight:500;
  line-height:1.3;
  text-align:center;
  text-decoration:none;
}
.search-results-page .rs-reset svg { width:18px; height:18px; flex:0 0 18px; stroke-width:1.8; }
.search-results-page .rs-reset:hover:not(:disabled) { border-color:#c7c9f3; background:#eeefff; color:#3730a3; text-decoration:none; }
.search-results-page .rs-reset:focus-visible { outline:2px solid var(--outlo-brand-accent,#4f46e5); outline-offset:3px; }
#searchFilterPanel .rs-reset { border-color:#4a576f; background:#2b3548; color:#d9e1ed; }
#searchFilterPanel .rs-reset:hover:not(:disabled) { border-color:#788ba5; background:#354157; color:#f0f3f8; }
#searchFilterPanel .rs-reset:focus-visible { outline-color:#b5a4ff; }
#searchFilterDialog .rs-filter-heading { padding-block:14px; }
#searchFilterDialog .rs-filter-footer { flex-direction:column; align-items:stretch; gap:8px; }
#searchFilterDialog #searchFilterDone { flex:0 0 auto; width:100%; }

@media (min-width:1051px) {
  #searchFilterHome .rs-filter-footer:has([data-reset-filters][hidden]) { display:none; }
  .search-results-page .rs-layout { grid-template-columns:clamp(300px,23vw,340px) minmax(0,1fr); }
  .search-results-page .rs-heading h1 { font-size:clamp(44px,3.2vw,52px); }
  #searchFilterHome .rs-filter-body {
    max-height:calc(100dvh - 112px);
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:#66758b transparent;
  }
}
/* Use the full sidebar width on desktop; keep the narrower catalog adaptive. */
@media (min-width:1280px) {
  .search-results-page .rs-layout { grid-template-columns:340px minmax(0,1fr); }
}
