﻿.rooms-hero {
    padding-top: 70px;
    padding-bottom: 20px;
}

.rooms-hero__wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: visible;
}

.rooms-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.rooms-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.rooms-hero__search {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
    z-index: 5;

    width: 90%;
    max-width: 1080px;
    margin: 0 !important;

    display: flex;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.rooms-catalog {
    padding-top: 40px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.rooms-grid__divider {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.room-card-alt {
    background: #fff;
    border-radius: 60px 60px 20px 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.room-card-alt__title {
    color: var(--color-primary);
    font-size: 26px;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.room-card-alt__img { height: 350px; }
.room-card-alt__img img { width: 100%; height: 100%; object-fit: cover; }
.room-card-alt__img {
    height: 320px;
}

.room-card-alt__body {
    padding: 32px 40px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-card-alt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
}

.room-card-alt__actions .btn {
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 8px;
}

.room-card-alt__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--color-text-light);
    font-size: 15px;
}

.room-card-alt__meta span:not(:last-child)::after {
    content: "|";
    margin-left: 12px;
    color: rgba(69, 103, 170, 0.3);
}

@media (min-width: 1200px) {
    .rooms-hero__container {
        max-width: none !important;
    }
}

@media (max-width: 1360px) {
    .rooms-hero {
        padding-top: 65px;
    }

    .search-form {
        max-height: none !important ;
    }
}

@media (max-width: 1024px) {
    .rooms-grid__divider { display: none; }
    .rooms-hero__wrapper { height: 400px; }

    .search-form {
        display: none !important;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 40px auto 0;
    }

    .room-card-alt__body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .rooms-hero__wrapper { height: 300px; }

    .rooms-hero {
        padding-top: 55px;
    }
}

@media (max-width: 767px) {
    .rooms-hero__search {
        display: none;
    }

    .search-form--figma {
        display: none;
    }
}

@media (max-width: 360px) {
    .rooms-hero {
        padding-top: 40px;
    }
}

@media (min-width: 1920px) {
    .rooms-hero__search {
        left: 15%;
    }
}

@media (max-width: 480px) {
    .room-card-alt {
        border-radius: 40px 40px 15px 15px;
    }

    .room-card-alt__img {
        height: 240px;
    }

    .room-card-alt__actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .room-card-alt__meta {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .room-card-alt__meta span:not(:last-child)::after {
        display: none;
    }

    .room-card-alt__title {
        font-size: 22px;
    }
}
