/**
 * Rooms Grid Styles
 * 
 * Table of Contents:
 * 1. Grid Layout
 * 2. Grid Items
 * 3. Item Content
 * 4. Responsive Design
 */

/* ============================================================================
   1. Grid Layout
   ============================================================================ */

.rooms-grid-grid {
    column-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 1.75rem;
}

/* ============================================================================
   2. Grid Items
   ============================================================================ */

.rooms-grid-grid-item {
    position: relative;
}

.rooms-grid-grid-item-background-image {
    aspect-ratio: 398 / 554;
    display: block;
    height: auto;
    object-fit: cover;
    width: auto;
}

/* ============================================================================
   3. Item Content
   ============================================================================ */

.rooms-grid-grid-item-content {
    background-blend-mode: normal;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0px;
    left: 0px;
    position: absolute;
    right: 0px;
    padding: 2rem 1rem 1rem 1rem;
}

/* Item title with decorative line */
.rooms-grid-grid-item-title {
    color: var(--white);
    margin-bottom: 0px;
    position: relative;
}

.rooms-grid-grid-item-title:before {
    content: "";
    position: absolute;
    left: 0px;
    top: -10px;
    transform: translate3d(0px, -50%, 0px);
    width: 45px;
    height: 2px;
    background-color: var(--primary);
}

/* Item count */
.rooms-grid-grid-item-count {
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: block;
}

/* ============================================================================
   4. Responsive Design
   ============================================================================ */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .rooms-grid-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .rooms-grid-grid {
        grid-template-columns: 1fr;
    }
}
