/* ===================================
   PRENOTAZIONE VISITE - CALENDARIO & STEPPER
   Riusa i colori/bottoni del tema Porto gia' in uso (btn-primary, form-control);
   qui solo i componenti senza equivalente nel tema (calendario, stepper).
   =================================== */

.vb-booking-section {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 30px 25px;
    margin-bottom: 30px;
}

.vb-stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vb-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
}

.vb-step .vb-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d8d8d8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.vb-step.active { color: #333; }
.vb-step.active .vb-step-number { background: #e93804; }
.vb-step.completed { color: #28a745; }
.vb-step.completed .vb-step-number { background: #28a745; }

.vb-connector { width: 30px; height: 2px; background: #d8d8d8; align-self: center; }
.vb-connector.active { background: #e93804; }

/* Calendario */
.vb-calendar { max-width: 500px; margin: 0 auto 25px; background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; }
.vb-cal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: #2c2c2c; color: #fff; }
.vb-cal-header h4 { margin: 0; font-size: 16px; font-weight: 600; text-transform: capitalize; color: #fff; }
.vb-cal-nav { background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.vb-cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; padding: 10px 8px 6px; border-bottom: 1px solid #eee; }
.vb-cal-weekday { font-size: 10px; font-weight: 700; color: #999; text-transform: uppercase; }
.vb-cal-days { display: grid; grid-template-columns: repeat(7,1fr); padding: 8px; gap: 4px; }
.vb-cal-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; color: #ccc; gap: 2px; }
.vb-cal-day.available { color: #2c2c2c; cursor: pointer; background: #f2f2f2; }
.vb-cal-day.available:hover { background: #e93804; color: #fff; }
.vb-cal-day.selected { background: #e93804; color: #fff; }
.vb-cal-day.full { color: #ddd; text-decoration: line-through; }
.vb-cal-day.today { border: 2px solid #e93804; }
.vb-cal-day-num { font-size: 13px; line-height: 1; }
.vb-cal-day-spots { font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }

/* Fasce orarie */
.vb-time-slots-container { display: none; max-width: 500px; margin: 0 auto 25px; }
.vb-time-slots-container.visible { display: block; }
.vb-time-slots { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.vb-time-slot { flex: 1; min-width: 150px; background: #fff; border: 2px solid #e5e5e5; border-radius: 8px; padding: 15px; text-align: center; cursor: pointer; }
.vb-time-slot:hover { border-color: #e93804; }
.vb-time-slot.selected { border-color: #e93804; background: #f2f2f2; }
.vb-time-slot.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.vb-time-slot-time { font-size: 18px; font-weight: 700; color: #2c2c2c; }
.vb-time-slot-spots { font-size: 12px; color: #888; }
.vb-time-slot-full { font-size: 12px; color: #dc3545; font-weight: 600; }

/* Selettori adulti/bambini */
.vb-people-selector { display: none; max-width: 500px; margin: 0 auto 25px; }
.vb-people-selector.visible { display: block; }
.vb-people-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vb-people-row label { font-weight: 600; margin: 0; }
.vb-people-counter { display: flex; align-items: center; gap: 10px; }
.vb-people-counter button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #e5e5e5; background: #fff; font-weight: 700; cursor: pointer; }
.vb-people-counter button:disabled { opacity: 0.4; cursor: not-allowed; }
.vb-people-counter span { min-width: 24px; text-align: center; font-weight: 700; }

/* Riepilogo prezzo */
.vb-price-summary { display: none; max-width: 500px; margin: 0 auto 20px; background: #fff; border-radius: 8px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.vb-price-summary.visible { display: block; }
.vb-price-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: #666; }
.vb-price-row.total { border-top: 2px solid #eee; margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 700; color: #2c2c2c; }

/* Form dati cliente */
.vb-booking-form-container { display: none; max-width: 500px; margin: 0 auto; }
.vb-booking-form-container.visible { display: block; }

.vb-alert { display: none; max-width: 500px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.vb-alert.error { display: block; background: #fde8e8; color: #c0392b; }
.vb-alert.warning { display: block; background: #fff3cd; color: #856404; }
