/* =============================================================================
 * BCM Search – okno wyszukiwania i strona wyników.
 *
 * Tokeny pochodzą z motywu „bonifratrzy” (granat #122056, indygo #5b66dc, lawenda #eeeffd,
 * Figtree, promień 14 px, pasek indygo 4 px jak w cieniu „shadow-blue”). Dopasowanie do innego
 * motywu: nadpisz zmienne, np. :root .bcm-search { --bcm-search-accent: #1d4f91; }
 *
 * Motyw ustawia html { font-size: 62.5% } (1rem = 10 px), dlatego bazą jest 1.6rem, a wszystkie
 * rozmiary wewnątrz są w em. Dla motywu z html 100% ustaw --bcm-search-base: 1rem.
 *
 * Motyw globalnie stylizuje button, select, ol li:before i ul li:before – resetujemy to
 * w obrębie .bcm-search. Kontrast tekstu ≥ 4.5:1, elementów interfejsu ≥ 3:1 (WCAG 2.1 AA).
 * ========================================================================== */

.bcm-search {
  --bcm-search-base: 1.6rem;
  --bcm-search-ink: #122056;          /* 15.4:1 */
  --bcm-search-ink-soft: #3b4573;     /* 9.2:1 – fragmenty */
  --bcm-search-muted: #5c6487;        /* 5.8:1 – metadane */
  --bcm-search-accent: #5b66dc;       /* 4.8:1 – fokus, pasek, aktywne */
  --bcm-search-accent-strong: #3d47c2;/* 7.3:1 – linki, przyciski */
  --bcm-search-on-accent: #ffffff;
  --bcm-search-bg: #ffffff;
  --bcm-search-surface: #eeeffd;
  --bcm-search-line: #dfe1f5;         /* separatory (dekoracyjne) */
  --bcm-search-field-line: #7d85b0;   /* obramowanie pól 3.1:1 */
  --bcm-search-mark: #e1e3fa;
  --bcm-search-price-bg: #eaf6ed;
  --bcm-search-price-ink: #1b6b34;
  --bcm-search-backdrop: rgba(18, 32, 86, .55);
  --bcm-search-radius: 14px;
  --bcm-search-radius-small: 10px;
  --bcm-search-shadow: 0 24px 60px rgba(18, 32, 86, .22);
  --bcm-search-font: "Figtree", "Figtree-Regular", system-ui, sans-serif;

  /* kolory grup (kropka przy etykiecie; etykieta jest też tekstem) */
  --bcm-search-g-placowki: #122056;
  --bcm-search-g-poradnie: #5b66dc;
  --bcm-search-g-uslugi: #25a54b;
  --bcm-search-g-aktualnosci: #e0952a;
  --bcm-search-g-przetargi: #c12030;
  --bcm-search-g-strony: #8a90ad;

  font-family: var(--bcm-search-font);
  font-size: var(--bcm-search-base);
  line-height: 1.5;
  color: var(--bcm-search-ink);
}

html.dark .bcm-search,
.dark .bcm-search {
  --bcm-search-ink: #ffffff;
  --bcm-search-ink-soft: #c9ccd8;
  --bcm-search-muted: #a3a8bd;
  --bcm-search-accent: #aab1ff;
  --bcm-search-accent-strong: #aab1ff;
  --bcm-search-on-accent: #1c1f2a;
  --bcm-search-bg: #1c1f2a;
  --bcm-search-surface: #282d3d;
  --bcm-search-line: #3a3f50;
  --bcm-search-field-line: #6c7186;
  --bcm-search-mark: #3a4170;
  --bcm-search-price-bg: #23402e;
  --bcm-search-price-ink: #8fd6a3;
  --bcm-search-backdrop: rgba(8, 10, 18, .72);
  --bcm-search-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --bcm-search-g-placowki: #c9ccd8;
}

/* ---------------------------------------------------------------- resety motywu */
.bcm-search *,
.bcm-search *::before,
.bcm-search *::after { box-sizing: border-box; }

/* Reset list ma specyficzność (0,1,1) – musi wygrać z motywem (ol li, ul li), który ładuje się później.
   Dlatego elementy list poniżej mają selektory z prefiksem .bcm-search (0,2,0).
   Reset nagłówków i akapitów używa :where() (0,1,0), więc klasy komponentów wygrywają kolejnością. */
