/* Dorm Image Maps */

.dorm-image-map-wrapper {
    background-color: rgba(65,65,65,0.1);
    padding: 0.5em;
    width: 100%;;
    /*max-width: 720px;*/
    margin: 0 auto 2rem auto;
}
.dorm-image-map-wrapper[data-id="dorm-1"]{
    margin-top: 1.5rem;
}
.dorm-image-map {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 38.4%;
    margin: 0;
}

.dorm-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}


.dorm-image-map-wrapper[data-id="dorm-1"] .dorm-image {
    background-image: url(../content/15/img/dorm.jpg);
}


.dorm-image-map-wrapper .b_marker {
    position: absolute;
    height: 3rem;
    width: 3rem;
    font-size: 1rem;
    -webkit-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    z-index: 2;
    margin: -1.5rem 0 0 -1.5rem;
}

.dorm-image-map-wrapper .info-open .b_marker {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

.dorm-image-map-wrapper .b_marker:hover,
.dorm-image-map-wrapper .b_marker:focus {
    cursor: pointer;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}
.dorm-image-map-wrapper .b_marker .marker {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.dorm-image-map-wrapper .b_marker .marker:before {
    font-family: 'comment-icons' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e900";
    color: #fff;
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: absolute;
}
.dorm-image-map-wrapper .b_marker[data-dir="left"] .marker:before {
    -webkit-transform: rotateY(-180deg);
            transform: rotateY(-180deg);
}
.dorm-image-map-wrapper .b_marker .marker:after {
    content: '';
    background-image: url(../assets/img/info-icon-red.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 54.5%;
    left: 63%;
    height: 50%;
    width: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}
@media screen and (max-width:479px){
    .dorm-image-map-wrapper .b_marker {
        height: 2rem;
        width: 2rem;
    }
    .dorm-image-map-wrapper .b_marker .marker:before {
        font-size: 2rem;
    }
}

.dorm-info-popup {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    visibility: hidden;
    opacity: 0;
    z-index: 99999;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.dorm-info-window-wrapper {
    display: table;
    height: 100%;
    width: 100%;
}

.dorm-info-window-container {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.dorm-info-window {
    background: #fff;
    padding: 1.75em 1em 1em;
    width: auto;
    margin: 0 auto;
    display: table;
    width: 86%;
    max-width: 480px;
    -webkit-transform: scale(0.1);
    -ms-transform: scale(0.1);
    transform: scale(0.1);
    opacity: 0;
    border-radius: 2px;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.dorm-info-window-close {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    height: 2em;
    width: 2em;
    cursor: pointer;
}

.dorm-info-window-close:after {
    font-family: 'icons' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e5cd";
    display: block;
    height: 2rem;
    width: 2rem;
    text-align: center;
    line-height: 2rem;
    font-size: 1.5em;
}

.dorm-info-window-content p {
    margin: 0;
    font-size: 0.925em;
    line-height: 1.35em;
}

.info-open .dorm-info-popup {
    visibility: visible;
    opacity: 1;
}

.info-open .dorm-info-window {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
@media screen and (max-width:479px){
    .dorm-info-window {
        padding: 1.75rem 0.5rem 0.5rem;
        width: 94%;
    }
    .dorm-info-window-content {
        font-size: 0.875rem;
        line-height: 1.25;
    }
}