/* FitStart — lesboeken popup (kalender) */
.booking-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.booking-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.booking-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}
.booking-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  max-height: min(92vh, 900px);
  background: #f5f5f5;
  color: #0e0e0e;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.booking-popup.is-open .booking-popup__dialog {
  transform: translateY(0) scale(1);
}
.booking-popup__head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  align-items: start;
  padding: 20px 52px 16px 24px;
  background: var(--dark, #141414);
  color: var(--white, #fff);
  position: relative;
}
.booking-popup__head-text h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.booking-popup__head-text p {
  font-size: 0.85rem;
  color: var(--text-muted, #a3a3a3);
  margin-top: 6px;
}
.booking-popup__legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}
.booking-popup__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bk-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bk-legend-dot--available { background: #22c55e; }
.bk-legend-dot--few { background: #eab308; }
.bk-legend-dot--full { background: #ef4444; }
.bk-legend-dot--booked { background: var(--orange, #f97316); }
.booking-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white, #fff);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.booking-popup__close:hover { background: rgba(255, 255, 255, 0.2); }
.booking-popup__body {
  flex: 1;
  overflow: auto;
  padding: 20px 24px 24px;
}

.bk-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
.bk-filter-bar {
  background: #fff;
  border: 1px solid #eee;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.bk-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a9a9a;
}
.bk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-chip {
  padding: 6px 12px;
  border: 1.5px solid #eee;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.18s;
}
.bk-chip:hover { border-color: var(--orange, #f97316); color: var(--orange, #f97316); }
.bk-chip.active { background: #0e0e0e; border-color: #0e0e0e; color: #fff; }

.bk-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bk-week-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.bk-week-title .logo__dot { color: var(--orange, #f97316); }
.bk-week-arrows { display: flex; gap: 6px; }
.bk-week-arrow {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1.5px solid #eee;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.18s;
}
.bk-week-arrow:hover { background: #0e0e0e; color: #fff; border-color: #0e0e0e; }

.bk-days-header,
.bk-time-grid {
  display: grid;
  grid-template-columns: 56px repeat(6, 1fr);
  gap: 1px;
  background: #eee;
}
.bk-day-col {
  background: #fff;
  padding: 10px 6px;
  text-align: center;
}
.bk-day-col--spacer { background: #f5f5f5; }
.bk-day-col.today { border-top: 2px solid var(--orange, #f97316); }
.bk-day-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #9a9a9a;
}
.bk-day-date {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}
.bk-day-col.today .bk-day-date { color: var(--orange, #f97316); }

.bk-time-label {
  background: #fff;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9a9a9a;
}
.bk-time-slot {
  background: #fff;
  min-height: 48px;
  position: relative;
}
.bk-class {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 2px;
  padding: 4px 6px;
  cursor: pointer;
  z-index: 2;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.bk-class:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 5;
}
.bk-class.available { background: #22c55e; }
.bk-class.few { background: #eab308; }
.bk-class.full { background: #ef4444; opacity: 0.65; cursor: not-allowed; }
.bk-class.booked { background: var(--orange, #f97316); }
.bk-class-name {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-class-trainer,
.bk-class-spots {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-sidebar { position: sticky; top: 0; }
.bk-card {
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 12px;
  overflow: hidden;
}
.bk-card-head {
  background: #0e0e0e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bk-card-head h3 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.bk-count {
  background: var(--orange, #f97316);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.bk-card-body { padding: 12px 16px; }
.bk-empty { text-align: center; font-size: 0.82rem; color: #9a9a9a; padding: 12px 0; }
.bk-booking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.bk-booking-item:last-child { border-bottom: none; }
.bk-booking-color { width: 4px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.bk-booking-info { flex: 1; min-width: 0; }
.bk-booking-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-booking-time { font-size: 0.72rem; color: #9a9a9a; }
.bk-booking-cancel {
  width: 28px;
  height: 28px;
  border: 1.5px solid #eee;
  background: none;
  cursor: pointer;
  color: #9a9a9a;
  flex-shrink: 0;
}
.bk-booking-cancel:hover { border-color: #ef4444; color: #ef4444; }
.bk-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #eee;
}
.bk-stat-mini { background: #fff; padding: 12px 14px; }
.bk-sm-val { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.bk-sm-val span { color: var(--orange, #f97316); }
.bk-sm-label { font-size: 0.7rem; color: #9a9a9a; margin-top: 2px; }
.bk-info p { font-size: 0.8rem; color: #555; line-height: 1.6; margin-bottom: 8px; }
.bk-info p:last-child { margin-bottom: 0; }

/* Les-detail modal (binnen popup) */
.bk-lesson-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.bk-lesson-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.bk-lesson-modal {
  background: #fff;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.2s;
}
.bk-lesson-overlay.is-open .bk-lesson-modal { transform: translateY(0); }
.bk-lesson-head {
  background: #0e0e0e;
  padding: 20px 48px 20px 20px;
  position: relative;
  color: #fff;
}
.bk-lesson-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.bk-lesson-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange, #f97316);
  margin-bottom: 4px;
}
.bk-lesson-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.bk-lesson-body { padding: 20px; }
.bk-lesson-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.bk-meta-key {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 2px;
}
.bk-meta-val { font-size: 0.95rem; font-weight: 700; }
.bk-capacity { margin-bottom: 16px; }
.bk-cap-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9a9a9a;
  margin-bottom: 6px;
}
.bk-cap-track { height: 6px; background: #eee; overflow: hidden; }
.bk-cap-fill { height: 100%; background: #22c55e; transition: width 0.35s; }
.bk-cap-fill.warn { background: #eab308; }
.bk-cap-fill.full { background: #ef4444; }
.bk-trainer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f5f5f5;
  margin-bottom: 14px;
}
.bk-trainer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e1e1e;
  color: var(--orange, #f97316);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-trainer-name { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.bk-trainer-role { font-size: 0.72rem; color: #9a9a9a; }
.bk-lesson-desc { font-size: 0.85rem; color: #555; line-height: 1.65; margin-bottom: 16px; }
.bk-lesson-btn {
  width: 100%;
  padding: 14px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: var(--orange, #f97316);
  color: #fff;
  transition: background 0.2s;
}
.bk-lesson-btn:hover { background: var(--orange-dark, #ea580c); }
.bk-lesson-btn.cancel { background: #0e0e0e; }
.bk-lesson-btn.cancel:hover { background: #333; }

.bk-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: #0e0e0e;
  color: #fff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  border-left: 3px solid var(--orange, #f97316);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
}
.bk-toast.is-show { transform: translateY(0); opacity: 1; }

@media (max-width: 1024px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-sidebar { position: static; }
}
@media (max-width: 768px) {
  .booking-popup { padding: 0; align-items: stretch; }
  .booking-popup__dialog {
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }
  .booking-popup__head { padding: 16px 48px 12px 16px; }
  .booking-popup__body { padding: 12px 12px 20px; }
  .bk-days-header,
  .bk-time-grid { grid-template-columns: 44px repeat(6, 1fr); }
  .bk-class-trainer,
  .bk-class-spots { display: none; }
}