.bcm-search :where(ul, ol) { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.bcm-search :where(ul, ol) > li { margin: 0; padding: 0; position: static; }
.bcm-search :where(ul, ol) > li::before { content: none !important; display: none !important; }

.bcm-search :where(h1, h2, h3, p, legend, label, summary) {
  margin: 0; padding: 0;
  font-family: var(--bcm-search-font);
  color: inherit; letter-spacing: normal; text-transform: none;
}

.bcm-search button {
  height: auto; min-height: 0;
  transform: none !important;
  transition: background-color .15s, color .15s, border-color .15s;
  font-family: var(--bcm-search-font);
}
.bcm-search button:hover { transform: none !important; }

.bcm-search-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.bcm-search :focus-visible,
.bcm-search-toggle:focus-visible {
  outline: 3px solid var(--bcm-search-accent);
  outline-offset: 2px;
}

.bcm-search mark {
  background: var(--bcm-search-mark);
  color: inherit;
  font-weight: 600;
  padding: 0 .08em;
  border-radius: 3px;
}

/* ---------------------------------------------------------------- lupa w nagłówku */
.bcm-search-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px;
  margin-left: auto; margin-right: 4px;
  border-radius: 50%;
  color: var(--bcm-search-ink);
  text-decoration: none;
  transition: background-color .15s;
}
.bcm-search-toggle:hover { background: var(--bcm-search-surface); }
.bcm-search-icon { display: block; flex: none; }

/* ---------------------------------------------------------------- okno wyszukiwania */
.bcm-search-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 14vh - 24px);
  margin: 12vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--bcm-search-radius);
  background: var(--bcm-search-bg);
  color: var(--bcm-search-ink);
  /* pasek indygo u góry – ten sam detal co cień „shadow-blue” kart motywu */
  box-shadow: inset 0 4px 0 0 var(--bcm-search-accent), var(--bcm-search-shadow);
}
.bcm-search-dialog[open] { display: flex; flex-direction: column; }
.bcm-search-dialog::backdrop { background: var(--bcm-search-backdrop); backdrop-filter: blur(3px); }
.bcm-search-dialog[open] { animation: bcm-search-in .18s ease-out; }
@keyframes bcm-search-in { from { opacity: 0; transform: translateY(-8px); } }

.bcm-search-dialog__inner { display: flex; flex-direction: column; min-height: 0; padding: 1.25em 1.5em 1em; }
.bcm-search-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: .5em; }
.bcm-search-dialog__title { font-size: .9375em; font-weight: 500; color: var(--bcm-search-muted); }
.bcm-search .bcm-search-dialog__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--bcm-search-ink);
  font-size: 1.75em; line-height: 1; cursor: pointer;
}
.bcm-search .bcm-search-dialog__close:hover { background: var(--bcm-search-surface); }

/* Duże pole bez ramki – w oknie to ono jest bohaterem. */
.bcm-search-dialog .bcm-search-form { display: flex; flex-direction: column; min-height: 0; }
.bcm-search-dialog .bcm-search-combobox { display: flex; flex-direction: column; min-height: 0; }
.bcm-search-dialog .bcm-search-field {
  border: 0; border-bottom: 2px solid var(--bcm-search-ink);
  border-radius: 0; background: transparent; padding: 0;
}
.bcm-search-dialog .bcm-search-field:focus-within { border-bottom-color: var(--bcm-search-accent); box-shadow: 0 2px 0 0 var(--bcm-search-accent); }
.bcm-search-dialog .bcm-search-field__icon { margin-left: 0; }
.bcm-search-dialog .bcm-search-input { font-size: 1.5em; padding: .45em .5em; }
.bcm-search-dialog .bcm-search-input:focus-visible { outline: none; } /* fokus pokazuje linia pola */
/* Enter wysyła formularz; przycisk zostaje dla czytników i wysyłania niejawnego, ale jest ukryty wizualnie. */
.bcm-search-dialog .bcm-search-submit { position: absolute !important; width: 1px; min-height: 0; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); }

.bcm-search-dialog .bcm-search-listbox {
  position: static; max-height: none; overflow-y: auto;
  margin: .5em -1.5em 0; padding: .25em 0 .5em;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  min-height: 0; flex: 1 1 auto;
}

