@import "style.css";

.room-categories__container {
    max-width: 1406px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.rooms {
    display: flex;
    flex-direction: column;
}

.rooms-grid {
    display: grid;
    gap: 30px;
}

.room-row {
    justify-items: center;
}

.room-row.full-width {
    display: grid;
    grid-template-columns: repeat(4, minmax(320px, 1fr));
    gap: 30px;
}

.room-row.centered {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.room-card {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-size: 320px 260px;
    border-radius: 10px;
    padding: 25px 25px 10px 25px;
    width: 320px;
    height: 254px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.room-card span {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0 auto;
    text-align: center;
}

.room-card a {
    color: #fff;
    text-decoration: none;
    background: #DFAA5B;
    padding: 10px 0;
    text-align: center;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 550;
    max-width: 222px;
    width: 100%;
    margin: 3px auto 0;
    transition: background-color 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.room-card a:hover {
    background: #A87831;
}

@media (max-width: 1430px) {
    .room-row.full-width {
        grid-template-columns: repeat(3, 1fr);
    }

    .room-row.full-width .room-card:nth-child(4) {
        grid-column-start: 2;
        grid-column-end: 3;
    }

    .room-row.centered {
        gap: 30px;
        justify-content: space-around;
    }
}

@media (max-width: 1084px) {
    .room-row.full-width {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-card {
        width: 100%;
    }
}

@media (max-width: 928px) {
    .room-row.centered {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }

    .room-row.centered .room-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 250px;
    }
}

@media screen and (max-width: 620px) {
    .facilities-items span {
        font-size: 12px;
    }

    .rooms-grid {
        gap: 0;
    }

    .room-row.full-width,
    .room-row.centered {
        display: block;
    }

    .room-card {
        width: auto;
        margin-bottom: 30px;
    }

    .room-row.centered .room-card:last-child:nth-child(odd) {
        width: auto;
        margin-bottom: 0;
    }
}

.room-card-1 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #000000 100%),
    url('../../image/rooms/room-1.png');
}

.room-card-2 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #000000 100%),
    url('../../image/rooms/room-2.png');
}

.room-card-3 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #000000 100%),
    url('../../image/rooms/room-3.png');
}

.room-card-4 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #000000 100%),
    url('../../image/rooms/room-4.png');
}

.room-card-5 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #000000 100%),
    url('../../image/rooms/room-5.png');
}

.room-card-6 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #000000 100%),
    url('../../image/rooms/room-6.png');
}

.room-card-7 {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, #000000 100%),
    url('../../image/rooms/room-7.png');
}