/* ============================================================
   Golden Key Africa — archiwum ofert
   Referencja: plan/ux-design-system.md §5.3, §6.2
   Kolekcje kuratorskie zamiast wyszukiwarki fasetowej.
   ============================================================ */

.arch__head { padding-block: var(--s-6) var(--s-5); }
.arch__head h1 { max-width: 26ch; }
.arch__count { color: var(--muted); font-variant-numeric: tabular-nums; margin-top: var(--s-3); }

/* --- Kolekcje: zakładki na desktopie, scroller chipów na mobile --- */
.collections { border-bottom: 1px solid var(--border); display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: thin; }
.collections a {
  flex: 0 0 auto; padding: var(--s-4) var(--s-5); text-decoration: none; color: var(--ink);
  font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 48px;
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.collections a:hover { border-bottom-color: var(--border-strong); }
.collections a[aria-current="page"] { border-bottom-color: var(--brand); font-weight: 600; }
.collections .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }

.arch__intro { padding-block: var(--s-5); max-width: 66ch; color: var(--muted); }

/* --- Wiersz filtrów: maks. 5 kontrolek ---------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; padding-block: var(--s-4); }
.filters__group { display: grid; gap: var(--s-2); }
.filters__group > span { font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filters select {
  min-height: 48px; padding: 0 var(--s-4); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); background: var(--bg);
}
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.chip {
  min-height: 48px; padding: 0 var(--s-4); display: inline-flex; align-items: center; gap: var(--s-2);
  border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg);
  cursor: pointer; font-size: var(--fs-sm); font-weight: 500; color: var(--ink);
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand); font-weight: 600; }
.filters__sort { margin-inline-start: auto; }

/* --- Aktywne filtry ---------------------------------------------- */
.active { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; padding-block: var(--s-4); border-top: 1px solid var(--border); }
.active__chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px;
  padding: 0 var(--s-2) 0 var(--s-3); background: var(--brand-tint);
  border: 1px solid var(--brand); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500;
}
.active__chip button {
  width: 26px; height: 26px; display: grid; place-content: center;
  background: none; border: 0; cursor: pointer; color: var(--brand); border-radius: var(--r-sm);
}
.active__chip button:hover { background: var(--bg); }
.active__clear { background: none; border: 0; cursor: pointer; color: var(--brand); font-weight: 600; text-decoration: underline; min-height: 36px; }
.active__count { margin-inline-start: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }

/* --- Przycisk filtrów na mobile ----------------------------------- */
.filters__mobile { display: none; }
@media (max-width: 767px) {
  .filters { display: none; }
  .filters__mobile { display: flex; gap: var(--s-3); padding-block: var(--s-4); }
  .filters__mobile .btn { flex: 1 1 auto; }
}
.sheet { border: 0; padding: 0; background: var(--bg); width: 100%; max-width: none; max-height: 85vh; margin: 0; position: fixed; inset: auto 0 0 0; box-shadow: var(--shadow-sheet); }
.sheet::backdrop { background: oklch(0.22 0.014 210 / .45); }
.sheet__body { padding: var(--s-5) var(--gutter); overflow-y: auto; max-height: calc(85vh - 88px); }
.sheet__grab { width: 44px; height: 4px; background: var(--border-strong); border-radius: 999px; margin: var(--s-3) auto; }
.sheet__group { padding-block: var(--s-4); border-bottom: 1px solid var(--border); }
.sheet__group > span { display: block; margin-bottom: var(--s-3); font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sheet__foot {
  position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--border);
}

/* --- Stan pusty: nigdy „brak wyników” ----------------------------- */
.empty { padding: var(--s-7) 0; }
.empty h2 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.empty p { color: var(--muted); max-width: 60ch; }
.empty__form { display: flex; gap: var(--s-3); margin-top: var(--s-5); flex-wrap: wrap; }
.empty__form input { min-height: 48px; padding: 0 var(--s-4); border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg); flex: 1 1 260px; }

.arch__more { display: flex; justify-content: center; padding-block: var(--s-7); }
