/* Reset et variables */
:root {
    --primary: #8C3A2B;
    --primary-light: #8C3A2BB3;
    --secondary: #8fa286;
    --dark-green: #354e39;
    --light-green: #f0f7f4;
    --rouille: #b28051;
    --light-rouille: #fff8f0;
    --white: #ffffff;
    --text: #1d1d1b;
    --text-light: #6b7280;
    --text-ultralight: #999999;
    --gray-500: #cccccc;
    --gray-400: #dddddd;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-input: #f9fafb;
    --error: #ef4444;
    --success: #10b981;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --fw-bold: 700;
    --fw-semibold: 500;
    --fw-normal: 400;
    --radius-pill: 50px;
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 5px;
    --swiper-theme-color: #b28051;
}

/* Calendar */
.elementor-element-3ca508c, 
.elementor-element-3ca508c .elementor-widget-container, 
.elementor-element-3ca508c .elementor-widget-container .mphb_sc_availability_calendar-wrapper,
.mphb-calendar.mphb-datepick,
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal {
    width: 100% !important;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .mphb-available-date {
    background-color: var(--bg-input);
    color: var(--e-global-color-primary);
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .mphb-available-date:hover {
    background-color: var(--e-global-color-primary) !important;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .mphb-available-date:not(.datepick-selected) .mphb-price {
    color: var(--gray-500) !important;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .mphb-available-date.datepick-selected {
    background-color: var(--e-global-color-primary) !important;
    color: var(--white) !important;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .mphb-available-date.datepick-selected .mphb-price {
    color: var(--white) !important;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .datepick-month td span {
    border-radius: 10px;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .datepick-month td a {
    border-radius: 10px;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .datepick-month td a .mphb-price {
    color: var(--white) !important;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .datepick-month td a.datepick-selected {
    border-radius: 10px;
}
.mphb-calendar.mphb-datepick .mphb-datepicker-minimal .datepick-month td a.mphb-selected-date {
    background-color: var(--gray-500) !important;
}

.bg-secondary .mphb-reserve-room-section {
    color: var(--white);

    p {
        font-size: 1.1rem;
    }

    .mphb-confirm-reservation {
        margin-top: 1.5rem;
    }
}

.mphb-calendar td .mphb-date-check-out.mphb-mark-as-unavailable--check-out {
    background-color: #cc0000 !important;
    position: relative;
    z-index: 1;
    border-radius: 0;
    color: var(--white) !important;
}
.mphb-calendar td .mphb-date-check-out.mphb-mark-as-unavailable--check-out::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #cc0000 !important;
}
.mphb-calendar td .mphb-date-check-out.mphb-mark-as-unavailable--check-out::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 4px;
    bottom: 0px;
    left: -1px;
    right: 0px;
    border-right: 16px solid #1e6324 !important;
    border-bottom: 16px solid #1e6324 !important;
    border-left: 16px solid transparent !important;
    border-top: 16px solid transparent !important;
}

/* Checkout */
.mphb-price-breakdown-accommodation-taxes,
.mphb-price-breakdown-rate,
.mphb-price-breakdown-booking .mphb-table-price-column .mphb-price,
.mphb-room-number,
.mphb-room-type-title,
.mphb-price-breakdown-title,
.mphb-customer-state,
.mphb-text-control br,
.mphb-customer-name br,
.mphb-customer-last-name br,
.mphb-textarea-control br,
.mphb-country-control br,
.mphb-customer-city br,
.mphb-customer-country br,
.mphb-customer-address1 br,
.mphb-email-control br,
.mphb-customer-email br,
.mphb-customer-note br,
.mphb-customer-zip br,
.mphb-customer-phone br,
.mphb-phone-control br {
    display: none !important;
}

.mphb-errors-wrapper:not(.firstError) {
    opacity: 0 !important;
}

.mphb_sc_checkout-form #mphb-booking-details,
.mphb_sc_checkout-form #mphb-customer-details,
.mphb_sc_checkout-form #mphb-billing-details,
.mphb-checkout-terms-wrapper {
    margin-top: 0 !important;
}

.mphb_sc_checkout-form,
.mphb_sc_booking_confirmation {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .mphb_sc_checkout-form {
        grid-template-columns: 1fr 400px;
        align-items: start;
    }
}

/* Sections communes */
.mphb-checkout-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.mphb-checkout-section h3,
.mphb-checkout-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mphb-checkout-section h3::before,
.mphb-checkout-section h4::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--e-global-color-7bad2ef);
    border-radius: 2px;
}

/* Messages d'erreur */
.mphb-errors-wrapper {
    background: var(--error-bg);
    color: var(--error);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--error);
    font-weight: 500;
}

.mphb-errors-wrapper:last-child {
    display: none;
}

/* Section détails de réservation */
#mphb-booking-details {
    grid-column: 1;
}

.mphb-check-in-date,
.mphb-check-out-date {
    display: inline-block;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.mphb-check-in-date strong,
.mphb-check-out-date strong {
    font-size: 1.125rem;
    color: var(--text);
}

.mphb-check-in-date time,
.mphb-check-out-date time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Détails des chambres */
.mphb-room-details {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
    margin-top: 1rem;
}

.mphb-room-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--e-global-color-7bad2ef);
    font-size: 1rem !important;
}

.mphb-room-number::before {
    display: none !important;
}

.mphb-room-type-title {
    margin-bottom: 1rem;
}

.mphb-room-type-title a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.mphb-room-type-title a:hover {
    color: var(--e-global-color-7bad2ef);
}

/* Inputs et selects */
.mphb-adults-chooser,
.mphb-guest-name-wrapper {
    margin-bottom: 1rem;
}

.mphb-adults-chooser label,
.mphb-guest-name-wrapper label,
.mphb-customer-details label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.9375rem;
}

abbr {
    color: var(--error);
    text-decoration: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text);
    transition: var(--transition);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
}