.bcm-search-dialog__shortcuts { margin-top: 1.25em; }
.bcm-search-dialog:has(.bcm-search-listbox:not([hidden])) .bcm-search-dialog__shortcuts { display: none; }
.bcm-search-dialog__shortcuts-title { font-size: .875em; font-weight: 500; color: var(--bcm-search-muted); margin-bottom: .5em; }
.bcm-search-dialog__shortcuts ul { display: flex; flex-wrap: wrap; gap: .5em; }
.bcm-search-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1em;
  border-radius: 999px; background: var(--bcm-search-surface);
  color: var(--bcm-search-ink); font-weight: 500; text-decoration: none;
}
.bcm-search-chip:hover { background: var(--bcm-search-mark); }
.bcm-search-dialog__phone { margin-top: .875em; font-size: .9375em; color: var(--bcm-search-muted); }
.bcm-search-dialog__phone a { color: var(--bcm-search-accent-strong); font-weight: 600; text-decoration: none; }

.bcm-search-dialog__keys {
  display: flex; flex-wrap: wrap; gap: 1.25em;
  margin: .75em -1.5em -1em; padding: .75em 1.5em;
  border-top: 1px solid var(--bcm-search-line);
  font-size: .8125em; color: var(--bcm-search-muted);
}
.bcm-search-dialog__keys kbd {
  display: inline-block; min-width: 1.75em; margin-right: .25em; padding: .1em .45em;
  border: 1px solid var(--bcm-search-line); border-bottom-width: 2px; border-radius: 5px;
  background: var(--bcm-search-bg); color: var(--bcm-search-ink);
  font-family: inherit; font-size: .95em; text-align: center;
}

/* ---------------------------------------------------------------- pole i podpowiedzi */
.bcm-search-combobox { position: relative; }
.bcm-search-label { display: block; margin-bottom: .375em; font-size: .9375em; font-weight: 600; }
.bcm-search-field {
  display: flex; align-items: center;
  min-height: 56px;
  background: var(--bcm-search-bg);
  border: 1.5px solid var(--bcm-search-field-line);
  border-radius: var(--bcm-search-radius);
  padding: 4px;
}
.bcm-search-field:focus-within { border-color: var(--bcm-search-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bcm-search-accent) 30%, transparent); }
.bcm-search-field__icon { margin-left: .75em; color: var(--bcm-search-muted); }
.bcm-search .bcm-search-input {
  flex: 1; min-width: 0; height: auto;
  margin: 0; padding: .5em .75em;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-family: var(--bcm-search-font); font-size: 1.125em; color: var(--bcm-search-ink);
  -webkit-appearance: none; appearance: none;
}
.bcm-search .bcm-search-input:focus { outline: none; }
.bcm-search .bcm-search-input::placeholder { color: var(--bcm-search-muted); opacity: 1; }
.bcm-search .bcm-search-input::-webkit-search-cancel-button { cursor: pointer; }

.bcm-search .bcm-search-submit,
.bcm-search .bcm-search-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.25em;
  border: 0; border-radius: var(--bcm-search-radius-small);
  background: var(--bcm-search-accent-strong); color: var(--bcm-search-on-accent);
  font-size: 1em; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
}
.bcm-search .bcm-search-submit:hover,
.bcm-search .bcm-search-button:hover { background: var(--bcm-search-ink); color: var(--bcm-search-bg); }

