/* ==========================================================================
   De Pilsgrims — geplande wandelingen: ticket (richting A)
   Vereist tokens.css + pilsgrims.css. Componenten:
     .pg-ticket           ticket met groene datumstrook, perforatie en body
     .pg-attend-empty     lege staat "Nog niemand loopt mee"
     .pg-planned-ticket   detailpagina: ticket over de onderrand van de hero
     .pg-planned-body     detailpagina: tekstkolom onder het ticket
   ========================================================================== */

/* ---------- Ticket ---------- */
.pg-ticket {
  --stub-w: 220px;
  position: relative; display: grid; grid-template-columns: var(--stub-w) minmax(0, 1fr);
  border-radius: 28px; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
/* inkepingen op de perforatielijn */
.pg-ticket::before,
.pg-ticket::after {
  content: ""; position: absolute; z-index: 2; left: calc(var(--stub-w) - 14px);
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
}
.pg-ticket::before { top: -14px; }
.pg-ticket::after { bottom: -14px; }

.pg-ticket__stub {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 28px 24px; background: var(--c-bosgroen); color: var(--c-schuim);
  border-right: 2px dashed rgba(255, 249, 238, .35);
}
.pg-ticket__wd { font: 800 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.pg-ticket__day { font: 700 92px/.95 var(--font-display); letter-spacing: -.04em; }
.pg-ticket__mo { font: 600 22px/1.1 var(--font-display); }
.pg-ticket__time { margin-top: 10px; font: 700 14px/1 var(--font-body); opacity: .9; font-variant-numeric: tabular-nums; }

.pg-ticket__body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 22px 40px; padding: 30px 36px;
}
.pg-ticket__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pg-ticket__title a { color: var(--text); text-decoration: none; }
.pg-ticket__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.pg-ticket__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
.pg-ticket__meta span { display: inline-flex; gap: 8px; align-items: center; }
.pg-ticket__meta svg { width: 18px; height: 18px; color: var(--c-amber-deep); }
.pg-ticket__cta { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 220px; }
.pg-ticket__more { font-size: 14px; font-weight: 800; text-align: center; }
.pg-ticket .pg-dl { font-size: 16px; }

/* ---------- Lege staat deelnemers ---------- */
.pg-attend-empty { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text-muted); }
.pg-attend-empty b { color: var(--text); }
.pg-attend-empty__dot {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 2px dashed rgba(42, 28, 18, .3); display: grid; place-items: center;
  font: 700 18px/1 var(--font-body); color: var(--text-muted);
}
[data-theme="dark"] .pg-attend-empty__dot { border-color: rgba(244, 232, 208, .35); }

/* ---------- Detailpagina ---------- */
/* ticket schuift over de onderrand van de hero, net als de statistiekenbalk bij gelopen wandelingen */
.pg-planned-ticket { position: relative; z-index: 3; margin-top: -64px; }
/* boven de foto: geen doorzichtig glas (contrast) en geen inkeping die tegen de foto aan valt */
.pg-planned-ticket .pg-ticket { background: color-mix(in srgb, var(--surface) 96%, transparent); }
.pg-planned-ticket .pg-ticket::before { display: none; }
.pg-planned-body { padding-block: 80px 112px; }
.pg-planned-body .pg-prose { max-width: 62ch; }
.pg-planned-body .pg-prose > p:first-child { font-size: 22px; line-height: 1.5; font-weight: 600; }
.pg-planned-body .pg-prose p { font-size: 18px; line-height: 1.7; }
.pg-planned-body__back { display: inline-block; margin-top: 12px; font-weight: 800; }

/* ---------- Mobiel ---------- */
@media (max-width: 760px) {
  .pg-ticket { grid-template-columns: minmax(0, 1fr); }
  .pg-ticket::before, .pg-ticket::after { display: none; }
  .pg-ticket__stub {
    flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 10px;
    padding: 18px 22px; border-right: 0; border-bottom: 2px dashed rgba(255, 249, 238, .35);
  }
  .pg-ticket__day { font-size: 44px; }
  .pg-ticket__mo { font-size: 20px; }
  .pg-ticket__time { margin: 0 0 0 auto; }
  .pg-ticket__body { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .pg-ticket__cta { min-width: 0; }
  .pg-planned-ticket { margin-top: -48px; }
  .pg-planned-body { padding-block: 56px 88px; }
  .pg-planned-body .pg-prose > p:first-child { font-size: 19px; }
  .pg-planned-body .pg-prose p { font-size: 17px; }
}
