/* Booking redesign preview — scoped to .bk2 so nothing else in the prototype is affected. */
.bk2{
  --bk2-free:#0e7a55;--bk2-free-bg:#eefaf3;--bk2-free-line:#bfe6d2;
  --bk2-off:#f2f5f8;--bk2-off-line:#e6ebf0;--bk2-off-ink:#8a98a5;
  --bk2-hold:#fff6e2;--bk2-hold-line:#f0dda6;--bk2-hold-ink:#8a6413;
  --bk2-mine:#eaf1fa;--bk2-mine-line:#bcd5ef;--bk2-mine-ink:#2d669b;
  --bk2-resale:#e7f6f6;--bk2-resale-line:#a9dcda;--bk2-resale-ink:#0d6a68;
  --bk2-row:52px;--bk2-gutter:84px;
  padding-bottom:40px;
}

/* ---------- compact venue bar (replaces the 500px hero) ---------- */
.bk2-venuebar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.bk2-venuebar .wrap{display:flex;align-items:center;gap:16px;min-height:64px;padding-top:10px;padding-bottom:10px}
.bk2-back{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;flex-shrink:0}
.bk2-venue-id{min-width:0;flex:1}
.bk2-venue-id h1{font-size:19px;margin:0;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk2-venue-meta{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);margin-top:2px;flex-wrap:wrap}
.bk2-venue-meta .bk2-star{color:var(--orange-dark);font-weight:700}
.bk2-open{color:var(--bk2-free);font-weight:700}
.bk2-venuebar-actions{display:flex;gap:8px;flex-shrink:0}

