/**
 * Booking Bar Flottante
 * Barra di prenotazione fissa in basso con widget InReception
 */

/* Pulsante Toggle Mobile/Tablet */
.booking-bar-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--color-cta-secondary-hover) 0%, var(--color-cta-secondary) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(212, 168, 106, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.booking-bar-floating .form-control{
    margin-bottom: 0;
}

.booking-bar-toggle:hover {
    background: linear-gradient(135deg, var(--color-cta-secondary) 0%, var(--color-cta-secondary-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 168, 106, 0.5);
}

.booking-bar-toggle.active {
    background: linear-gradient(135deg, var(--color-cta-primary-hover) 0%, var(--color-cta-primary) 100%);
}

.booking-bar-toggle .toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.booking-bar-toggle .toggle-icon svg {
    width: 100%;
    height: 100%;
}

.booking-bar-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-cta-primary-hover) 100%);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 10px 0;
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--color-cta-secondary);
}

.booking-bar-floating.hidden {
    transform: translateY(100%);
}

.booking-bar-floating .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Stili per il widget InReception */
.booking-bar-floating .wGrid {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.booking-bar-floating .wGridHorizontal > div {
    flex: 1;
    min-width: 140px;
}

.booking-bar-floating .wGridHorizontal > div:first-child,
.booking-bar-floating .wGridHorizontal > div:nth-child(2) {
    flex: 1.2;
}

.booking-bar-floating .inr-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-cta-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-bar-floating .inr-button-bs4 {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    background: var(--color-white);
    transition: all 0.3s ease;
    color: var(--color-text-main);
    font-family: inherit;
}

.booking-bar-floating select.inr-button-bs4 {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8975f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.booking-bar-floating .border-inr-green {
    border: 2px solid rgba(184, 151, 95, 0.3) !important;
}

.booking-bar-floating .inr-button-bs4:focus,
.booking-bar-floating .inr-button-bs4:hover {
    border-color: var(--color-cta-secondary) !important;
    box-shadow: 0 0 0 4px rgba(184, 151, 95, 0.15);
    transform: translateY(-1px);
}

.booking-bar-floating .inr-green {
    background: linear-gradient(135deg, var(--color-cta-secondary) 0%, var(--color-cta-secondary-hover) 100%) !important;
    border: none !important;
    color: var(--color-white) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(184, 151, 95, 0.4);
}

.booking-bar-floating .inr-green:hover {
    background: linear-gradient(135deg, #d4af76 0%, #b8975f 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 151, 95, 0.5);
}

.booking-bar-floating .confirmButton {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
}

.booking-bar-floating .confirmButton button {
    height: 48px;
}

.booking-bar-floating .couponInput {
    flex: 1.3;
    display: flex;
    flex-direction: column;
}

.booking-bar-floating .couponInput input {
    height: 48px;
    border-radius: 6px;
    padding: 12px 16px !important;
}

/* Dropdown ospiti - rimosso, non più necessario */

/* Responsive */
@media (max-width: 991px) {
    /* Mostra il pulsante toggle su tablet e mobile */
    .booking-bar-toggle {
        display: flex;
    }
    
    /* Nascondi la barra di default su tablet e mobile */
    .booking-bar-floating {
        padding: 15px 0;
        transform: translateY(100%);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Mostra la barra quando è aperta */
    .booking-bar-floating.open {
        transform: translateY(0);
    }
    
    .booking-bar-floating .wGrid {
        flex-direction: column;
        gap: 12px;
    }
    
    .booking-bar-floating .wGridHorizontal > div,
    .booking-bar-floating .confirmButton,
    .booking-bar-floating .couponInput {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .booking-bar-toggle {
        bottom: 15px;
        left: 15px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .booking-bar-toggle .toggle-icon {
        width: 20px;
        height: 20px;
    }
    
    .booking-bar-floating {
        padding: 12px 0;
        max-height: 85vh;
    }
    
    .booking-bar-floating .inr-button-bs4,
    .booking-bar-floating .confirmButton button,
    .booking-bar-floating .couponInput input {
        height: 44px;
        font-size: 13px;
    }
    
    .booking-bar-floating .inr-label {
        font-size: 10px;
        margin-bottom: 6px;
    }
}

/* Desktop - barra sempre visibile, pulsante nascosto */
@media (min-width: 992px) {
    .booking-bar-toggle {
        display: none !important;
    }
    
    .booking-bar-floating {
        transform: translateY(0) !important;
    }
}
