/* Bowling Centrum – rezervace. Barvy jdou přepsat proměnnými na .bc-rez v CSS webu. */
.bc-rez {
	--bc-accent: #d6001c;
	--bc-accent-ink: #fff;
	--bc-ink: #1d1d1f;
	--bc-muted: #6b6b70;
	--bc-line: #dcdce0;
	--bc-bg: #fff;
	--bc-soft: #f4f4f6;
	--bc-free: #2e9d57;
	--bc-partial: #e8a317;
	--bc-busy: #c9302c;
	--bc-radius: 10px;
	color: var(--bc-ink);
	font: inherit;
	line-height: 1.5;
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}
.bc-rez *, .bc-rez *::before, .bc-rez *::after { box-sizing: border-box; }
.bc-card { background: var(--bc-bg); border: 1px solid var(--bc-line); border-radius: var(--bc-radius); padding: 24px; }
.bc-rez h2 { margin: 0 0 12px; }
.bc-rez h3 { font-size: 1.05em; margin: 18px 0 10px; }
.bc-rez h3 small { font-weight: normal; color: var(--bc-muted); }
.bc-rez h4 { font-size: 1em; margin: 16px 0 8px; }
.bc-intro { margin: 0 0 16px; }
.bc-hint { color: var(--bc-muted); font-size: .92em; margin: 8px 0; }
.bc-error { color: var(--bc-busy); font-weight: 600; }
.bc-ok { color: var(--bc-free); font-weight: 600; }
.bc-empty { background: var(--bc-soft); padding: 12px 14px; border-radius: 8px; }
.bc-loading { color: var(--bc-muted); }
.bc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* kroky */
.bc-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; flex-wrap: wrap; }
.bc-steps li { flex: 1 1 0; min-width: 110px; padding: 8px 10px; border-radius: 8px; background: var(--bc-soft); color: var(--bc-muted); font-size: .9em; }
.bc-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bc-line); color: var(--bc-ink); font-size: .85em; margin-right: 4px; }
.bc-steps li em { font-style: normal; }
.bc-steps li.is-active { background: var(--bc-accent); color: var(--bc-accent-ink); font-weight: 600; }
.bc-steps li.is-active span { background: var(--bc-accent-ink); color: var(--bc-accent); }
.bc-steps li.is-done span { background: var(--bc-free); color: #fff; }

.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.bc-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }

/* tlačítka */
.bc-btn { display: inline-block; background: var(--bc-accent); color: var(--bc-accent-ink) !important; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.bc-btn:hover { filter: brightness(1.08); }
.bc-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.bc-btn-ghost { background: transparent; color: var(--bc-ink) !important; border: 1px solid var(--bc-line); }
.bc-btn-big { width: 100%; padding: 16px; font-size: 1.1em; margin-top: 12px; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 76px; padding: 8px 12px; border: 1px solid var(--bc-line); background: var(--bc-bg); color: var(--bc-ink); border-radius: 8px; font: inherit; cursor: pointer; }
.bc-chip small { font-size: .8em; color: var(--bc-muted); }
.bc-chip:hover:not(:disabled) { border-color: var(--bc-accent); }
.bc-chip.is-selected { background: var(--bc-accent); border-color: var(--bc-accent); color: var(--bc-accent-ink); }
.bc-chip.is-selected small { color: var(--bc-accent-ink); }
.bc-chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.bc-slots .bc-chip:disabled { display: none; }

/* stepper */
.bc-stepper { display: inline-flex; align-items: center; gap: 6px; }
.bc-stepper button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--bc-line); background: var(--bc-bg); font-size: 1.3em; cursor: pointer; color: var(--bc-ink); }
.bc-stepper input { width: 70px; height: 40px; text-align: center; border: 1px solid var(--bc-line); border-radius: 8px; font: inherit; font-size: 1.1em; }
.bc-stepper span { color: var(--bc-muted); }
.bc-rez select { font: inherit; padding: 6px 8px; border: 1px solid var(--bc-line); border-radius: 6px; background: var(--bc-bg); }
.bc-check, .bc-radio { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.bc-check input, .bc-radio input { margin-top: 4px; }

/* kalendář */
.bc-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; text-transform: capitalize; }
.bc-cal-nav { width: 36px; height: 36px; border: 1px solid var(--bc-line); border-radius: 8px; background: var(--bc-bg); cursor: pointer; font-size: 1.2em; }
.bc-cal-nav:disabled { opacity: .3; cursor: default; }
.bc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bc-cal-wd { text-align: center; font-size: .8em; color: var(--bc-muted); padding: 4px 0; }
.bc-cal-day { position: relative; aspect-ratio: 1 / 1; min-height: 38px; border: 1px solid var(--bc-line); border-radius: 8px; background: var(--bc-bg); cursor: pointer; font: inherit; color: var(--bc-ink); padding: 0; }
.bc-cal-day:hover:not(:disabled) { border-color: var(--bc-accent); }
.bc-cal-day:disabled, .bc-cal-day.is-closed { background: var(--bc-soft); color: #b5b5ba; cursor: not-allowed; border-color: transparent; }
.bc-cal-day.is-selected { background: var(--bc-accent); color: var(--bc-accent-ink); border-color: var(--bc-accent); }

/* posezení */
.bc-options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bc-option { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 2px solid var(--bc-line); border-radius: var(--bc-radius); background: var(--bc-bg); cursor: pointer; font: inherit; color: var(--bc-ink); }
.bc-option img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.bc-option span { color: var(--bc-muted); font-size: .9em; }
.bc-option em { font-style: normal; font-weight: 600; margin-top: 4px; }
.bc-option.is-selected { border-color: var(--bc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-accent) 20%, transparent); }

