/* Turf booking pages. Built on the tokens and components in web/urbanx.css. */

.venue-card .activity-body p { margin: 4px 0 10px; }
.venue-card .sport-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.venue-price { font-size: 11px; color: var(--muted); }
.venue-price strong { color: var(--ink); font-size: 14px; }

.day-chips { margin-top: 12px; }
.pitch-card h3 { margin: 0 0 4px; }
.pitch-card .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.slot-grid { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; border: 0; padding: 0; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
  display: block; min-width: 58px; text-align: center; padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); font-size: 11px; font-weight: 800; cursor: pointer;
}
.slot input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.slot input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.slot input:disabled + span { color: var(--muted); background: var(--surface-2); text-decoration: line-through; cursor: not-allowed; opacity: .6; }
.slot-empty { font-size: 11px; color: var(--muted); margin: 16px 0; }

.pitch-options { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.pitch-options .btn { justify-content: center; }

.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 12px; }
.summary-row span:first-child { color: var(--muted); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 15px; font-weight: 800; }
.summary-row.total span:first-child { color: var(--ink); }
.summary-row.split span:last-child { font-weight: 800; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.stat { padding: 16px; }
.stat small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; margin-top: 8px; font-size: 22px; letter-spacing: -.8px; }
.stat p { margin: 6px 0 0; font-size: 10px; color: var(--muted); }
.stat.highlight { background: color-mix(in srgb, var(--brand) 20%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }

.table-card { padding: 16px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { text-align: left; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; }

.booking-list { display: grid; gap: 10px; margin-top: 12px; }
.booking-row { display: flex; align-items: center; gap: 12px; }
.booking-row .meet-text { flex: 1; min-width: 0; }
.booking-row .meet-text small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }

@media (max-width: 820px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pitch-options { grid-template-columns: 1fr 1fr; }
  .pitch-options .btn { grid-column: 1 / -1; }
  .pitch-card .between { align-items: flex-start; flex-direction: column; }
  .pitch-card .tags { justify-content: flex-start; }
}

/* Turfs on the radar */
.radar-marker.turf { width: 42px; height: 42px; border-radius: 12px; background: var(--deep); color: #fff; border: 2px solid var(--brand); box-shadow: 0 4px 12px #2637292b; font-size: 17px; }
.radar-marker.turf .marker-label { color: var(--ink); }
.legend-shape.turf { border-radius: 3px; background: var(--deep); border: 1px solid var(--brand); }
.link-button { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.nearest-turfs { display: grid; gap: 8px; margin-top: 18px; text-align: left; }
.nearest-turfs > strong { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); }
.nearest-turf { display: flex; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.nearest-turf:hover { border-color: var(--brand); }
.nearest-turf b { display: block; font-size: 11px; color: var(--ink); }
.nearest-turf small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
.turf-pin { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--deep); border: 2px solid var(--brand); font-size: 14px; }

/* Create meetup: where will you play? */
.where-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; max-width: 760px; margin-bottom: 18px; }
.where-option { display: grid; gap: 10px; align-content: start; }
.where-option h3, .where-option p { margin: 0; }
.where-option p { font-size: 11px; line-height: 1.6; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--red); font-size: 10px; font-weight: 700; }

@media (max-width: 820px) {
  .radar-marker.turf { width: 38px; height: 38px; font-size: 15px; }
  .where-choice { grid-template-columns: 1fr; }
}

/* Paid meetups: price + currency side by side on the create form; the checkout card */
.price-input { display: grid; grid-template-columns: 1fr 110px; gap: 6px; }
.checkout { max-width: 480px; }