/* Services */
#mphb-services-details-0 {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

#mphb-services-details-0 h4 {
    font-size: 1rem !important;
    margin-bottom: 1rem;
}

#mphb-services-details-0 h4::before {
    display: none;
}

.mphb_checkout-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mphb_checkout-services-list li {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.mphb_checkout-services-list li:hover {
    border-color: var(--e-global-color-7bad2ef);
    background: rgba(37, 99, 235, 0.02);
}

.mphb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400 !important;
}

.mphb-checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin: 0;
}

.mphb-checkbox-label em {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Section prix - Sidebar sur desktop */
#mphb-price-details {
    grid-column: 1;
    position: relative;
    margin-top: 0 !important;
}

@media (min-width: 1024px) {
    #mphb-price-details {
        grid-column: 2;
        grid-row: -3 / -1;
        position: sticky;
        top: 4rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
}

/* Sur mobile : masquer le tableau par défaut, afficher seulement le résumé */
@media (max-width: 1023px) {

    /*AJOUT*/
    #mphb-price-details {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0 !important;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        max-height: 70vh;
        overflow-y: auto;
        background-color: var(--white);
    }

    /* Ajouter un padding en bas du formulaire pour éviter que le contenu soit caché */
    .mphb_sc_checkout-form {
        padding-bottom: 200px;
    }

    /* Masquer le tableau par défaut, afficher seulement le résumé */
    #mphb-price-details .mphb-price-breakdown-title {
        position: relative;
        cursor: pointer;
        user-select: none;
        padding-right: 2rem;
    }

    #mphb-price-details .mphb-price-breakdown-title::after {
        content: '▼';
        position: absolute;
        right: 0;
        transition: transform 0.3s ease;
    }

    /* Afficher le tableau quand on clique sur le titre */
    #mphb-price-details.expanded .mphb-price-breakdown {
        display: table;
    }

    #mphb-price-details.expanded .mphb-price-breakdown-title::after {
        transform: rotate(180deg);
    }

    /* Afficher seulement le total et l'acompte de manière prominente */
    #mphb-price-details .mphb-price-breakdown tfoot {
        display: table-footer-group;
    }

    /* Style pour le résumé visible */
    .mphb-price-breakdown-total,
    .mphb-price-breakdown-deposit {
        font-size: 1.125rem;
    }

    /*AJOUT*/

    #mphb-price-details .mphb-price-breakdown-title {
        position: relative;
        cursor: pointer;
        user-select: none;
        padding-right: 2rem;
    }

    #mphb-price-details .mphb-price-breakdown-title::after {
        content: '▼';
        position: absolute;
        right: 0;
        transition: transform 0.3s ease;
    }

    /* #mphb-price-details .mphb-price-breakdown {
        display: none;
        margin-top: 1rem;
    } */

    #mphb-price-details:focus-within .mphb-price-breakdown,
    #mphb-price-details:active .mphb-price-breakdown {
        display: table;
    }

    /* Afficher seulement le total et l'acompte de manière prominente */
    #mphb-price-details .mphb-price-breakdown tfoot {
        display: table-footer-group;
    }

    /* Style pour le résumé visible */
    .mphb-price-breakdown-total,
    .mphb-price-breakdown-deposit {
        font-size: 1.125rem;
    }

    /* Créer un résumé visuel au-dessus */
    #mphb-price-details::before {
        content: '';
        display: none;
        background: linear-gradient(135deg, var(--secondary) 0%, var(--e-global-color-primary) 100%);
        color: white;
        padding: 1.5rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
}

