/* ============================================================
   1. REGOLE GLOBALI E PULSANTI FUORISERIE (ORO #D4AF37)
   ============================================================ */
html body .mphb-button, 
html body .mphb-confirm-checkout, 
html body .mphb-search-submit-button,
html body .mphb-reserve-btn,
html body .mphb-book-button,
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;
    transition: 0.3s ease;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

html body .mphb-button:hover { opacity: 0.8; transform: translateY(-2px); }

/* Pulizia testi tecnica e info ridondanti globali */
.mphb-rooms-quantity-wrapper, .mphb-required-fields-tip, .site-info {
    display: none !important;
}

/* ============================================================
   2. HOME: MODULO RICERCA (EFFETTO BLUR)
   ============================================================ */
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. SHOWROOM: RISULTATI DI RICERCA CORRETTI
   ============================================================ */
.mphb_sc_search_results-wrapper, 
.mphb-search-results-recommended {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    justify-content: center !important;
    width: 100% !important;
    clear: both !important;
}

.mphb-search-results-recommended-title,
.mphb_sc_search_results-wrapper > h2 {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    font-size: 26px !important;
}

.mphb-room-type, 
.mphb-search-results-recommended .mphb-room-type {
    flex: 1 1 calc(33.333% - 25px) !important; 
    min-width: 300px !important;
    max-width: 400px !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 0 !important; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    border: 1px solid #eee !important;
    display: flex !important;
    flex-direction: column !important; 
    margin: 0 !important;
    overflow: hidden !important; 
}

.mphb-room-type-title {
    order: -2 !important;
    display: block !important;
    padding: 20px 20px 10px 20px !important;
    font-size: 20px !important; 
    line-height: 1.3 !important;
    margin: 0 !important;
}

.mphb-room-type-title,
.mphb-room-type-title a {
    color: #d4af37 !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: default !important;
    font-weight: bold !important;
}

.mphb-room-type-images-wrapper,
.mphb-loop-room-type-thumbnail {
    order: -1 !important;
    width: 100% !important;
    height: 220px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    float: none !important;
    overflow: hidden !important;
}

