/* Availability view ([df_calendar] on space pages): free time is white, bookings are dark blocks.
   Grid on wide containers, a list of free slots per day on narrow ones (container queries). */
.av { --ink:#231F20; --bg:#f4f2ee; --line:#e1ddd6; --muted:#6e6869; --free:#fff; --booked:#3a3435; --red:#FF5447; --labs:#F7861E; }
.av-box { background:var(--bg); border-radius:10px; overflow:hidden; container-type:inline-size; color:var(--ink); }
.av-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; padding:16px 22px; border-bottom:1px solid var(--line); }
.av-week b { font-weight:900; font-size:22px; text-transform:uppercase; margin-right:6px; }
.av-week span { font-family:Besley, Georgia, serif; font-style:italic; font-weight:700; font-size:18px; color:var(--muted); }
.av-nav { display:flex; gap:6px; align-items:center; }
.av .av-btn { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:38px; padding:0 13px; border-radius:8px; background:#fff; border:1px solid var(--line); color:var(--ink); font-weight:800; font-size:15px; line-height:1; text-decoration:none; }
.av .av-btn:hover { border-color:var(--ink); }
.av .av-btn.cur { background:var(--ink); color:#fff; border-color:var(--ink); }
.av-legend { display:flex; gap:16px; align-items:center; font-size:13px; font-weight:600; color:var(--muted); margin-right:12px; }
.av-legend i { display:inline-block; width:14px; height:14px; border-radius:3px; vertical-align:-2px; margin-right:6px; }
.av-legend .f { background:var(--free); border:1px solid var(--line); }
.av-legend .b { background:var(--booked); }

.av-grid { display:grid; grid-template-columns:52px repeat(7, minmax(0, 1fr)); gap:0 6px; padding:14px 22px 16px; }
.av-dh { padding:4px 2px 8px; min-width:0; }
.av-dh b { display:block; font-weight:900; font-size:15px; text-transform:uppercase; white-space:nowrap; }
.av-dh small { display:block; font-size:12px; font-weight:700; margin-top:3px; min-height:15px; }
.av .lots { color:#2e7d4f; } .av .some { color:#8a6d1a; } .av .none { color:var(--red); }
.av-dh.today { box-shadow:inset 0 -3px 0 var(--labs); }
.av-dh.past { opacity:.5; }
.av-hours { position:relative; }
.av-hours div { position:absolute; right:8px; font-size:11px; font-weight:600; color:var(--muted); transform:translateY(-50%); }
.av-col { position:relative; height:560px; background:var(--free); border-radius:6px; box-shadow:inset 0 0 0 1px var(--line); }
.av-col.past { background:repeating-linear-gradient(135deg, #efece7 0 6px, #e8e4de 6px 12px); }
.av-gl { position:absolute; left:0; right:0; border-top:1px solid #efebe5; }
.av-bk { position:absolute; left:3px; right:3px; background:var(--booked); color:#fff; border-radius:5px; padding:5px 7px; overflow:hidden; font-size:12px; line-height:1.2; font-weight:600; overflow-wrap:break-word; hyphens:auto; }
.av-bk em { display:block; font-style:normal; font-weight:800; font-size:11px; opacity:.75; margin-bottom:1px; }
.av-bk.short em { display:inline; margin-right:4px; }
.av-col.past .av-bk { opacity:.45; }
.av-now { position:absolute; left:-3px; right:-3px; height:2px; background:var(--red); z-index:2; }
.av-now:before { content:""; position:absolute; left:-4px; top:-4px; width:10px; height:10px; border-radius:50%; background:var(--red); }
.av .av-foot { padding:14px 28px 22px; font-size:13px; line-height:1.45; color:var(--muted); margin:0; border-top:1px solid var(--line); }

.av-list { display:none; padding:6px 16px 10px; }
.av-day { padding:14px 0; border-bottom:1px solid var(--line); }
.av-day h3 { display:flex; justify-content:space-between; align-items:baseline; font-family:Inter, sans-serif; font-weight:900; font-size:16px; line-height:1.2; text-transform:uppercase; letter-spacing:0; color:var(--ink); margin:0; padding:0; }
.av-day h3 small { font-size:12px; font-weight:700; text-transform:none; }
.av-tl { position:relative; height:16px; background:var(--free); border-radius:4px; box-shadow:inset 0 0 0 1px var(--line); margin:9px 0 8px; overflow:hidden; }
.av-tl i { position:absolute; top:0; bottom:0; background:var(--booked); }
.av-tl i.gone { background:repeating-linear-gradient(135deg, #efece7 0 4px, #e3dfd8 4px 8px); }
.av-slots { display:flex; flex-wrap:wrap; gap:6px; }
.av-slot { font-weight:700; font-size:13px; border-radius:999px; padding:4px 11px; background:#fff; border:1px solid var(--line); }
.av-slot.full { border:0; background:transparent; color:var(--red); padding-left:0; }

@container (max-width:820px) {
  .av-grid { display:none; }
  .av-list { display:block; }
  .av-legend { display:none; }
  .av-bar { padding:14px 16px; }
  .av .av-foot { padding:12px 18px 18px; }
}
