/* =========================================================
   ALMA NEXUS · CALENDARIO VISUAL DE RESERVAS
   ========================================================= */

.booking-form.is-visual-calendar .booking-form__two {
    display: none;
}

.booking-calendar-ui {
    display: grid;
    gap: 18px;
}

.booking-calendar,
.booking-time-picker {
    border: 1px solid rgba(38,59,67,.12);
    background: #FCFBF8;
}

.booking-calendar {
    padding: 12px 14px;
}

.booking-calendar__head,
.booking-time-picker__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.booking-calendar__eyebrow,
.booking-time-picker__head span {
    display: block;
    margin-bottom: 5px;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8C7A55;
}

.booking-calendar__month,
.booking-time-picker__head strong {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    color: #263B43;
}

.booking-calendar__month {
    text-transform: capitalize;
}

.booking-calendar__nav {
    display: flex;
    gap: 6px;
}

.booking-calendar__nav button {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(38,59,67,.15);
    background: #fff;
    color: #244A5A;
    cursor: pointer;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 17px;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.booking-calendar__nav button:hover:not(:disabled) {
    background: #244A5A;
    border-color: #244A5A;
    color: #FCFBF8;
}

.booking-calendar__nav button:disabled {
    cursor: not-allowed;
    opacity: .28;
}

.booking-calendar__weekdays,
.booking-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
}

.booking-calendar__weekdays {
    margin-top: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(38,59,67,.08);
}

.booking-calendar__weekdays span {
    text-align: center;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #718087;
}

.booking-calendar__days {
    margin-top: 5px;
    gap: 3px;
}

.booking-calendar-day {
    position: relative;
    aspect-ratio: 1 / .88;
    min-height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #263B43;
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.booking-calendar-day--blank {
    display: block;
    min-height: 34px;
}

.booking-calendar-day.is-available {
    border-color: rgba(36,74,90,.15);
    background: #F3F7F7;
    color: #244A5A;
    cursor: pointer;
}

.booking-calendar-day.is-available i {
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7A9C83;
    transform: translateX(-50%);
}

.booking-calendar-day.is-available:hover {
    border-color: #244A5A;
    background: #E7EFF0;
    transform: translateY(-1px);
}

.booking-calendar-day.is-selected {
    border-color: #244A5A;
    background: #244A5A;
    color: #FCFBF8;
    box-shadow: 0 7px 18px rgba(36,74,90,.14);
}

.booking-calendar-day.is-selected i {
    background: #CDBF98;
}

.booking-calendar-day.is-unavailable,
.booking-calendar-day:disabled {
    border-color: #ECE9E1;
    background: #F2F0EB;
    color: #B7B4AD;
    cursor: not-allowed;
}

.booking-calendar-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1px #CDBF98;
}

.booking-calendar__legend {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-calendar__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    color: #5E7077;
}

.booking-calendar__legend i {
    width: 10px;
    height: 10px;
    display: inline-block;
    border: 1px solid rgba(38,59,67,.12);
}

.booking-calendar__legend i.is-available {
    background: #F3F7F7;
    border-color: rgba(36,74,90,.22);
}

.booking-calendar__legend i.is-unavailable {
    background: #F2F0EB;
    border-color: #ECE9E1;
}

.booking-calendar__legend i.is-selected {
    background: #244A5A;
    border-color: #244A5A;
}

.booking-calendar__loading,
.booking-calendar__error {
    grid-column: 1 / -1;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #5E7077;
}

.booking-calendar__error {
    color: #8D514C;
}

.booking-time-picker {
    padding: 11px 14px 12px;
}

.booking-time-picker__slots {
    margin-top: 9px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 5px;
}