.mphb-room-type-images-wrapper img,
.mphb-loop-room-type-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.mphb-room-type-description {
    padding: 0 20px !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

.mphb-loop-room-type-attributes, 
.mphb-room-type-attributes {
    display: block !important;
    padding: 0 20px !important;
    margin-bottom: 15px !important;
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.mphb-loop-room-type-attributes li, 
.mphb-room-type-attributes li {
    margin-bottom: 4px !important;
}

.mphb-price {
    margin-top: auto !important; 
    padding: 10px 20px !important;
    font-size: 16px !important;
    font-weight: bold !important;
}

.mphb-book-button, .mphb-reserve-btn {
    margin: 0 20px 25px 20px !important;
}

.mphb-view-details-button,
.mphb-view-details-link,
.mphb-room-type-description a,
.mphb-room-type .more-link,
.mphb-room-type p + a,
.mphb-room-type h2 + a,
.mphb-room-type > a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.mphb-room-type-description + p, 
.mphb-room-type-title + p {
    margin-bottom: 0px !important;
}

.mphb-search-results-recommended ul {
    list-style: none !important;
    padding: 0 !important;
}

/* ============================================================
   4. RESTYLING PAGINA CONFERMA E CHECKOUT "LE FUORISERIE"
   ============================================================ */

/* RIMOZIONE CHIRURGICA DI ALLOGGIO #1 (H3.MPHB-ROOM-NUMBER IDENTIFICATO DA ISPEZIONA) */
h3.mphb-room-number,
.mphb-checkout-room-title, 
.mphb-confirmation-room-title,
.mphb-room-details-title,
html body .mphb_sc_checkout-form [class*="room-title"],
html body .mphb_sc_checkout-form [class*="room-number"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

/* Centratura e Stile dei Titoli di Sezione (Es. Dettagli della Prenotazione) */
.mphb_sc_checkout-form h3:not(.mphb-room-number), 
.mphb-checkout-section-title,
.mphb_sc_checkout-form h4 {
    color: #d4af37 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    border-bottom: none !important;
}

/* Allineamento di tutto il testo di riepilogo centrale */
.mphb_sc_checkout-form,
.mphb-billing-details, 
.mphb-booking-details,
.mphb-room-details-table {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Campi Input Form puliti e allineati */
.mphb-checkout-form input[type="text"], 
.mphb-checkout-form input[type="email"], 
.mphb-checkout-form input[type="tel"],
.mphb-checkout-form select,
.mphb-checkout-form textarea {
    background-color: #fcfcfc !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    color: #333 !important;
    width: 100% !important;
    max-width: 500px !important;
    box-sizing: border-box !important;
    margin: 5px auto 15px auto !important;
    display: block !important;
}

.mphb-checkout-form label {
    display: block !important;
    font-weight: 600 !important;
    color: #444 !important;
    text-align: center !important;
    margin-top: 15px !important;
}

.mphb-checkout-form input:focus, 
.mphb-checkout-form select:focus {
    border-color: #d4af37 !important;
    background-color: #fff !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.1) !important;
    outline: none !important;
}

/* Tabella Prezzi minimale, pulita e perfettamente al centro */
.mphb-price-breakdown {
    width: 100% !important;
    max-width: 600px !important;
    border-collapse: collapse !important;
    margin: 25px auto !important;
    background: #fff !important;
}

.mphb-price-breakdown th, 
.mphb-price-breakdown td {
    padding: 15px !important;
    border: 1px solid #f0f0f0 !important;
    text-align: center !important;
}

.mphb-price-breakdown th {
    background-color: #fafafa !important;
    font-weight: bold !important;
    color: #555 !important;
}

.mphb-price-breakdown-total {
    background-color: #fdfaf0 !important;
    font-weight: bold !important;
    font-size: 18px !important;
    color: #1a1a1a !important;
}

/* Errori */
.mphb-errors, .mphb-error {
    background-color: #fff0f0 !important;
    color: #d93025 !important;
    padding: 15px !important;
    border-left: 4px solid #d93025 !important;
    border-radius: 4px !important;
    margin: 20px auto !important;
    max-width: 600px !important;
    font-weight: bold !important;
    list-style: none !important;
    text-align: center !important;
}

/* Bottone di Conferma */
html body .mphb-confirm-checkout {
    display: flex !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 40px auto !important;
    font-size: 18px !important;
}

/* ============================================================
   5. FIX FOOTER E ALLINEAMENTO CONTATTI
   ============================================================ */
.elementor-widget-icon-list .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: center !important;
}

.elementor-widget-icon-list .elementor-icon-list-item {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    margin-bottom: 15px !important;
}

.elementor-icon-list-text {
    word-wrap: break-word !important;
    text-align: center !important;
}

/* ============================================================
   6. RESPONSIVE SNELLO (FLEXBOX-BASED)
   ============================================================ */
@media (max-width: 1024px) {
    .mphb-room-type, 
    .mphb-search-results-recommended .mphb-room-type {
        flex: 1 1 calc(50% - 25px) !important;
    }
}

@media (max-width: 768px) {
    .mphb-room-type, 
    .mphb-search-results-recommended .mphb-room-type {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    html body .mphb_sc_search-form {
        flex-direction: column !important;
        width: 95% !important;
        align-items: stretch !important;
    }

    html body .mphb_sc_search-form p,
    html body .mphb_sc_search-form input {
        width: 100% !important;
    }

    html body .mphb_sc_checkout-form {
        padding: 20px !important;
        width: 95% !important;
    }
}

/* ============================================================
   7. CARD ESPERIENZE PERSONALIZZATE
   ============================================================ */
.experience-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.1);
}

.experience-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.experience-body {
    padding: 30px;
    text-align: center;
}

.experience-title {
    color: #d4af37;
    font-size: 24px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    text-transform: uppercase;
}

.experience-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.btn-experience {
    background-color: #d4af37 !important;
    color: #fff !important;
    padding: 12px 25px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: inline-block !important;
    transition: 0.3s;
    border: none !important;
    cursor: pointer;
}

.btn-experience:hover {
    background-color: #bfa030 !important;
    transform: scale(1.05);
}