.bcm-search-listbox {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 1000;
  max-height: min(60vh, 480px); overflow-y: auto;
  padding: .375em 0;
  background: var(--bcm-search-bg);
  border: 1px solid var(--bcm-search-line);
  border-radius: var(--bcm-search-radius);
  box-shadow: var(--bcm-search-shadow);
}
.bcm-search-listbox[hidden] { display: none; }
.bcm-search-listbox__group {
  padding: .875em 0 .25em calc(1.5em / .8125); /* wyrównanie z opcjami (1.5em przy ich rozmiarze) */
  font-size: .8125em; font-weight: 600; color: var(--bcm-search-muted);
}
.bcm-search-option {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1em;
  padding: .5em 1.5em;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 var(--bcm-search-accent);
}
.bcm-search-option__title { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcm-search-option__meta { flex: none; font-size: .875em; color: var(--bcm-search-muted); white-space: nowrap; }
.bcm-search-option[aria-selected="true"],
.bcm-search-option:hover { background: var(--bcm-search-surface); box-shadow: inset 3px 0 0 0 var(--bcm-search-accent); }
.bcm-search-option--all {
  margin-top: .375em; padding-top: .75em; padding-bottom: .75em;
  border-top: 1px solid var(--bcm-search-line);
  color: var(--bcm-search-accent-strong); font-weight: 600;
}
.bcm-search-option--dym { color: var(--bcm-search-ink-soft); }

/* ---------------------------------------------------------------- strona wyników */
/* <main> jest elementem flex w kontenerze motywu – bez min-width: 0 rozpycha się do szerokości
   najdłuższej treści (paska zakładek) i strona na telefonie wychodzi poza ekran. */
.bcm-search-main { flex: 1 1 auto; width: 100%; min-width: 0; }
.bcm-search-page,
.bcm-search-results-wrap,
.bcm-search-results-main { min-width: 0; }
.bcm-search-container {
  max-width: 1170px; margin: 0 auto;
  /* motyw ma przyklejony nagłówek 80 px (100 px od 1170 px) */
  padding: calc(80px + 2.5em) 20px 4em;
}
@media (min-width: 1170px) { .bcm-search-container { padding-top: calc(100px + 3em); } }

.bcm-search-page__title { font-size: 2.5em; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin-bottom: .75em; }

.bcm-search-form--page { max-width: 820px; }
.bcm-search-form--page .bcm-search-label { font-weight: 500; color: var(--bcm-search-muted); }

.bcm-search-tabs { margin: 1.75em 0 0; border-bottom: 1px solid var(--bcm-search-line); }
.bcm-search-tabs ul { display: flex; gap: .25em; overflow-x: auto; scrollbar-width: thin; }
.bcm-search-tab {
  display: inline-flex; align-items: baseline; gap: .4em; white-space: nowrap;
  padding: .75em .875em; margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--bcm-search-ink); font-weight: 500; text-decoration: none;
}
.bcm-search-tab:hover { border-bottom-color: var(--bcm-search-line); }
.bcm-search-tab[aria-current="page"] { border-bottom-color: var(--bcm-search-accent); font-weight: 700; }
.bcm-search-tab__count { font-size: .875em; font-weight: 500; color: var(--bcm-search-muted); }

.bcm-search-layout { display: grid; gap: 2em; margin-top: 2em; }
@media (min-width: 1024px) {
  .bcm-search-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 3em; }
  .bcm-search-layout--nofilters { grid-template-columns: minmax(0, 1fr); }
}

