/* Chalet Vancouver - booking widget styles v1 (studio shyboy.love, 2026-09-25)
   Only canon tokens from site.css (canon 3a / 4a / 5c) - this file defines no tokens.
   Fallbacks inside var() are for the harness only. Okno (--accent) = the one CTA per viewport. */

/* ---------------------------------------------------------------- shared */
.bk-mono, .bk-lbl, .bk-p, .bk-ref, .bk-sticky-l, .bk-rc-mini, .bk-row dd, .bkr-t td, .bk-gout, .bk-stepper output {
  font-family: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.bk-lbl {
  display: block; font-size: var(--fs-over, .8125rem); font-weight: 500; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.bk-h3 { font-size: var(--fs-h3, 1.375rem); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; margin: 0 0 .75rem; color: var(--ink); }
.bk-help { font-size: var(--fs-small, .9375rem); line-height: 1.45; color: var(--ink-2); margin: .375rem 0 0; }
.bk-help.err, .bk-ferr { color: var(--error); }
.bk-ferr { font-size: var(--fs-small, .9375rem); margin: .375rem 0 0; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#bk-root, #bk-hero, #bk-rates, #bk-chip, #bk-sticky { color: var(--ink); }
:where(#bk-root, #bk-hero, #bk-rates, #bk-sticky) button { font: inherit; color: inherit; cursor: pointer; }
:where(#bk-root) button:disabled { cursor: default; opacity: .4; }
:where(#bk-root, #bk-rates, #bk-chip) a { color: var(--ink); text-underline-offset: .2em; }

/* focus: 2 px ink + 2 px Okno halo (Den), 2 px Okno (Noc) - canon 6i */
.bk-cta:focus-visible, .bk-mini:focus-visible, .bk-pill:focus-visible, .bk-pill.r:has(input:focus-visible), .bk-step:focus-visible, .bk-nav:focus-visible,
.bkh-f:focus-visible, .bk-c:focus-visible, .bk-dot:has(input:focus-visible) i, #bk-root input:focus-visible, #bk-root textarea:focus-visible,
.bk-check:has(input:focus-visible) span::before, .bk-rc-tog:focus-visible, .bk-link:focus-visible, .bk-ok-h:focus-visible, .bk-fail:focus-visible, .bk-errsum:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 4px var(--accent);
}
[data-theme="noc"] :is(.bk-cta, .bk-mini, .bk-pill, .bk-step, .bk-nav, .bkh-f, .bk-c, .bk-rc-tog, .bk-link, #bk-root input, #bk-root textarea):focus-visible,
[data-theme="noc"] .bk-dot:has(input:focus-visible) i { outline-color: var(--accent); box-shadow: none; }
.bk-ok-h:focus:not(:focus-visible), .bk-fail:focus:not(:focus-visible), .bk-errsum:focus:not(:focus-visible), #bk-f-h:focus:not(:focus-visible) { outline: none; }
#bk-f-h:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent); }
[data-theme="noc"] #bk-f-h:focus-visible { outline-color: var(--accent); box-shadow: none; }
/* pricing.json failed: bring back the static „Od 190 € za noc“ chip (true in every season) that site.css hides once JS runs */
html.js.bk-fail #bk-chip > .bk-fallback { visibility: visible; }

/* buttons */
.bk-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem;
  background: var(--accent); color: var(--on-accent) !important; border: 1.5px solid var(--accent); border-radius: 4px;
  font-family: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--fs-ui, 1.0625rem); font-weight: 600;
  letter-spacing: .01em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-ui, 200ms) cubic-bezier(.2, .7, .2, 1), color var(--t-ui, 200ms) cubic-bezier(.2, .7, .2, 1), transform var(--t-micro, 120ms) cubic-bezier(.2, .7, .2, 1);
}
.bk-cta:active { transform: translateY(1px); }
.bk-cta.ink { background: var(--ink); border-color: var(--ink); color: var(--surface) !important; }
.bk-cta.busy { opacity: .7; cursor: progress; }
.bk-mini {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 .75rem; background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0; font-size: var(--fs-small, .9375rem); font-weight: 600; line-height: 1.1; text-decoration: none;
  transition: background-color var(--t-micro, 120ms), color var(--t-micro, 120ms);
}
@media (hover: hover) and (pointer: fine) { .bk-mini:hover { background: var(--ink); color: var(--surface) !important; } }
.bk-mini.ghost { border-color: transparent; text-decoration: underline; text-underline-offset: .2em; padding: 0 .25rem; }
@media (hover: hover) and (pointer: fine) { .bk-mini.ghost:hover { background: transparent; color: var(--ink) !important; text-decoration-thickness: 2px; } }
.bk-link { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.bk-pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 .875rem; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0; font-size: var(--fs-small, .9375rem); font-weight: 600; position: relative;
  transition: background-color var(--t-micro, 120ms), color var(--t-micro, 120ms);
}
.bk-pill[aria-pressed="true"], .bk-pill.r:has(input:checked) { background: var(--ink); color: var(--surface); }
.bk-pill.r input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bk-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.bk-step {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0; font-size: 1.375rem; line-height: 1; padding: 0;
}
@media (hover: hover) and (pointer: fine) { .bk-step:not(:disabled):hover { background: var(--band); } }
.bk-stepper { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.bk-stepper output { min-width: 2ch; text-align: center; font-size: 1.125rem; font-weight: 500; }
.bk-gout:empty { visibility: hidden; } /* no stray „–“ after the + button before a count is chosen */

/* ten dots = ten beds (canon 5a-1): 10 px dots, 28 x 28 px hit area (6i) */
.bk-dots { display: flex; flex-wrap: nowrap; }
.bk-dot { position: relative; width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; }
.bk-dot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bk-dot i { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); box-sizing: border-box; pointer-events: none; }
.bk-dot i::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity var(--t-micro, 120ms) linear; }
.bk-dot.on i::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .bk-dots:hover .bk-dot i::after { transition-duration: 60ms; } }
.bkh-bar.play .bk-dot i::after { animation: bk-dots 1100ms linear both; animation-delay: calc(var(--i) * 40ms); }
@keyframes bk-dots { 0% { opacity: 0; } 6% { opacity: 1; } 62% { opacity: 1; } 80%, 100% { opacity: 0; } }

/* ---------------------------------------------------------------- chip (#bk-chip) */
.bk-chip { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; } /* price / condition / per head: three steady lines */
.bk-chip-from { font-size: var(--fs-body, 1.0625rem); font-weight: 600; }
.bk-chip-price { font-family: "Red Hat Mono", ui-monospace, Menlo, monospace; font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; word-spacing: -.4em; }
.bk-chip-cond { display: block; font-size: var(--fs-small, .9375rem); color: var(--ink-2); }
.bk-chip-x { margin: .25rem 0 0; font-size: var(--fs-small, .9375rem); color: var(--ink-2); }

/* ---------------------------------------------------------------- hero bar (#bk-hero) */
#bk-hero { container-type: inline-size; }
.bkh-bar {
  display: flex; align-items: stretch; min-height: 64px; background: var(--surface); border: 1.5px solid var(--ink);
}
.bkh-f {
  flex: 1 1 8.5rem; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: .5rem 1rem;
  background: transparent; border: 0; border-right: 1px solid var(--line); text-align: left;
}
@media (hover: hover) and (pointer: fine) { .bkh-f:hover { background: var(--band); } }
.bkh-v { font-size: var(--fs-ui, 1.0625rem); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkh-v.ph { color: var(--ink-2); font-weight: 400; }
.bkh-g { flex: none; display: flex; flex-direction: column; justify-content: center; gap: .1rem; padding: .375rem .625rem .25rem; border-right: 1px solid var(--line); }
.bkh-g .bk-lbl { padding-left: 9px; }
.bkh-cta { flex: none; margin: 7px; min-height: 0; }
.bkh-q { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.bkh-hint { font-size: var(--fs-small, .9375rem); color: var(--ink-2); }
/* the live bar keeps the rows of the static first paint (site.css .bkx), so nothing jumps when booking.js mounts:
   < 560 px dates / guests / CTA · 560-1023 px dates + guests / CTA · >= 1024 px one 64 px row (canon 6b), wrapping only
   when the bar itself is under 700 px wide (the 731 px bar at 1440 stays one row) */
@media (max-width: 1023.98px) {
  .bkh-bar { flex-wrap: wrap; }
  .bkh-f { flex: 1 1 0; min-height: 56px; padding-block: 6px; gap: .2rem; border-bottom: 1px solid var(--line); } /* canon 6b: 56 px mobile */
  .bkh-v { line-height: 1.2; }
  .bkh-g { border-right: 0; border-bottom: 1px solid var(--line); padding-top: .375rem; padding-bottom: .375rem; }
  .bkh-cta { flex: 1 1 100%; margin: 0 7px 7px; min-height: 48px; }
}
@media (max-width: 559.98px) {
  .bkh-f { flex: 1 1 45%; }
  .bkh-f + .bkh-f { border-right: 0; }
  .bkh-g { flex: 1 1 100%; border-bottom: 0; }
}
@media (min-width: 1024px) {
  @container (max-width: 700px) {
    .bkh-bar { flex-wrap: wrap; }
    .bkh-f { flex: 1 1 45%; min-height: 56px; padding-block: 6px; gap: .2rem; border-bottom: 1px solid var(--line); }
    .bkh-v { line-height: 1.2; }
    .bkh-f + .bkh-f { border-right: 0; }
    .bkh-g { flex: 0 0 auto; border-right: 0; padding-top: .5rem; padding-bottom: .5rem; }
    .bkh-cta { flex: 1 1 9rem; margin: 7px; min-height: 48px; }
  }
  @container (min-width: 700.02px) and (max-width: 820px) { /* tight single row: trim the padding before anything wraps */
    .bkh-f { padding: .5rem .75rem; }
    .bkh-cta { padding: 0 1rem; }
  }
}

/* ---------------------------------------------------------------- legend rows with dotted leaders (canon 5a-3) */
.bk-lg { margin: 0; }
/* div > dt + dd (+ dd.bk-row-note); the leader is dt::after, so the <dl> stays valid. A value too long for the label's line
   (hu „2 € fejenként és éjszakánként“) drops under it, right-aligned, and can still wrap - never pushes the page sideways. */
.bk-row { display: flex; flex-wrap: wrap; align-items: baseline; align-items: last baseline; gap: 0 .5rem; padding: .3rem 0; }
.bk-row dt { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; align-items: last baseline; gap: .5rem; margin: 0; font-size: var(--fs-small, .9375rem); line-height: 1.35; }
.bk-row dt::after { content: ""; flex: 1 1 1rem; min-width: 1rem; height: 1px;
  background: linear-gradient(to right, var(--ink-2) 1px, transparent 1px) left bottom / 4px 1px repeat-x; transform: translateY(-.25em); }
.bk-row dd { flex: 0 1 auto; min-width: 0; margin: 0 0 0 auto; font-size: var(--fs-data, .9375rem); line-height: 1.3; text-align: right; overflow-wrap: anywhere; text-wrap: balance; }
.bk-row.site dd, .bk-row.site dt { color: var(--ink-2); }
.bk-row dd.bk-row-note { flex: 0 0 100%; max-width: none; margin: .2rem 0 0; text-align: left; text-wrap: wrap;
  font-family: inherit; font-size: .8125rem; font-style: italic; line-height: 1.35; color: var(--ink-2); }
.bk-row.total dt { font-weight: 600; font-size: var(--fs-body, 1.0625rem); }
.bk-row.total dd strong { font-weight: 600; font-size: 1.375rem; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- ceník (#bk-rates) */
.bkr-t { width: 100%; border-collapse: collapse; font-size: var(--fs-small, .9375rem); }
.bkr-t th, .bkr-t td { padding: .875rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.bkr-t thead th { font-family: "Red Hat Mono", ui-monospace, Menlo, monospace; font-size: var(--fs-over, .8125rem); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); padding-top: 0; }
.bkr-t tbody th { font-weight: 600; font-size: var(--fs-body, 1.0625rem); }
.bkr-t td { font-size: var(--fs-data, 1rem); }
.bkr-d { display: block; white-space: nowrap; }
.bkr-t tr.inview { background: var(--tint); }
.bkr-in { display: block; margin-top: .3rem; font-family: "Red Hat Mono", ui-monospace, Menlo, monospace; font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.bkr-p { white-space: nowrap; } /* „280 € / noc“ never breaks; one notation in both price columns */
.bkr-q { display: block; margin-top: .2rem; font-family: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-style: italic; font-size: var(--fs-small, .9375rem); line-height: 1.35; color: var(--ink-2); }
.bkr-special td, .bkr-special th { box-shadow: inset 0 3px 0 -1px transparent; }
.bkr-after td, .bkr-after th { color: var(--ink-2); }
.bkr-nudge { margin: 1.25rem 0 0; font-size: var(--fs-body, 1.0625rem); max-width: 34em; }
.bkr-nl { display: block; } /* season sentence, then the off-season one: two facts, two lines */
.bkr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 3rem; margin-top: 2rem; }
.bkr-wl dd { white-space: nowrap; max-width: none; } /* „7 × 190 € = 1 330 €“ stays whole; totals align right */
@media (max-width: 640px) {
  .bkr-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bkr-t, .bkr-t tbody, .bkr-t tr, .bkr-t th, .bkr-t td { display: block; }
  .bkr-t tr { padding: .875rem .75rem; border-bottom: 1px solid var(--line); }
  .bkr-t th, .bkr-t td { padding: .125rem 0; border: 0; }
  .bkr-t td[data-l]::before { content: attr(data-l) " · "; color: var(--ink-2); }
  .bkr-t td.bkr-dates { color: var(--ink-2); margin-bottom: .25rem; }
  .bkr-d { display: inline; white-space: nowrap; } /* break only at the „, “ between ranges */
  .bkr-d + .bkr-d::before { content: ", "; white-space: normal; } /* the one break opportunity */
}

/* ---------------------------------------------------------------- #bk-root layout */
.bk { display: block; }
.bk-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0 0 1.5rem; padding: 0; font-size: var(--fs-small, .9375rem); color: var(--ink-2); }
.bk-steps li { display: flex; gap: .4rem; align-items: baseline; }
.bk-steps li.on { color: var(--ink); font-weight: 600; }
.bk-steps li.on .bk-mono { box-shadow: 0 2px 0 var(--ink); }
.bk-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: 2rem 2.5rem; align-items: start; }
.bk-s3 .bk-main { display: block; }
.bk-left { min-width: 0; }
.bk-msg { margin: 0 0 1rem; padding: .625rem .875rem; background: var(--band); font-size: var(--fs-small, .9375rem); }
.bk-msg.quiet { background: transparent; padding: 0; color: var(--ink-2); }

/* selection summary: arrival / departure + nudge (canon 6e) */
/* fixed geometry: nothing above the calendar changes height while dates are picked (no layout shift between taps) */
.bk-sel { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 11rem) 1fr; align-items: start; gap: 0 1.5rem; margin-bottom: .75rem; }
.bk-sel-f { min-width: 0; }
.bk-clear[hidden] { display: inline-flex; visibility: hidden; }
.bk-sel-n { grid-column: 1 / -1; min-height: 2.75rem; }
.bk-sel-v { display: block; margin-top: .3rem; font-size: 1.25rem; font-weight: 600; }
.bk-sel-v.ph { color: var(--ink-2); font-weight: 400; }
.bk-sel > .bk-mini { justify-self: end; align-self: start; }
.bk-nudge { margin: .5rem 0 0; font-size: var(--fs-small, .9375rem); max-width: 40rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }

/* ---------------------------------------------------------------- calendar */
.bk-calnav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.bk-calnav .bk-help { margin: 0; text-align: center; }
.bk-nav { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--ink); padding: 0; }
.bk-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .bk-nav:not(:disabled):hover { background: var(--band); } }
.bk-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem 2rem; touch-action: pan-y; }
.bk-mh { margin: 0 0 .5rem; font-size: var(--fs-h3, 1.25rem); font-weight: 600; line-height: 1.2; }
.bk-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; margin: 0 -2px; width: calc(100% + 4px); }
.bk-grid th { padding: 0 0 .25rem; font-family: "Red Hat Mono", ui-monospace, Menlo, monospace; font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.bk-c {
  position: relative; height: 56px; padding: 0; vertical-align: top; text-align: center; background: var(--surface); cursor: pointer;
  -webkit-tap-highlight-color: transparent; outline-offset: 0;
}
.bk-x { background: transparent; }
.bk-n {
  position: relative; z-index: 2; display: block; width: 28px; height: 28px; margin: 4px auto 0; border-radius: 50%;
  font-size: .9375rem; font-weight: 600; line-height: 28px; font-variant-numeric: tabular-nums;
}
.bk-p { position: relative; z-index: 2; display: block; margin-top: 1px; font-size: var(--fs-cell, .75rem); font-weight: 500; line-height: 1.1; color: var(--ink-2); white-space: nowrap; }
.bk-p em { font-style: normal; }
.bk-c.t-nye:not(.st-hold) .bk-p em { display: block; margin-top: 1px; }
.bk-c.t-nye .bk-n { margin-top: 6px; width: 24px; height: 24px; line-height: 24px; } /* clears the 3 px stripe; disc centre 18 px = the stay line (top 17 + 1) */
.bk-c.t-nye .bk-p { line-height: 1; } /* 6 + 24 + 1 + 12 + 1 + 12 = 56 */
@media (hover: hover) and (pointer: fine) { .bk-c:not(.past):not([aria-disabled]):hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }

/* tiers (canon 3a table): colour is never the only signal - the price or a label is printed */
.bk-c.t-season { background: var(--tint); }
.bk-c.t-xmas, .bk-c.t-nye { background: var(--band); box-shadow: inset 0 3px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .bk-c.t-xmas:not(.past):not([aria-disabled]):hover, .bk-c.t-nye:not(.past):not([aria-disabled]):hover { box-shadow: inset 0 3px 0 var(--ink), inset 0 0 0 1.5px var(--ink); } }
.bk-c.t-req { background: var(--surface) repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 7px); }
.bk-c.t-req .bk-p em { font-weight: 600; color: var(--ink); }
.bk-c.st-booked { background: var(--bg); box-shadow: none; cursor: default; }
.bk-c.st-booked .bk-n { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.bk-c.st-hold { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 7px), var(--surface); box-shadow: none; cursor: default; }
.bk-c.st-hold .bk-p em { color: var(--ink); background: var(--surface); padding: 0 2px; }
.bk-c.past { background: transparent; box-shadow: none; cursor: default; }
.bk-c.past .bk-n { color: var(--ink-2); font-weight: 400; opacity: .55; }
.bk-c.st-booked[aria-disabled]:not(.s-out), .bk-c.st-hold[aria-disabled]:not(.s-out) { cursor: not-allowed; }
.bk-c.st-booked:not([aria-disabled]), .bk-c.st-hold:not([aria-disabled]) { cursor: pointer; }
/* the next guest's arrival day as your departure: morning free (upper-left), night taken (lower-right), numeral not struck */
.bk-c.dep-ok { background: var(--surface); }
.bk-c.dep-ok .bk-n { color: var(--ink); text-decoration: none; }
.bk-c.dep-ok::before { content: ""; position: absolute; inset: 0; z-index: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; background: var(--bg); }
.bk-c.dep-ok.st-hold::before { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 7px), var(--surface); }

