/* B Lounge booking — standalone styles in the site's palette (ink / brass / cream, Cormorant + Jost).
   Not part of the Tailwind build on purpose: the booking pages ship independently of the landing page. */
:root {
  --ink: #0a0a0b; --ink2: #111013; --ink3: #17151a; --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.18);
  --brass: #c9a86a; --brass-dim: #9c7f4d; --brass-soft: rgba(201,168,106,.14);
  --cream: #ece7dd; --smoke: #a39d92; --muted: #7d776e; --danger: #e8a08a; --ok: #9fd3a8;
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 16px/1.5 Jost, system-ui, sans-serif; }
a { color: var(--brass); }
a:hover { color: var(--cream); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: "Cormorant Garamond", serif; font-weight: 600; letter-spacing: .01em; }
.eyebrow { letter-spacing: .28em; text-transform: uppercase; font-size: .72rem; color: var(--brass); font-weight: 500; }
.muted { color: var(--smoke); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 140px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(10,10,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; }
.topbar h1 { margin: 0; font-size: 1.4rem; line-height: 1.1; }
@media (max-width: 480px) { .topbar .logo { display: none; } .topbar .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; } }
.topbar .sub { font-size: .85rem; color: var(--smoke); }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover:not(:disabled) { border-color: var(--brass); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.logo { font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; color: var(--cream); margin-left: auto; white-space: nowrap; }
.logo span { color: var(--brass); }

.card { background: var(--ink2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card, .two > * + * { margin-top: 14px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 10px; border: 0; cursor: pointer; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.btn-gold { background: var(--brass); color: var(--ink); }
.btn-gold:hover:not(:disabled) { background: var(--cream); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(201,168,106,.45); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brass); background: var(--brass-soft); color: var(--cream); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(232,160,138,.45); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.block { width: 100%; }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: .9rem; }

/* Week | Month switch */
.seg { display: inline-flex; margin: 16px 0 0; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; background: var(--ink2); }
.seg button { min-width: 92px; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--smoke); cursor: pointer; font-weight: 500; letter-spacing: .03em; }
.seg button[aria-selected="true"] { background: var(--brass); color: var(--ink); }
.seg button:hover:not([aria-selected="true"]) { color: var(--cream); }

/* week grid */
.swipe { touch-action: pan-y; }
.swipe.slide-l { animation: slide-l .22s ease-out; }
.swipe.slide-r { animation: slide-r .22s ease-out; }
@keyframes slide-l { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes slide-r { from { transform: translateX(-28px); opacity: .4; } to { transform: none; opacity: 1; } }
.weeknav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 12px; }
.weeknav h2.label { margin: 0; font-size: 1.15rem; }
.weeknav .label { font-weight: 500; font-size: 1.05rem; text-align: center; }
.weeknav button.label { background: none; border: 0; color: var(--cream); font: inherit; font-weight: 500; font-size: 1.05rem; cursor: pointer; padding: 8px 12px; border-radius: 10px; }
.weeknav button.label:hover, .weeknav button.label:focus-visible { background: var(--brass-soft); }
.weeknav button.label svg { vertical-align: -3px; margin-left: 6px; color: var(--brass); }
/* month overview (pop-up from the week label) */
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.month .wd { font-size: .72rem; color: var(--smoke); text-transform: uppercase; letter-spacing: .08em; padding: 4px 0; }
.month button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--ink2); color: var(--cream); font: inherit; font-size: 1.05rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.month button i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--brass); }
.month button.open i { background: var(--brass); }
.month button.partial i { background: linear-gradient(90deg, var(--brass) 50%, transparent 50%); }
.month button.booked i { border-color: var(--muted); }
.month button.booked { color: var(--muted); }
.month button:hover:not([disabled]), .month button:focus-visible { border-color: var(--brass); }
.month button.sel { background: var(--brass-soft); border-color: var(--brass-dim); }
.month button[disabled] { color: var(--muted); opacity: .45; cursor: default; }
.month button.closed { opacity: .6; }
.month button.closed small { font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.grid { display: grid; grid-template-columns: 84px repeat(5, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.grid .dh { text-align: center; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); padding-bottom: 2px; }
.grid .dh b { display: block; font-size: 1.3rem; color: var(--cream); letter-spacing: 0; font-weight: 500; }
.grid .rh { display: flex; flex-direction: column; justify-content: center; font-size: .92rem; line-height: 1.15; font-weight: 500; }
.grid .rh small { color: var(--brass); font: inherit; margin-top: 2px; } /* capacity as prominent as the room name (Peter, 15.10) */
.grid .rh.dim { opacity: .45; }
.cell { min-height: 78px; border-radius: 10px; border: 1px solid var(--brass); background: var(--brass-soft); color: var(--brass); font-size: .82rem; font-weight: 500; cursor: pointer; padding: 4px; line-height: 1.15; }
.cell:hover { background: rgba(201,168,106,.26); }
.cell.partial { background: transparent; border-style: dashed; }
.cell.booked { background: var(--ink3); border-color: var(--line); color: var(--muted); }
.cell.booked:hover { border-color: var(--line2); }
.cell.closed, .cell.past { background: transparent; border: 1px dashed var(--line); color: var(--muted); cursor: default; text-decoration: none; }
.cell.small-room { opacity: .55; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .85rem; color: var(--smoke); }
.legend i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--brass); background: var(--brass-soft); vertical-align: -4px; margin-right: 6px; }
.legend i.p { background: transparent; border-style: dashed; }
.legend i.b { background: var(--ink3); border-color: var(--line); }
.loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* day view: room cards with sessions */
.room { display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.room img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--ink3); }
.room h3 { margin: 0; font-size: 1.45rem; }
.room .cap { color: var(--brass); font-size: .82rem; }
.room .cap.display { font-size: 1.45rem; line-height: 1.2; } /* same size as the room name */
.room .cap.warn { color: var(--danger); }
.sessions { grid-column: 1 / -1; display: grid; gap: 8px; }
.session { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; cursor: pointer; }
.session:hover:not(:disabled) { border-color: var(--brass); }
.session[aria-pressed="true"] { border-color: var(--brass); background: var(--brass-soft); box-shadow: inset 0 0 0 1px var(--brass); }
.session:disabled { cursor: default; color: var(--muted); border-style: dashed; }
.session .t { font-weight: 500; }
.session .s { font-size: .82rem; color: var(--smoke); }
.session .p { text-align: right; font-size: .85rem; white-space: nowrap; }
.session .p b { display: block; color: var(--brass); font-size: 1rem; }
.session:disabled .p b { color: var(--muted); }

