.accommodations::after {
    clear: both;
    content: "";
    display: block;
}

.accommodations .accommodation-type {
    width: calc(100% / 3);
    float: left;
    height: 450px;
    position: relative;
}

@media screen and (max-width: 1024px) {
    .accommodations .accommodation-type {
        height: 360px;
    }
}

@media screen and (max-width: 768px) {
    .accommodations .accommodation-type {
        margin: 0 auto 30px;
        height: 185px;
        width: calc(100%);
        float: none;
    }

    .accommodations .accommodation-type:last-child {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 540px) {
    .accommodations .accommodation-type {
        padding: 0;
        height: 150px;
        margin-bottom: 20px;
        width: 100%;
    }
}

@media screen and (max-width: 375px) {
    .accommodations .accommodation-type {
        height: 140px;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 320px) {
    .accommodations .accommodation-type {
        height: 120px;
        margin-bottom: 20px;
    }
}

.accommodations .accommodation-type a {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.accommodations .accommodation-type a h4.accommodation-name,
.accommodations .accommodation-type a h4.accommodation-name:before,
.accommodations .accommodation-type a .accommodation-bg {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.accommodations .accommodation-type a .accommodation-bg-change {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.accommodations .accommodation-type a h4.accommodation-name {
    color: #fff;
    position: absolute;
    left: 20%;
    right: 20%;
    z-index: 2;
    bottom: 5%;
    font-size: 11px;
    line-height: 30px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0 0 35px;

}

@media screen and (max-width: 768px) {
    .accommodations .accommodation-type a h4.accommodation-name {
        left: 10%;
    }
}

.accommodations .accommodation-type a h4.accommodation-name:before {
    content: '';
    display: block;
    height: 1px;
    width: 100px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 10px 0 0;
    position: relative;
    left: 0;
}

@media screen and (max-width: 540px) {
    .accommodations .accommodation-type a h4.accommodation-name:before {
        margin-top: 10px;
    }
}

.accommodations .accommodation-type a .overlay {
    position: absolute;
    bottom: 0;
    height: 50%;
    left: 10%;
    right: 10%;
    background: rgba(0, 0, 0, 0.5);
    background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5), transparent);
    background: -o-linear-gradient(top, rgba(0, 0, 0, 0.5), transparent);
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.5), transparent);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

@media screen and (max-width: 1024px) {
    .accommodations .accommodation-type a .overlay {
        bottom: 14px;
    }
}

@media screen and (max-width: 768px) {
    .accommodations .accommodation-type a .overlay {
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.accommodations .accommodation-type a .accommodation-bg {
    width: 100%;
    position: absolute;
    right: 0;
    height: 100%;
    z-index: 1;
    background-color: transparent;
    overflow: hidden;
    background-size: 95%;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

@media screen and (max-width: 768px) {
    .accommodations .accommodation-type a .accommodation-bg {
        background-size: 100%;
    }
}

.accommodations .accommodation-type a .accommodation-bg-change {
    content: "";
    width: 98%;
    position: absolute;
    height: 100%;
    -webkit-transform: translateX(-105%);
    -moz-transform: translateX(-105%);
    -ms-transform: translateX(-105%);
    -o-transform: translateX(-105%);
    transform: translateX(-105%);
    background-color: #333107;
    background-size: cover;
}

.accommodations .accommodation-type:nth-child(1) a .accommodation-bg-change {
    background-position: left center;
}

.accommodations .accommodation-type:nth-child(2) a .accommodation-bg-change {
    background-position: 50% center;
}

.accommodations .accommodation-type:nth-child(3) a .accommodation-bg-change {
    background-position: right center;
}

.accommodations:hover .accommodation-type a .accommodation-bg {
    width: 100%;
    background-size: 80%;
}

@media screen and (max-width: 1024px) {
    .accommodations:hover .accommodation-type a .accommodation-bg {
        background-size: 100%;
    }
}

@media screen and (max-width: 768px) {
    .accommodations:hover .accommodation-type a .accommodation-bg {
        background-size: 100%;
    }
}

.accommodations:hover .accommodation-type a .accommodation-bg-change {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
}

@media screen and (max-width: 1024px) {
    .accommodations:hover .accommodation-type a .accommodation-bg-change {
        -webkit-transform: translateX(-105%);
        -moz-transform: translateX(-105%);
        -ms-transform: translateX(-105%);
        -o-transform: translateX(-105%);
        transform: translateX(-105%);
    }
}

.accommodations:hover .accommodation-type a h4.accommodation-name {
    -webkit-transform: translateX(10px);
    -moz-transform: translateX(10px);
    -ms-transform: translateX(10px);
    -o-transform: translateX(10px);
    transform: translateX(10px);
    opacity: .3;
}

@media screen and (max-width: 1024px) {
    .accommodations:hover .accommodation-type a h4.accommodation-name {
        opacity: 1;
        -webkit-transform: translateX(0px);
        -moz-transform: translateX(0px);
        -ms-transform: translateX(0px);
        -o-transform: translateX(0px);
        transform: translateX(0px);
    }
}

.accommodations:hover .accommodation-type a:hover h4.accommodation-name {
    opacity: 1;
    -webkit-transform: translateX(0px);
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
    transform: translateX(0px);
}

.accommodations:hover .accommodation-type a:hover h4.accommodation-name:before {
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .accommodations:hover .accommodation-type a:hover h4.accommodation-name:before {
        width: 100px;
    }
}

