/* Corners follow Rozšírené › Rohy (--mf-radius); the form's inner parts
   round a little less than the box and square with Ostré */
.booking { --mf-inner-radius: calc(var(--mf-radius, 16px) * .6); }
.booking input, .booking select, .booking textarea, .booking__notice { border-radius: var(--mf-inner-radius); }
/* Booking form: package cards, and with the calendar (Profi and up) the
   form at two thirds beside a card with free days and times */
.booking__fields { display: grid; gap: 1rem; min-width: 0; }
.booking__packages { min-width: 0; margin: 0; padding: 0; border: 0; }
.booking__packages legend { margin: 0 0 .6rem; padding: 0; font-weight: 600; font-size: .92rem; }
.booking__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.booking label.bpkg { display: block; position: relative; cursor: pointer; font-weight: 400; }
.bpkg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bpkg__card { display: flex; flex-direction: column; gap: .3rem; height: 100%; box-sizing: border-box; padding: .8rem .9rem; border: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 14%, transparent); border-radius: calc(var(--mf-radius, 17px) * .7); overflow: hidden; background: var(--mf-bg, #f7f3ec); transition: border-color .15s, box-shadow .15s, transform .15s; }
.bpkg:hover .bpkg__card { border-color: color-mix(in srgb, var(--mf-accent, #a4522b) 60%, transparent); }
.bpkg input:focus-visible + .bpkg__card { outline: 2px solid var(--mf-accent, #a4522b); outline-offset: 2px; }
.bpkg input:checked + .bpkg__card { border-color: var(--mf-accent, #a4522b); box-shadow: 0 0 0 1px var(--mf-accent, #a4522b), 0 14px 30px -22px var(--mf-accent, #a4522b); background: color-mix(in srgb, var(--mf-accent, #a4522b) 7%, var(--mf-surface, #fffdf9)); }
.bpkg__photo { display: block; max-width: none; width: calc(100% + 1.8rem); margin: -.8rem -.9rem .3rem; aspect-ratio: 16 / 9; object-fit: cover; }
.bpkg__name { font-weight: 600; line-height: 1.25; }
.bpkg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; color: var(--mf-muted, #6e665c); font-size: .88rem; }
.bpkg__price { color: var(--mf-accent, #a4522b); font-weight: 600; }
.bpkg__time, .price__time { display: inline-flex; align-items: center; gap: .3rem; }
.bpkg__time::before, .price__time::before { content: ''; flex: none; width: .8em; height: .8em; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(currentColor, currentColor) 50% 20% / 1.5px 35% no-repeat; }
.bpkg--other .bpkg__card { border-style: dashed; background: transparent; }

.booking--calendar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: 'packages side' 'fields side'; column-gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.booking--calendar:not(.booking--packages) { grid-template-rows: none; grid-template-areas: 'fields side'; }
.booking--calendar .booking__packages { grid-area: packages; }
.booking--calendar .booking__fields { grid-area: fields; }
.booking--calendar .booking__side { grid-area: side; position: sticky; top: 5.5rem; }
.booking__when[hidden] { display: none; }
.booking--calendar .booking__fields { align-content: start; }
.booking--calendar .booking__trap { grid-area: auto; }
@media (max-width: 860px) {
    .booking--calendar, .booking--calendar:not(.booking--packages) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'packages' 'side' 'fields'; }
    .booking--calendar:not(.booking--packages) { grid-template-areas: 'side' 'fields'; }
    .booking--calendar .booking__side { position: static; }
}

/* The card beside the form: 1 day, 2 time, 3 extras */
.bsteps { display: grid; gap: .9rem; padding: 1.15rem; border-radius: var(--mf-radius, 16px); background: var(--mf-bg, #f7f3ec); border: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 10%, transparent); }
.bsteps__title { margin: 0; font-weight: 700; font-size: 1.1rem; }
.bsteps__hint { margin: -.5rem 0 0; color: var(--mf-muted, #6e665c); font-size: .86rem; line-height: 1.4; }
.bsteps__summary { margin: 0; padding-top: .8rem; border-top: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 10%, transparent); color: var(--mf-muted, #6e665c); font-size: .86rem; line-height: 1.45; }
.bsteps__summary strong { color: var(--mf-text, inherit); }

.bstep { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: .9rem 0 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 10%, transparent); transition: opacity .2s; }
.bstep.is-waiting { opacity: .55; }
.bstep__head { display: flex; align-items: center; gap: .55rem; width: 100%; margin: 0; padding: 0; font-weight: 700; font-size: .95rem; }
.bstep__num { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--mf-accent, #a4522b); color: var(--mf-accent, #a4522b); font-size: .8rem; font-weight: 700; }
.bstep.is-done .bstep__num { background: var(--mf-accent, #a4522b); color: var(--mf-accent-contrast, #fff); font-size: 0; }
.bstep.is-done .bstep__num::before { content: '✓'; font-size: .8rem; }
.bstep__title small { font-weight: 400; color: var(--mf-muted, #6e665c); font-size: .85em; }
.bstep__value { margin-left: auto; color: var(--mf-accent, #a4522b); font-size: .85rem; font-weight: 600; text-align: right; }
.bstep__note { margin: 0; color: var(--mf-muted, #6e665c); font-size: .86rem; }

.bcal__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bcal__month { font-size: .95rem; text-transform: capitalize; }
.bcal__nav { width: 2rem; height: 2rem; border: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 16%, transparent); border-radius: 50%; background: var(--mf-surface, #fffdf9); color: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.bcal__nav:disabled { opacity: .3; cursor: default; }
.bcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; transition: opacity .15s; }
.bcal__grid.is-loading { opacity: .45; }
.bcal__dow { padding: .15rem 0; color: var(--mf-muted, #6e665c); font-size: .72rem; font-weight: 600; text-align: center; }
.bcal__day { position: relative; aspect-ratio: 1; max-height: 2.6rem; padding: 0; border: 1px solid transparent; border-radius: var(--mf-inner-radius); background: var(--mf-surface, #fffdf9); color: inherit; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.bcal__day::after { content: ''; position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mf-accent, #a4522b); opacity: .7; }
.bcal__day:hover:not(:disabled) { border-color: var(--mf-accent, #a4522b); }
.bcal__day:disabled { background: transparent; color: var(--mf-muted, #6e665c); opacity: .4; cursor: default; font-weight: 400; }
.bcal__day:disabled::after { display: none; }
.bcal__day.is-today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mf-text, #1f1b16) 30%, transparent); }
.bcal__day[aria-pressed=true] { background: var(--mf-accent, #a4522b); color: var(--mf-accent-contrast, #fff); }
.bcal__day[aria-pressed=true]::after { background: currentColor; }
/* All free times show at once, no inner scrollbar: they fold away as soon as one is picked */
.bcal__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.9rem, 1fr)); gap: .35rem; padding: 2px; }
.bcal__chip { display: grid; gap: .05rem; padding: .45rem .3rem; border: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 16%, transparent); border-radius: var(--mf-inner-radius); background: var(--mf-surface, #fffdf9); color: inherit; font: inherit; font-variant-numeric: tabular-nums; text-align: center; cursor: pointer; }
.bcal__chip strong { font-size: .92rem; }
.bcal__chip small { color: var(--mf-muted, #6e665c); font-size: .72rem; }
.bcal__chip:hover { border-color: var(--mf-accent, #a4522b); }
.bcal__chip[aria-pressed=true] { border-color: var(--mf-accent, #a4522b); background: var(--mf-accent, #a4522b); color: var(--mf-accent-contrast, #fff); }
.bcal__chip[aria-pressed=true] small { color: inherit; opacity: .85; }
/* The picked day, folded into one row so long time lists keep the card short */
.bcal__picked { display: flex; align-items: stretch; gap: .8rem; }
.bcal__picked[hidden], .bcal__head[hidden], .bcal__grid[hidden] { display: none; }
.bcal__date { display: grid; justify-items: center; align-content: center; box-sizing: border-box; flex: none; min-width: 4.4rem; padding: .45rem .6rem .5rem; border-radius: var(--mf-inner-radius); background: var(--mf-accent, #a4522b); color: var(--mf-accent-contrast, #fff); line-height: 1.1; text-align: center; }
.bcal__date-dow { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.bcal__date-day { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bcal__date-year { font-size: .74rem; opacity: .85; }
.bcal__info { display: grid; align-content: center; gap: .15rem; flex: 1; min-width: 0; min-height: 4.6rem; box-sizing: border-box; padding: .55rem .75rem; border: 1px dashed color-mix(in srgb, var(--mf-text, #1f1b16) 22%, transparent); border-radius: var(--mf-inner-radius); background: var(--mf-surface, #fffdf9); }
.bcal__info.has-time { gap: .35rem; border-style: solid; border-color: color-mix(in srgb, var(--mf-accent, #a4522b) 45%, transparent); }
.bcal__info > small { color: var(--mf-muted, #6e665c); font-size: .78rem; }
.bcal__when { display: grid; gap: .05rem; line-height: 1.2; }
.bcal__when strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bcal__when small { color: var(--mf-muted, #6e665c); font-size: .78rem; }
.bcal__links { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.bcal__link { padding: 0; border: 0; background: none; color: var(--mf-accent, #a4522b); font: inherit; font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer; }
.bcal__info > .bcal__link { font-size: .9rem; }
.bcal__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bstep[hidden] { display: none; }
.bcal__lost { grid-column: 1 / -1; color: var(--mf-accent, #a4522b); }
.bcal__clear { padding: 0; border: 0; background: none; color: var(--mf-accent, #a4522b); font: inherit; text-decoration: underline; cursor: pointer; }

/* 3) extras as check cards */
.bextras { display: grid; gap: .4rem; }
.booking label.bextra { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; padding: .6rem .7rem; border: 1px solid color-mix(in srgb, var(--mf-text, #1f1b16) 14%, transparent); border-radius: var(--mf-inner-radius); background: var(--mf-surface, #fffdf9); font-weight: 400; cursor: pointer; transition: border-color .15s, background .15s; }
.bextra input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bextra__box { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1.5px solid color-mix(in srgb, var(--mf-text, #1f1b16) 30%, transparent); border-radius: calc(var(--mf-inner-radius) * .6); background: var(--mf-surface, #fffdf9); }
.bextra input:checked ~ .bextra__box { border-color: var(--mf-accent, #a4522b); background: var(--mf-accent, #a4522b); }
.bextra input:checked ~ .bextra__box::before { content: '✓'; color: var(--mf-accent-contrast, #fff); font-size: .8rem; font-weight: 700; line-height: 1; }
.bextra input:focus-visible ~ .bextra__box { outline: 2px solid var(--mf-accent, #a4522b); outline-offset: 2px; }
.booking label.bextra:has(input:checked) { border-color: var(--mf-accent, #a4522b); background: color-mix(in srgb, var(--mf-accent, #a4522b) 7%, var(--mf-surface, #fffdf9)); }
.bextra__text { display: grid; gap: .1rem; line-height: 1.3; }
.bextra__name { font-weight: 600; font-size: .92rem; }
.bextra__text small { color: var(--mf-muted, #6e665c); font-size: .8rem; }
.bextra__price { color: var(--mf-accent, #a4522b); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.booking__fields .bstep--extras { padding-top: 0; border-top: 0; }

/* 4) gift voucher code */
.booking__voucher { padding: .65rem .8rem; border: 1px dashed color-mix(in srgb, var(--mf-accent, #a4522b) 55%, transparent); border-radius: var(--mf-inner-radius); }
.booking__voucher summary { color: var(--mf-accent, #a4522b); font-weight: 600; font-size: .92rem; cursor: pointer; }
.booking__voucher[open] summary { margin-bottom: .6rem; }
.booking__voucher input { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.booking__voucher-note { margin: .5rem 0 0; font-size: .88rem; }
.booking__voucher-note.is-ok { color: var(--mf-accent, #a4522b); font-weight: 600; }
.booking__voucher-note.is-error { color: #b42318; }
.booking__voucher-note[hidden] { display: none; }
