
/* ============================================================
   1. REGOLE GLOBALI E PULSANTI
   ============================================================ */
html body .mphb-button, 
html body .mphb-confirm-checkout, 
html body .mphb-search-submit-button,
html body .mphb-reserve-btn,
html body input[type="submit"] {
    background-color: #d4af37 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    height: 48px !important;
    padding: 0 30px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
}

/* Pulizia testi tecnica */
.mphb-room-type-title, .mphb-rooms-quantity-wrapper, .mphb-required-fields-tip {
    display: none !important;
}

/* ============================================================
   2. HOME: MODULO RICERCA (DESKTOP)
   ============================================================ */
html body .mphb_sc_search-form {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 15px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    width: fit-content !important;
    max-width: 95% !important;
    margin: 20px auto !important;
    box-sizing: border-box !important;
}

html body .mphb_sc_search-form label, html body .mphb_sc_search-form br {
    display: none !important;
}

html body .mphb_sc_search-form p {
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   3. PAGINA APPARTAMENTO E CHECKOUT
   ============================================================ */
.single-mphb_room_type .mphb-date-picker {
    pointer-events: none !important;
}

html body .mphb_sc_checkout-form {
    max-width: 850px !important;
    margin: 30px auto !important;
    background-color: #fff !important;
    padding: 30px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}

/* ============================================================
   4. FIX MIRATO ALLINEAMENTO CONTATTI FOOTER
   ============================================================ */
.elementor-widget-icon-list .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

/* Mette l'icona sopra il testo per centratura perfetta */
.elementor-widget-icon-list .elementor-icon-list-item, 
.elementor-widget-icon-list .elementor-icon-list-item a {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}

.elementor-widget-icon-list .elementor-icon-list-icon {
    margin: 0 0 5px 0 !important; 
}

/* Spezza l'email se troppo lunga per lo schermo */
.elementor-icon-list-text {
    word-wrap: break-word !important;
    word-break: break-all !important; 
    white-space: normal !important;
    max-width: 100% !important;
}

/* ============================================================
   5. FIX RESPONSIVE (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    /* Box Ricerca Mobile: Adatta il contenitore e i singoli campi */
    html body .mphb_sc_search-form {
        flex-direction: column !important;
        width: 95% !important;
        max-width: 95% !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 15px !important;
    }

    /* Forza i campi bianchi a riempire tutto il box senza uscire fuori */
    html body .mphb_sc_search-form p,
    html body .mphb_sc_search-form input,
    html body .mphb_sc_search-form select {
        width: 100% !important;
        box-sizing: border-box !important; 
    }

    /* Footer: Evita che i testi vengano tagliati o creino scroll laterali */
    footer, .elementor-location-footer {
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; 
    }

    footer a, footer p, footer span {
        font-size: 14px !important;
    }

    /* Checkout in mobile */
    html body .mphb_sc_checkout-form {
        padding: 15px !important;
        width: 95% !important;
    }
}
/* ============================================================
   SHOWROOM: RISULTATI DI RICERCA (CARD ELEGANTI)
   ============================================================ */
.mphb_sc_search_results-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px 0 !important;
}

.mphb-room-type {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    border: 1px solid #eee !important;
    transition: 0.3s !important;
}

.mphb-room-type:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.1) !important;
}

/* Titolo dell'auto/appartamento nella lista */
.mphb-room-type-title {
    display: block !important; /* Qui lo riattiviamo perché serve */
    font-size: 22px !important;
    padding: 20px 20px 5px 20px !important;
    color: #333 !important;
}

/* Prezzo e Bottone nella Card */
.mphb-price {
    padding: 0 20px 10px 20px !important;
    font-weight: bold !important;
    color: #d4af37 !important;
}

.mphb-view-details-button {
    margin: 10px 20px 20px 20px !important;
}