/* 3-Column Listing Layout for MotoPress Hotel Booking */
@media (min-width: 992px) {
    /* Main card container */
    .mphb-loop-room-type,
    .type-hp_accommodation {
        display: grid !important;
        grid-template-columns: 320px 1fr 240px !important;
        gap: 30px !important;
        background: #ffffff !important;
        border: 1px solid #eaeaea !important;
        border-radius: 12px !important;
        padding: 24px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
        margin-bottom: 30px !important;
        align-items: stretch !important;
    }

    /* Column 1: Image container */
    .mphb-loop-room-type-gallery,
    .mphb-loop-room-type-thumbnail,
    .mphb-loop-room-type-thumbnail-wrapper {
        grid-column: 1 !important;
        margin: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        height: 100% !important;
        min-height: 220px !important;
    }

    .mphb-loop-room-type-gallery img,
    .mphb-loop-room-type-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Column 2: Content (Title, attributes, description) */
    .mphb-loop-room-type > :not(.mphb-loop-room-type-gallery):not(.mphb-loop-room-type-thumbnail):not(.mphb-price-period):not(.mphb-regular-price):not(.mphb-view-details-button-wrapper):not(.mphb-loop-book-button-wrapper):not(.mphb-reserve-btn-wrapper) {
        grid-column: 2 !important;
    }

    /* Structure of Column 2 elements */
    .mphb-room-type-title {
        font-size: 22px !important;
        font-weight: 600 !important;
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        color: #1a1a1a !important;
    }

    /* Attributes (Capacity, Area, Amenities) */
    .mphb-loop-room-type-attributes {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        list-style: none !important;
        padding-left: 0 !important;
    }

    .mphb-loop-room-type-attributes li {
        font-size: 14px !important;
        color: #666 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .mphb-room-type-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: #555555 !important;
        margin-bottom: 0 !important;
    }

    /* Column 3: Price and Buttons Column Container */
    .mphb-loop-room-type {
        position: relative !important;
    }

    /* Target pricing & buttons to align in Column 3 */
    .mphb-price-period,
    .mphb-regular-price,
    .mphb-view-details-button-wrapper,
    .mphb-loop-book-button-wrapper,
    .mphb-reserve-btn-wrapper,
    .mphb-btn-wrapper {
        grid-column: 3 !important;
        justify-self: stretch !important;
    }

    /* Custom Wrapper for pricing & actions on the right side if markup allows,
       otherwise we containerize them visually inside the grid */
    .mphb-price-period {
        margin-top: 0 !important;
        font-size: 14px !important;
        color: #777 !important;
        text-align: right !important;
    }

    .mphb-regular-price {
        font-size: 24px !important;
        font-weight: 700 !important;
        color: #111 !important;
        text-align: right !important;
        margin-bottom: 20px !important;
        display: block !important;
    }

    /* Buttons formatting */
    .mphb-view-details-button-wrapper,
    .mphb-loop-book-button-wrapper,
    .mphb-reserve-btn-wrapper {
        margin-bottom: 10px !important;
    }

    .mphb-loop-room-type button,
    .mphb-loop-room-type .button,
    .mphb-loop-room-type a.button {
        width: 100% !important;
        display: block !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-align: center !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        transition: all 0.25s ease !important;
    }

    /* Outline/Secondary Button (View Details) */
    .mphb-view-details-button-wrapper a.button,
    .mphb-view-details-button-wrapper button {
        background: #f4f5f7 !important;
        color: #333333 !important;
        border: 1px solid #e1e4e8 !important;
    }

    .mphb-view-details-button-wrapper a.button:hover,
    .mphb-view-details-button-wrapper button:hover {
        background: #eaecef !important;
        color: #000000 !important;
    }

    /* Primary/Book Button */
    .mphb-loop-book-button-wrapper button,
    .mphb-reserve-btn-wrapper button {
        background: #14b8a6 !important; /* Elegant Teal color */
        color: #ffffff !important;
        border: none !important;
    }

    .mphb-loop-book-button-wrapper button:hover,
    .mphb-reserve-btn-wrapper button:hover {
        background: #0d9488 !important;
        box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25) !important;
    }
}
