/* ========== ROOM CARD STYLE ========== */
.custom-room-card {
    margin-bottom: 30px;
}

.room-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.room-card-image {
    flex: 1 1 40%;
    min-width: 250px;
}

.room-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.room-card-content {
    flex: 1 1 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Titre */
.mphb-room-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: bold;
}

.mphb-room-title a {
    color: #333;
    text-decoration: none;
}

.mphb-room-title a:hover {
    color: #0073aa;
}

/* Extrait */
.mphb-room-excerpt {
    margin-bottom: 15px;
    color: #666;
}

/* ========== ROOM DETAILS (ATTRIBUTES) ========== */
.mphb-room-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mphb-room-details ul li {
    flex: 1 1 100%; /* Par défaut chaque attribut prend une ligne */
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
}

/* Les 2 premiers attributs sur la même ligne */
.mphb-room-details ul li.inline-attr {
    flex: 1 1 45%;
}

/* Icônes */
.mphb-room-details i {
    color: #0073aa;
    min-width: 18px;
    text-align: center;
}

/* ========== BUTTONS ========== */
.mphb-room-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.mphb-room-buttons a {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

.mphb-room-buttons a:first-child {
    background: #0073aa;
    color: #fff;
}

.mphb-room-buttons a:first-child:hover {
    background: #005f8d;
}

.mphb-room-buttons a:last-child {
    background: #f5f5f5;
    color: #333;
}

.mphb-room-buttons a:last-child:hover {
    background: #e2e2e2;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .room-card-container {
        flex-direction: column;
    }

    .room-card-image, 
    .room-card-content {
        flex: 1 1 100%;
    }

    .mphb-room-details ul li.inline-attr {
        flex: 1 1 100%; /* Sur mobile, même les 2 premiers descendent */
    }
}

/* Target only related rooms inside single room pages */
.single-mphb_room_type .related-rooms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}


.related-room-item {
    flex: 1 1 250px ;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-height: max-content;
	
}

.jws-post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.jws-post-item:hover {
    transform: translateY(-5px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
	background: #fbfbfb;
}

.post-media img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-sub-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-title a {
    text-decoration: none;
    color: #333;
}

.post-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    flex-grow: 1;
}

.post-detail {
    display: flex;
	gap:10px;
    flex-wrap: wrap;
}

.price {
    font-weight: bold;
    color: #2a9d8f;
}

.post-link.button-custom {
    background: #f7a820;
    color: #fff;
    padding: 7px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.post-link.button-custom:hover {
    background: #21867a;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .related-room-item {
        flex: 1 1 45%; /* two cards per row */
    }
}

@media (max-width: 576px) {
    .related-room-item {
        flex: 1 1 100%; /* single card per row */
    }
}