/* ===== CONTAINER PRINCIPAL ===== */
.tax-mphb_room_type_category #main,
.tax-mphb_room_type_category .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

/* ===== HEADER (Titre + Description) ===== */
.tax-mphb_room_type_category .page-header {
    padding: 0 0 30px 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Ligne horizontale sous le titre */
.tax-mphb_room_type_category .page-header .page-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #006ff9;
    margin-top: 20px;
}

/* ===== POLICES ===== */
.tax-mphb_room_type_category .page-header .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
}

.tax-mphb_room_type_category .term-description,
.tax-mphb_room_type_category .mphb-room-card .room-excerpt,
.tax-mphb_room_type_category .mphb-room-card .room-meta,
.tax-mphb_room_type_category .mphb-room-card .room-price {
    font-family: 'Rubik', sans-serif;
}

.tax-mphb_room_type_category .mphb-room-card .room-title,
.tax-mphb_room_type_category .mphb-room-card .room-title a {
    font-family: 'Open Sans', sans-serif;
}

.tax-mphb_room_type_category .mphb-room-card .room-button {
    font-family: 'Rubik', sans-serif;
}

/* ===== GRILLE CATÉGORIE MPHB ===== */
.mphb-category-rooms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* ===== CARTE ===== */
.mphb-room-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.mphb-room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== IMAGE ===== */
.mphb-room-card .room-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.mphb-room-card .room-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mphb-room-card:hover .room-thumbnail img {
    transform: scale(1.05);
}

/* ===== CONTENU ===== */
.mphb-room-card .room-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Titre */
.mphb-room-card .room-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.mphb-room-card .room-title a {
    text-decoration: none;
    color: #1a1a1a;
}

.mphb-room-card .room-title a:hover {
    color: #2196F3;
}

/* Extrait */
.mphb-room-card .room-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== META (Ville + Voyageurs) ===== */
.mphb-room-card .room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.mphb-room-card .room-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.mphb-room-card .room-meta svg {
    color: #2196F3;
    flex-shrink: 0;
}

/* ===== FOOTER (Prix + Bouton) ===== */
.mphb-room-card .room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Prix */
.mphb-room-card .room-price {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
}

.mphb-room-card .price-label {
    width: 100%;
    font-size: 0.6rem !important;
    color: #888;
}

.mphb-room-card .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196F3;
}

.mphb-room-card .price-unit {
    font-size: 0.65rem !important;
    color: #888;
}

/* Bouton */
.mphb-room-card .room-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2196F3;
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mphb-room-card .room-button:hover {
    background: #1976D2;
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .mphb-category-rooms {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .tax-mphb_room_type_category #main,
    .tax-mphb_room_type_category .site-main {
        padding: 0 20px;
    }
    
    .mphb-category-rooms {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mphb-room-card .room-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .mphb-room-card .room-button {
        text-align: center;
    }
}
