/* Reversible catalog-only surface trial. Remove the marked link in search.html
   to restore the original panel; controls, layout and navigation remain native. */
body.search-results-page :is(#searchFilterPanel,#searchFilterDialog) {
  /* Use the same paper and corner glow as the map's filter panel. */
  --filter-panel-glow:rgb(89 112 153 / 8%);
  --filter-glow-height:480px;
  --filter-panel-gradient:radial-gradient(ellipse at 100% 0%,var(--filter-panel-glow),transparent 70%);
  --filter-surface:#f2f4f6;
  --filter-panel-edge:#d6dce4;
  --filter-control:#fff;
  --filter-control-hover:#e9eef5;
  --filter-border:#cbd5e1;
  --filter-selected-surface:#e4dcff;
  --filter-selected-hover:#d8ceff;
  --filter-selected-active:#cbc0f5;
  --filter-selected-border:#8b7bce;
  --rs-ink:#111827;
  --rs-muted:#64748b;
  --rs-link:var(--outlo-brand-text);
  --rs-line:rgb(221 228 238 / 78%);
  --rs-accent:var(--outlo-brand-accent);
  --rs-tint:#e4dcff;
  --text-soft:#334155;
  --soft-strong:#eaf0f8;
  --primary:var(--outlo-brand-text);
  --outlo-control-focus:var(--outlo-brand-accent);
  --public-field-focus-border:var(--outlo-brand-accent);
  --public-field-focus-halo:rgb(79 70 229 / 18%);
  --filter-radius-track:#dbe4f0;
  --filter-radius-progress:var(--accent);
  --filter-radius-thumb:var(--accent);
  --filter-radius-thumb-border:#fff;
  color:var(--rs-ink);
  color-scheme:light;
}

body.search-results-page #searchFilterHome .rs-filter-body,
body.search-results-page #searchFilterDialog,
body.search-results-page #searchFilterDialog .rs-filter-heading {
  background:var(--filter-surface);
  background-image:var(--filter-panel-gradient);
  background-position:center top;
  background-size:100% var(--filter-glow-height,480px);
  background-repeat:no-repeat;
  /* Paint the panel surface through the reserved scrollbar gutter. */
  background-attachment:scroll;
}
body.search-results-page #searchFilterHome .rs-filter-body,
body.search-results-page #searchFilterDialog {
  border-color:var(--filter-panel-edge);
  color:var(--rs-ink);
  box-shadow:0 10px 28px rgb(31 41 55 / 8%);
  scrollbar-color:#8d99a8 var(--filter-surface);
}
body.search-results-page #searchFilterDialog :is(.rs-filter-heading,.rs-filter-footer) {
  border-color:var(--rs-line);
}
body.search-results-page #searchFilterDialog .rs-filter-footer { background:var(--filter-surface); }
body.search-results-page #searchFilterDialog .rs-filter-heading-icon { color:var(--rs-link); }

body.search-results-page #searchFilterPanel .origin-input-wrap input {
  --public-field-focus-border:var(--outlo-brand-accent);
  --public-field-focus-halo:rgb(79 70 229 / 18%);
  border-color:#dde4ee;
  background:#fff;
  color:#0f172a;
  color-scheme:light;
  border-radius:var(--outlo-control-radius,12px);
}
body.search-results-page #searchFilterPanel .origin-input-wrap input:hover:not(:focus) { border-color:#dde4ee; }
body.search-results-page #searchFilterPanel .origin-input-wrap input:focus { border-color:var(--public-field-focus-border); }
body.search-results-page #searchFilterPanel .origin-input-wrap::before { color:var(--rs-muted); }
body.search-results-page #searchFilterPanel :is(.section-title,.section-title .event-filter-label) {
  font-size:13px;
  font-weight:600;
}
body.search-results-page #searchFilterPanel :is(button,input,select):focus-visible { outline-color:var(--outlo-control-focus); }
body.search-results-page #searchFilterPanel .origin-autocomplete {
  border-color:#dde4ee;
  background:#fff;
  box-shadow:0 18px 46px rgb(15 23 42 / 14%);
}
body.search-results-page #searchFilterPanel .origin-autocomplete button { border-color:#dde4ee; }
body.search-results-page #searchFilterPanel .origin-autocomplete .origin-suggestion-item:hover { background:#f5fbff; }
body.search-results-page #searchFilterPanel .origin-autocomplete .origin-suggestion-item:is([aria-selected="true"],:focus-visible) { background:#eef2ff; }
body.search-results-page #searchFilterPanel .origin-suggestion-marker {
  border-color:rgb(79 70 229 / 16%);
  background:rgb(79 70 229 / 8%);
  color:var(--outlo-brand-accent);
}
body.search-results-page #searchFilterPanel .origin-suggestion-marker::before { box-shadow:0 0 0 4px rgb(79 70 229 / 12%); }