.booking-time-slot {
    min-height: 44px;
    padding: 6px 4px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 1px solid rgba(38,59,67,.12);
    background: #F2F0EB;
    color: #A7A49D;
    cursor: not-allowed;
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.booking-time-slot span {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 17px;
    line-height: 1;
}

.booking-time-slot small {
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
}

.booking-time-slot.is-available {
    background: #F3F7F7;
    border-color: rgba(36,74,90,.18);
    color: #244A5A;
    cursor: pointer;
}

.booking-time-slot.is-available small {
    color: #657B83;
}

.booking-time-slot.is-available:hover {
    background: #E7EFF0;
    border-color: #244A5A;
    transform: translateY(-1px);
}

.booking-time-slot.is-selected {
    background: #244A5A;
    border-color: #244A5A;
    color: #FCFBF8;
    box-shadow: 0 8px 20px rgba(36,74,90,.14);
}

.booking-time-slot.is-selected small {
    color: rgba(252,251,248,.78);
}

.booking-time-slot.is-unavailable,
.booking-time-slot:disabled {
    background: #F2F0EB;
    border-color: #E9E6DF;
    color: #B3B0A9;
}

.booking-time-picker__note {
    margin: 7px 0 0;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: #708087;
}

.booking-form.is-visual-calendar .booking-summary {
    margin-top: 2px;
}

@media (max-width: 720px) {
    .booking-calendar {
        padding: 16px;
    }

    .booking-calendar__month,
    .booking-time-picker__head strong {
        font-size: 22px;
    }

    .booking-calendar__weekdays span {
        font-size: 12px;
    }

    .booking-calendar__days {
        gap: 3px;
    }

    .booking-calendar-day,
    .booking-calendar-day--blank {
        min-height: 32px;
    }

    .booking-time-picker__slots {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 440px) {
    .booking-calendar__head {
        align-items: center;
    }

    .booking-calendar__month {
        font-size: 20px;
    }

    .booking-calendar__nav button {
        width: 38px;
        height: 38px;
    }

    .booking-calendar__weekdays span {
        font-size: 12px;
    }

    .booking-calendar-day,
    .booking-calendar-day--blank {
        min-height: 38px;
        font-size: 12px;
    }
}


/* =========================================================
   ALMA NEXUS · COMPACTACIÓN FORZADA
   ========================================================= */

#booking .booking-calendar {
    padding: 10px 12px 11px !important;
}

#booking .booking-calendar__head {
    gap: 8px !important;
}

#booking .booking-calendar__eyebrow {
    margin-bottom: 2px !important;
    font-size: 12px !important;
}

#booking .booking-calendar__month {
    font-size: 19px !important;
    line-height: 1.05 !important;
}

#booking .booking-calendar__nav {
    gap: 4px !important;
}

#booking .booking-calendar__nav button {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
}

#booking .booking-calendar__weekdays {
    margin-top: 8px !important;
    padding-bottom: 4px !important;
}

#booking .booking-calendar__weekdays span {
    font-size: 12px !important;
}

#booking .booking-calendar__days {
    margin-top: 4px !important;
    gap: 2px !important;
}

#booking .booking-calendar-day,
#booking .booking-calendar-day--blank {
    min-height: 30px !important;
}

#booking .booking-calendar-day {
    aspect-ratio: 1 / .62 !important;
    font-size: 12px !important;
}

#booking .booking-calendar-day.is-available i {
    bottom: 2px !important;
    width: 4px !important;
    height: 4px !important;
}

#booking .booking-calendar__legend {
    margin-top: 7px !important;
    gap: 9px !important;
}

#booking .booking-calendar__legend span {
    font-size: 12px !important;
}

#booking .booking-calendar__legend i {
    width: 9px !important;
    height: 9px !important;
}

/* Horarios */
#booking .booking-time-picker {
    padding: 9px 12px 10px !important;
}

#booking .booking-time-picker__head strong {
    font-size: 17px !important;
}

#booking .booking-time-picker__slots {
    margin-top: 7px !important;
    gap: 4px !important;
}

#booking .booking-time-slot {
    min-height: 40px !important;
    padding: 4px 3px !important;
}

#booking .booking-time-slot span {
    font-size: 16px !important;
}

#booking .booking-time-slot small {
    font-size: 12px !important;
}

#booking .booking-time-picker__note {
    margin-top: 6px !important;
    font-size: 12px !important;
}

/* Reduce ancho visual de la zona calendario sin estrechar toda la tarjeta */
#booking .booking-calendar-ui {
    gap: 9px !important;
}

#booking .booking-calendar,
#booking .booking-time-picker {
    max-width: 100% !important;
}

/* Card y bloques superiores algo más compactos */
#booking .booking-card {
    padding: 20px 22px 22px !important;
}

#booking .booking-form {
    gap: 10px !important;
}

#booking .booking-client-bar,
#booking .booking-professional-static {
    padding: 9px 11px !important;
}

#booking .booking-professional-static__photo {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
}

#booking .booking-fixed-hours {
    padding: 7px 9px !important;
}

#booking .booking-summary {
    min-height: 43px !important;
    padding: 8px 11px !important;
}

#booking .booking-submit {
    min-height: 44px !important;
}

@media (max-width: 620px) {
    #booking .booking-calendar-day,
    #booking .booking-calendar-day--blank {
        min-height: 28px !important;
    }

    #booking .booking-time-slot {
        min-height: 42px !important;
    }
}
