/* === ROOMS GRID WRAPPER === */
.mphb_sc_rooms-wrapper.mphb-room-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 25px;
    margin-top: 40px;
}
.mphb_sc_rooms-wrapper .mphb-room-type:not(:first-of-type), .mphb_sc_search_results-wrapper .mphb-room-type:not(:first-of-type), .mphb_sc_services-wrapper .mphb-service:not(:first-of-type) {
    margin: 0;
}
/* === ROOM CARD === */
.custom-room-card {
    flex: 1 1 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: rgba(0, 0, 0, 0.06) 0px 4px 12px;
    transition: all 0.3s ease;
}

.custom-room-card:hover {
    transform: translateY(-6px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 24px;
}

/* === IMAGE === */
.custom-room-card .room-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* === CONTENT === */
.custom-room-card .room-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* === TITLE === */
.custom-room-card .mphb-room-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.custom-room-card .mphb-room-title a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.custom-room-card .mphb-room-title a:hover {
    color: #555;
}

/* === EXCERPT === */
.custom-room-card .mphb-room-excerpt {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* === ATTRIBUTES === */
.custom-room-card ul.mphb-loop-room-type-attributes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #333;
}

/* === PRICE === */
.custom-room-card .mphb-room-price {
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #000;
    margin-top: 8px;
}

/* === BUTTONS === */
.custom-room-card .mphb-room-buttons {
    margin-top: 15px;
}

.custom-room-card .mphb-room-buttons a {
    display: inline-block;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-room-card .mphb-room-buttons a:hover {
    background: #000;
    color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .custom-room-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 576px) {
    .custom-room-card {
        flex: 1 1 100%;
    }
}

//recommended rooms
/* 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 */
    }
}