body.search-results-page #searchFilterPanel .segmented-time { --time-filter-focus:var(--outlo-brand-accent); }
body.search-results-page #searchFilterPanel .segmented-time button:not(.active,[aria-pressed="true"]) {
  background:#f1f5f9;
  color:var(--rs-muted);
}
body.search-results-page #searchFilterPanel .segmented-time button:hover:not(.active,[aria-pressed="true"]) {
  background:#e9eef5;
  color:#334155;
  border-color:transparent !important;
}
body.search-results-page #searchFilterPanel .segmented-time button.is-editing { outline-color:var(--outlo-brand-border-hover); }

body.search-results-page #searchFilterPanel #customDateRange.map-date-filter {
  border-color:#dedaf0;
  background:#fff;
  box-shadow:0 4px 18px #30235e07;
}
body.search-results-page #searchFilterPanel #customDateRange .mdf-fields label { color:#615c72; }
body.search-results-page #searchFilterPanel #customDateRange .mdf-fields input {
  --mdf-focus-halo:rgb(79 70 229 / 18%);
  border-color:#ded9ee;
  background:#faf9fe;
  color:#302947;
  color-scheme:light;
}
body.search-results-page #searchFilterPanel #customDateRange .mdf-fields input:focus {
  border-color:var(--outlo-brand-accent);
  background:#fff;
}
body.search-results-page #searchFilterPanel #customDateRange .mdf-fields input[aria-invalid="true"] {
  --mdf-focus-halo:#bd45592e;
  border-color:#bd4559;
  background:#fff8fa;
}
body.search-results-page #searchFilterPanel #customDateRange .mdf-message { color:#a43649; }

/* Category choices match the main map, including their selected category hue. */
body.search-results-page #searchFilterPanel #categoryChips { gap:6px; }
body.search-results-page #searchFilterPanel #categoryChips > button {
  --outlo-category-ink:#43566a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:36px;
  padding:5px 9px;
  border-radius:999px;
  border-color:#dde4ee;
  background:#fff;
  color:#111827;
  font-size:12px;
  font-weight:500;
  line-height:1;
  box-shadow:none;
}
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="hudebni"] { --outlo-category-ink:#6d28d9; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="festivaly"] { --outlo-category-ink:#13743b; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="kulturni"] { --outlo-category-ink:#be185d; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="sport"] { --outlo-category-ink:#0369a1; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category-group="auto-moto"] { --chip-color:#f97316; --outlo-category-ink:#b5470c; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="gastro"] { --outlo-category-ink:#866200; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="trhy"] { --outlo-category-ink:#7c4a21; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="priroda"] { --outlo-category-ink:#166534; }
body.search-results-page #searchFilterPanel #categoryChips > button[data-category="ostatni"] { --outlo-category-ink:#43566a; }
body.search-results-page #searchFilterPanel #categoryChips > button .category-chip-icon { color:var(--chip-color); }
body.search-results-page #searchFilterPanel #categoryChips > button:hover {
  background:color-mix(in srgb,var(--chip-color) 8%,#fff);
  border-color:color-mix(in srgb,var(--chip-color) 25%,#dfe8f2);
  color:color-mix(in srgb,var(--chip-color) 72%,#111827);
  transform:translateY(-1px);
}
body.search-results-page #searchFilterPanel #categoryChips > button:is(.active,[aria-pressed="true"]) {
  background:color-mix(in srgb,var(--chip-color) 13%,#fff);
  border-color:color-mix(in srgb,var(--chip-color) 38%,#dfe8f2);
  color:var(--outlo-category-ink);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--chip-color) 12%,transparent);
}
@media (min-width:901px) {
  body.search-results-page #searchFilterPanel #categoryChips { gap:8px; }
  body.search-results-page #searchFilterPanel #categoryChips > button { min-height:32px; padding:6px 11px; }
}
@media (hover:none), (pointer:coarse) {
  body.search-results-page #searchFilterPanel #categoryChips > button:not(.active):not([aria-pressed="true"]):hover {
    background:#fff; border-color:#dde4ee; color:#111827; transform:none;
  }
}
body.search-results-page #searchFilterPanel .rs-reset {
  border-color:var(--filter-border);
  background:#fff;
  color:var(--rs-link);
}
body.search-results-page #searchFilterPanel .rs-reset:hover { background:var(--outlo-brand-soft); color:var(--outlo-brand-text-hover); }

