/* =========================================================================
   Reserva / Consulta de disponibilidad — Gran Hotel Brillante
   Implementación autocontenida (no depende del JS/CSS del tema CozyStay).
   Prefijo de clases: .ghb-
   ========================================================================= */

.ghb-reserva {
    position: relative;
    z-index: 20;
    width: 100%;
    flex: 1 1 100%;
    margin-bottom: 40px;
    font-family: "Noto Serif", Arial, sans-serif;
}

/* ---- Barra (franja) --------------------------------------------------- */
.ghb-reserva-band {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 14px;
    padding: 20px;
    background: #6c828f;                 /* slate azulado sólido, sin transparencia */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ---- Campo ------------------------------------------------------------ */
.ghb-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid rgba(208, 182, 124, 0.55);
    background: transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ghb-field--date,
.ghb-field--dropdown {
    cursor: pointer;
}

.ghb-field.is-open,
.ghb-field:hover {
    border-color: #d0b67c;
}

.ghb-field--submit {
    flex: 0 0 auto;
    padding: 0;
    border: none;
}

.ghb-field-label {
    display: block;
    font-family: "Noto Serif", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: #eef2f4;
    opacity: 0.85;
    margin-bottom: 4px;
}

.ghb-field-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    font-family: "Noto Serif", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

.ghb-field-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghb-chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid #ffffff;
    border-bottom: 1.5px solid #ffffff;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.ghb-field.is-open .ghb-chevron {
    transform: rotate(225deg) translateY(-2px);
}

/* ---- Botón enviar ----------------------------------------------------- */
.ghb-submit {
    height: 100%;
    min-height: 58px;
    padding: 0 34px;
    border: none;
    background: #c2a878;
    color: #ffffff;
    font-family: "Noto Serif", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.ghb-submit:hover {
    background: #b0996a;
}

/* =========================================================================
   Popovers (cream) — comunes a calendario y desplegables
   ========================================================================= */
.ghb-popover,
.ghb-calendar {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 60;
    background: #f3efe5;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.20);
    padding: 24px 28px;
}

.ghb-popover[hidden],
.ghb-calendar[hidden] {
    display: none;
}

/* Triángulo (pico) apuntando al campo */
.ghb-popover::before,
.ghb-calendar::before {
    content: "";
    position: absolute;
    top: -9px;
    left: var(--ghb-arrow-left, 40px);
    width: 18px;
    height: 18px;
    background: #f3efe5;
    transform: rotate(45deg);
    box-shadow: -3px -3px 6px rgba(0, 0, 0, 0.04);
}

/* ---- Steppers (Habitaciones / Adultos / Niños) ------------------------ */
.ghb-popover {
    min-width: 320px;
}

.ghb-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 14px 4px;
}

.ghb-stepper-row + .ghb-stepper-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ghb-stepper-label {
    font-family: "Noto Serif", Arial, sans-serif;
    font-size: 18px;
    color: #2b3439;
}

.ghb-stepper {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ghb-step {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: #9a9384;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}

.ghb-step:hover {
    color: #6f6857;
}

.ghb-step:disabled {
    color: #cfc9bb;
    cursor: default;
}

.ghb-step-value {
    min-width: 20px;
    text-align: center;
    font-size: 18px;
    color: #2b3439;
}

/* =========================================================================
   Calendario de rango (dos meses)
   ========================================================================= */
.ghb-calendar {
    padding: 22px 26px 26px;
    min-width: 620px;
}

.ghb-cal-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

.ghb-cal-title {
    flex: 1 1 0;
    text-align: center;
    font-family: "Noto Serif", Arial, sans-serif;
    font-size: 20px;
    color: #2b3439;
}

.ghb-cal-nav {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    background: none;
    color: #2b3439;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ghb-cal-nav:hover {
    background: rgba(0, 0, 0, 0.05);
}

.ghb-cal-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.ghb-cal-nav--prev {
    order: -1;
}

.ghb-cal-months {
    display: flex;
    gap: 40px;
}

.ghb-cal-month {
    flex: 1 1 0;
}

.ghb-cal-month-name {
    font-family: "Noto Serif", Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #2b3439;
    margin-bottom: 12px;
}

.ghb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.ghb-cal-dow {
    text-align: center;
    font-size: 13px;
    color: #6a7278;
    padding: 4px 0 8px;
}

.ghb-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 14px;
    color: #2b3439;
    border-radius: 2px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.ghb-cal-day:hover {
    background: #e5d9bf;
}

/* Días fuera del mes / pasados: no seleccionables */
.ghb-cal-day.is-muted {
    color: #c3c0b8;
    cursor: default;
}

.ghb-cal-day.is-past {
    color: #c3c0b8;
    text-decoration: line-through;
    cursor: default;
}

.ghb-cal-day.is-muted:hover,
.ghb-cal-day.is-past:hover {
    background: none;
}

/* Rango seleccionado */
.ghb-cal-day.in-range {
    background: #e5d9bf;
    border-radius: 0;
}

.ghb-cal-day.is-start,
.ghb-cal-day.is-end {
    background: #c2a06f;
    color: #ffffff;
}

.ghb-cal-day.is-start {
    border-radius: 2px 0 0 2px;
}

.ghb-cal-day.is-end {
    border-radius: 0 2px 2px 0;
}

.ghb-cal-day.is-start.is-end {
    border-radius: 2px;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
    .ghb-reserva-band {
        flex-wrap: wrap;
    }
    .ghb-field {
        flex: 1 1 45%;
    }
    .ghb-field--submit {
        flex: 1 1 100%;
    }
    .ghb-submit {
        width: 100%;
        min-height: 52px;
    }
}

@media (max-width: 680px) {
    .ghb-reserva-band {
        gap: 10px;
        padding: 14px;
    }
    .ghb-field {
        flex: 1 1 100%;
    }
    .ghb-calendar {
        position: fixed;
        top: 50%;
        left: 50% !important;
        right: auto;
        transform: translate(-50%, -50%);
        min-width: 0;
        width: calc(100vw - 32px);
        max-height: 80vh;
        overflow-y: auto;
        padding: 18px;
        z-index: 9999;
    }
    .ghb-calendar::before {
        display: block;
        top: auto;
        bottom: -9px;
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg);
    }
    .ghb-cal-months {
        flex-direction: column;
        gap: 22px;
    }
    .ghb-popover {
        min-width: 0;
        left: 0 !important;
        right: 0;
        top: auto;
        bottom: calc(100% + 12px);
    }
    .ghb-popover::before {
        top: auto;
        bottom: -9px;
        transform: rotate(45deg);
    }
}