/* Informations client */
#mphb-customer-details {
    grid-column: 1;
}

.mphb-required-fields-tip {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.mphb-customer-details p {
    margin-bottom: 1.2rem;
}

@media (min-width: 768px) {
    #mphb-customer-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 1rem;
    }

    #mphb-customer-details h3,
    #mphb-customer-details .mphb-required-fields-tip,
    .mphb-customer-address1,
    .mphb-customer-note {
        grid-column: 1 / -1;
    }
}

/* Paiement */
#mphb-billing-details {
    grid-column: 1;
}

.mphb-gateway-title {
    display: block;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-top: 1rem;
    cursor: pointer;
}

/* Prix total affiché */
.mphb-total-price {
    grid-column: 1;
    background: linear-gradient(135deg, var(--e-global-color-7bad2ef) 0%, var(--e-global-color-primary) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-size: 1.125rem;
}

@media (min-width: 1024px) {
    .mphb-total-price {
        display: none;
    }
}

.mphb-total-price-field {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.mphb-deposit-amount {
    grid-column: 1;
    background-color: var(--light-green);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1024px) {
    .mphb-deposit-amount {
        display: none;
    }
}

.mphb-deposit-amount-field {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--e-global-color-7bad2ef);
}

/* Conditions */
.mphb-checkout-terms-wrapper {
    grid-column: 1;
}

.mphb-terms-and-conditions-accept {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.mphb-terms-and-conditions-accept label {
    margin: 0 !important;
    font-weight: 400 !important;
}

.mphb-terms-and-conditions-accept input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.mphb-terms-and-conditions-link {
    color: var(--e-global-color-7bad2ef);
    text-decoration: none;
}

.mphb-terms-and-conditions-link:hover {
    text-decoration: underline;
}

/* Bouton de soumission */
.mphb_sc_checkout-submit-wrapper {
    grid-column: 1;
    margin: 0 !important;
}

.mphb_sc_checkout-submit-wrapper input[type="submit"],
.mphb_sc_checkout-submit-wrapper .button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: var(--e-global-color-7bad2ef);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.mphb_sc_checkout-submit-wrapper input[type="submit"]:hover,
.mphb_sc_checkout-submit-wrapper .button:hover {
    background: var(--e-global-color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.mphb_sc_checkout-submit-wrapper input[type="submit"]:active,
.mphb_sc_checkout-submit-wrapper .button:active {
    transform: translateY(0);
}

/* Preloader */
.mphb-preloader {
    display: none;
}

/* Responsive mobile */
@media (max-width: 640px) {
    /* body {
        padding: 0.5rem;
    } */

    .mphb-checkout-section {
        padding: 1rem;
    }

    .mphb-checkout-section h3,
    .mphb-checkout-section h4 {
        font-size: 1.125rem;
    }

    .mphb-total-price-field {
        font-size: 1.75rem;
    }
}


/* Tableau */
/* En-têtes et cellules */
.mphb-price-breakdown th,
.mphb-price-breakdown td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.mphb-price-breakdown th {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.mphb-price-breakdown td {
    color: #4a4a4a;
    font-size: 0.9rem;
}

/* Colonne des prix alignée à droite */
.mphb-table-price-column {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

/* Ligne principale de l'hébergement */
.mphb-price-breakdown-booking {
    background-color: var(--white);
}

.mphb-price-breakdown-booking td {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: none;
}

.mphb-price-breakdown-booking .mphb-price {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Lien d'expansion */
a.mphb-price-breakdown-accommodation {
    color: var(--text-light) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.mphb-price-breakdown-accommodation:hover {
    opacity: 0.9;
}

.mphb_sc_checkout-form .mphb-price-breakdown .mphb-price-breakdown-expand>.mphb-inner-icon:not(.mphb-hide) {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    margin-right: 3.5rem;
}

.mphb_sc_checkout-form .mphb-price-breakdown .mphb-price-breakdown-expand>.mphb-inner-icon::before {
    content: '+détails';
    position: absolute;
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
    background-color: var(--e-global-color-7bad2ef);
    color: var(--white);
    padding: 5px;
    border-radius: 8px !important;
}

/* Lignes de détails */
.mphb-price-breakdown-guests td,
.mphb-price-breakdown-nights td {
    background: #fafafa;
    font-weight: 500;
}

/* Section des dates */

/* hide table useless */
.mphb-price-breakdown-dates,
.mphb-price-breakdown-date,
/* .mphb-price-breakdown-accommodation-total, */
.mphb-price-breakdown-accommodation-tax,
.mphb-price-breakdown-accommodation-taxes-total,
tbody .mphb-price-breakdown-subtotal {
    display: none;
}

.mphb-price-breakdown-dates th {
    background: #f5f5f5;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    padding: 0.75rem 1.25rem;
}

.mphb-price-breakdown-date td {
    background: #fcfcfc;
}

/* Totaux des sections */
.mphb-price-breakdown-accommodation-total th,
.mphb-price-breakdown-accommodation-taxes-total th,
.mphb-price-breakdown-services-total th {
    background: #f8f9fa;
    color: #2c3e50;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
}

/* Section services */
.mphb-price-breakdown-services th {
    background: #f5f5f5;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mphb-price-breakdown-service td {
    background: #fcfcfc;
}

.mphb-price-breakdown-service-name {
    font-weight: 500;
    color: #2c3e50;
}

/* Footer du tableau */
.mphb-price-breakdown tfoot tr {
    border-top: 2px solid #e9ecef;
}

.mphb-price-breakdown-subtotal td,
.mphb-tax-info-total td {
    padding: 1rem 1.25rem;
    font-weight: 500;
    background: #fafafa;
}

/* Total final */
.mphb-price-breakdown-total {
    background-color: var(--e-global-color-primary);
}

.mphb-price-breakdown-total th {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.25rem;
    border: none;
}

.mphb-price-breakdown-total .mphb-price {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Acompte */
.mphb-price-breakdown-deposit {
    background: #e8f5e9;
}

.mphb-price-breakdown-deposit th {
    color: #2e7d32;
    font-weight: 600;
    border: none;
}

.mphb-price-breakdown-deposit .mphb-price {
    color: #1b5e20;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Mise en forme des prix */
.mphb-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
}

.mphb-currency {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Animation d'apparition pour les lignes dépliées */
.mphb-price-breakdown tr {
    transition: background-color 0.2s ease;
}

.mphb-price-breakdown tr:hover:not(.mphb-price-breakdown-booking):not(.mphb-price-breakdown-total) {
    background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 640px) {

    .mphb-price-breakdown th,
    .mphb-price-breakdown td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .mphb-price-breakdown-booking .mphb-price {
        font-size: 1.1rem;
    }

    .mphb-price-breakdown-total .mphb-price {
        font-size: 1.3rem;
    }
}


/* Détails réservation */
.mphb_sc_booking_confirmation {
    margin-top: 50px;
}

.mphb-payment-messages {
    margin: 32px 0;
    background: var(--light-green) !important;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--e-global-color-primary);
    font-size: 1.2rem;
}

.mphb-booking-details-section {
    background: white;
    padding: 2rem !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Vélos */
/* Améliorer le label du nombre de vélos */
label[for="mphb_room_details-0-service-1649-adults"] {
    display: flex;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    margin-top: 8px !important;
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.5 !important;
}

/* Style du select pour qu'il soit plus compact et élégant */
#mphb_room_details-0-service-1649-adults {
    flex-shrink: 0 !important;
    min-width: 60px !important;
    max-width: 80px !important;
    padding: 6px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease !important;
}

#mphb_room_details-0-service-1649-adults:hover {
    border-color: #999 !important;
}

#mphb_room_details-0-service-1649-adults:focus {
    outline: none !important;
    border-color: #0073aa !important;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.2) !important;
}

/* Espacement du texte autour du select */
label[for="mphb_room_details-0-service-1649-adults"]>* {
    margin: 0 !important;
}

/* Version responsive pour petits écrans */
@media (max-width: 600px) {
    label[for="mphb_room_details-0-service-1649-adults"] {
        gap: 6px !important;
        font-size: 13px !important;
    }

    #mphb_room_details-0-service-1649-adults {
        min-width: 55px !important;
        max-width: 70px !important;
        padding: 5px 8px !important;
        font-size: 13px !important;
    }
}

/* Très petits écrans : empiler si nécessaire */
@media (max-width: 400px) {
    label[for="mphb_room_details-0-service-1649-adults"] {
        flex-direction: row !important;
        gap: 5px !important;
    }
}


:root {
    --ivory:       #F7F4EE;
    --ivory-dark:  #EDE8DE;
    --sage:        #7A8C6E;
    --sage-dark:   #5C6B52;
    --terracotta:  #C4714A;
    --charcoal:    #2C2C2A;
    --muted:       #8A8780;
    --img-w:       42%;
    --radius:      2px;
    --t:           0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════
   CARTE — layout paysage via CSS Grid
   L'image occupe la colonne gauche (lignes 1→N),
   tous les autres éléments s'empilent à droite.
   ══════════════════════════════════════════════════════════ */
#recherche .mphb-room-type {
  display: grid;
  grid-template-columns: var(--img-w) 1fr;
  grid-template-rows: auto auto auto auto 1fr auto;
  /*                   titre  détails-titre  attrs  prix  voir  réserver */
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 1px 2px rgba(44,44,42,.04), 0 8px 40px rgba(44,44,42,.10);
  transition: box-shadow var(--t), transform var(--t);
}
#recherche .mphb-room-type:hover {
  box-shadow: 0 2px 4px rgba(44,44,42,.06), 0 20px 56px rgba(44,44,42,.16);
  transform: translateY(-3px);
}

/* ── Image : colonne gauche, s'étire sur toutes les lignes ── */
#recherche .mphb-loop-room-thumbnail {
  grid-column: 1;
  grid-row: 1 / -1;       /* toute la hauteur */
  margin: 0; padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}
#recherche .mphb-loop-room-thumbnail a {
  display: block;
  width: 100%; height: 100%;
}
#recherche .mphb-loop-room-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
#recherche .mphb-room-type:hover .mphb-loop-room-thumbnail img {
  transform: scale(1.05);
}
/* Liseré vertical terracotta côté droit de l'image */
#recherche .mphb-loop-room-thumbnail::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--e-global-color-7bad2ef), transparent);
  opacity: .75;
}

/* ── Colonne droite : tous les éléments → col 2 ─────────── */
#recherche .mphb-room-type-title.entry-title,
#recherche .mphb-room-type-details-title,
#recherche .mphb-loop-room-type-attributes,
#recherche .mphb-regular-price,
#recherche .mphb-view-details-button-wrapper,
#recherche .mphb-reserve-room-section {
  grid-column: 2;
}