/* alternatives */
.alt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 10px; background: transparent; width: 100%; text-align: left; cursor: pointer; min-height: 56px; }
.alt:hover { border-color: var(--brass); }
.alts { display: grid; gap: 8px; }

/* forms */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field label, .field .lbl { display: block; font-size: .85rem; color: var(--smoke); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--ink); border: 1px solid var(--line2); border-radius: 10px; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--brass); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .88rem; margin-top: 6px; }
.notice { border: 1px solid rgba(232,160,138,.45); background: rgba(232,160,138,.08); color: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.notice.ok { border-color: rgba(159,211,168,.4); background: rgba(159,211,168,.07); }
.notice.info { border-color: rgba(201,168,106,.45); background: var(--brass-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brass); flex: none; margin-top: 1px; }
#card-container { min-height: 56px; }
.cardrow { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin-top: 8px; }

/* payment timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brass); }
.timeline li:first-child::before { background: var(--brass); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; }
.timeline span { color: var(--smoke); font-size: .9rem; }

/* summary + sticky bottom */
.summary { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.summary img { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: var(--ink3); }
.summary h2 { margin: 0; font-size: 1.5rem; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(17,16,19,.97); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.bottombar .in { max-width: 960px; margin: 0 auto; }
.bottombar .meta { font-size: .85rem; color: var(--smoke); margin-bottom: 8px; text-align: center; }
.timer { font-variant-numeric: tabular-nums; color: var(--brass); }

.hero-ok { text-align: center; padding: 28px 0 8px; }
.hero-ok .mark { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--brass); display: grid; place-items: center; margin: 0 auto 14px; color: var(--brass); font-size: 1.8rem; }
.hero-ok h2 { font-size: 2.3rem; margin: 0 0 6px; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--smoke); font-size: .88rem; }
dl.kv dd { margin: 0; text-align: right; }
.pill { display: inline-block; font-size: .75rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--smoke); white-space: nowrap; }
.pill.gold { border-color: var(--brass); color: var(--brass); }
.pill.red { border-color: rgba(232,160,138,.6); color: var(--danger); }
.pill.green { border-color: rgba(159,211,168,.5); color: var(--ok); }
.demo-banner { background: #2a2116; color: var(--brass); text-align: center; font-size: .8rem; padding: 6px 12px; letter-spacing: .02em; }
dialog { background: var(--ink2); color: var(--cream); border: 1px solid var(--line2); border-radius: var(--r); max-width: 560px; width: calc(100% - 32px); padding: 22px; }
dialog::backdrop { background: rgba(0,0,0,.7); }

@media (min-width: 760px) {
  .wrap { padding-top: 8px; }
  .grid { grid-template-columns: 150px repeat(5, minmax(0, 1fr)); gap: 10px; }
  .cell { min-height: 96px; font-size: .95rem; }
  .month button { font-size: 1.15rem; }
  .grid .rh { font-size: 1.05rem; }
  .days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .days .card + .card { margin-top: 0; }
  .room { grid-template-columns: 1fr; }
  .room img { width: 100%; height: 150px; }
  .two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
  .two > .card + .card, .two > * + * { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.month-legend i { width: 10px; height: 10px; border-radius: 50%; vertical-align: 0; background: var(--brass); }
.month-legend i.p { background: linear-gradient(90deg, var(--brass) 50%, transparent 50%); border-style: solid; }
.month-legend i.b { background: transparent; border-color: var(--muted); }

/* ---------- booking manager panel (manager.html) ---------- */
.mgr { max-width: 560px; }
.mgr .tabs { display: flex; gap: 8px; margin: 14px 0; }
.mgr .tabs .btn { flex: 1; }
.mgr .wk { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)) 44px; gap: 6px; align-items: stretch; }
.mgr .wk .icon-btn { width: 44px; height: auto; border-radius: 10px; }
.mgr .wk .d { border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 6px 0; cursor: pointer; display: grid; line-height: 1.2; text-align: center; }
.mgr .wk .d small { font-size: .65rem; letter-spacing: .12em; color: var(--smoke); text-transform: uppercase; }
.mgr .wk .d b { font-weight: 500; font-size: 1.05rem; }
.mgr .wk .d[aria-pressed="true"] { border-color: var(--brass); background: var(--brass-soft); }
.mgr .room-h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 6px; }
.mgr .room-h b { font: 600 1.25rem "Cormorant Garamond", serif; }
.mgr .room-h span { color: var(--brass); font: 600 1.05rem "Cormorant Garamond", serif; }
.mgr .slot { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--ink2); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mgr .slot + .slot { margin-top: 6px; }
.mgr .slot.hold { border-color: rgba(227,180,90,.4); }
.mgr .slot.booked { border-color: rgba(159,211,168,.35); }
.mgr .slot .who { font-size: .9rem; margin-top: 2px; }
.pill.hold { border-color: rgba(227,180,90,.6); color: #e3b45a; }
.mgr .q + .q { margin-top: 10px; }
.mgr .mail { white-space: pre-wrap; font: inherit; font-size: .92rem; margin: 10px 0 0; color: var(--cream); }
.mgr .check { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; cursor: pointer; }
.mgr .check input { width: 22px; height: 22px; accent-color: var(--brass); }
.mgr .two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mgr .two2 .field + .field { margin-top: 0; }

/* Peter, 21.10: booked = one big white X over the thing, never a horizontal strike-through */
.cell.booked, .session:disabled, .room.full { position: relative; }
.cell.booked::before, .cell.booked::after,
.session:disabled::before, .session:disabled::after,
.room.full::before, .room.full::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 82%; height: 0; pointer-events: none;
  border-top: 2px solid rgba(201,168,106,.85); border-radius: 2px;
}
.cell.booked::before { width: 64%; transform: translate(-50%, -50%) rotate(45deg); }
.cell.booked::after { width: 64%; transform: translate(-50%, -50%) rotate(-45deg); }
.session:disabled::before { width: 46px; left: auto; right: 14px; transform: translateY(-50%) rotate(45deg); border-top-width: 2px; }
.session:disabled::after { width: 46px; left: auto; right: 14px; transform: translateY(-50%) rotate(-45deg); border-top-width: 2px; }
.room.full::before { transform: translate(-50%, -50%) rotate(35deg); border-top-width: 3px; }
.room.full::after { transform: translate(-50%, -50%) rotate(-35deg); border-top-width: 3px; }
.room.full .session:disabled::before, .room.full .session:disabled::after { display: none; } /* one X per room is enough */
.room.full > *:not(.sessions), .room.full .sessions { opacity: .45; }
.room.full img { filter: grayscale(1); }
/* fully booked day in the month view: the X sits right on the date number (Szymon, 25.10) */
.month button .n { position: relative; display: inline-block; padding: 0 3px; line-height: 1.2; }
.month button.booked .n::before, .month button.booked .n::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; border-top: 2px solid rgba(201,168,106,.9); }
.month button.booked .n::before { transform: rotate(45deg); }
.month button.booked .n::after { transform: rotate(-45deg); }
.month button.booked i { visibility: hidden; }
.month-legend i.b { background: none; border: none; position: relative; }
.month-legend i.b::before { content: "✕"; position: absolute; inset: -4px 0 0; font-style: normal; font-size: .8rem; color: rgba(240,232,214,.4); }
.legend:not(.month-legend) i.b { position: relative; }
.legend:not(.month-legend) i.b::before { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: .75rem; color: rgba(240,232,214,.4); }
