/* Booking pages (book, cancel, owner). Uses the variables and buttons from styles.css. */
.book-page .site-header { position: static; }
.book-band { background: linear-gradient(180deg, #F7F8FE 0%, #FFFFFF 70%); padding-block: clamp(40px, 6vw, 80px); }
.book-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.book-intro h1 { font-size: clamp(44px, 6vw, 76px); font-variation-settings: "wdth" 78, "wght" 700; letter-spacing: -.03em; line-height: .95; }
.book-intro .lead { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.book-points { margin-top: 26px; display: grid; gap: 14px; }
.book-points li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 16px; }
.book-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-line); }
.book-points a { color: var(--orange); font-weight: 600; }
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: clamp(20px, 3.5vw, 34px); }
#book-form { display: grid; gap: 18px; }
#book-form fieldset { box-shadow: none; padding: 0; border: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
#book-form fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
#book-form legend { padding: 0; margin: 0 0 8px; font-size: 20px; }
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.day, .time { flex: none; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font: 600 15px var(--body); color: var(--ink); cursor: pointer; scroll-snap-align: start; transition: border-color .2s ease, background-color .2s ease; }
.day:hover, .time:hover { border-color: var(--ink); }
.day.is-on, .time.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 6px; }
.picked { margin-top: 10px; font-weight: 600; color: #15803D; }
.muted { color: var(--muted); font-size: 15px; }
.small-print { font-size: 13px; color: var(--muted); }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 18px 6px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #fff; background: linear-gradient(135deg, #16A34A, #15803D); }
.done h2 { font-size: 34px; }
.done-when { font-weight: 700; font-size: 20px; }
.done a:not(.btn) { color: var(--orange); font-weight: 600; word-break: break-all; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }

/* cancel page */
.cancel-card { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.cancel-card h1 { font-size: 40px; }

/* owner page */
.owner-page { background: var(--bg); }
.owner-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block: 28px 12px; }
.owner-head h1 { font-size: clamp(34px, 5vw, 52px); }
.owner-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; padding-bottom: 60px; }
.owner-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); display: grid; gap: 12px; }
.owner-box h2 { font-size: 24px; }
.day-head { font: 700 14px var(--body); color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.appt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); animation: none; }
.appt.is-cancelled { opacity: .55; }
.appt .t { font: 700 18px var(--display); min-width: 92px; }
.appt .t small { display: block; font: 500 12px var(--body); color: var(--muted); }
.appt b { display: block; }
.appt .meta { font-size: 14px; color: var(--muted); }
.appt .meta a { color: var(--ink); font-weight: 600; }
.badge-s { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #DCFCE7; color: #15803D; margin-left: 6px; }
.badge-s.x { background: #FEE2E2; color: #B91C1C; }
.mini-btn { min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font: 600 14px var(--body); cursor: pointer; }
.mini-btn:hover { border-color: var(--ink); }
.appt .mini-btn:hover, .block-row .mini-btn:hover, .mini-btn.danger:hover { border-color: #B91C1C; color: #B91C1C; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.owner-box .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 860px) { .owner-cols { grid-template-columns: 1fr; } .appt { grid-template-columns: 1fr; } }

/* admin: tabs, week calendar, details window, block-off form */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 14px 0 16px; background: #E8EDF5; border-radius: 12px; }
.tab { min-height: 40px; padding: 8px 22px; border: 0; border-radius: 9px; background: transparent; font: 600 15px var(--body); color: var(--muted); cursor: pointer; }
.tab.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.owner-page .owner-box + .owner-box { margin-top: 18px; }
.wk-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.wk-nav strong { font: 700 20px var(--display); }
.wk-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; -webkit-overflow-scrolling: touch; }
.wk { display: grid; grid-template-columns: 58px repeat(7, minmax(112px, 1fr)); min-width: 840px; }
.wk-corner { position: sticky; left: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); }
.wk-head { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.wk-head.is-today { background: #EEF2FF; }
.wk-dow { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.wk-dom { display: block; font: 700 17px var(--display); color: var(--ink); }
.wk-head.is-today .wk-dom { color: var(--blue); }
.wk-times { position: sticky; left: 0; z-index: 2; background: #fff; }
.wk-times span { position: absolute; right: 8px; transform: translateY(-8px); font-size: 11px; color: var(--muted); }
.wk-times span:first-child { transform: translateY(2px); }
.wk-day { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, transparent calc(var(--hpx, 88px) - 1px), #EDF0F5 calc(var(--hpx, 88px) - 1px)); background-size: 100% var(--hpx, 88px); }
.wk-day.is-today { background-color: #FAFBFF; }
.wk-off { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(135deg, rgba(100,116,139,.10) 0 6px, rgba(100,116,139,.04) 6px 12px); pointer-events: none; }
.wk-call, .wk-block { position: absolute; left: 3px; right: 3px; padding: 2px 7px; border-radius: 7px; border: 0; text-align: left; font: 500 12px/1.3 var(--body); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wk-call.tall, .wk-block.tall { white-space: normal; padding-top: 4px; }
.wk-call { background: linear-gradient(135deg, #1E3A5F, #0F1B2D); color: #fff; box-shadow: 0 2px 6px rgba(15,27,45,.25); z-index: 2; }
.wk-call.is-video { background: linear-gradient(135deg, #2563EB, #7C3AED); }
.wk-call b { font-weight: 700; }
.wk-call:hover, .wk-block:hover { filter: brightness(1.12); }
.wk-block { background: repeating-linear-gradient(135deg, #CBD5E1 0 6px, #D9E0EA 6px 12px); color: #334155; z-index: 1; font-weight: 600; }
.wk-now { position: absolute; left: 0; right: 0; height: 2px; background: #DC2626; z-index: 3; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #DC2626; }
.wk-key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.wk-key span { display: inline-flex; align-items: center; gap: 6px; }
.wk-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.k-call { background: #1E3A5F; } .k-video { background: linear-gradient(135deg, #2563EB, #7C3AED); } .k-block { background: repeating-linear-gradient(135deg, #CBD5E1 0 4px, #E2E8F0 4px 8px); } .k-off { background: repeating-linear-gradient(135deg, rgba(100,116,139,.35) 0 4px, rgba(100,116,139,.12) 4px 8px); }
#detail { border: 0; border-radius: var(--r-lg); padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: var(--sh-3); }
#detail::backdrop { background: rgba(15, 27, 45, .5); }
.dlg { padding: 22px; display: grid; gap: 12px; }
.dlg h2 { font-size: 26px; }
.dl-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; font-size: 15px; }
.dl-k { color: var(--muted); font-weight: 600; }
.dl-row a { color: var(--orange); font-weight: 600; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 6px; }
.mini-btn.danger { border-color: #FCA5A5; color: #B91C1C; }
.mini-btn.danger[hidden] { display: none; }
.block-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 860px) { .block-grid { grid-template-columns: 1fr 1fr; } .block-grid .btn { grid-column: 1 / -1; } }

/* the hidden attribute must win over display rules above */
.book-page [hidden] { display: none !important; }