/* Selected periods share the main map's quiet surface in both filter layouts. */
body.search-results-page :is(#searchFilterHome,#searchFilterDialog) #searchFilterPanel .segmented-time button:is(.active,[aria-pressed="true"]) {
  background:#f2f1ff !important;
  border-color:rgba(79,70,229,.34) !important;
  color:var(--outlo-brand-text-hover,#283593) !important;
  box-shadow:none !important;
}

/* A chosen location retains its light indigo action fill. */
body.search-results-page #searchFilterPanel #useLocation { font-size:13px; }
body.search-results-page :is(#searchFilterHome,#searchFilterDialog) #searchFilterPanel #useLocation.has-location {
  background:var(--outlo-secondary-fill,linear-gradient(135deg,#d8bfff 0%,#c5c1ff 55%,#b9d2ff 100%)) no-repeat border-box !important;
  border-color:var(--outlo-secondary-border,#b8b4e6) !important;
  color:var(--outlo-secondary-ink,#312e81) !important;
  box-shadow:none !important;
}
body.search-results-page :is(#searchFilterHome,#searchFilterDialog) #searchFilterPanel #useLocation.has-location:hover:not(:disabled):not([aria-disabled="true"]) {
  background:var(--outlo-secondary-hover,linear-gradient(135deg,#ceb0ff 0%,#b8b5fb 55%,#a9c5fc 100%)) no-repeat border-box !important;
  border-color:var(--outlo-secondary-border,#b8b4e6) !important;
}
body.search-results-page :is(#searchFilterHome,#searchFilterDialog) #searchFilterPanel #useLocation.has-location:active:not(:disabled):not([aria-disabled="true"]) {
  background:var(--outlo-secondary-pressed,linear-gradient(135deg,#c2a2fa 0%,#aaa6ef 55%,#9bb7f0 100%)) no-repeat border-box !important;
}

body.search-results-page :is(#searchTagFilter,#searchArtistFilter) {
  --filter-choice-surface:var(--filter-choice-light-surface);
  --filter-choice-border:var(--filter-choice-light-border);
  --filter-choice-text:var(--filter-choice-light-text);
  --filter-choice-hover:var(--filter-choice-light-hover);
  --filter-choice-muted:var(--filter-choice-light-muted);
  --rs-muted:var(--outlo-text-muted,#64748b);
}
body.search-results-page #searchArtistFilter { --artist-list-surface:#fff; }

@media (max-width:1120px) {
  body.search-results-page :is(#searchFilterPanel,#searchFilterDialog) {
    --filter-panel-glow:rgb(89 112 153 / 6%);
    --filter-glow-height:440px;
  }
  body.search-results-page #searchFilterPanel .origin-input-wrap input { font-size:16px; }
}

@media (min-width:901px) {
  body.search-results-page #searchFilterPanel .origin-input-wrap input { background-color:rgb(255 255 255 / 96%); }
}

@media (forced-colors:active) {
  body.search-results-page :is(#searchFilterPanel,#searchFilterDialog) {
    --filter-panel-gradient:none;
    --filter-surface:Canvas;
    --filter-control:ButtonFace;
    --filter-control-hover:ButtonFace;
    --rs-ink:CanvasText;
    --rs-muted:CanvasText;
    --rs-link:LinkText;
    --rs-line:CanvasText;
    --filter-border:ButtonText;
    --filter-panel-edge:CanvasText;
    --outlo-control-focus:Highlight;
  }
  body.search-results-page #searchFilterHome .rs-filter-body,
  body.search-results-page #searchFilterDialog { box-shadow:none; }
}
