/* pages/marcar.css — Passos 2 e 3: calendário mensal e semanal, atalhos, horários, duração e campo de título (#view-marcar). */

.booking{display:grid;grid-template-columns:minmax(0,640px);justify-content:center;gap:1.5rem;align-items:start}
.booking.with-slots{grid-template-columns:1fr 1fr;justify-content:stretch}
.calhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}
.calhead h2{font-size:1.6rem}
.nav2{display:flex;gap:.6rem}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:.55rem}
.cal .dow{text-align:center;font-weight:700;font-size:.85rem;color:var(--muted);padding-bottom:.4rem}
.day{aspect-ratio:1;border-radius:14px;font-weight:700;font-size:1.05rem;color:#fff;display:grid;place-items:center}
.day.livre{background:var(--free)}
.day.quase{background:var(--almost);color:var(--text)}
.day.lotado{background:var(--full)}
.day.off{background:var(--day-off);color:var(--muted)}
.day:disabled{cursor:not-allowed}
.day:not(:disabled):hover{filter:brightness(1.1)}
.day.sel{outline:3px solid var(--header);outline-offset:2px}
.legend{display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin-top:1.4rem;font-size:.85rem;color:var(--muted)}
.legend span{display:flex;align-items:center;gap:.4rem}
.legend i{width:12px;height:12px;border-radius:50%}
.hint{text-align:center;color:var(--muted);margin-top:1.2rem}
.slotspanel{display:none}
.with-slots .slotspanel{display:block;animation:fade .25s}
.with-slots .hint{display:none}
.slotshead{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.2rem}
.slotshead h2{font-size:1.5rem}
.slotshead p{color:var(--muted)}
.slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-bottom:1.2rem}
.slot{border:2px solid var(--accent);border-radius:12px;padding:.5rem .2rem;background:#fff;text-align:center;font-weight:700;display:flex;flex-direction:column;align-items:center;transition:.12s}
.slot small{font-weight:500;color:var(--muted);font-size:.68rem}
.slot.reservado{background:var(--off);border-color:var(--off);color:var(--muted);cursor:not-allowed}
.slot.reservado b{text-decoration:line-through}
.slot.indisp{background:#fff;border-color:var(--border);color:var(--muted);cursor:not-allowed}
.slot.sel{background:var(--primary);border-color:var(--primary);color:#fff}
.slot.sel small{color:#fff}
.slot:not(.reservado):not(.indisp):not(.sel):hover{background:var(--accent-soft)}
.titlefield{width:100%;padding:.85rem 1rem;border:2px solid var(--border);border-radius:12px;margin-bottom:1.25rem;outline:0}
.titlefield:focus{border-color:var(--primary)}

/* Bolinhas da legenda (antes eram style inline em cada <i>) */
.legend .dot--free{background:var(--free)}
.legend .dot--almost{background:var(--almost)}
.legend .dot--full{background:var(--full)}
.legend .dot--off{background:var(--dot-off)}

/* Barra do calendário: Mês/Semana e atalhos */
.calbar{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap;margin-bottom:1.25rem}
.calact{display:flex;gap:.5rem;flex-wrap:wrap}

/* Visão semanal */
.wk{width:100%;border-collapse:separate;border-spacing:4px;table-layout:fixed}
.wk th{font-size:.8rem;font-weight:500;color:var(--muted);text-align:center;padding:.2rem 0}
.wk thead th b{display:block;color:var(--text);font-size:1rem}
.wk tbody th{width:3.6rem;text-align:right;padding-right:.4rem;font-size:.78rem}
.wc{display:block;width:100%;height:20px;border-radius:8px;background:var(--accent-soft);border:1px solid var(--brand-light)}
.wc:hover:not(:disabled){background:var(--brand-light)}
.wc.reservado{background:var(--off);border-color:var(--off);cursor:not-allowed}
.wc.indisp{background:var(--soft-surface);border:1px dashed var(--border);cursor:not-allowed}
.wc.sel{background:var(--primary);border-color:var(--primary)}
.wc:focus-visible,.day:focus-visible,.slot:focus-visible{outline:3px solid var(--brand-light);outline-offset:2px}

/* Duração e mensagem de erro */
.durbox{margin:0 0 1.25rem}
.durlabel{font-weight:700;font-size:.9rem;margin-bottom:.5rem}
.durhint{color:var(--muted);font-size:.88rem;margin-top:.5rem}
.msg{background:var(--err-soft);color:var(--err);border-radius:10px;padding:.7rem .9rem;font-size:.9rem;font-weight:600;margin-bottom:1rem}
.durtotal{display:flex;align-items:baseline;gap:.7rem;flex-wrap:wrap}
.durtotal b{font-size:1.5rem;color:var(--text)}
.durtotal span{color:var(--muted);font-weight:700}
