/* ClubSponsor24 — componentstijlen. Leunt op tokens.css (kleur, ruimte, radius, schaduw, fonts). */
.cs, .cs * { box-sizing: border-box; }
.cs { font-family: var(--font-sans); font-size: 17px; line-height: 26px; color: var(--ink); }
.cs :focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.cs-h { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.005em; }
.cs-muted { color: var(--ink-muted); }
.cs-small { font-size: 15px; line-height: 22px; }

/* Knoppen */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap-min); padding: 0 var(--space-5); border-radius: var(--radius-md); border: 2px solid transparent; font: 700 17px/1 var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.cs-btn--primary { background: var(--green); color: var(--on-green); }
.cs-btn--primary:hover { background: var(--green-strong); }
.cs-btn--secondary { background: var(--surface-raised); color: var(--green-strong); border-color: var(--green); }
.cs-btn--secondary:hover { background: var(--green-soft); }
.cs-btn--ghost { background: transparent; color: var(--ink); }
.cs-btn--ghost:hover { background: var(--surface-sunken); }
.cs-btn--l { min-height: var(--control-l); padding: 0 var(--space-6); font-size: 19px; }
.cs-btn--block { width: 100%; }
.cs-btn[disabled] { background: var(--taken-soft); color: var(--ink-muted); border-color: transparent; cursor: not-allowed; }
.cs-btn svg { width: 20px; height: 20px; flex: none; }

/* Chips (filters & snelle keuzes) */
.cs-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: 700 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.cs-chip:hover { border-color: var(--green); }
.cs-chip[aria-pressed="true"], .cs-chip--on { background: var(--green-soft); border-color: var(--green); color: var(--green-strong); }
.cs-chip--remove::after { content: "×"; font-size: 20px; line-height: 1; margin-left: 2px; }
.cs-chip img { width: 20px; height: 20px; }

/* Badges */
.cs-badge { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 28px; padding: 2px 10px; border-radius: var(--radius-sm); font: 700 15px/20px var(--font-sans); white-space: nowrap; }
.cs-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.cs-badge--plain::before { display: none; }
.cs-badge--free { background: var(--green-soft); color: var(--green-strong); }
.cs-badge--reserved { background: var(--amber-soft); color: var(--amber); }
.cs-badge--taken { background: var(--taken-soft); color: var(--taken); }
.cs-badge--girls { background: var(--berry-soft); color: var(--berry); }
.cs-badge--youth { background: var(--info-soft); color: var(--info); }
.cs-badge--gsport { background: var(--teal-soft); color: var(--teal); }
.cs-badge--senior { background: var(--earth-soft); color: var(--earth); }
.cs-badge--new { background: var(--spark-soft); color: var(--spark-strong); }
.cs-badge--free-of-charge { background: var(--spark-strong); color: var(--on-green); }

/* Prijslabel */
.cs-price { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-sans); }
.cs-price__from { font-size: 15px; color: var(--ink-muted); }
.cs-price__amount { font: 800 26px/1 var(--font-display); color: var(--ink); }
.cs-price__per { font-size: 15px; color: var(--ink-muted); }
.cs-price--request .cs-price__amount { font-size: 20px; }
.cs-price__kind { font-size: 15px; font-weight: 700; color: var(--green-strong); }

