/* Booking flow — layered on ../styles.css + ../camps/camps.css */

.book-step { margin-bottom: var(--spacing-xl); }
.book-step > .btn-link { margin-bottom: 0.75rem; display: inline-block; }

/* Landing page groups: Clinics + Lessons, each a titled section of cards. */
.book-group { margin-bottom: 2rem; }
.book-group-title {
  font-size: 1.3rem; color: var(--color-navy, #14213d); margin: 0 0 0.85rem;
  padding-bottom: 0.35rem; border-bottom: 2px solid var(--color-accent, #0a5c8c);
}

/* Offering cards */
#offerings-list, #lessons-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.book-card {
  background: #fff;
  border: 1px solid var(--color-border, #e3e8ec);
  border-radius: var(--border-radius-lg, 12px);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}
.book-card h3 { margin: 0 0 0.35rem; color: var(--color-navy); }
.book-card p { margin: 0 0 0.5rem; color: var(--color-text); font-size: 0.95rem; }
.book-price { font-weight: 700; color: var(--color-navy); }
.book-card .btn { align-self: flex-start; }

/* Age-group badge (cards + detail page) */
.age-badge {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-background-alt, #eef3f6);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin: 0 0 0.5rem !important;
}
.event-detail .age-badge { font-size: 0.9rem !important; margin-bottom: 0.75rem !important; }

/* Age filter above the offering cards */
.offerings-filter { margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.offerings-filter label { font-weight: 600; color: var(--color-navy); }
.offerings-filter input { width: 8rem; }

/* Event detail (deep-link) page */
.event-detail { max-width: 760px; }
.event-detail .event-price {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.event-detail .event-lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0 0 1.1rem;
}
.event-detail .event-details {
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.event-detail .event-details p { margin: 0 0 0.9rem; }
.event-detail h3 {
  color: var(--color-navy);
  border-top: 1px solid var(--color-border, #e3e8ec);
  padding-top: 1.1rem;
  margin-top: 0.5rem;
}

/* Session (occurrence) rows */
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border, #e3e8ec);
  border-radius: var(--border-radius, 8px);
  background: #fff;
  margin-bottom: 0.6rem;
}
.session-row.sold { opacity: 0.6; }
.session-when { display: block; font-weight: 700; color: var(--color-navy); }
.session-meta { display: block; font-size: 0.85rem; color: var(--color-text-light, #667); margin-top: 0.15rem; }
.session-sold { font-weight: 700; color: #b3261e; }
.session-coaches { display: block; font-size: 0.85rem; color: var(--color-text); margin-top: 0.15rem; }
/* Multi-day clinic: the list of meeting days under the "N sessions" heading. */
.session-days { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.session-days li { font-size: 0.9rem; color: var(--color-text); margin-bottom: 0.15rem; }
.summary-schedule { margin: 0.35rem 0; }
.summary-schedule .session-when { font-weight: 700; }
.summary-schedule .session-days li { color: var(--color-text); }

/* Booking step */
.book-summary {
  background: var(--color-background-alt, #f4f7f9);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--border-radius, 8px);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.participant-row { align-items: end; gap: 0.75rem; margin-bottom: 0.5rem; }
.participant-row .p-remove { flex: 0 0 auto; margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--color-text-light, #667); }
.book-total { font-weight: 700; font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.book-policy { font-size: 0.82rem; color: #667; margin: 0 0 0.75rem; line-height: 1.4; }
.book-policy a { color: inherit; text-decoration: underline; }
#add-participant { margin: 0.25rem 0 1.25rem; }

/* Lesson time-slot buttons */
.lesson-times { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.75rem; }
.lesson-times .btn { padding: 0.4rem 0.7rem; }
/* One block per available coach, divided horizontally. */
.lesson-coach { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--color-border, #e3e8ec); }
.lesson-coach:first-child { padding-top: 0.25rem; margin-top: 0.25rem; border-top: none; }
.lesson-coach-name { margin: 0; font-size: 1.05rem; color: var(--color-navy, #14213d); }

/* On-demand rental day grid */
.rent-entry { margin: 0.25rem 0 1.25rem; }
/* Centered descriptive text under a section heading (book + rentals). */
.rent-intro, .book-intro {
  max-width: 62ch; margin: -0.25rem auto 1.4rem; text-align: center;
  color: var(--color-text-light, #556); line-height: 1.55;
}
.rent-controls { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.rent-controls label { font-weight: 700; color: var(--color-navy); }
.rent-controls input { padding: 0.5rem 0.6rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.rg-scroll { overflow-x: auto; border: 1px solid var(--color-border, #e3e8ec); border-radius: var(--border-radius, 8px); background: #fff; line-height: 1; }
.rg-row { display: flex; }
.rg-unit {
  position: sticky; left: 0; z-index: 1; background: #fff;
  flex: 0 0 210px; min-height: 32px; padding: 0.28rem 0.6rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
  font-weight: 700; font-size: 0.82rem; color: var(--color-navy); line-height: 1.2;
  border-right: 2px solid var(--color-border, #e3e8ec); border-bottom: 1px solid #eef1f4;
}
/* Show the full unit name (wraps) + its price — no truncation. */
.rg-name { white-space: normal; overflow-wrap: anywhere; }
.rg-rate { font-weight: 700; font-size: 0.72rem; color: var(--color-accent, #e8641c); white-space: nowrap; }
.rg-cell { flex: 0 0 52px; box-sizing: border-box; min-height: 32px; align-self: stretch; border-right: 1px solid #eef1f4; border-bottom: 1px solid #eef1f4; }
.rg-head .rg-unit, .rg-head .rg-cell { height: 26px; }
.rg-head .rg-unit { border-bottom: 1px solid var(--color-border, #e3e8ec); }
.rg-head .rg-cell { border: none; }
.rg-time { font-size: 0.72rem; color: var(--color-text-light, #667); white-space: nowrap; display: flex; align-items: center; padding-left: 3px; }
.rg-open { background: #e2eefb; cursor: pointer; }
.rg-open:hover, .rg-open:focus { background: #bcd8f4; outline: none; }
.rg-busy { background: repeating-linear-gradient(45deg, #dfe4ea, #dfe4ea 5px, #d2d8e0 5px, #d2d8e0 10px); }
.rg-past { background: #f2f3f5; }
.rg-hint { font-size: 0.85rem; color: var(--color-text-light, #667); margin: 0.5rem 0 0; }

/* ---- Facility space diagram + inclusions (rentals page) ---- */
.space-config { margin: 0 0 1.5rem; }
.space-config h3 { margin: 0 0 0.5rem; color: var(--color-navy); }
.space-figure { border: 1px solid var(--color-border, #e3e8ec); border-radius: var(--border-radius, 8px); background: #fff; padding: 0.9rem; }
.space-figure svg { display: block; width: 100%; height: auto; }
.space-incl { margin: 0.85rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; line-height: 1.55; color: var(--color-navy); }
.space-incl li { margin: 0.2rem 0; }
.space-note { font-size: 0.85rem; color: var(--color-text-light, #667); margin: 0.5rem 0 0; }

/* Link-styled button (opens the waiver modal without a full inline dump). */
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--color-accent, #e8641c); font-weight: 700; text-decoration: underline; cursor: pointer; }
.link-btn:hover, .link-btn:focus-visible { color: var(--color-navy); }
.waiver-lead { margin: 0.2rem 0 0.9rem; font-size: 0.95rem; }

/* Waiver modal (rental checkout) */
.waiver-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.waiver-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 35, 0.55); }
.waiver-modal-panel { position: relative; z-index: 1; background: #fff; border-radius: 12px; max-width: 640px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.waiver-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #e0e3e8; }
.waiver-modal-head h3 { margin: 0; color: var(--color-navy); font-size: 1.1rem; }
.waiver-modal-x { background: none; border: none; font-size: 1.6rem; line-height: 1; color: #667; cursor: pointer; padding: 0 0.25rem; }
.waiver-modal-body { padding: 1.1rem 1.25rem; overflow-y: auto; font-size: 0.92rem; line-height: 1.6; color: #222; }
.waiver-modal-foot { padding: 0.9rem 1.25rem; border-top: 1px solid #e0e3e8; text-align: right; }

.rent-panel {
  border: 1px solid var(--color-border, #e3e8ec); border-radius: var(--border-radius, 8px);
  padding: 1rem 1.1rem; margin-top: 1.1rem; background: var(--color-background-alt, #f4f7f9);
}
.rent-panel h3 { margin: 0 0 0.3rem; color: var(--color-navy); }
.rent-panel h4 { margin: 0.6rem 0 0.5rem; color: var(--color-navy); }

/* Saved-athlete picker */
#athlete-picker { margin-bottom: 0.75rem; }
.athlete-row {
  border: 1px solid #e0e3e8;
  border-radius: var(--border-radius, 8px);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.athlete-row.ineligible { opacity: 0.65; }
.athlete-row .check-label { font-weight: 600; }
.ath-name { font-weight: 700; color: var(--color-navy); }
.ath-meta { font-size: 0.85rem; color: var(--color-text-light, #667); font-weight: 400; }
.ath-block { font-size: 0.85rem; color: #b3261e; font-weight: 600; }
.ath-questions {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.athlete-form {
  border: 1px solid #e0e3e8;
  border-radius: var(--border-radius, 8px);
  padding: 0.9rem 1rem;
  margin: 0.5rem 0 1rem;
  background: var(--color-background-alt, #f4f7f9);
}
.athlete-form h4 { margin: 0 0 0.6rem; color: var(--color-navy); }

/* Custom signup questions + waiver */
.participant-row {
  border: 1px solid #e0e3e8;
  border-radius: var(--border-radius, 8px);
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}
.p-questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.req { color: #b3261e; }
.field-check { display: flex; align-items: flex-start; }
.check-label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 600; }
.check-label input { width: auto; margin: 0; }
#waiver-block { margin: 0.5rem 0 1.25rem; }
.waiver-body {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e0e3e8;
  border-radius: var(--border-radius, 8px);
  padding: 0.9rem 1.1rem;
  background: var(--color-background-alt, #f4f7f9);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

/* Attendee name row: keep First / Last / Remove inline (Remove no longer wraps
   under the first-name field). */
.p-name-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.p-name-row .field { flex: 1 1 140px; margin-bottom: 0; }
.p-name-row .p-remove {
  flex: 0 0 auto;
  white-space: nowrap;
  margin: 0;
  padding: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #b3261e;
}
.single-participant .p-remove { display: none; }
