/*
 * Reservas por WhatsApp (sustituye a los widgets de Cloudbeds).
 * Reproduce el aspecto que tenían: barra con «Entrada / Salida» y botón gris, y
 * botones verdes «Reservar» en las habitaciones de la portada y en Nochevieja.
 */

/*
 * El contenedor de cada habitación (estilo.css) tiene un max-height de 30px que
 * el widget de Cloudbeds desbordaba sin que se notara. La barra nueva es algo
 * más alta (etiqueta + campo): se deja crecer para que no pise el precio.
 */
.fechas_reserva_habitacion {
    height: auto;
    max-height: none;
}

/* Barra de fechas */
.wa-reserva {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px 8px;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

.wa-reserva-campo {
    display: flex;
    flex-direction: column;
}

.wa-reserva-campo label {
    margin: 0 0 4px;
    text-align: center;
    font-size: 13px;
    line-height: 16px;
    color: inherit;
}

.wa-reserva-campo input {
    box-sizing: border-box;
    width: 112px;
    height: 30px;
    padding: 4px 6px;
    border: 1px solid #3b3b3b;
    border-radius: 4px;
    background: #fff;
    color: #5b5b5b;
    font: 12px "Trebuchet MS", Verdana, sans-serif;
}

.wa-reserva-enviar {
    box-sizing: border-box;
    min-width: 100px;
    height: 30px;
    padding: 4px 10px;
    border: 1px solid #fff;
    background: #464646;
    color: #fff;
    font: 600 14px Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

.wa-reserva-enviar:hover,
.wa-reserva-enviar:focus-visible {
    background: #2e2e2e;
}

/* Botones de habitaciones y ofertas («Book Here» de Cloudbeds) */
.wa-reserva-boton,
.wa-reserva-boton-grande {
    display: inline-block;
    box-sizing: border-box;
    border-radius: 3px;
    background: #7cb342;
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}

.wa-reserva-boton {
    min-width: 96px;
    padding: 4px 10px;
    font-size: 16px;
    line-height: 20px;
}

/* Nochevieja («largeButton» de Cloudbeds) */
.wa-reserva-boton-grande {
    min-width: 200px;
    height: 38px;
    padding: 0 16px;
    font-size: 24px;
    line-height: 38px;
}

.wa-reserva-boton:hover,
.wa-reserva-boton-grande:hover,
.wa-reserva-boton:focus-visible,
.wa-reserva-boton-grande:focus-visible {
    background: #689f38;
}

/*
 * Nochevieja en móvil: el botón va en la columna derecha (40 %) junto al
 * precio, más estrecha que el botón grande.
 */
.reserva_packs_confirmar_responsive .wa-reserva-boton-grande {
    width: 100%;
    max-width: 200px;
    min-width: 0;
    padding: 0 8px;
    font-size: 20px;
}

/*
 * En móvil, como el widget original: columna centrada. El margen la centra
 * también en /habitaciones/, donde el contenedor es flex y no le afecta el
 * text-align.
 */
@media (max-width: 768px) {
    .wa-reserva {
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .wa-reserva-campo input {
        width: 140px;
        font-size: 16px; /* evita el zoom automático de iOS al tocar el campo */
    }
}
