:root {
    --dark: #28522B;
    --light: #EEFCEF;
    --link: #65B36A;
}

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    font-family: "Montserrat", sans-serif;;
    /* scroll-snap-type: y proximity; */
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    /* position: relative; */
    background-color: var(--light);
    margin: 0;
    overflow-x: hidden;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

a, a:visited, a:hover, a:active {
    color: var(--dark);
}

button {
    all: unset;
}

h1, h2, h3, h4, h5, h6 {
    display: inline-block;
    margin: 0;
}

h1 {
    font-weight: 700;
}

h2 {
    margin-top: 2rem;
    font-weight: 700;
    font-size: 3rem;
    color: var(--dark);
    text-align: center;
}

h5 {
    font-weight: 500;
}

.sheet {
    min-height: 100lvh;
    display: flex;
    flex-direction: column;
    /*padding: 1rem 0;*/
    /*margin: 0 15rem;*/
    margin: 0 20rem;
    transition: margin .5s;
}

.title-container {
    position: relative;
    margin: 0 !important;
    padding: 0;
    color: white;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 35%), rgba(0, 0, 0, 35%)), url("img/title.jpg");
    background-size: cover;
    background-position:center;
    /*z-index: 4;*/
}

.title-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.title-text>h1 {
    /* position: relative; */
    font-size: 7em;
    /* bottom: .3em; */
}

.title-text>h5 {
    /* position: absolute; */
    /* width: 100%; */
    /* text-align: center; */
    font-size: 1.2em;
    margin-bottom: -1.5em;
}

.room-list, .photo-list {
    position: relative;
    flex-grow: 1;
    /*margin: 2.8rem 0 4.375rem 0;*/
    margin: 1.25rem 0 4.375rem 0;
    /* margin: 0 6rem; */
    display: flex;
    flex-direction: row;
}

.scrollbox {
    display: flex;
    flex-grow: 1;
    gap: 1rem;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    will-change: scroll-position;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 2rem;
    
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
}

.scrollbox::-webkit-scrollbar {
    display: none;
}

.photo-box {
    /* flex-grow: 1 0; */
    /* position: relative; */
    flex-grow: 1 0;
    height: 100%;
    max-height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    min-width: 10rem;
    width: 10rem;
    cursor: pointer;
    transition: all .6s ;
}

.photo-box:hover {
    min-width: 30rem;
    width: 30rem;
}

.photo-box>img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
}

.room-box {
    /* text-align: center; */
    background-color: var(--dark);
    color: white;
    min-width: 25rem;
    width: 25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 2rem;
    overflow: hidden;
    cursor: pointer;
    flex-grow: 1 0;
    transition: min-width .5s;
    text-align: center;
    /* justify-content: center; */
}

.room-box-text {
    display: flex;
    flex-direction: column;
    /*flex-grow: 1;*/
    margin: .5em 0;
    width: 100%;
}

.room-box-text>h3 {
    margin-bottom: .2em;
}

.room-box-text>div:last-child {
    margin-top: auto;
}

/*.room-short-description::after {*/
/*    display: block;*/
/*    margin: .5em auto;*/
/*    content: "";*/
/*    width: 90%;*/
/*    height: .1rem;*/
/*    border-radius: 10rem;*/
/*    background: var(--link);*/
/*}*/

.room-description {
    /*font-size: .6em;*/
    font-size: 1.5rem;
    margin: .5rem 1rem;
}

.room-box-img {
    width: 100%;
    /*height: 100%;*/
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    /* box-shadow: inset 0 -1.25rem rgba(0, 0, 0, 0.5); */
}

.room-box-img::after {
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    box-shadow: inset 0 -0.625rem 1rem rgba(0, 0, 0, 0.5);
}

.room-box-img>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .4s;
    left: 0;
    right: 0;
    position: absolute;
}

.room-box:hover>.room-box-img>img {
    transform: scale(110%);
}

.btn {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    cursor: pointer;
    transition: all .5s;
    padding: 1rem;
    cursor: pointer;
}

.btn>img {
    width: 1.5rem;
}

.left {
    left: 0;
    transform: translateY(-50%);
}

.right {
    right: 0;
    transform: translateY(-50%) rotateY(180deg);
}