/* ---------- page head ---------- */
.bk2-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:26px 0 18px}
.bk2-head h2{margin:0 0 4px;font-size:27px}
.bk2-head p{margin:0;font-size:14px;color:var(--muted)}
.bk2-steps{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);flex-shrink:0}
.bk2-steps b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e8edf2;color:#6d8090;font-size:11px;font-weight:800;margin-right:6px}
.bk2-steps .on{color:var(--ink);font-weight:700}
.bk2-steps .on b{background:var(--navy);color:#fff}
.bk2-steps i{width:18px;height:1px;background:var(--line);display:block}

/* ---------- day rail with availability density ---------- */
.bk2-rail{display:flex;align-items:stretch;gap:8px;margin-bottom:14px}
.bk2-rail-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;flex:1;padding:2px;scroll-snap-type:x proximity}
.bk2-rail-scroll::-webkit-scrollbar{display:none}
.bk2-nav{width:38px;flex-shrink:0;border:1px solid var(--line);background:#fff;border-radius:11px;display:grid;place-items:center;color:var(--muted)}
.bk2-nav:hover{color:var(--navy);border-color:#c9d5df}
.bk2-day{scroll-snap-align:start;flex:0 0 auto;min-width:78px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 10px 8px;text-align:left;color:var(--muted);line-height:1.25}
.bk2-day em{display:block;font-style:normal;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.bk2-day strong{display:block;font:800 21px Manrope,sans-serif;color:var(--ink);margin:1px 0 5px}
.bk2-dots{display:flex;gap:3px;align-items:center}
.bk2-dots i{width:100%;height:4px;border-radius:2px;background:#e4eaef;display:block}
.bk2-dots i.f{background:var(--bk2-free-line)}
.bk2-day small{display:block;font-size:10.5px;margin-top:5px;color:var(--muted)}
.bk2-day:hover{border-color:#c9d5df}
.bk2-day.on{background:var(--navy);border-color:var(--navy);color:#b9cddc}
.bk2-day.on strong{color:#fff}
.bk2-day.on .bk2-dots i{background:#22557f}
.bk2-day.on .bk2-dots i.f{background:#7fd6ab}
.bk2-day.on small{color:#b9cddc}
.bk2-day.none{opacity:.55}
.bk2-day.none .bk2-dots i{background:#eceff2}

/* ---------- filter bar: one row, one control per decision ---------- */
.bk2-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.bk2-seg{display:inline-flex;background:#eaeff4;border-radius:11px;padding:3px;gap:2px}
.bk2-seg button{border:0;background:none;border-radius:9px;padding:8px 13px;font-size:13px;font-weight:700;color:#5d7285;min-height:38px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.bk2-seg button small{font-weight:600;font-size:11px;opacity:.75}
.bk2-seg button.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px #12365812}
.bk2-seg button:disabled{opacity:.45}
.bk2-select{border:1px solid var(--line);background:#fff;border-radius:11px;min-height:40px;padding:0 12px;font-size:13px;font-weight:600;color:var(--ink)}
.bk2-filters-right{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--muted)}
.bk2-jump{border:1px solid var(--bk2-free-line);background:var(--bk2-free-bg);color:var(--bk2-free);border-radius:11px;min-height:40px;padding:0 14px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:7px}
.bk2-jump .icon{width:16px;height:16px}

/* ---------- layout ---------- */
.bk2-layout{display:grid;grid-template-columns:minmax(0,1fr) 312px;gap:20px;align-items:start}

/* ---------- grid ---------- */
.bk2-grid-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.bk2-grid{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.bk2-grid th,.bk2-grid td{padding:0}
.bk2-grid thead th{position:sticky;top:0;z-index:3;background:#fff;border-bottom:1px solid var(--line);padding:12px 10px;text-align:left;vertical-align:top}
.bk2-grid thead th:first-child{width:var(--bk2-gutter);z-index:4;border-right:1px solid var(--line)}
.bk2-col-name{font:700 13.5px Manrope,sans-serif;color:var(--ink);letter-spacing:-.01em;display:block;line-height:1.3}
.bk2-col-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.bk2-col-rate{display:inline-block;font-size:11.5px;font-weight:700;color:var(--ink);margin-top:7px;background:#f1f4f7;border-radius:6px;padding:2px 7px}
.bk2-col-rate.low{background:var(--bk2-free-bg);color:var(--bk2-free)}
.bk2-gut-label{font-size:10.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.bk2-grid tbody td{border-bottom:1px solid #eef1f4;border-right:1px solid #eef1f4;padding:3px;height:var(--bk2-row)}
.bk2-grid tbody tr:last-child td{border-bottom:0}
.bk2-grid tbody td:last-child{border-right:0}
.bk2-gut{width:var(--bk2-gutter);position:sticky;left:0;background:#fff;text-align:center;border-right:1px solid var(--line)!important;padding:0 6px!important}
.bk2-gut b{display:block;font-size:12.5px;font-weight:700;color:var(--ink);line-height:1.2}
.bk2-gut small{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.bk2-gut small.f{color:var(--bk2-free);font-weight:700}
tr.bk2-prime .bk2-gut{background:linear-gradient(90deg,var(--orange) 0 3px,#fff 3px)}
tr.bk2-prime .bk2-gut b:after{content:'Prime';display:block;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--orange-dark);margin-top:1px}

/* ---------- cells ---------- */
.bk2-cell{width:100%;height:100%;min-height:46px;border-radius:8px;border:1px solid transparent;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:12px;line-height:1.25;padding:2px;transition:transform .12s,box-shadow .12s}
.bk2-cell b{font-weight:700;font-size:12.5px}
.bk2-cell span{font-size:10.5px;opacity:.85}
.bk2-free{background:var(--bk2-free-bg);border-color:var(--bk2-free-line);color:var(--bk2-free)}
.bk2-free:hover{background:#e2f6ec;box-shadow:0 2px 8px #0e7a5522;transform:translateY(-1px)}
.bk2-free .bk2-plus{display:none;font-weight:800}
.bk2-free:hover .bk2-plus{display:block}
.bk2-free:hover .bk2-hint{display:none}
.bk2-on{background:var(--orange);border-color:var(--orange);color:#fff;box-shadow:0 3px 10px #f45c2c33}
.bk2-on .icon{width:15px;height:15px;stroke-width:2.6}
.bk2-next{border-style:dashed;border-color:var(--orange);background:#fff7f3;color:var(--orange-dark)}
.bk2-next:hover{background:#ffeee6}
.bk2-hold{background:var(--bk2-hold);border-color:var(--bk2-hold-line);color:var(--bk2-hold-ink)}
.bk2-mine{background:var(--bk2-mine);border-color:var(--bk2-mine-line);color:var(--bk2-mine-ink)}
.bk2-resale{background:var(--bk2-resale);border-color:var(--bk2-resale-line);color:var(--bk2-resale-ink)}
.bk2-resale:hover{background:#dcf0ef}
.bk2-off{background:var(--bk2-off);border-color:var(--bk2-off-line);color:var(--bk2-off-ink);cursor:default}
.bk2-off .icon{width:14px;height:14px;opacity:.6}
.bk2-off.hatch{background:repeating-linear-gradient(135deg,#f2f5f8 0 6px,#e9eef3 6px 7px)}
.bk2-cell:focus-visible{outline:3px solid #2384c9;outline-offset:2px}

/* ---------- legend (single, inline, no duplicate rail copy) ---------- */
.bk2-legend{display:flex;flex-wrap:wrap;gap:14px;align-items:center;font-size:12px;color:var(--muted);padding:12px 14px;border-top:1px solid var(--line);background:#fcfdfe}
.bk2-legend span{display:inline-flex;align-items:center;gap:6px}
.bk2-legend i{width:11px;height:11px;border-radius:3px;border:1px solid}
.bk2-legend .l-free{background:var(--bk2-free-bg);border-color:var(--bk2-free-line)}
.bk2-legend .l-on{background:var(--orange);border-color:var(--orange)}
.bk2-legend .l-resale{background:var(--bk2-resale);border-color:var(--bk2-resale-line)}
.bk2-legend .l-hold{background:var(--bk2-hold);border-color:var(--bk2-hold-line)}
.bk2-legend .l-off{background:var(--bk2-off);border-color:var(--bk2-off-line)}
.bk2-legend .bk2-legend-note{margin-left:auto;font-size:11.5px}

/* ---------- summary ---------- */
.bk2-sum{position:sticky;top:88px;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.bk2-sum-head{padding:18px 18px 0}
.bk2-sum-head h3{margin:0 0 3px;font-size:17px}
.bk2-sum-head p{margin:0;font-size:12.5px;color:var(--muted)}
.bk2-sum-body{padding:14px 18px 18px}
.bk2-empty{text-align:center;padding:10px 4px 6px}
.bk2-empty-art{width:54px;height:54px;border-radius:15px;background:var(--bk2-free-bg);color:var(--bk2-free);display:grid;place-items:center;margin:8px auto 12px}
.bk2-empty-art .icon{width:24px;height:24px}
.bk2-empty h4{margin:0 0 6px;font-size:15px}
.bk2-empty p{font-size:12.5px;color:var(--muted);margin:0 0 14px}
.bk2-tips{text-align:left;display:grid;gap:8px;border-top:1px solid var(--line);padding-top:13px}
.bk2-tips span{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:var(--muted)}
.bk2-tips .icon{width:15px;height:15px;color:var(--bk2-free);flex-shrink:0;margin-top:1px}
.bk2-pick{display:flex;gap:11px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.bk2-pick-mark{width:34px;height:34px;border-radius:10px;background:#fff1eb;color:var(--orange-dark);display:grid;place-items:center;flex-shrink:0;font-size:11px;font-weight:800}
.bk2-pick-main{flex:1;min-width:0}
.bk2-pick-main strong{display:block;font-size:13.5px;line-height:1.3}
.bk2-pick-main span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.bk2-pick-price{text-align:right;font-size:13px;font-weight:700;white-space:nowrap}
.bk2-pick-drop{border:0;background:none;color:var(--muted);padding:2px;line-height:0;border-radius:6px}
.bk2-pick-drop:hover{color:var(--orange-dark);background:#fff1eb}
.bk2-rental{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.bk2-rental strong{display:block;font-size:13px}
.bk2-rental small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.bk2-step{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:10px;padding:3px}
.bk2-step button{width:30px;height:30px;border:0;background:none;border-radius:7px;font-size:17px;font-weight:700;color:var(--navy);line-height:1;display:grid;place-items:center}
.bk2-step button:hover:not(:disabled){background:#f1f4f7}
.bk2-step b{min-width:20px;text-align:center;font-size:13.5px}
.bk2-line{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:9px 0;color:var(--muted)}
.bk2-line b{color:var(--ink);font-weight:600}
.bk2-total{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-top:1px solid var(--line);margin-top:12px;padding-top:13px}
.bk2-total span{font-size:13px;color:var(--muted)}
.bk2-total b{font:800 23px Manrope,sans-serif}
.bk2-cta{width:100%;margin-top:13px}
.bk2-reassure{display:flex;gap:7px;align-items:center;justify-content:center;font-size:11.5px;color:var(--muted);margin-top:10px}
.bk2-reassure .icon{width:14px;height:14px;color:var(--bk2-free)}

/* ---------- resale callout ---------- */
.bk2-resale-note{display:flex;gap:11px;align-items:flex-start;background:var(--bk2-resale);border:1px solid var(--bk2-resale-line);border-radius:12px;padding:12px 14px;margin-bottom:14px;font-size:12.5px;color:var(--bk2-resale-ink)}
.bk2-resale-note .icon{width:17px;height:17px;flex-shrink:0;margin-top:1px}
.bk2-resale-note strong{display:block;font-size:13px;margin-bottom:2px}

/* ---------- mobile list (no horizontal scrolling anywhere) ---------- */
.bk2-list{display:none}
.bk2-hourcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin-bottom:10px}
.bk2-hourcard.prime{border-color:#ffd9c8}
.bk2-hour-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.bk2-hour-time{font:800 16px Manrope,sans-serif;letter-spacing:-.02em}
.bk2-hour-time em{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--orange-dark);background:#fff1eb;border-radius:5px;padding:2px 6px;margin-left:8px;vertical-align:2px}
.bk2-hour-count{font-size:12px;font-weight:700;color:var(--bk2-free)}
.bk2-hour-count.zero{color:var(--muted);font-weight:600}
.bk2-courtlist{display:grid;gap:8px}
.bk2-courtbtn{display:flex;align-items:center;gap:11px;width:100%;min-height:56px;border:1px solid var(--bk2-free-line);background:var(--bk2-free-bg);border-radius:12px;padding:9px 12px;text-align:left}
.bk2-courtbtn .bk2-cb-main{flex:1;min-width:0}
.bk2-courtbtn strong{display:block;font-size:14px;color:var(--ink);line-height:1.25}
.bk2-courtbtn small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.bk2-courtbtn .bk2-cb-price{font:800 15px Manrope,sans-serif;color:var(--bk2-free);white-space:nowrap}
.bk2-courtbtn .bk2-cb-add{width:30px;height:30px;border-radius:9px;background:#fff;border:1px solid var(--bk2-free-line);color:var(--bk2-free);display:grid;place-items:center;font-size:17px;font-weight:700;line-height:1;flex-shrink:0}
.bk2-courtbtn.on{background:var(--orange);border-color:var(--orange)}
.bk2-courtbtn.on strong,.bk2-courtbtn.on small,.bk2-courtbtn.on .bk2-cb-price{color:#fff}
.bk2-courtbtn.on small{opacity:.9}
.bk2-courtbtn.on .bk2-cb-add{background:#ffffff26;border-color:#ffffff59;color:#fff}
.bk2-courtbtn.resale{background:var(--bk2-resale);border-color:var(--bk2-resale-line)}
.bk2-courtbtn.resale .bk2-cb-price{color:var(--bk2-resale-ink)}
.bk2-courtbtn.resale .bk2-cb-add{color:var(--bk2-resale-ink);border-color:var(--bk2-resale-line)}
.bk2-closed{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);background:var(--bk2-off);border-radius:10px;padding:10px 12px}
.bk2-closed .icon{width:14px;height:14px;flex-shrink:0}
.bk2-nofree{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:8px}
.bk2-sheet{display:none}

@media(max-width:1080px){
  .bk2-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}
  .bk2-grid thead th{padding:10px 8px}
}
@media(max-width:900px){
  .bk2-layout{grid-template-columns:1fr}
  .bk2-sum{position:static}
  .bk2-grid-card{display:none}
  .bk2-list{display:block}
  .bk2-head{margin:20px 0 14px}
  .bk2-head h2{font-size:23px}
  .bk2-steps{display:none}
}
@media(max-width:600px){
  .bk2{padding-bottom:104px}
  .bk2-venuebar .wrap{min-height:58px;gap:12px}
  .bk2-venue-id h1{font-size:16.5px}
  .bk2-venuebar-actions{display:none}
  .bk2-head{margin:16px 0 12px;display:block}
  .bk2-head h2{font-size:21px}
  .bk2-filters{gap:8px}
  .bk2-seg{width:100%;overflow-x:auto;scrollbar-width:none}
  .bk2-seg::-webkit-scrollbar{display:none}
  .bk2-seg button{flex:1 0 auto;justify-content:center;padding:8px 11px;font-size:12.5px}
  .bk2-select{flex:1}
  .bk2-jump{flex:1;justify-content:center}
  .bk2-filters-right{width:100%;margin-left:0}
  .bk2-nav{display:none}
  .bk2-sum{border:0;border-radius:0;background:none}
  .bk2-sum-head,.bk2-sum-body{padding-left:0;padding-right:0}
  .bk2-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 24px #073b6314;padding:12px 20px calc(12px + env(safe-area-inset-bottom))}
  .bk2-sheet-row{display:flex;align-items:center;gap:14px}
  .bk2-sheet-price{flex:1;min-width:0}
  .bk2-sheet-price b{display:block;font:800 21px Manrope,sans-serif;line-height:1.1}
  .bk2-sheet-price small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
  .bk2-sheet .btn{min-width:150px}
  .bk2-sheet-empty .bk2-sheet-price b{font-size:15px;color:var(--muted);font-weight:700}
  .bk2-sum-cta-desktop{display:none}
}
@media(prefers-reduced-motion:reduce){.bk2-cell{transition:none}.bk2-free:hover{transform:none}}

/* collapsed "already passed" row */
.bk2-passed td{height:38px!important;background:#fbfcfd}
.bk2-passed-note{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--bk2-off-ink);padding-left:12px}
.bk2-passed-note .icon{width:14px;height:14px}