/* formulář */
.bc-form, .bc-inquiry { display: grid; gap: 12px; max-width: 520px; }
.bc-form label, .bc-inquiry label { display: grid; gap: 4px; font-weight: 600; }
.bc-form label.bc-check, .bc-inquiry label.bc-check { display: flex; font-weight: normal; }
.bc-form input:not([type=checkbox]), .bc-form textarea, .bc-inquiry input:not([type=checkbox]), .bc-inquiry textarea { font: inherit; font-weight: normal; padding: 10px 12px; border: 1px solid var(--bc-line); border-radius: 8px; width: 100%; }
.bc-form input:focus, .bc-form textarea:focus { outline: 2px solid var(--bc-accent); outline-offset: 1px; }

.bc-contact { margin-top: 16px; padding: 16px; background: var(--bc-soft); border-radius: var(--bc-radius); }
.bc-contact summary { cursor: pointer; margin: 8px 0; font-weight: 600; }

.bc-summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; }
.bc-summary dt { color: var(--bc-muted); }
.bc-summary dd { margin: 0; font-weight: 600; }
.bc-done { text-align: center; }

/* salónek */
.bc-lounge .bc-cal-day.is-free { background: color-mix(in srgb, var(--bc-free) 14%, #fff); }
.bc-lounge .bc-cal-day.is-partial { background: color-mix(in srgb, var(--bc-partial) 22%, #fff); }
.bc-lounge .bc-cal-day.is-busy { background: color-mix(in srgb, var(--bc-busy) 22%, #fff); }
.bc-lounge .bc-cal-day.is-selected { outline: 3px solid var(--bc-ink); }
.bc-parts { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 2px; }
.bc-parts b { flex: 1; height: 4px; border-radius: 2px; }
.bc-parts b.is-free { background: var(--bc-free); }
.bc-parts b.is-busy { background: var(--bc-busy); }
.bc-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; font-size: .9em; }
.bc-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bc-legend .is-free::before { background: var(--bc-free); }
.bc-legend .is-partial::before { background: var(--bc-partial); }
.bc-legend .is-busy::before { background: var(--bc-busy); }

/* samostatná stránka (zrušení) */
body.bc-standalone { margin: 0; padding: 40px 16px; background: #f4f4f6; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body.bc-standalone .bc-card { max-width: 560px; }

@media (max-width: 720px) {
	.bc-card { padding: 16px; }
	.bc-grid { grid-template-columns: 1fr; gap: 8px; }
	.bc-steps li { min-width: 0; font-size: .8em; padding: 6px; }
	.bc-steps li:not(.is-active) { flex: 0 0 auto; }
	.bc-steps li:not(.is-active) em { display: none; }
	.bc-summary { grid-template-columns: 1fr; gap: 2px; }
	.bc-summary dd { margin-bottom: 8px; }
	.bc-nav .bc-btn { flex: 1; }
}

/* ---- Obsazenost drah [bc_obsazenost] ---- */
.bc-occ { --bc-occ-free: #eef7f1; --bc-occ-busy: #c9302c; --bc-occ-league: #2b59c3; }
.bc-occ-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.bc-occ-nav { width: 38px; height: 38px; border: 1px solid var(--bc-line); border-radius: 8px; background: var(--bc-bg); font-size: 1.3em; line-height: 1; cursor: pointer; color: var(--bc-ink); }
.bc-occ-nav:disabled { opacity: .35; cursor: default; }
.bc-occ-date { position: relative; display: inline-flex; align-items: center; min-width: 190px; height: 38px; padding: 0 14px; border: 1px solid var(--bc-line); border-radius: 8px; font-weight: 700; cursor: pointer; }
.bc-occ-date span::first-letter { text-transform: uppercase; }
.bc-occ-date input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.bc-occ-today { min-width: 0; padding: 8px 14px; }
.bc-occ-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bc-occ-grid { min-width: 640px; }
.bc-occ-row { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.bc-occ-name { flex: 0 0 80px; font-size: .88em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-occ-track { position: relative; flex: 1; height: 34px; border-radius: 6px; background-color: var(--bc-occ-free); background-image: linear-gradient(to right, rgba(0, 0, 0, .12) 1px, transparent 1px); }
.bc-occ-hours .bc-occ-track { height: 18px; background: none; }
.bc-occ-hours .bc-occ-track span { position: absolute; top: 0; transform: translateX(-50%); font-size: .75em; color: var(--bc-muted); }
.bc-occ-hours .bc-occ-track span:first-child { transform: none; }
.bc-occ-group { margin: 14px 0 6px; font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bc-muted); }
.bc-occ-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; background: var(--bc-occ-busy); overflow: hidden; }
.bc-occ-bar.is-league { background: var(--bc-occ-league); }
.bc-occ-bar span { display: block; padding: 0 8px; color: #fff; font-size: .74em; font-weight: 600; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-occ-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bc-ink); }
.bc-occ-legend .is-free::before { background: var(--bc-occ-free); border: 1px solid var(--bc-line); }
.bc-occ-legend .is-busy::before { background: var(--bc-occ-busy); }
.bc-occ-legend .is-league::before { background: var(--bc-occ-league); }
@media (max-width: 600px) {
	.bc-occ-name { flex-basis: 56px; }
	.bc-occ-date { flex: 1; min-width: 0; }
}
