/** houm hotels **/

.thumb-box {
    display: flex;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.thumb-box a {
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    color: white;
}

.thumb-box img {
    width: 100%;
    height: 280px;
    float: left;
    object-fit: cover;
}

@media (min-width: 992px) {
    .thumb-box img {
        height: 65vh;
    }
}

.thumb-box .overlay-box {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 7%;
    background: linear-gradient(to top, black 14%, transparent 89%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease-in-out;
}

.thumb-box a:hover {
    color: white;
}



.thumb-box .meta {
    font-size: 1.6rem;
    display: block;
}

.thumb-box .overlay-box h2 {
    font-size: 3rem;
    color: white;
}

.thumb-box .main-title {
    font-size: 1.6rem;
    display: block;
    font-weight: 700;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

.overlay-box h2>p {
    margin: 0 !important;
    color: white;
}

.houm-hotels {
    & .thumb-box .description {
        color: white;
        margin-top: 0 !important;
        display: block;
        max-height: 100%;
        height: fit-content;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.4s ease-out, max-height 0.4s ease-out, height 0.4s ease-out, margin 0.4s;
        font-size: 1.4rem;

        @media (min-width: 992px) {
            font-size: 2rem;
        }

    }
}





.thumb-box a:hover .description {
    opacity: 1;
    max-height: 100%;
    margin-top: 5px;
    height: fit-content;
    font-size: 1.4rem;
}

@media (min-width: 992px) {
    .houm-hotels .thumb-box a:hover .description {
        font-size: 2rem;
    }
}

.thumb-box a:hover h2 {
    margin-bottom: 2rem;
}

.thumb-box a .overlay-box {
    justify-content: flex-end;

}

.thumb-box a:hover .overlay-box {
    justify-content: flex-end;

}

.houm-hotels-grid {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
}

.houm-hotels-title {
    margin: 0 auto 6rem auto !important;
}


@media (min-width: 992px) {
    .thumb-box a h2 {
        margin-bottom: 4rem !important;
    }

    .houm-hotels-grid {
        flex-direction: row;
    }

    .subpage-look .thumb-box .overlay-box h2 {

        font-size: 4rem;
        color: white;
        margin-top: 0 !important;

    }


}

.houm-hotels .thumb-box a .overlay-box {
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 10% 7%;
    justify-content: flex-end;
}

@media (min-width: 992px) {
    .houm-hotels .thumb-box a .overlay-box {
        top: 92%;
        max-height: 183px;
    }

    .houm-hotels .thumb-box a .description {
        opacity: 0;
        max-height: 0%;
        font-size: 2rem;
        height: 0%;
        margin-top: 0;

    }


    .houm-hotels .thumb-box a:hover .description {
        opacity: 1;
        max-height: 100%;
        font-size: 2rem;
        height: fit-content;

    }

    .villas-img img {
        height: 65vh !important;
    }

}

.houm-hotels .thumb-box a:hover .overlay-box {
    width: 100%;
    height: 100%;
    max-height: 100%;
    top: 50%;
    transition: all 0.6s ease-in-out;
}