/* Invoer */
.cs-field { display: flex; flex-direction: column; gap: 6px; }
.cs-field label { font: 700 15px/20px var(--font-sans); }
.cs-input, .cs-select { min-height: var(--tap-min); width: 100%; padding: 0 var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); font: 400 17px/1 var(--font-sans); color: var(--ink); }
.cs-help { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* Zoekbalk */
.cs-search { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: stretch; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: var(--space-2); gap: 0; }
.cs-search__part { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px var(--space-4); min-height: 64px; border-right: 1px solid var(--line); min-width: 0; }
.cs-search__part:nth-last-child(2) { border-right: 0; }
.cs-search__label { font: 700 14px/18px var(--font-sans); color: var(--ink-muted); }
.cs-search__value { font: 400 17px/24px var(--font-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-search__value--placeholder { color: var(--ink-muted); }
.cs-search .cs-btn { min-height: 64px; border-radius: var(--radius-md); }
@media (max-width: 720px) {
  .cs-search { grid-template-columns: 1fr; padding: var(--space-3); }
  .cs-search__part { border-right: 0; border-bottom: 1px solid var(--line); min-height: 56px; }
  .cs-search .cs-btn { margin-top: var(--space-3); }
}

/* Resultaatkaart */
.cs-card { display: grid; grid-template-columns: 168px 1fr; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; color: var(--ink); text-decoration: none; }
.cs-card:hover { box-shadow: var(--shadow-lift); }
.cs-card__media { position: relative; background: var(--surface-sunken); min-height: 168px; }
.cs-card__media img.photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-card__logo { position: absolute; left: var(--space-3); bottom: var(--space-3); width: 44px; height: 44px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--surface-raised); box-shadow: var(--shadow-card); display: grid; place-items: center; font: 800 15px/1 var(--font-display); color: var(--green-strong); }
.cs-card__body { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.cs-card__club { display: flex; align-items: center; gap: var(--space-2); font: 700 15px/20px var(--font-sans); color: var(--ink-muted); }
.cs-card__club img { width: 20px; height: 20px; }
.cs-card__title { font: 700 22px/26px var(--font-display); margin: 0; }
.cs-card__meta { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.cs-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-top: auto; flex-wrap: wrap; }
.cs-card__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cs-avail { font-size: 15px; font-weight: 700; color: var(--green-strong); }
.cs-avail__bar { display: block; width: 96px; height: 6px; border-radius: 3px; background: var(--taken-soft); margin-top: 4px; overflow: hidden; }
.cs-avail__bar i { display: block; height: 100%; background: var(--green); }
@media (max-width: 560px) { .cs-card { grid-template-columns: 1fr; } .cs-card__media { min-height: 140px; } }

/* Kaartpin + cluster */
.cs-pin { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 36px; padding: 0 10px; border-radius: var(--radius-md); background: var(--surface-raised); border: 2px solid var(--green); color: var(--ink); font: 700 15px/1 var(--font-sans); box-shadow: var(--shadow-card); }
.cs-pin::after { content: ""; position: absolute; bottom: -8px; left: 50%; width: 12px; height: 12px; background: inherit; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateX(-50%) rotate(45deg); }
.cs-pin--active { background: var(--green); color: var(--on-green); }
.cs-cluster { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--night); color: var(--on-green); font: 800 20px/1 var(--font-display); box-shadow: 0 0 0 6px rgba(47,180,99,0.45); }

/* Filterpaneel */
.cs-filters { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.cs-filters__group { display: flex; flex-direction: column; gap: var(--space-3); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.cs-filters__group:last-child { border-bottom: 0; padding-bottom: 0; }
.cs-filters__title { font: 700 17px/22px var(--font-sans); display: flex; justify-content: space-between; }
.cs-check { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; font-size: 17px; }
.cs-check i { width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); flex: none; display: grid; place-items: center; background: var(--surface-raised); }
.cs-check--on i { background: var(--green); border-color: var(--green); }
.cs-check--on i::after { content: ""; width: 10px; height: 6px; border-left: 3px solid var(--on-green); border-bottom: 3px solid var(--on-green); transform: rotate(-45deg) translate(1px,-1px); }
.cs-check .n { margin-left: auto; color: var(--ink-muted); font-size: 15px; }
.cs-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.cs-seg span { min-height: 40px; display: grid; place-items: center; border-radius: var(--radius-pill); font: 700 15px/1 var(--font-sans); color: var(--ink-muted); }
.cs-seg span.on { background: var(--surface-raised); color: var(--green-strong); box-shadow: var(--shadow-card); }
.cs-range { position: relative; height: 28px; }
.cs-range::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--taken-soft); }
.cs-range b { position: absolute; top: 12px; height: 4px; background: var(--green); border-radius: 2px; }
.cs-range i { position: absolute; top: 2px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--surface-raised); border: 3px solid var(--green); box-shadow: var(--shadow-card); }
.cs-sheet { background: var(--surface-raised); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lift); padding: var(--space-3) var(--space-4) var(--space-4); }
.cs-sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto var(--space-3); }

/* Stappenwizard */
.cs-steps { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0; counter-reset: s; }
.cs-steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font: 700 15px/20px var(--font-sans); color: var(--ink-muted); counter-increment: s; min-width: 0; }
.cs-steps li::before { content: ""; height: 6px; border-radius: 3px; background: var(--taken-soft); }
.cs-steps li.done::before { background: var(--green); }
.cs-steps li.now { color: var(--ink); }
.cs-steps li.now::before { background: linear-gradient(90deg, var(--green) 50%, var(--taken-soft) 50%); }
.cs-steps li span { overflow-wrap: anywhere; }

/* Chat-thread */
.cs-thread { display: flex; flex-direction: column; gap: var(--space-3); }
.cs-msg { max-width: 78%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); font-size: 17px; line-height: 25px; }
.cs-msg--them { align-self: flex-start; background: var(--surface-sunken); border-bottom-left-radius: var(--radius-sm); }
.cs-msg--me { align-self: flex-end; background: var(--green); color: var(--on-green); border-bottom-right-radius: var(--radius-sm); }
.cs-msg__meta { font-size: 15px; line-height: 20px; color: var(--ink-muted); }
.cs-msg__meta--me { align-self: flex-end; }
.cs-composer { display: flex; gap: var(--space-2); }
.cs-composer .cs-input { flex: 1; }

/* Lege staat */
.cs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-7) var(--space-5); border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.cs-empty__art { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; }
.cs-empty__art img { width: 36px; height: 36px; }

/* Logo-preview mockups */
.cs-mock { display: grid; place-items: center; background: var(--surface-sunken); border-radius: var(--radius-lg); position: relative; }
.cs-mock__logo { position: absolute; display: grid; place-items: center; overflow: hidden; }
.cs-mock__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cs-mock__drop { border: 2px dashed var(--line-strong); }
.cs-mock-tabs { display: flex; gap: var(--space-2); }
