/* ===== MPHB - AJUSTE DO FORMULÁRIO DE BUSCA ===== */

/* força o formulário a trabalhar em flex e quebrar linha */
.mphb_sc_search-wrapper .mphb_sc_search-form,
.mphb_sc_search-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
}

/* campos principais continuam na linha de cima */
.mphb_sc_search-wrapper .mphb_sc_search-form > p,
.mphb_sc_search-form > p {
    box-sizing: border-box !important;
}

/* bloco de comodidades vai para baixo e ocupa 100% */
.mphb_sc_search-wrapper .mphb_sc_search-facilities,
.mphb_sc_search-facilities {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 10 !important;
    margin-top: 12px !important;
    display: block !important;
    clear: both !important;
}

/* botão após comodidades */
.mphb_sc_search-wrapper .mphb_sc_search-submit-button-wrapper,
.mphb_sc_search-submit-button-wrapper {
    order: 11 !important;
    margin-top: 12px !important;
}

/* remove quebras antigas */
.mphb_sc_search-wrapper .mphb_sc_search-facilities br,
.mphb_sc_search-facilities br {
    display: none !important;
}

/* título das comodidades */
.mphb_sc_search-wrapper .mphb_sc_search-facilities > label:first-of-type,
.mphb_sc_search-facilities > label:first-of-type {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    font-weight: 700 !important;
}

/* cada item de comodidade */
.mphb_sc_search-wrapper .mphb_sc_search-facilities label:not(:first-of-type),
.mphb_sc_search-facilities label:not(:first-of-type) {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 12px 6px 0 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    text-transform: capitalize !important;
}

/* checkbox com leve espaço do texto */
.mphb_sc_search-wrapper .mphb_sc_search-facilities input[type="checkbox"],
.mphb_sc_search-facilities input[type="checkbox"] {
    margin: 0 4px 0 0 !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
}

/* tenta melhorar alinhamento interno caso exista span */
.mphb_sc_search-wrapper .mphb_sc_search-facilities label span,
.mphb_sc_search-facilities label span {
    margin-left: 2px !important;
}

/* campo rooms e hóspedes visualmente coerentes */
.mphb_sc_search-wrapper .mphb_sc_search-form input,
.mphb_sc_search-wrapper .mphb_sc_search-form select,
.mphb_sc_search-form input,
.mphb_sc_search-form select {
    box-sizing: border-box !important;
}

/* botão em largura total, caso queira manter como no print */
.mphb_sc_search-wrapper .mphb_sc_search-submit-button-wrapper,
.mphb_sc_search-submit-button-wrapper {
    width: 100% !important;
}

.mphb_sc_search-wrapper .mphb_sc_search-submit-button-wrapper input,
.mphb_sc_search-wrapper .mphb_sc_search-submit-button-wrapper button,
.mphb_sc_search-submit-button-wrapper input,
.mphb_sc_search-submit-button-wrapper button {
    width: 100% !important;
}

/* responsivo */
@media (max-width: 768px) {
    .mphb_sc_search-wrapper .mphb_sc_search-facilities label:not(:first-of-type),
    .mphb_sc_search-facilities label:not(:first-of-type) {
        margin: 0 10px 6px 0 !important;
        font-size: 14px !important;
    }
}

#top .mphb_sc_search-wrapper :where(input,select,textarea) {
    margin-right: 5px !important;
}