/* Filtry: na telefonie zwijane, na komputerze stały panel (JS otwiera <details>). */
.bcm-search-filters { align-self: start; border-radius: var(--bcm-search-radius); background: var(--bcm-search-surface); }
@media (min-width: 1024px) { .bcm-search-filters { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; } }
.bcm-search-filters > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1em 1.25em; list-style: none; cursor: pointer;
  font-weight: 700;
}
.bcm-search-filters > summary::-webkit-details-marker { display: none; }
.bcm-search-filters > summary::after {
  content: ""; width: .55em; height: .55em; margin-right: .25em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-25%); transition: transform .15s;
}
.bcm-search-filters[open] > summary::after { transform: rotate(-135deg) translateY(-25%); }
.bcm-search-filters__active {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.6em; height: 1.6em; margin-left: .5em; padding: 0 .4em;
  border-radius: 999px; background: var(--bcm-search-accent-strong); color: var(--bcm-search-on-accent);
  font-size: .8125em;
}
.bcm-search-filters__body { padding: 0 1.25em .5em; }
.bcm-search-facet { margin: 0 0 1.25em; padding: 0; border: 0; min-width: 0; }
.bcm-search-facet legend { margin-bottom: .5em; font-size: .9375em; font-weight: 700; }
.bcm-search-facet ul { max-height: 15em; overflow-y: auto; margin-right: -.5em; padding-right: .5em; }
.bcm-search .bcm-search-facet li { display: flex; align-items: flex-start; gap: .625em; padding: .3em 0; line-height: 1.4; }
/* Własne pole wyboru: motyw rysuje checkboxy jako koła (wyglądają jak radio). */
.bcm-search .bcm-search-facet input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  flex: none; display: inline-grid; place-content: center;
  width: 20px; height: 20px; margin: .1em 0 0; padding: 0;
  border: 1.5px solid var(--bcm-search-field-line); border-radius: 5px;
  background: var(--bcm-search-bg); cursor: pointer;
}
.bcm-search .bcm-search-facet input[type="checkbox"]::before {
  content: ""; width: 11px; height: 11px; transform: scale(0);
  background: var(--bcm-search-on-accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.bcm-search .bcm-search-facet input[type="checkbox"]:checked { background: var(--bcm-search-accent-strong); border-color: var(--bcm-search-accent-strong); }
.bcm-search .bcm-search-facet input[type="checkbox"]:checked::before { transform: scale(1); }
.bcm-search .bcm-search-facet input[type="checkbox"]:focus-visible { outline: 3px solid var(--bcm-search-accent); outline-offset: 2px; }
.bcm-search-facet label { flex: 1; display: flex; justify-content: space-between; gap: .75em; font-size: .9375em; cursor: pointer; }
.bcm-search-facet__count { flex: none; font-variant-numeric: tabular-nums; color: var(--bcm-search-muted); }
.bcm-search-facet--dates { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5em .75em; }
.bcm-search-facet--dates legend { grid-column: 1 / -1; }
.bcm-search-facet--dates label { font-size: .9375em; }
.bcm-search .bcm-search-date,
.bcm-search .bcm-search-select {
  min-height: 40px; padding: .25em .75em;
  border: 1.5px solid var(--bcm-search-field-line); border-radius: 8px;
  background-color: var(--bcm-search-bg); color: var(--bcm-search-ink);
  font-family: var(--bcm-search-font); font-size: .9375em;
}
.bcm-search .bcm-search-select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.25em;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.1em) 55%, calc(100% - .75em) 55%;
  background-size: .35em .35em, .35em .35em;
  background-repeat: no-repeat;
}
.bcm-search-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1em; padding: 0 1.25em 1.25em; }
.bcm-search-link { color: var(--bcm-search-accent-strong); font-weight: 600; text-underline-offset: 3px; }

/* Nagłówek listy wyników + sortowanie */
.bcm-search-results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75em 1.5em; padding-bottom: 1em; border-bottom: 1px solid var(--bcm-search-line); }
.bcm-search-results__heading { font-size: 1.125em; font-weight: 600; }
.bcm-search-results__heading:focus { outline: none; }
.bcm-search-sort { display: flex; align-items: center; gap: .5em; font-size: .9375em; color: var(--bcm-search-muted); }
.bcm-search-note { margin-top: 1em; padding: .75em 1em; border-radius: var(--bcm-search-radius-small); background: var(--bcm-search-surface); color: var(--bcm-search-ink-soft); font-size: .9375em; }

/* Wyniki – lista, nie karty: spokojny rytm, separator między pozycjami. */
.bcm-search .bcm-search-card { padding: 1.5em 0; border-bottom: 1px solid var(--bcm-search-line); line-height: 1.5; }
.bcm-search-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35em 1.25em; margin-bottom: .4em; font-size: .875em; color: var(--bcm-search-muted); }
.bcm-search-group { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--bcm-search-ink-soft); }
.bcm-search-group::before {
  content: ""; width: .6em; height: .6em; border-radius: 50%;
  background: var(--bcm-search-group-color, var(--bcm-search-muted));
}
.bcm-search-group--placowki { --bcm-search-group-color: var(--bcm-search-g-placowki); }
.bcm-search-group--poradnie { --bcm-search-group-color: var(--bcm-search-g-poradnie); }
.bcm-search-group--uslugi { --bcm-search-group-color: var(--bcm-search-g-uslugi); }
.bcm-search-group--aktualnosci { --bcm-search-group-color: var(--bcm-search-g-aktualnosci); }
.bcm-search-group--przetargi { --bcm-search-group-color: var(--bcm-search-g-przetargi); }
.bcm-search-group--strony { --bcm-search-group-color: var(--bcm-search-g-strony); }

