/* =========================================================
   MOTOR DE RESERVAS + WHATSAPP — GLOBAL
   Carregado pelo header e exibido pelo footer em todas as páginas.
   ========================================================= */

.hfu-booking-bar,
.hfu-booking-bar *,
.whatsapp-flutuante-popup,
.whatsapp-flutuante-popup * {
    box-sizing: border-box;
}

.hfu-booking-bar {
    position: fixed !important;
    z-index: 2147483600 !important;
    left: 50% !important;
    bottom: 22px !important;
    display: block !important;
    visibility: visible !important;
    width: calc(100% - 40px) !important;
    max-width: 980px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    opacity: 1 !important;
    background: transparent !important;
}

.hfu-booking-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr .8fr .85fr 1fr !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10) !important;
}

.hfu-booking-field {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hfu-date-button,
.hfu-booking-field select,
.hfu-booking-field input[type="text"],
.hfu-booking-submit {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 3px .85em !important;
    border: 1px solid rgba(59, 47, 36, .13) !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: #fffdf8 !important;
    box-shadow: none !important;
    color: #3b2f24 !important;
    font-family: "Bodoni MT", serif !important;
    font-size: 16px !important;
    font-style: italic !important;
    line-height: 1 !important;
    text-align: left !important;
    cursor: pointer !important;
}

.hfu-booking-field input[type="text"] { cursor: text !important; }
.hfu-booking-field input[type="text"]::placeholder { color: #3b2f24 !important; opacity: .85 !important; }

.hfu-booking-submit {
    border-right: 1px solid rgba(59, 47, 36, .13) !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: .25s ease !important;
}

.hfu-booking-submit:hover { background: #3b2f24 !important; color: #fffdf8 !important; }

.hfu-real-date {
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: .01 !important;
    pointer-events: none !important;
}

body { padding-bottom: 82px !important; }

.whatsapp-flutuante-botao {
    position: fixed;
    z-index: 2147483601;
    right: 24px;
    bottom: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-flutuante-botao:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.whatsapp-flutuante-botao img { display: block; object-fit: contain; }

.whatsapp-flutuante-popup {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 24px 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.whatsapp-flutuante-popup.ativo { visibility: visible; opacity: 1; pointer-events: auto; }
.whatsapp-flutuante-overlay { position: absolute; z-index: 1; inset: 0; background: rgba(28, 23, 19, .72); backdrop-filter: blur(3px); }

.whatsapp-flutuante-modal {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    padding: 34px;
    overflow-y: auto;
    border: 1px solid rgba(118, 21, 6, .12);
    border-radius: 8px;
    background: #fcf5e6;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    transform: translateY(16px) scale(.98);
    transition: transform .25s ease;
}

.whatsapp-flutuante-popup.ativo .whatsapp-flutuante-modal { transform: translateY(0) scale(1); }
.whatsapp-flutuante-fechar { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #761506; font: 300 30px/1 Arial, sans-serif; cursor: pointer; }
.whatsapp-flutuante-cabecalho { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; padding-right: 30px; margin-bottom: 28px; }
.whatsapp-flutuante-icone { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; box-shadow: 0 8px 20px rgba(37, 211, 102, .22); color: #fff; }
.whatsapp-flutuante-icone i { font-size: 30px; }
.whatsapp-flutuante-cabecalho h3 { margin: 0 0 5px; color: #3d3d3c; font-family: "Bodoni MT", serif; font-size: 30px; font-weight: bold; line-height: 1.08; }
.whatsapp-flutuante-cabecalho p { margin: 0; color: #5b5b59; font-family: "Foundry Sterling", sans-serif; font-size: 14px; line-height: 1.5; }
.whatsapp-flutuante-opcoes { display: grid; gap: 12px; }
.whatsapp-flutuante-opcao { display: block; padding: 18px 20px; border: 1px solid rgba(118, 21, 6, .15); border-radius: 5px; background: rgba(255, 255, 255, .66); color: #3d3d3c !important; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.whatsapp-flutuante-opcao:hover { border-color: #25d366; background: #fff; color: #3d3d3c !important; transform: translateY(-2px); }
.whatsapp-flutuante-opcao-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.whatsapp-flutuante-opcao-topo i { color: #25d366; font-size: 21px; }
.whatsapp-flutuante-opcao-topo strong { color: #761506; font-family: "Foundry Sterling", sans-serif; font-size: 17px; font-weight: 600; }
.whatsapp-flutuante-opcao > span { display: block; padding-left: 31px; color: #5b5b59; font-family: "Foundry Sterling", sans-serif; font-size: 13px; line-height: 1.45; }
body.whatsapp-flutuante-aberto { overflow: hidden; }

@media screen and (max-width: 900px) {
    .hfu-booking-bar { left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; max-width: none !important; transform: none !important; }
    .hfu-booking-form { grid-template-columns: 1fr 1fr !important; }
    .hfu-date-button,
    .hfu-booking-field select,
    .hfu-booking-field input[type="text"],
    .hfu-booking-submit { height: 39px !important; min-height: 39px !important; padding: 3px .55em !important; font-size: 14px !important; }
    .hfu-booking-field:nth-child(2) .hfu-date-button,
    .hfu-booking-field:nth-child(4) input[type="text"] { border-right: 1px solid rgba(59, 47, 36, .13) !important; }
    .hfu-booking-field:nth-child(1) .hfu-date-button,
    .hfu-booking-field:nth-child(2) .hfu-date-button,
    .hfu-booking-field:nth-child(3) select,
    .hfu-booking-field:nth-child(4) input[type="text"] { border-bottom: 0 !important; }
    .hfu-booking-submit { grid-column: 1 / -1 !important; border-right: 1px solid rgba(59, 47, 36, .13) !important; white-space: normal !important; }
    body { padding-bottom: 121px !important; }
    .whatsapp-flutuante-botao { right: 14px; bottom: 132px; width: 58px; height: 58px; }
}

@media screen and (max-width: 767px) {
    .whatsapp-flutuante-popup { align-items: flex-end; padding: 12px; }
    .whatsapp-flutuante-modal { width: 100%; max-height: calc(100vh - 24px); padding: 28px 20px 22px; border-radius: 10px 10px 4px 4px; }
    .whatsapp-flutuante-cabecalho { grid-template-columns: 50px 1fr; gap: 14px; padding-right: 24px; }
    .whatsapp-flutuante-icone { width: 50px; height: 50px; }
    .whatsapp-flutuante-icone i { font-size: 26px; }
    .whatsapp-flutuante-cabecalho h3 { font-size: 25px; }
    .whatsapp-flutuante-opcao { padding: 16px; }
    .whatsapp-flutuante-opcao > span { padding-left: 0; }
}

@media screen and (max-width: 420px) {
    .whatsapp-flutuante-botao { right: 12px; bottom: 128px; width: 54px; height: 54px; }
}
