/* ============================================================
   Przewodnik bez barier – Główne style
   ============================================================ */

:root {
  /* Paleta Wariant C – Naturalny z szałwią */
  --pbb-primary:    #315A7D;
  --pbb-primary-d:  #223044;
  --pbb-primary-l:  #4A7BA0;
  --pbb-secondary:  #6F8E84; /* Szałwia */
  --pbb-accent:     #6F8E84;
  --pbb-accent-bg:  #EDF3F1;
  --pbb-bg:         #F6F3ED;
  --pbb-surface:    #FDFAF5;
  --pbb-border:     #DDD8CF;
  --pbb-text:       #223044;
  --pbb-text-muted: #5A6B7A;
  --pbb-radius:     12px;
  --pbb-radius-sm:  8px;
  --pbb-radius-pill: 999px;
  --pbb-shadow:     0 4px 16px rgba(49,90,125,0.12);
  --pbb-shadow-sm:  0 1px 4px rgba(49,90,125,0.08);
  --pbb-focus:      0 0 0 3px rgba(49,90,125,0.25);
}

.pbb-highlight {
  color: var(--pbb-secondary);
  font-weight: 700;
}

html {
  scroll-padding-top: 100px; /* WCAG 2.2: Focus Not Obscured */
}

/* ── Reset & base ── */
.pbb-btn, .pbb-input, .pbb-select, .pbb-textarea, .pbb-checkbox input {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

/* ── Buttons ── */
.pbb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .55em 1.2em;
  border-radius: var(--pbb-radius);
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  min-height: 44px; /* WCAG touch target */
  min-width: 44px;
}
.pbb-btn:focus-visible { outline: none; box-shadow: var(--pbb-focus); }
.pbb-btn--primary  { background: var(--pbb-primary); color: #fff; }
.pbb-btn--primary:hover { background: var(--pbb-primary-d); }
.pbb-btn--secondary { background: var(--pbb-secondary); color: #fff; }
.pbb-btn--outline  { background: transparent; border-color: var(--pbb-primary); color: var(--pbb-primary); }
.pbb-btn--outline:hover { background: var(--pbb-primary); color: #fff; }
.pbb-btn--sm       { padding: .45em 1em; min-height: 44px; font-size: .9rem; } /* WCAG 2.2: Target Size */
.pbb-btn--full     { width: 100%; justify-content: center; }

/* ── Form elements ── */
.pbb-label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--pbb-text); }
.pbb-input, .pbb-select, .pbb-textarea {
  width: 100%;
  padding: .55em .8em;
  border: 2px solid var(--pbb-border);
  border-radius: var(--pbb-radius);
  background: var(--pbb-surface);
  color: var(--pbb-text);
  transition: border-color .2s;
}
.pbb-input:focus, .pbb-select:focus, .pbb-textarea:focus {
  outline: none;
  border-color: var(--pbb-primary);
  box-shadow: var(--pbb-focus);
}
.pbb-input-file { padding: .4em 0; }
.pbb-form__group { margin-bottom: 1.2rem; }
.pbb-form__group--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pbb-form__hint { font-size: .875rem; color: var(--pbb-text-muted); margin: 4px 0 0; }
.pbb-form__hint--small { font-size: .8rem; }
.pbb-form__actions { display: flex; gap: 12px; margin-top: 1.5rem; flex-wrap: wrap; }

/* ── Checkbox ── */
.pbb-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
  font-size: .9rem;
}
.pbb-checkbox input { width: 18px; height: 18px; min-width: 18px; cursor: pointer; accent-color: var(--pbb-primary); }