/* ── Titre ───────────────────────────────────────────────── */
#recherche .mphb-room-type-title.entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--charcoal);
  line-height: 1.05;
  padding: 28px 28px 0;
  align-self: start;
}
#recherche .mphb-room-type-title.entry-title a {
  color: inherit; text-decoration: none;
  transition: color var(--t);
}
#recherche .mphb-room-type-title.entry-title a:hover { color: var(--e-global-color-7bad2ef); }

/* ── Sous-titre "Détails" ────────────────────────────────── */
#recherche .mphb-room-type-details-title {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 28px 0;
  align-self: end;
}

/* ── Attributs ───────────────────────────────────────────── */
#recherche .mphb-loop-room-type-attributes {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 28px 0;
  margin: 0;
  border-top: 1px solid var(--ivory-dark);
  /* la bordure est ajoutée via padding-top + margin-top sur le ::before */
}
#recherche .mphb-loop-room-type-attributes li {
  display: flex; align-items: center; gap: 5px;
  font-size: .82rem;
}
#recherche .mphb-attribute-title { color: var(--muted); }
#recherche .mphb-attribute-value { font-weight: 500; color: var(--charcoal); }

/* ── Prix ────────────────────────────────────────────────── */
#recherche .mphb-regular-price {
  padding: 16px 28px 0;
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  align-self: start;
}
#recherche .mphb-regular-price strong {
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: .05em;
  font-size: .68rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