.bcm-search-card__title { font-size: 1.25em; line-height: 1.35; font-weight: 600; max-width: 46em; }
.bcm-search-card__title a { color: var(--bcm-search-ink); text-decoration: none; }
.bcm-search-card__title a:hover { color: var(--bcm-search-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.bcm-search-card__excerpt { margin-top: .4em; max-width: 46em; font-size: 1em; line-height: 1.6; color: var(--bcm-search-ink-soft); }
.bcm-search-card__extra { display: flex; flex-wrap: wrap; gap: .5em 1em; margin-top: .75em; }
.bcm-search-price {
  display: inline-flex; align-items: center; padding: .25em .75em;
  border-radius: 999px; background: var(--bcm-search-price-bg); color: var(--bcm-search-price-ink);
  font-size: .9375em; font-weight: 700;
}
.bcm-search-tender { font-size: .9375em; color: var(--bcm-search-ink-soft); }

/* Paginacja */
.bcm-search-pagination ul { display: flex; flex-wrap: wrap; align-items: center; gap: .375em; margin-top: 2em; }
.bcm-search-page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .75em;
  border-radius: var(--bcm-search-radius-small);
  color: var(--bcm-search-ink); font-weight: 600; text-decoration: none;
}
a.bcm-search-page-link:hover { background: var(--bcm-search-surface); }
.bcm-search-page-link.is-current { background: var(--bcm-search-ink); color: var(--bcm-search-bg); }
.bcm-search-page-link--step { gap: .4em; color: var(--bcm-search-accent-strong); }

/* Brak wyników i pusta strona */
.bcm-search-empty { max-width: 46em; padding: 1.5em 0 0; }
.bcm-search-empty .bcm-search-results__heading { font-size: 1.5em; line-height: 1.3; }
.bcm-search-didyoumean { margin-top: .75em; font-size: 1.125em; }
.bcm-search-didyoumean a { color: var(--bcm-search-accent-strong); font-weight: 700; }
.bcm-search-tips { margin-top: 1em; }
.bcm-search .bcm-search-tips li { position: relative; padding-left: 1.1em; margin-top: .4em; color: var(--bcm-search-ink-soft); }
.bcm-search-tips li::after { content: ""; position: absolute; left: 0; top: .7em; width: .35em; height: .35em; border-radius: 50%; background: var(--bcm-search-accent); }
.bcm-search-tips a { color: var(--bcm-search-accent-strong); font-weight: 600; }

.bcm-search-quick { margin-top: 2em; padding: 1.5em; border-radius: var(--bcm-search-radius); background: var(--bcm-search-surface); }
.bcm-search-quick__title { margin-bottom: .875em; font-size: 1.125em; font-weight: 700; }
.bcm-search-quick ul { display: flex; flex-wrap: wrap; gap: .625em; }
.bcm-search-quick .bcm-search-chip { background: var(--bcm-search-bg); }
.bcm-search-quick .bcm-search-chip:hover { background: var(--bcm-search-mark); }
.bcm-search-quick__phone { margin-top: 1.25em; color: var(--bcm-search-ink-soft); }
.bcm-search-quick__phone a { color: var(--bcm-search-ink); font-size: 1.25em; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bcm-search-quick__phone a:hover { color: var(--bcm-search-accent-strong); }

[data-bcm-results][aria-busy="true"] .bcm-search-results-main { opacity: .55; transition: opacity .15s; }

/* ---------------------------------------------------------------- telefon */
@media (max-width: 640px) {
  .bcm-search-dialog {
    width: 100vw; max-height: none; height: 100dvh;
    margin: 0; border-radius: 0;
  }
  .bcm-search-dialog__inner { height: 100%; padding: 1em 1.125em; }
  .bcm-search-dialog .bcm-search-input { font-size: 1.25em; }
  .bcm-search-dialog .bcm-search-listbox { margin-left: -1.125em; margin-right: -1.125em; }
  .bcm-search-dialog__keys { display: none; }
  .bcm-search-container { padding-left: 16px; padding-right: 16px; }
  .bcm-search-page__title { font-size: 2em; }
  .bcm-search-form--page .bcm-search-submit { padding: 0 1em; }
  .bcm-search-card__title { font-size: 1.125em; }
}

@media (prefers-reduced-motion: reduce) {
  .bcm-search *, .bcm-search-dialog[open] { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  .bcm-search-option[aria-selected="true"] { outline: 2px solid Highlight; }
  .bcm-search mark { forced-color-adjust: none; background: Mark; color: MarkText; }
}