/* ── Badges ── */
.pbb-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: #e8f5e9;
  color: var(--pbb-primary);
}
.pbb-badge--green  { background: #e8f5e9; color: #1b5e20; }.pbb-badge--green { background: #e8f5e9; color: #2e7d32; }
.pbb-badge--red { background: #ffebee; color: #c62828; }
.pbb-badge--blue { background: #e3f2fd; color: #1565c0; }
.pbb-badge--gray { background: #eeeeee; color: #333333; } /* Poprawiony kontrast */
.pbb-badge--owner { background: #fff3e0; color: #e65100; border: 1px solid #ffb74d; }
.pbb-badge--user { background: #f3e5f5; color: #7b1fa2; border: 1px solid #ce93d8; }
.pbb-btn--red { background: #d32f2f; color: #fff; border: none; }
.pbb-btn--red:hover { background: #b71c1c; }424242; }

/* ── Alerts ── */
.pbb-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--pbb-radius);
  margin: 1rem 0;
  border-left: 4px solid;
}
.pbb-alert--success { background: #e8f5e9; border-color: #2e7d32; color: #1b5e20; }
.pbb-alert--info    { background: #e3f2fd; border-color: #1565c0; color: #0d47a1; }
.pbb-alert--warning { background: #fff8e1; border-color: #f57f17; color: #e65100; }
.pbb-alert h3 { margin: 0 0 .5rem; }

/* ── Search hero ── */
.pbb-search-hero {
  background: linear-gradient(135deg, var(--pbb-primary) 0%, #2e7d52 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--pbb-radius);
  margin-bottom: 2rem;
}
.pbb-search-hero__title { font-size: 2rem; margin: 0 0 1.5rem; color: #fff; }
.pbb-search-form__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.pbb-search-form__field { flex: 1; min-width: 200px; }
.pbb-search-form__field .pbb-label { color: #fff; }
.pbb-search-form__field .pbb-input,
.pbb-search-form__field .pbb-select {
  background: rgba(255,255,255,.95);
}

/* ── Results layout ── */
.pbb-wyniki-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .pbb-wyniki-wrapper { grid-template-columns: 1fr; }
}

/* ── Filters ── */
.pbb-filtry {
  background: var(--pbb-surface);
  border: 1px solid var(--pbb-border);
  border-radius: var(--pbb-radius);
  padding: 1.25rem;
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.pbb-filtry__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 8px;
}
.pbb-filtry__title { margin: 0; font-size: 1.1rem; }
.pbb-filtry__form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}
.pbb-filtry__scroll {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 8px;
  margin-bottom: 1rem;
}
.pbb-filtry__group {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--pbb-border);
  padding-bottom: 0.75rem;
}
.pbb-filtry__group:last-child { border-bottom: none; }
.pbb-filtry__group legend {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--pbb-text-muted);
  margin-bottom: .5rem;
  width: 100%;
}
.pbb-filtry__legend-toggle { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.pbb-filtry__legend-toggle:hover { color: var(--pbb-primary); }
.pbb-filtry__options { display: none; flex-direction: column; gap: 6px; }
/* Klasa pomocnicza dla grup, które mają być widoczne na starcie (np. typ obiektu) */
.pbb-filtry__options--visible { display: flex; }
.pbb-filtry__actions { padding-top: 1rem; border-top: 1px solid var(--pbb-border); }

/* Przycisk Wyczyść filtry */
#pbb-clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  text-decoration: none;
}
#pbb-clear-filters:hover { background: var(--pbb-primary); color: #fff; border-color: var(--pbb-primary); }

/* Stan ładowania wyników – spinner overlay */
#pbb-wyniki-lista.pbb-loading {
  position: relative;
  min-height: 120px;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity .2s;
}
#pbb-wyniki-lista.pbb-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid var(--pbb-border);
  border-top-color: var(--pbb-primary);
  border-radius: 50%;
  animation: pbb-spin .7s linear infinite;
  z-index: 10;
}
@keyframes pbb-spin {
  to { transform: rotate(360deg); }
}
.pbb-checkbox--small { font-size: 0.85rem; padding: 2px 0; }
.pbb-input--sm { font-size: 0.85rem; padding: 0.4em 0.6em; min-height: 32px; }
.pbb-input--readonly,
.pbb-input[readonly] {
  background: var(--pbb-accent-bg);
  color: var(--pbb-text-muted);
  cursor: not-allowed;
  border-color: var(--pbb-border);
}

/* Kryteria na kartach obiektów */
.pbb-karta__kryteria {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: .5rem 0;
}
.pbb-badge--kryterium {
  font-size: .72rem;
  padding: 2px 7px;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
}
.pbb-badge--muted {
  background: var(--pbb-bg);
  color: var(--pbb-text-muted);
  border: 1px solid var(--pbb-border);
  font-size: .72rem;
  padding: 2px 7px;
  border-radius: var(--pbb-radius-pill);
  line-height: 1.4;
}
#pbb-filter-search { margin-bottom: 0.5rem; border-style: dashed; }
#pbb-filter-search:focus { border-style: solid; }

/* ── Cards ── */
.pbb-karty {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.pbb-karta {
  background: var(--pbb-surface);
  border: 1px solid var(--pbb-border);
  border-radius: var(--pbb-radius);
  overflow: hidden;
  box-shadow: var(--pbb-shadow);
  transition: box-shadow .2s, transform .2s;
}
.pbb-karta:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); transform: translateY(-2px); }
.pbb-karta__img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.pbb-karta__body { padding: 1rem; }
.pbb-karta__title { margin: .5rem 0; font-size: 1.05rem; }
.pbb-karta__title a { color: var(--pbb-text); text-decoration: none; }
.pbb-karta__title a:hover { color: var(--pbb-primary); }
.pbb-karta__adres { font-size: .875rem; color: var(--pbb-text-muted); margin: .25rem 0; display: flex; align-items: center; gap: 4px; }
.pbb-karta__kryteria { margin: .5rem 0 .75rem; }
.pbb-wyniki-count { color: var(--pbb-text-muted); margin-bottom: 1rem; }
.pbb-no-results { text-align: center; padding: 3rem; }

/* ── Section title ── */
.pbb-section-title {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  color: var(--pbb-text);
  position: relative;
  padding-bottom: .5rem;
}
.pbb-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--pbb-primary);
  border-radius: 2px;
}

/* ── How it works ── */
.pbb-jak-to-dziala { margin: 2rem 0; }
.pbb-kroki-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.pbb-krok-info {
  background: var(--pbb-surface);
  border: 1px solid var(--pbb-border);
  border-radius: var(--pbb-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--pbb-shadow);
}
.pbb-krok-info__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--pbb-secondary);
  background: #fff;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  box-shadow: var(--pbb-shadow);
}
.pbb-krok-info__icon .dashicons {
  font-size: 40px;
  width: 40px;
  height: 40px;
}
.pbb-krok-info h3 { margin: 0 0 .5rem; color: var(--pbb-primary); }

/* ── Steps indicator ── */
.pbb-kroki {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pbb-krok {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem .5rem;
  background: #f0f4f0;
  border-bottom: 3px solid var(--pbb-border);
  font-size: .85rem;
  text-align: center;
  min-width: 100px;
}
.pbb-krok--active {
  background: #e8f5e9;
  border-bottom-color: var(--pbb-primary);
  font-weight: 700;
  color: var(--pbb-primary);
}
.pbb-krok--done {
  background: var(--pbb-primary);
  border-bottom-color: var(--pbb-primary-d);
  color: #fff;
}
.pbb-krok__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 4px;
}
.pbb-krok--active .pbb-krok__num { background: var(--pbb-primary); color: #fff; }
.pbb-krok--done .pbb-krok__num { background: rgba(255,255,255,.3); }

/* ── Criteria groups ── */
.pbb-kryteria-group {
  border: 1px solid var(--pbb-border);
  border-radius: var(--pbb-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.pbb-kryteria-group legend,
.pbb-kryteria-group__legend {
  font-weight: 700;
  padding: 0 8px;
  color: var(--pbb-primary);
}
.pbb-kryteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px;
}
.pbb-kryteria-group--compact { padding: .75rem; }

/* ── Stars ── */
.pbb-ocena-stars { display: flex; gap: 4px; }
.pbb-star { cursor: pointer; font-size: 1.5rem; }
.pbb-star input { position: absolute; opacity: 0; width: 0; }
.pbb-star span { color: #ccc; transition: color .15s; }
.pbb-star:hover span,
.pbb-star input:checked ~ span,
.pbb-ocena-stars:hover .pbb-star:hover span,
.pbb-ocena-stars:hover .pbb-star:hover ~ .pbb-star span { color: #ccc; }
.pbb-ocena-stars .pbb-star:hover span,
.pbb-ocena-stars .pbb-star:hover ~ .pbb-star span { color: #ccc; }
.pbb-stars { color: #f57c00; letter-spacing: 2px; }

/* ── Account tabs ── */
.pbb-konto__nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--pbb-border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.pbb-tab {
  padding: .6rem 1.2rem;
  text-decoration: none;
  color: var(--pbb-text-muted);
  border-radius: var(--pbb-radius) var(--pbb-radius) 0 0;
  font-weight: 600;
  border: 2px solid transparent;
  border-bottom: none;
  transition: background .15s, color .15s;
}
.pbb-tab:hover { background: #f0f4f0; color: var(--pbb-text); }
.pbb-tab--active {
  background: var(--pbb-surface);
  color: var(--pbb-primary);
  border-color: var(--pbb-border);
  border-bottom-color: var(--pbb-surface);
  margin-bottom: -2px;
}

/* ── Preferences grid ── */
.pbb-prefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pbb-prefs-col__label { margin: 0 0 .5rem; }

/* ── Table ── */
.pbb-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.pbb-table th, .pbb-table td { padding: .6rem .8rem; border: 1px solid var(--pbb-border); text-align: left; }
.pbb-table th { background: #f0f4f0; font-weight: 700; width: 180px; }

/* ── Panel obiektu ── */
.pbb-panel-item {
  background: var(--pbb-surface);
  border: 1px solid var(--pbb-border);
  border-radius: var(--pbb-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.pbb-panel-item__header { display: flex; align-items: center; gap: 12px; margin-bottom: .75rem; }
.pbb-panel-item__header h4 { margin: 0; }
.pbb-panel-item__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: .75rem; }
.pbb-panel-opinie { border-top: 1px solid var(--pbb-border); padding-top: .75rem; margin-top: .75rem; }
.pbb-opinia-mini { padding: .5rem 0; border-bottom: 1px solid #f0f0f0; }
.pbb-opinia-mini:last-child { border-bottom: none; }

/* ── Opinie lista ── */
.pbb-opinia-item {
  background: var(--pbb-surface);
  border: 1px solid var(--pbb-border);
  border-radius: var(--pbb-radius);
  padding: 1rem;
  margin-bottom: .75rem;
}
.pbb-opinia-item__header { display: flex; align-items: center; gap: 12px; margin-bottom: .5rem; }
.pbb-opinia-item__miejsce { font-size: .875rem; color: var(--pbb-text-muted); margin: 0 0 .5rem; }

/* ── Map ── */
.pbb-mapa-wrapper { margin: 1rem 0; border-radius: var(--pbb-radius); overflow: hidden; box-shadow: var(--pbb-shadow); }
.pbb-mapa { border-radius: var(--pbb-radius); }

/* ── Podsumowanie ── */
.pbb-podsumowanie { background: #f9fafb; border-radius: var(--pbb-radius); padding: 1rem; margin-bottom: 1rem; }

/* ── Checkbox z opisem ── */
.pbb-checkbox--with-desc {
  align-items: flex-start;
  padding: 5px 0;
}
.pbb-checkbox--with-desc input {
  margin-top: 3px;
  flex-shrink: 0;
}
.pbb-checkbox__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pbb-checkbox__label {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pbb-text);
}
.pbb-checkbox__desc {
  font-size: .78rem;
  color: var(--pbb-text-muted);
  line-height: 1.45;
  font-weight: 400;
}

/* ── Kryterium z opisem (profil obiektu) ── */
.pbb-kryterium {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f4f0;
}
.pbb-kryterium:last-child { border-bottom: none; }
.pbb-kryterium__label {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}
.pbb-kryterium__desc {
  font-size: .775rem;
  color: var(--pbb-text-muted);
  line-height: 1.45;
  font-weight: 400;
}
.pbb-kryterium--ok .pbb-kryterium__label::before {
  content: '✓ ';
  color: #2e7d32;
  font-weight: 700;
}
.pbb-kryterium--brak .pbb-kryterium__label::before {
  content: '✗ ';
  color: #c62828;
}

/* ── Galeria zdjęć ── */
.pbb-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}
.pbb-galeria-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: transform 0.2s ease;
}
.pbb-galeria-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pbb-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Accessibility ── */
*:focus-visible {
  outline: 3px solid var(--pbb-primary);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .pbb-search-form__row { flex-direction: column; }
  .pbb-form__group--row { grid-template-columns: 1fr; }
  .pbb-prefs-grid { grid-template-columns: 1fr; }
  .pbb-kroki { flex-direction: column; }
  .pbb-konto__nav { flex-direction: column; }
}

/* ── Wyszukiwarka tekstowa nad wynikami ─────────────────────────────────── */
.pbb-text-search { margin-bottom: 1.25rem; }
.pbb-text-search__row { display: flex; gap: .5rem; align-items: stretch; }
.pbb-text-search__row .pbb-input { flex: 1; min-width: 0; }

/* ── Wyszukiwarka adresowa Nominatim ────────────────────────────────────── */
.pbb-adres-search-row { display: flex; gap: .5rem; align-items: stretch; position: relative; }
.pbb-adres-search-row .pbb-input { flex: 1; min-width: 0; }
.pbb-adres-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    list-style: none;
    margin: 2px 0 0;
    padding: 4px 0;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.pbb-adres-suggestions li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
}
.pbb-adres-suggestions li:last-child { border-bottom: none; }
.pbb-adres-suggestions li:hover,
.pbb-adres-suggestions li:focus { background: var(--pbb-beige, #f6f3ed); outline: none; }
.pbb-adres-selected {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--pbb-bg, #f6f3ed);
    border: 1px solid var(--pbb-secondary, #6f8e84);
    border-radius: 8px;
    padding: .625rem 1rem;
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--pbb-primary, #315a7d);
}
.pbb-adres-selected .dashicons { color: var(--pbb-secondary, #6f8e84); flex-shrink: 0; }
.pbb-adres-selected span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbb-btn--ghost {
    background: transparent;
    border: none;
    color: var(--pbb-primary, #315a7d);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: .85rem;
    flex-shrink: 0;
}
.pbb-btn--ghost:hover { color: var(--pbb-secondary, #6f8e84); }

/* ── Odznaka Zweryfikowane ──────────────────────────────────────────────── */
.pbb-badge--verified { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* ── Filtry: grupy domyślnie otwarte (Typ obiektu, Sortowanie) ─────────── */
.pbb-filtry__options--open { display: flex !important; }
.pbb-filtry__legend-toggle--no-toggle { cursor: default; pointer-events: none; }
.pbb-filtry__legend-toggle--no-toggle .dashicons { display: none; }
.pbb-filtry__empty { font-size: .85rem; color: #666; padding: .25rem 0; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   STRONY AUTH – logowanie i rejestracja
   ═══════════════════════════════════════════════════════════════════ */

.pbb-auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 960px;
    margin: 3rem auto;
    align-items: start;
}
.pbb-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(34,48,68,.10);
    padding: 2.5rem;
}
.pbb-auth-card__header { text-align: center; margin-bottom: 1.75rem; }
.pbb-auth-card__icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.pbb-auth-card__title { font-size: 1.6rem; font-weight: 700; color: var(--pbb-primary); margin: 0 0 .4rem; }
.pbb-auth-card__subtitle { font-size: .9rem; color: var(--pbb-text-muted); margin: 0; }
.pbb-auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.pbb-auth-form__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.pbb-auth-form__forgot { font-size: .85rem; color: var(--pbb-primary); text-decoration: none; }
.pbb-auth-form__forgot:hover { text-decoration: underline; }
.pbb-auth-form__required-note { font-size: .78rem; color: var(--pbb-text-muted); margin: .25rem 0 0; text-align: right; }
.pbb-form__label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--pbb-text); }
.pbb-form__input {
    width: 100%; padding: .6em .85em;
    border: 2px solid var(--pbb-border);
    border-radius: var(--pbb-radius-sm);
    background: var(--pbb-surface);
    color: var(--pbb-text);
    font-size: 1rem;
    transition: border-color .2s;
}
.pbb-form__input:focus { outline: none; border-color: var(--pbb-primary); box-shadow: var(--pbb-focus); }
.pbb-form__input-wrap { position: relative; display: flex; align-items: center; }
.pbb-form__input-wrap .pbb-form__input { padding-right: 3rem; }
.pbb-form__toggle-pass {
    position: absolute; right: .75rem;
    background: none; border: none; cursor: pointer;
    color: var(--pbb-text-muted); padding: .25rem;
    display: flex; align-items: center; border-radius: 4px;
    transition: color .15s;
}
.pbb-form__toggle-pass:hover,
.pbb-form__toggle-pass:focus-visible { color: var(--pbb-primary); outline: 2px solid var(--pbb-primary); outline-offset: 2px; }
.pbb-form__checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: .9rem; line-height: 1.5; }
.pbb-form__checkbox-label input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; accent-color: var(--pbb-primary); cursor: pointer; }
.pbb-form__required { color: #c62828; }
.pbb-btn--full { width: 100%; justify-content: center; padding: .85rem 1.5rem; font-size: 1rem; margin-top: .25rem; }
.pbb-auth-card__footer { text-align: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #eee; font-size: .9rem; color: var(--pbb-text-muted); }
.pbb-auth-card__switch-link { color: var(--pbb-primary); font-weight: 600; text-decoration: none; margin-left: .25rem; }
.pbb-auth-card__switch-link:hover { text-decoration: underline; }
.pbb-auth-benefits { padding: 2rem 1.5rem; background: var(--pbb-accent-bg); border-radius: 16px; }
.pbb-auth-benefits__title { font-size: 1.2rem; font-weight: 700; color: var(--pbb-primary); margin: 0 0 1.25rem; }
.pbb-auth-benefits__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.pbb-auth-benefits__list li { display: flex; gap: .9rem; align-items: flex-start; }
.pbb-auth-benefits__icon { font-size: 1.6rem; flex-shrink: 0; margin-top: .1rem; }
.pbb-auth-benefits__list strong { display: block; font-size: .95rem; color: var(--pbb-text); margin-bottom: .2rem; }
.pbb-auth-benefits__list p { font-size: .85rem; color: var(--pbb-text-muted); margin: 0; line-height: 1.5; }
.pbb-alert--error { background: #ffebee; border-color: #c62828; color: #b71c1c; border-left: 4px solid #c62828; }

@media (max-width: 720px) {
    .pbb-auth-wrap { grid-template-columns: 1fr; gap: 1.5rem; margin: 1.5rem auto; }
    .pbb-auth-benefits { order: 2; }
    .pbb-auth-card { padding: 1.75rem 1.25rem; }
}