#recherche .mphb-price {
  /* font-family: 'Cormorant Garamond', serif; */
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}
#recherche .mphb-currency { font-size: 1rem; vertical-align: super; margin-left: 2px; color: var(--e-global-color-7bad2ef); }
#recherche .mphb-price-period { font-size: .76rem; color: var(--muted); margin-left: 5px; }
#recherche .mphb-tax-information { display: block; font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* ── Bouton "Voir les détails" ───────────────────────────── */
#recherche .mphb-view-details-button-wrapper {
  padding: 16px 28px 0;
  margin: 0;
  align-self: end; /* colle vers le bas avant la zone réservation */
}
#recherche .button, #recherche .mphb-button {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform .15s ease;
}
#recherche .button:active, #recherche .mphb-button:active { transform: scale(.98); }

#recherche .mphb-view-details-button {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
  width: 100%;
  text-align: center;
}
#recherche .mphb-view-details-button:hover { background: var(--charcoal); color: var(--ivory); }

/* ── Section réservation (bas de la colonne droite) ──────── */
#recherche .mphb-reserve-room-section {
  background: var(--ivory);
  border-top: 1px solid var(--ivory-dark);
  padding: 14px 28px 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: end;
}
#recherche .mphb-book-button {
  background: var(--e-global-color-7bad2ef); color: #fff; border-color: var(--e-global-color-7bad2ef);
  width: 100%; text-align: center;
}
#recherche .mphb-book-button:hover { background: var(--e-global-color-primary); border-color: var(--e-global-color-primary); }
#recherche .mphb-confirm-reservation {
  background: var(--e-global-color-7bad2ef); color: #fff; border-color: var(--e-global-color-7bad2ef);
  width: 100%; text-align: center;
}
#recherche .mphb-confirm-reservation:hover { background: #ae5e3a; border-color: #ae5e3a; }
#recherche .mphb-rooms-reservation-message-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .76rem; color: var(--muted);
}
#recherche .mphb-remove-from-reservation {
  color: var(--e-global-color-7bad2ef); text-decoration: none;
  font-size: .7rem; letter-spacing: .06em;
  transition: opacity var(--t);
}
#recherche .mphb-remove-from-reservation:hover { opacity: .7; text-decoration: underline; }
#recherche .mphb-rooms-reservation-message { margin: 0; font-size: .76rem; }

/* ── Responsive : retour vertical sous 540px ─────────────── */
@media (max-width: 540px) {
  #recherche .mphb-room-type {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  #recherche .mphb-loop-room-thumbnail {
    grid-column: 1; grid-row: 1;
    min-height: 220px;
  }
  #recherche .mphb-loop-room-thumbnail::after {
    top: auto; bottom: 0; right: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--e-global-color-7bad2ef), transparent);
  }
  #recherche .mphb-room-type-title.entry-title,
  #recherche .mphb-room-type-details-title,
  #recherche .mphb-loop-room-type-attributes,
  #recherche .mphb-regular-price,
  #recherche .mphb-view-details-button-wrapper,
  #recherche .mphb-reserve-room-section {
    grid-column: 1;
  }
}