.left:hover {
    transform: translateY(-50%) translateX(-15%);
}

.right:hover {
    transform: rotateY(180deg) translateY(-50%) translateX(-15%);
}

.popup-background {
    position:fixed;
    top: 0;
    bottom: 0;
    min-width: 100vw;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    animation: opa .5s ease;
    cursor: pointer;
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* transition: all .5s; */
}

.popup-card {
    width: 70%;
    height: 80%;
    border-radius: 2rem;
    overflow: hidden;
    cursor:default;
    position: relative;
}

.popup-card-img_box {
    height: 100%;
    width: 100%;
    position: relative;
    object-fit: cover;
    overflow: hidden;
    /* backdrop-filter: blur(10px); */
}

.popup-card-img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.popup-card-img_background {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -2;
    height: 100%;
    width: 100%;
    /* filter: blur(6px) saturate(6px); */
}

.blur {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

#popup-card_close {
    transform: translateY(0);
    top: 0;
    left: 0;
    margin: 1rem;
}

.book-container {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    /*justify-content: right;*/
    align-items: end;
    font-size: 1.5rem;
    transition: all .5s;
    z-index: 3;
    gap: .75rem;
}

.book-btn {
    /* align-self:  center; */
    border-radius: .8em;
    width: fit-content;
    text-align: center;
    background-color: rgba(57, 116, 61, 0.7);
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: white;
    padding: .5em 1em;
    transition: all .6s ease;
    box-sizing: border-box;
    /* top: 0; */
    /* display: none; */
    /* margin-top: 8em; */
}

.book-btn:hover {
    background-color: rgba(57, 116, 61, 0.85);
    cursor: pointer;
}

.popup-contacts {
    background-color: rgba(238, 252, 239, 0.8);
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: var(--dark);
    padding: 1rem 1.5rem;
    /*position: fixed;*/
    /*bottom: 6em;*/
    /*right: 2em;*/
    border-radius: .8em;
    /*display: flex;*/
    flex-direction: column;
    animation: opa .5s ease;
    box-sizing: border-box;
}

.popup-contacts-title {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /*vertical-align: center;*/
    align-items: center;
}

.popup-contacts-title::after {
    content: "";
    display: block;
    width: 100%;
    height: .1rem;
    background-color: var(--dark);
    grid-column: 1 / -1;
    margin: .625rem 0;
}

.justify-right {
    justify-self: right;
}

.popup-contacts-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: .625rem;
}

.popup-contacts-close {
    cursor: pointer;
}

.radio-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: .0625rem;
    margin-top: 1.25rem;
    width: 100%;
}

#radio-month-1+label {
    border-radius: 1rem 0 0 1rem;
}

#radio-month-3+label {
    border-radius: 0 1rem 1rem 0;
}

input[type=radio] {
    all: unset;
    display: none;
    opacity: 0;
    position: absolute;
}

input[type=radio]+label {
    padding: .875rem .75rem;
    flex-grow: 1;
    background-color: var(--dark);
    color: white;
    cursor: pointer;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    transition: all .5s;
}

input[type=radio]+label:hover {
    background-color: var(--link);
}

input[type=radio]:checked+label {
    background-color: var(--link);
}

@keyframes fixed {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(100%)
    }
}

@keyframes opa {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

@media (max-width: 1280px) {
    .sheet {
        margin: 0 2rem;
    }
}

@media (max-width: 800px) {
    h2 {
        font-size: 2rem;
    }

    .room-box, .photo-box, .photo-box:hover {
        flex-grow: 1;
        min-width: 100%;
    }
    
    /* .room-list, .photo-list {
        margin-top: 2rem;
    } */
    
    .sheet {
        margin: 0 2rem;
    }
    
    .title-text {
        transform: scale(50%);
    }

    .popup-card {
        width: 100%;
        border-radius: 0;
        height: fit-content;
    }

    .popup-card-img_background, .blur {
        position: absolute;
        display: none;
    }

    .book-container {
        right: 0;
        left: 0;
        bottom: 1%;
        margin: 0 5%;
        align-items: center;
    }

    .book-btn {
        width: 100%;
    }

    .popup-contacts {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .title-text {
        transform: scale(40%);
    }

    .popup-contacts {
        font-size: 1.15rem;
    }
}