/* Styles pour le formulaire de recherche à facettes */
.mphb-faceted-search-form {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mphb-search-fields-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mphb-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mphb-dates-row .mphb-search-field,
.mphb-options-row .mphb-search-field {
    flex: 1;
    min-width: 200px;
}

.mphb-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.mphb-filters-row .mphb-search-field {
    flex: 1;
    min-width: 250px;
}

.mphb-faceted-search .mphb-search-field {
    margin-bottom: 10px;
}

.mphb-faceted-search label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mphb-faceted-search input[type="text"],
.mphb-faceted-search input[type="date"],
.mphb-faceted-search select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    -webkit-appearance: none;
}

.mphb-faceted-search h3 {
    margin: 10px 0 8px;
    font-size: 16px;
}

.mphb-categories-list,
.mphb-facilities-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
}

.mphb-category-item,
.mphb-facility-item {
    margin-bottom: 8px;
}

.mphb-category-item label,
.mphb-facility-item label {
    display: block;
    padding: 8px 0;
    cursor: pointer;
}

.mphb-category-item input[type="checkbox"],
.mphb-facility-item input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.mphb-filter-label-text {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.mphb-reset-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
}

.mphb-reset-button:hover {
    background-color: #d32f2f;
}

/* Styles pour les résultats selon le nouveau design */
.mphb-rooms-wrapper {
    margin-top: 20px;
}

.mphb-room-type {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.15s ease-in-out;
}

.mphb-room-type-images {
    width: 30%;
    min-width: 150px;
    margin-right: 20px;
}

.mphb-room-type-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.mphb-room-type-content {
    flex: 1;
    padding-right: 20px;
}

.mphb-room-type-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

.mphb-title-link {
    color: #4fb6d0;
    text-decoration: none;
}

.mphb-title-link:hover {
    text-decoration: underline;
}

.mphb-room-type-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.mphb-meta-item {
    display: flex;
    align-items: center;
}

.mphb-room-type-description {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

.mphb-room-type-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mphb-detail-item {
    display: flex;
    align-items: center;
}

/* Icônes */
.mphb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #777;
}

.mphb-icon-people:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

/* Nouvelle icône de superficie basée sur l'image fournie */
.mphb-icon-size:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M3 3v18h18V3H3zm16 16H5V5h14v14z'/%3E%3Cpath d='M5 19l12-12' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3Cpath d='M5 19l2-2 2-2 2-2 2-2 2-2 2-2' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3Cpath d='M17 7l2-2' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3Cpath d='M5 7l2-2' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

.mphb-icon-eye:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

.mphb-icon-info:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

/* Nouvelle icône d'escalier basée sur l'image fournie */
.mphb-icon-info[data-icon="floor"]:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Crect x='4' y='4' width='16' height='16' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3Cpath d='M7 19v-3h3v-3h3v-3h3v-3h1' fill='none' stroke='%23777' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

/* Actions */
.mphb-room-type-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.mphb-view-details-button {
    display: block;
    padding: 12px 15px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

/* Modification du bouton Réserver */
.mphb-book-button {
    background-color: #4fb6d0;
    color: #ffffff !important; /* Forcer le texte en blanc */
    border: none;
    border-radius: 4px; /* Même radius que le bouton Voir les détails */
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.mphb-view-details-button {
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.mphb-book-button:hover {
    background-color: #3ca1b9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.mphb-view-details-button:hover {
    background-color: #f5f5f5;
}

.mphb-loading {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: #666;
    font-size: 16px;
    transition: none; /* Accélérer les transitions */

}

.mphb-loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #666;
    margin-left: 10px;
    vertical-align: middle;
    border-width: 2px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mphb-no-rooms-found {
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    font-size: 16px;
}

/* Styles responsive */
@media (max-width: 900px) {
    .mphb-room-type {
        flex-wrap: wrap;
    }
    
    .mphb-room-type-images {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .mphb-room-type-content {
        flex: 1 0 60%;
        padding-right: 15px;
    }
    
    .mphb-room-type-actions {
        flex: 1 0 30%;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .mphb-search-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .mphb-filters-row .mphb-search-field {
        flex: 0 0 100%;
    }
    
    .mphb-room-type {
        flex-direction: column;
        padding: 15px;
    }
    
    .mphb-room-type-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .mphb-room-type-actions {
        width: 100%;
        flex-direction: row;
    }
    
    .mphb-book-button,
    .mphb-view-details-button {
        flex: 1;
    }
    
    .mphb-categories-list,
    .mphb-facilities-list {
        max-height: 150px;
    }
    
    .mphb-reset-button {
        width: 100%;
        max-width: none;
    }
    
    .mphb-category-item label,
    .mphb-facility-item label {
        padding: 10px 0;
    }
    
    .mphb-category-item input[type="checkbox"],
    .mphb-facility-item input[type="checkbox"] {
        transform: scale(1.4);
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .mphb-room-type-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .mphb-room-type-actions {
        flex-direction: column;
    }
}


/* Style pour le prix par semaine */
.mphb-price-per-week {
    margin-bottom: 15px;
    font-weight: 600;
    color: #4fb6d0;
    text-align: center;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .mphb-price-per-week {
        margin-bottom: 10px;
    }
}


/* Masquer l'icône SVG existante */
.mphb-room-size-icon svg,
.mphb-room-area-icon svg,
.mphb-attribute-area-icon svg {
    display: none;
}

/* Ajouter la nouvelle icône via pseudo-élément */
.mphb-room-size-icon::before,
.mphb-room-area-icon::before,
.mphb-attribute-area-icon::before {
    content: "\f065";
    font-family: 'Font Awesome 5 Free'; /* ou 'FontAwesome' pour FA4 */
    font-weight: 900; /* Nécessaire pour FA5 Solid */
    margin-right: 5px;
}