/* City Sightseeing Warsaw Global — komponenty w stylu city-sightseeing.com. Wymaga tokens.css. */

.csw-btn, .csw-bookbar, .csw-header, .csw-trust, .csw-facts, .csw-stopcard, .csw-promo, .csw-pricetag {
  font-family: var(--font-body); box-sizing: border-box;
}
.csw-ico { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* ---------- Button ---------- */
.csw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-target); padding: 0 var(--space-5);
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.csw-btn .csw-ico { width: 20px; height: 20px; }
.csw-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.csw-btn--book { background: var(--red); color: var(--on-red); }
.csw-btn--book:hover { background: var(--red-strong); }
.csw-btn--outline { background: var(--surface); color: var(--red); border-color: var(--red); }
.csw-btn--outline:hover { background: var(--red); color: var(--on-red); }
.csw-btn--info { background: var(--orange); color: var(--ink); font-size: 14px; }
.csw-btn--info:hover { background: var(--star); }
.csw-btn--lg { min-height: 56px; padding: 0 var(--space-8); font-size: 20px; }

/* ---------- BookBar ---------- */
.csw-bookbar {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  width: 100%; min-height: 64px; padding: var(--space-3) var(--space-5);
  background: var(--red); color: var(--on-red); border: 0; text-decoration: none; cursor: pointer;
  font-size: 25.6px; font-weight: 700; line-height: 1.1;
}
.csw-bookbar .csw-ico { width: 28px; height: 28px; }
.csw-bookbar:hover { background: var(--red-strong); }
.csw-bookbar:focus-visible { outline: 3px solid var(--on-red); outline-offset: -6px; }
.csw-bookbar--fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }

/* ---------- SiteHeader ---------- */
.csw-header { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; padding: 0 var(--space-4); background: var(--red); color: var(--on-red); box-shadow: var(--shadow-lift); }
.csw-header__logo { display: block; height: 32px; width: auto; }
.csw-header__nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.csw-header__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  min-width: var(--tap-target); height: var(--tap-target); padding: 0 var(--space-2);
  background: transparent; border: 0; border-radius: var(--radius-pill); color: inherit;
  font: 500 14px/1 var(--font-body); cursor: pointer;
}
.csw-header__btn:hover { background: var(--red-strong); }
.csw-header__btn:focus-visible { outline: 3px solid var(--on-red); outline-offset: -3px; }
.csw-header__sep { width: 1px; height: 24px; background: var(--on-red); opacity: .35; }

/* ---------- TrustBar ---------- */
.csw-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-6); padding: var(--space-2) var(--space-4); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 20px; }
.csw-trust__item { display: inline-flex; align-items: center; gap: var(--space-2); }
.csw-trust__item .csw-ico { width: 20px; height: 20px; color: var(--red); }
.csw-stars { display: inline-flex; color: var(--star); }
.csw-stars .csw-ico { width: 20px; height: 20px; color: inherit; }
.csw-stars .is-empty { color: var(--grey); }
.csw-trust--on-red { background: var(--red); color: var(--on-red); }
.csw-trust--on-red .csw-trust__item .csw-ico { color: var(--on-red); }

/* ---------- KeyFacts ---------- */
.csw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.csw-fact { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-4) var(--space-3); border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--surface); text-align: center; color: var(--ink); }
.csw-fact .csw-ico { width: 32px; height: 32px; color: var(--red); }
.csw-fact__value { font-family: var(--font-heading); font-size: 22px; line-height: 26px; font-weight: 900; }
.csw-fact__label { font-size: 14px; line-height: 18px; color: var(--ink-muted); }

/* ---------- StopCard ---------- */
.csw-stopcard { display: grid; width: 240px; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); overflow: hidden; }
.csw-stopcard__media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--surface-alt); border-radius: var(--radius-md) var(--radius-md) 0 0; display: grid; place-items: center; color: var(--grey); }
.csw-stopcard__media img { width: 100%; height: 100%; object-fit: cover; }
.csw-stopcard__num { position: absolute; left: var(--space-3); bottom: calc(-1 * var(--space-4)); display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-round); background: var(--red); color: var(--on-red); font: 900 16px/1 var(--font-heading); border: 3px solid var(--surface); }
.csw-stopcard--blue .csw-stopcard__num { background: var(--route-blue); color: var(--on-route-blue); }
.csw-stopcard__body { display: grid; gap: var(--space-1); padding: var(--space-6) var(--space-4) var(--space-4); }
.csw-stopcard__name { margin: 0; font: 800 18px/24px var(--font-heading); }
.csw-stopcard__route { font-size: 14px; font-weight: 700; color: var(--red); }
.csw-stopcard--blue .csw-stopcard__route { color: var(--route-blue); }

/* ---------- PromoBanner ---------- */
.csw-promo { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 40px; padding: var(--space-2) var(--space-4); background: var(--purple); color: var(--on-purple); font-size: 14px; line-height: 20px; text-align: center; }
.csw-promo strong { font-weight: 700; }
.csw-promo a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.csw-promo a:focus-visible { outline: 2px solid var(--on-purple); outline-offset: 2px; }
.csw-promo .csw-ico { width: 20px; height: 20px; }

/* ---------- PriceTag ---------- */
.csw-pricetag { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); color: var(--ink); }
.csw-pricetag__from { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.csw-pricetag__price { margin: 0; font: 900 32px/36px var(--font-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .csw-btn { transition: none; } }
