/* Styles for the booking flow (booking-ui.js), mounted at #reserva-host
   below the vehicle picker. Reuses the same design tokens as style.css /
   studio.css / ymm.css — no new colors introduced. */
.booking{background:var(--charcoal-2);border:1px solid var(--line);border-radius:var(--radius-lg);padding:26px;}
.booking[data-state="unavailable"] .booking-services{display:none;}
.booking-price-note{font-size:12px;color:var(--gold-soft);margin:0 0 16px;}
.booking-duration-note{font-size:12px;color:var(--text-dim);margin:0 0 12px;}

.booking-services{display:grid;gap:10px;margin-bottom:8px;}
.booking-service{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  text-align:left;background:var(--charcoal);border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  padding:14px 16px;color:var(--off-white);font:inherit;font-size:14px;cursor:pointer;}
.booking-service[aria-checked="true"]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);}
.booking-service:disabled{opacity:.45;cursor:not-allowed;}
.booking-service-name{font-weight:600;}
.booking-service-price{font-weight:700;color:var(--gold-soft);white-space:nowrap;}
.booking-service-price small{display:block;font-weight:700;font-size:9.5px;letter-spacing:.5px;color:var(--gold);text-align:right;}
.booking-service-price--pending{font-weight:600;font-size:12.5px;color:var(--gold-soft);white-space:normal;text-align:right;}

.booking-step{margin-top:22px;padding-top:22px;border-top:1px solid var(--line);}
.booking-days{display:grid;gap:14px;}
.booking-day-label{margin:0 0 8px;font-size:12.5px;color:var(--text-dim);text-transform:none;}
.booking-day-slots{display:flex;flex-wrap:wrap;gap:8px;}
.booking-slot{background:var(--charcoal);border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  color:var(--off-white);font:inherit;font-size:13.5px;padding:9px 14px;cursor:pointer;}
.booking-slot[aria-pressed="true"]{border-color:var(--gold);background:rgba(184,149,80,.14);color:var(--gold-soft);}
.booking-empty{font-size:13px;color:var(--text-dim);}

.booking-form{display:grid;gap:14px;max-width:420px;}
.booking-form label{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--text-dim);}
.booking-form input{display:block;width:100%;margin-top:6px;background:var(--charcoal);border:1px solid var(--line-strong);
  color:var(--off-white);font:inherit;font-size:16px;padding:10px;border-radius:var(--radius-sm);min-height:44px;}
.booking-form-error{color:#ff8a8a;font-size:13px;margin:0;}
/* BOOK-3: the account note under the contact fields. */
.booking-linked,.booking-account-hint{font-size:13px;margin:0;opacity:.85;}
.booking-account-hint a{color:inherit;text-decoration:underline;}
.booking-submit{margin-top:4px;justify-content:center;}

.booking-confirmed-headline{font-weight:700;color:var(--gold-soft);font-size:16px;margin:0 0 6px;}
.booking-confirmation p{margin:0 0 8px;font-size:14px;line-height:1.5;}

@media (max-width:520px){
  .booking{padding:18px;}
  .booking-service{flex-direction:column;align-items:flex-start;gap:4px;}
  .booking-service-price{align-self:flex-end;}
}

/* ---- Booking modal (booking-modal.js) — the one flow every entry point
   on the site opens. Reuses .modal-overlay/.modal/.modal-progress/
   .modal-back/.chips/.chip/.big-cta from style.css's legacy intake modal
   for a consistent look, plus the .booking-* rules above for the
   service/slot/form steps. */
.booking-modal{max-width:480px;}
.booking-tz-note{font-size:12px;color:var(--text-dim);margin:0 0 14px;}
.booking-vehicle-fields{margin-bottom:18px;}
.bm-vehicle-continue,.booking-modal .big-cta{margin-top:6px;}
.booking-day-picker{display:grid;gap:8px;max-height:min(50vh,420px);overflow-y:auto;padding-right:2px;}
.booking-day-chip{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;
  background:var(--charcoal);border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  padding:12px 14px;color:var(--off-white);font:inherit;font-size:14px;cursor:pointer;}
.booking-day-chip:hover{border-color:var(--gold);}
.booking-day-chip span{display:inline-block;font-weight:600;text-transform:none;}
.booking-day-chip small{color:var(--text-dim);font-size:11.5px;}
.booking-modal-slots{max-height:min(50vh,420px);overflow-y:auto;}

/* ---- Guided-flow additions: chips, suggested slot, phone bottom sheet ---- */
.booking-modal-summary{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px;}
.booking-modal-summary:empty{display:none;}
.booking-chip{background:rgba(184,149,80,.14);border:1px solid rgba(184,149,80,.35);color:var(--gold-soft);
  font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:20px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.booking-suggest{background:var(--charcoal);border:1px solid var(--gold);border-radius:var(--radius-md);padding:16px;margin:0 0 14px;text-align:center;}
.booking-suggest-label{margin:0 0 4px;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--text-dim);}
.booking-suggest-when{margin:0 0 6px;font-size:20px;font-weight:800;color:var(--off-white);text-transform:none;}
.booking-suggest-price{margin:0 0 12px;font-size:13.5px;color:var(--off-white);}
.booking-suggest-price small{color:var(--gold);font-weight:700;font-size:10.5px;letter-spacing:.4px;}
.booking-other{display:block;width:100%;margin-top:10px;background:none;border:1.5px solid var(--line-strong);color:var(--off-white);
  border-radius:14px;padding:13px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;min-height:48px;}
.booking-other:hover{border-color:var(--gold);}
.bm-vehicle-continue,.booking-modal .big-cta{min-height:52px;}

/* Phone: the modal becomes a bottom sheet (thumb-reachable, easy to dismiss). */
@media (max-width:600px){
  .booking-modal-overlay{align-items:flex-end;padding:0;}
  .booking-modal-overlay .booking-modal{max-width:none;width:100%;border-radius:20px 20px 0 0;max-height:88vh;
    padding:20px 16px calc(20px + env(safe-area-inset-bottom));animation:sheetup .22s ease;}
  .booking-modal .modal-close{width:40px;height:40px;top:10px;right:10px;}
  .booking-modal .chip,.booking-service,.booking-day-chip,.booking-slot{min-height:48px;}
}
@keyframes sheetup{from{transform:translateY(24px);opacity:.6;}to{transform:none;opacity:1;}}
@media (prefers-reduced-motion:reduce){.booking-modal-overlay .booking-modal{animation:none;}}
.booking-modal-overlay.is-sheet .modal-progress{display:none;}
/* Capitalize only the first letter ("sáb, 3 de oct" → "Sáb, 3 de oct"); per-word capitalize produced "3 De Oct". */
.booking-day-label::first-letter,.booking-day-chip span::first-letter,.booking-suggest-when::first-letter{text-transform:uppercase;}