/* changeover = diagonal split: upper-left triangle in the previous night's state (canon 6e) */
.bk-c.co::before { content: ""; position: absolute; inset: 0; z-index: 0; clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.bk-c.co-booked::before { background: var(--bg); }
.bk-c.co-hold::before { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 7px), var(--surface); }

/* your stay is a line (canon 5a-8): ink discs on arrival + departure, 2 px ink line through the nights */
.bk-c.s-in .bk-n, .bk-c.s-out .bk-n { background: var(--ink); color: var(--surface); text-decoration: none; opacity: 1; }
.bk-c.s-in::after, .bk-c.s-mid::after, .bk-c.s-out::after, .bk-c.g-mid::after, .bk-c.g-out::after {
  content: ""; position: absolute; z-index: 1; top: 17px; height: 2px; background: var(--ink); pointer-events: none;
}
.bk-c.s-in::after { left: 50%; right: -2px; }
.bk-c.s-mid::after { left: 0; right: -2px; }
.bk-c.s-out::after { left: 0; right: 50%; }
.bk-c.s-mid .bk-n { background: inherit; width: 22px; }
.bk-c.s-mid, .bk-c.s-in, .bk-c.s-out { cursor: pointer; }
.bk-c.g-mid::after, .bk-c.g-out::after { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); }
.bk-c.g-mid::after { left: -2px; right: -2px; }
.bk-c.g-out::after { left: -2px; right: 50%; }
.bk-c.g-out .bk-n { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk-c.g-mid .bk-n { background: inherit; width: 22px; }
.bk-c.s-in:not(.s-out) + .bk-c.g-mid::after { left: -2px; }

/* inline rules, legend, guests */
.bk-rule { margin: .5rem 0 0; font-size: var(--fs-small, .9375rem); line-height: 1.45; display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; }
.bk-rule.err { color: var(--error); }
.bk-rule.err .bk-mini, .bk-rule.err .bk-link { color: var(--ink); }
.bk-rule strong { font-weight: 600; }
.bk-guests { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.bk-gctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .5rem; }
.bk-gout { font-size: 1.0625rem; font-weight: 500; min-width: 6ch; }
.bk-guests.invalid .bk-dots { outline: 1.5px solid var(--error); outline-offset: 2px; }
.bk-legend { margin-top: 1.75rem; }
.bk-legend > .bk-lbl { margin: 0; } /* h3 (heading order), the look of the former h4 */
.bk-legend ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .375rem 1.5rem; font-size: .875rem; }
@media (min-width: 768px) { .bk-legend ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } } /* columns = the two months above */
.bk-legend li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: .5rem; align-items: start; }
.bk-legend li > span { grid-column: 2; }
.bk-legend .bk-mono { color: var(--ink-2); font-size: .8125rem; }
.sw { width: 18px; height: 18px; flex: none; display: inline-block; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.sw-season { background: var(--tint); }
.sw-xmas, .sw-nye { background: var(--band); box-shadow: inset 0 3px 0 var(--ink); }
.sw-req { background: var(--surface) repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 5px); }
.sw-booked { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.sw-booked::after { content: "8"; position: absolute; inset: 0; text-align: center; font: 500 10px/18px "Red Hat Mono", ui-monospace, Menlo, monospace;
  color: var(--ink-2); text-decoration: line-through; } /* drawn like a booked cell: a struck numeral */
.sw-hold { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink-2) 35%, transparent) 0 1px, transparent 1px 5px), var(--surface); }
.sw-co { background: linear-gradient(135deg, var(--bg) 50%, var(--surface) 50%); }
.sw-stay { background: transparent; box-shadow: none; }
.sw-stay::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--ink); }
.sw-stay::after { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* ---------------------------------------------------------------- receipt „Pod čiarou“ (right rail desktop, bottom sheet mobile) */
.bk-rc { background: var(--surface); padding: 1.5rem; position: sticky; top: 72px; }
.bk-rc-head { display: flex; align-items: baseline; gap: .75rem; }
.bk-rc-h { margin: 0; font-size: var(--fs-h3, 1.375rem); font-weight: 600; line-height: 1.2; flex: 1 1 auto; }
.bk-rc-mini { display: none; font-size: 1.125rem; font-weight: 600; }
.bk-rc-tog { display: none; }
.bk-rc-sum { margin: .375rem 0 1rem; font-size: var(--fs-small, .9375rem); color: var(--ink-2); min-height: 1.2em; }
.bk-rc-sum:empty { display: none; }
.bk-rc-empty { margin: 0 0 1rem; font-size: var(--fs-small, .9375rem); color: var(--ink-2); }
.bk-cut { height: 1.5px; background: var(--ink); margin: .625rem 0; }
.bk-rc-t .bk-row.adv dt, .bk-rc-t .bk-row.adv dd { font-size: var(--fs-small, .9375rem); }
.bk-rc-ph { margin: .625rem 0 0; font-family: "Red Hat Mono", ui-monospace, Menlo, monospace; font-size: .875rem; color: var(--ink-2); }
.bk-rc-fin { margin: .625rem 0 0; font-size: .8125rem; color: var(--ink-2); }
.bk-rc-cta { width: 100%; margin-top: 1.25rem; }

/* ---------------------------------------------------------------- step 2: form */
.bk-form { max-width: 40rem; }
.bk-form-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bk-errsum { margin: 0 0 1rem; padding: .625rem .875rem; border-left: 3px solid var(--error); color: var(--error); background: var(--surface); font-size: var(--fs-small, .9375rem); }
.bk-fld { margin: 0 0 1.125rem; }
.bk-fld label { display: block; margin-bottom: .375rem; font-size: var(--fs-small, .9375rem); font-weight: 600; }
.bk-opt { font-weight: 400; color: var(--ink-2); }
#bk-root input[type="text"], #bk-root input[type="email"], #bk-root input[type="tel"], #bk-root textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: .625rem .75rem; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 0; font: inherit; font-size: 1.0625rem; line-height: 1.4; -webkit-appearance: none; appearance: none;
}
#bk-root textarea { min-height: 6rem; resize: vertical; }
#bk-root ::placeholder { color: var(--ink-2); opacity: .8; }
.bk-fld.invalid input, .bk-fld.invalid textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.bk-ex { border: 0; margin: 1.75rem 0 1.25rem; padding: 1.25rem 0 0; border-top: 1px solid var(--line); min-width: 0; }
.bk-ex > legend { padding: 0; float: left; width: 100%; }
.bk-exrow { clear: both; margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.bk-exl { display: block; font-size: var(--fs-small, .9375rem); font-weight: 600; padding: 0; }
.bk-arr > legend { float: left; width: 100%; }
.bk-arr .bk-pills { clear: both; padding-top: .5rem; }
.bk-storno { margin: 1.5rem 0 1rem; padding: 1rem 1.125rem; background: var(--band); }
.bk-storno p { margin: .5rem 0 0; font-family: "Red Hat Mono", ui-monospace, Menlo, monospace; font-size: .9375rem; line-height: 1.6; }
.bk-storno .bk-help { font-family: inherit; }
.bk-consent { margin: 0 0 1.25rem; }
.bk-check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; position: relative; font-size: var(--fs-body, 1.0625rem); line-height: 1.4; min-height: 28px; }
.bk-check input { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.bk-check span::before { content: ""; flex: none; display: inline-block; width: 22px; height: 22px; margin: 1px 12px 0 0; vertical-align: -5px;
  border: 1.5px solid var(--ink); background: var(--surface) no-repeat center / 16px 16px; box-sizing: border-box; }
.bk-check input:checked + span::before { background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="noc"] .bk-check input:checked + span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%231B1E21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bk-consent.invalid .bk-check span::before { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-next { margin: 0 0 1rem; font-size: var(--fs-small, .9375rem); color: var(--ink-2); }
.bk-fail { margin: 0 0 1rem; padding: .875rem 1rem; background: var(--band); font-size: var(--fs-small, .9375rem); }
.bk-fail p { margin: 0 0 .5rem; }
.bk-fail p:last-child { margin: 0; }
.bk-fail-a { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }

/* ---------------------------------------------------------------- step 3: confirmation */
.bk-ok { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 1fr); gap: 2rem 3rem; align-items: start; }
.bk-ok-h { margin: 0 0 .5rem; font-size: var(--fs-h2, 2.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; }
.bk-ok-sub { margin: 0 0 1.5rem; max-width: 34em; }
.bk-ref { margin: .25rem 0 .25rem; font-size: var(--fs-num, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -.01em; word-break: break-all; }
.bk-ok .bk-mini[data-act="ics"] { margin: 1rem 0 1.75rem; }
.bk-ok h4.bk-lbl { margin: 1.5rem 0 .5rem; }
.bk-notes { margin: 0; padding-left: 1.1em; font-size: var(--fs-small, .9375rem); line-height: 1.55; }
.bk-ok-geo { margin: 1.5rem 0 .75rem; font-size: var(--fs-small, .9375rem); }
.bk-h49 { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; margin: .5rem 0 1.25rem; font-size: .8125rem; }
.bk-h49 i { flex: 1 1 2rem; height: 1px; background: var(--ink); min-width: 2rem; }
.bk-bye { font-size: var(--fs-h3, 1.375rem); font-weight: 600; margin: 1.25rem 0; }
.bk-ok .bk-lg { max-width: 28rem; }
.bk-ok .bk-mini.ghost { margin-top: 1.25rem; }
.bk-rc-ok { position: static; }

/* ---------------------------------------------------------------- sticky mobile bar (#bk-sticky) */
.bk-sticky { /* 56 px of bar + the home-indicator inset below it (viewport-fit=cover) */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 1rem;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--ink);
  transform: translateY(calc(100% + 8px)); visibility: hidden;
  transition: transform var(--t-sheet, 260ms) cubic-bezier(.3, .8, .2, 1), visibility 0s linear var(--t-sheet, 260ms);
}
.bk-sticky.is-on { transform: none; visibility: visible; transition: transform var(--t-sheet, 260ms) cubic-bezier(.3, .8, .2, 1); }
.bk-sticky-l { font-size: 1rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-sticky .bk-cta { min-height: 44px; padding: 0 1.125rem; }
@media (max-width: 767.98px) { html.bk-sticky-on { scroll-padding-bottom: calc(56px + 16px + env(safe-area-inset-bottom, 0px)); } } /* focus never lands under the bar */
@media (max-width: 399.98px) { /* „from €290 / night“ + „Dates and prices“ in 328 px: smaller, two lines if needed, never an ellipsis */
  .bk-sticky { gap: .75rem; }
  .bk-sticky-l { font-size: .875rem; line-height: 1.15; white-space: normal; overflow: visible; }
  .bk-sticky .bk-cta { padding: 0 .875rem; }
}

/* ---------------------------------------------------------------- < 1024: receipt under the calendar; < 768: bottom sheet */
/* < 1280: the receipt goes under the calendar, so the two months keep their side-by-side width (canon 6e) */
@media (max-width: 1279.98px) {
  .bk-main { grid-template-columns: minmax(0, 1fr); }
  .bk-rc { position: static; }
}
@media (max-width: 1023.98px) {
  .bk-ok { grid-template-columns: minmax(0, 1fr); }
}
/* 1024-1279: step 2 has no calendar, so the receipt stays beside the form (total next to the submit button) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .bk-s2 .bk-main { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); }
  .bk-s2 .bk-rc { position: sticky; top: 72px; }
}
@media (max-width: 767.98px) {
  .bk-sticky { display: flex; }
  .bk-months { grid-template-columns: minmax(0, 1fr); }
  .bk-c { height: 50px; }
  .bk-calnav .bk-help { font-size: .8125rem; }
  .bk-sel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 .75rem; }
  .bk-sel-v { font-size: 1.125rem; }
  .bk-sel-n { min-height: 4.75rem; }
  .bk-gctl { gap: .5rem; }
  .bk-gctl .bk-dots { order: -1; flex: 0 0 100%; }
  .bk-gctl .bk-gout { order: 1; text-align: center; min-width: 7ch; }
  .bk-gctl [data-step="g+"] { order: 2; }
  /* receipt = bottom sheet: collapsed head (title, total, toggle) + CTA stay on screen while the calendar scrolls */
  .bk-s1 .bk-rc, .bk-s2 .bk-rc { position: sticky; top: auto; bottom: 0; z-index: 30; margin: 0 calc(-1 * var(--pad, 16px));
    padding: .75rem var(--pad, 16px) calc(.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1.5px solid var(--ink); max-height: 78svh; overflow-y: auto; overscroll-behavior: contain; } /* edge to edge: the gutter is --pad (16.4 px at 390) */
  .bk-rc[data-empty="true"] { display: none; } /* no sheet (and no „Pokračovať“ to nowhere) before the first tap */
  .bk-s2:has(input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus) .bk-rc { position: static; } /* keyboard up */
  .bk-mini, .bk-pill { min-height: 44px; } /* touch targets (canon 6i) */
  .bk-mini.ghost { padding: 0 .5rem; }
  .bk-c em { font-size: .75rem; display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; } /* only the „?“ of on-request nights stays (canon 6: no text under 12 px) */
  .bk-c.st-hold .bk-p em, .bk-c.t-nye:not(.st-hold) .bk-p em { display: none; } /* hatch / stripe + legend carry it; the aria-label keeps the words */
  .bk-rc-head { align-items: center; min-height: 44px; }
  .bk-rc-h { font-size: 1.0625rem; }
  .bk-rc-mini { display: block; }
  .bk-rc-tog { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: transparent; border: 1.5px solid var(--ink); padding: 0; position: relative; }
  .bk-rc-tog::before { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(2px) rotate(-135deg);
    transition: transform var(--t-ui, 200ms) cubic-bezier(.2, .7, .2, 1); }
  .bk-rc[data-open="true"] .bk-rc-tog::before { transform: translateY(-2px) rotate(45deg); }
  .bk-rc[data-open="false"] .bk-rc-body, .bk-rc[data-open="false"] .bk-rc-sum { display: none; }
  .bk-rc-sum { margin: .25rem 0 .75rem; }
  .bk-rc-cta { margin-top: .75rem; }
  .bk-rc-ok { margin: 0; padding: 1.25rem 16px; }
  .bk-actions .bk-cta { flex: 1 1 100%; order: -1; }
  .bk-ref { font-size: 2.25rem; }
  .bk-h49 span:first-child { flex: 1 1 100%; }
  .bk-h49 span:last-child { flex: 1 1 100%; text-align: right; }
}
@media (max-width: 767.98px) and (max-height: 520px) { .bk-s1 .bk-rc, .bk-s2 .bk-rc { position: static; } } /* keyboard up / landscape phone */

/* ---------------------------------------------------------------- motion off: reduced motion + ?static (canon 5c) */
@media (prefers-reduced-motion: reduce) {
  .bk-cta, .bk-mini, .bk-pill, .bk-dot i::after, .bk-sticky, .bk-rc-tog::before { transition: none !important; }
  .bkh-bar.play .bk-dot i::after { animation: none !important; }
}
.static .bk-cta, .static .bk-mini, .static .bk-pill, .static .bk-dot i::after, .static .bk-sticky, .static .bk-rc-tog::before { transition: none !important; }
.static .bkh-bar.play .bk-dot i::after { animation: none !important; }
@media print { #bk-sticky, .bk-calnav, .bk-actions, .bk-rc-tog { display: none !important; } }
