
figure.roomtype-selector {
    color: #fff;
    position: relative;
    float: left;
    overflow: hidden;
    margin: 10px 1%;
    background-color: rgba(210, 210, 210, 0.32);
    text-align: center;
    cursor: pointer;
}

figure.roomtype-selector input:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

figure.roomtype-selector * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.6s ease;
    transition: all 0.6s ease;
}

figure.roomtype-selector img {
    opacity: 0.7;
    /*max-width: 80%;*/
    max-width: 100%;
    margin-top: -25px;
    padding: 15%;
}

figure.roomtype-selector:after {
    background: #000000;
    width: 0;
    height: 6px;
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

figure.roomtype-selector h2, figure.roomtype-selector span {
    margin: 0;
    width: 100%;
}

figure.roomtype-selector h2 {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 25px;
}

figure.roomtype-selector span {
    color: #e6e6e6;
    font-weight: 700;
    text-transform: uppercase;
}

figure.roomtype-selector a {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: 1;
}

figure.roomtype-selector.blue:after {
    background-color: #2980b9;
}

figure.roomtype-selector.blue span {
    color: #409ad5;
}

figure.roomtype-selector.red:after {
    background-color: #C89D28;
}

figure.roomtype-selector.red span {
    color: #C89D28;
}

figure.roomtype-selector.yellow:after {
    background-color: #f39c12;
}

figure.roomtype-selector.yellow span {
    color: #f5b043;
}

figure.roomtype-selector.green:after {
    background-color: #27ae60;
}

figure.roomtype-selector.green span {
    color: #36d278;
}

@supports not (-webkit-overflow-scrolling: touch) {
    /* CSS for other than iOS devices */
    figure.roomtype-selector:hover:after, figure.roomtype-selector.hover:after {
        width: 100%;
    }

}

figure.roomtype-selector .active, figure.roomtype-selector.active {
    border: solid 2px #C89D28;
}

figure.roomtype-selector.active:after, figure.roomtype-selector.active:after {
    width: 100%;
}

