@import url('https://fonts.googleapis.com/css?family=Roboto');

body.fullscreen {
    overflow:hidden;
}
body.fullscreen #header, body.fullscreen #main {
    position: static!important;
}
body.fullscreen #map-wrapper {
    z-index: 1500;
}
body.fullscreen .pac-container.pac-logo {
    z-index: 1501;
}
body.fullscreen.modal-map-backdrop-shown .modal-backdrop {
    z-index: 1510;
}
body.fullscreen #modal-map-results {
    z-index: 1520;
}

#map-wrapper {
    position:relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 0;
}
#map-instance {
    width:100%;
    height: 100%;
}
body.fullscreen #map-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#fullscreen-map-link .icon,
#reset-map-link .icon,
#origin-route-span .icon,
#destination-route-span .icon,
#change-search-link .icon,
.travel-mode .icon,
#show-route-detail-link .icon,
#show-search-box-link .icon,
#hide-search-box-link .icon,
#modal-map-results .modal-header #print-route-link  .icon{
    background-image: url("https://cdnwp0.mirai.com/images/sprite_location_map.png");
}
#fullscreen-map-link {
    position: absolute;
    top: 15px;
    right: 7px;
    z-index: 1;
    background-color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 17px;
    box-shadow: 1px 1px 5px #999;
}

#fullscreen-map-link .icon {
    width: 34px;
    height: 34px;
    display: inline-block;
    background-position: -70px -344px;
}

#fullscreen-map-link.exit .icon {
    background-position: -70px -378px;
}

.st-view-map #fullscreen-map-link {
    top: 15px;
    right:20px;
    background-color: #222;
    box-shadow: none;
}
.st-view-map #fullscreen-map-link .icon {
    background-position: -36px -344px;
}
.st-view-map #fullscreen-map-link.exit {
    top: 15px;
    right:20px;
    background-color: #222;
    box-shadow: none;
}
.st-view-map #fullscreen-map-link.exit .icon {
    background-position: -36px -378px;
}
#reset-map-link {
    position: absolute;
    top: 58px;
    right: 7px;
    z-index: 1;
    background-color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 17px;
    box-shadow: 1px 1px 5px #999;
}
#reset-map-link .icon {
    width: 34px;
    height: 34px;
    display: inline-block;
    background-position: -69px -175px;
}
.st-view-map #reset-map-link {
    right:20px;
    background-color: #222;
    box-shadow: none;
}
.st-view-map #reset-map-link .icon {
    background-position: -36px -175px;
    display: inline-block;
}

.st-view-map #search-box {
    display: none;
}
#map-info h4 {
    font-family: roboto;
    font-size:16px;
    color:#333;
}
#map-info p {
    font-family: roboto;
    font-size:13px;
    color:#333;
    margin:0;
}
#map-info a {
    display: none;
}
/* search-box */
#search-box {
    position:absolute;
    top: 150px;
    left:0px;
    z-index: 1;
}
#search-form {
    background-color: #fff;
    padding: 20px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 1px 1px 5px #999;
    position:relative;
    z-index: 1;
}
.travel-mode-box {
    display: block;
    margin-bottom: 15px;
    text-align: left;
}
.travel-mode {
    margin: 0 5px 0 0;
}
.travel-mode .icon {
    width: 25px;
    height: 25px;
    display:inline-block;
}
#car-mode .icon {background-position: -73px -213px;}
#bus-mode .icon {background-position: -73px -248px;}
#walk-mode .icon {background-position: -73px -283px;}

#search-box input {
    margin-bottom: 0px;
    font-family: roboto;
}
#origin-route-span,
#destination-route-span {
    border-bottom: 1px solid #999;
    display: block;
    margin-bottom: 20px;
}
#origin-route-span.selected,
#destination-route-span.selected {
    border-bottom: 1px solid #000;
}
#origin-route-span .icon,
#destination-route-span .icon {
    width: 25px;
    height: 25px;
    display:inline-block;
    background-position: -73px -111px;
    vertical-align: bottom;
    opacity:0.5;
    -webkit-transition: all 0.6s ease;
    -moz-transition: all 0.6s ease;
    -o-transition: all 0.6s ease;
    transition: all 0.6s ease;
}
#origin-route-span.selected .icon,
#destination-route-span.selected .icon {
    opacity:1;
}
#origin-route,
#destination-route {
    display: inline-block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    width: 150px;
    padding-right: 15px;
}
#change-search-link {
    position: absolute;
    top: 105px;
    right: 6px;
}
#change-search-link .icon {
    background-position: -74px -448px;
    opacity:0.5;
    display: inline-block;
    width: 25px;
    height: 25px;
}
#change-search-link:hover .icon {
    opacity:1;
}
#calculate-route-button {
    font-size:12px;
    background-color: #04ABE6;
    border: none;
    border-radius: 2px;
    color:#fff;
    text-transform: uppercase;
    box-shadow: 1px 1px 5px #999;
    display: block;
    width: 100%;
    line-height: 20px;
    padding: 9px 15px 6px;
}
#calculate-route-button:hover {
    background-color: #0087b7;
}
#calculate-route-button:disabled {
    background-color: #dfdfdf;
    color: #a5a5a5;
    box-shadow: none;
}
#show-route-detail-link {
    font-family: roboto;
    display: none;
    text-transform: uppercase;
    font-size: 12px;
    margin: 15px 0 0 -15px;
    height: 20px;
    text-decoration: none;
    vertical-align: middle;
    margin-top: 20px;
    text-align: center;
    color: #0088cc;
}
#show-route-detail-link:hover {
    color: #005580;
}
#show-route-detail-link .icon {
    display: inline-block;
    background-position: -73px -80px;
    width: 25px;
    height: 18px;
    vertical-align: middle;
}
#show-search-box-link {
    display: none;
    position: absolute;
    top: 0;
    width: 25px;
    right: -49px;
    background-color: #fff;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 1px 1px 5px #999;
    z-index: 0;
    height: 35px;
}
#show-search-box-link .icon {
    display: inline-block;
    width: 25px;
    height: 35px;
    background-position: -3px -33px;
}
#show-search-box-link:hover .icon {
    background-position: -71px -33px;
}
#hide-search-box-link {
    position: absolute;
    top: 0;
    width: 25px;
    right: -23px;
    background-color: #fff;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 1px 1px 5px #999;
    z-index: 0;
    height: 35px;
}
#hide-search-box-link .icon {
    display: inline-block;
    width: 25px;
    height: 35px;
    background-position: -73px 2px;
}
#car-mode .icon,
#bus-mode .icon,
#walk-mode .icon,
.travel-mode .icon,
#show-route-detail-link .icon,
#calculate-route-button,
#change-search-link .icon,
.travel-mode .icon,
#reset-map-link .icon,
#fullscreen-map-link .icon,
#hide-search-box-link .icon {
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    opacity: 0.5;
}
#car-mode.selected .icon,
#car-mode:hover .icon,
#bus-mode.selected .icon,
#bus-mode:hover .icon,
#walk-mode.selected .icon,
#walk-mode:hover .icon,
#hide-search-box-link:hover .icon,
#show-route-detail-link:hover .icon,
#change-search-link:hover .icon,
#origin-route-span.selected .icon,
#calculate-route-button,
#destination-route-span.selected .icon,
#fullscreen-map-link:hover .icon,
#fullscreen-map-link.exit:hover .icon,
#reset-map-link:hover .icon,
.st-view-map #reset-map-link:hover .icon {
    opacity:1;
}

/* modal map results */
.modal-map-backdrop-shown .modal-backdrop {
    z-index: 1040;
}
#modal-map-results {
    z-index: 1050;
    border-radius: 0;
    margin: -271px 0 0 -280px !important;
}
#modal-map-results .modal-header {
    background-color: #4285F4;
    color: #92B9F8;
    position: relative;
    padding-bottom: 20px;
    text-align: left;
    overflow: hidden;
}
#modal-map-results .modal-header #route-data {
    list-style: none;
    font-size: 18px;
    margin: 20px 0 20px 20px;
}
#modal-map-results .modal-header #route-data li {
    margin-bottom: 10px;
    overflow: hidden;
    line-height: 30px;
}
#modal-map-results .modal-header #route-data li span {
    color: #fff;
    line-height: 30px;
    display: inline-block;
    width: 85%;
    float: right;
}
#modal-map-results .modal-header #route-data li > * {
    vertical-align: top;
}
#modal-map-results .modal-header p {
    margin-left: 20px;
    font-size: 14px;
    color: #fff;
    margin-bottom: 0!important;
    float: left;
}
#modal-map-results .modal-header #print-route-link {
    position: static;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    float: right;
}
#modal-map-results .modal-header #print-route-link:hover {
    color: #c5dbff !important;
}
#modal-map-results .modal-header #print-route-link .icon {
    background-position: -41px -322px;
    display: inline-block;
    height: 17px;
    width: 26px;
    vertical-align: middle;
}
#modal-map-results .modal-header .close {
    font-size: 30px;
    text-shadow: none;
    top: 23px;
    opacity: .7;
    color: #fff;
    right: 6px;
}
#modal-map-results .modal-header .close:hover {
    opacity: .85;
}
#modal-map-results #results-box {
    position: relative;
    height:300px;
    padding: 30px 25px 20px;
    text-align: left;
    font-size: 16px;
    background: #fff;
}
#modal-map-results #results-box #no-click-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
#modal-map-results #results-box .adp-placemark,
#modal-map-results #results-box .adp-summary {
    display: none;
}
#modal-map-results #results-box .adp-directions tr:first-child td {
    border: 0;
}
#modal-map-results #results-box .adp-legal {
    margin-top: 20px;
    font-size: 10px
}
.pac-container.pac-logo {
    z-index: 997;
}
/* error box */
#error-box {
    position:absolute;
    left:0;
    bottom: 0;
    margin: 25px;
    padding: 15px 25px;
    background-color: rgb(20,24,31);
    background-color: rgba(20,24,31,0.85);
    color: #fff;
    z-index: 1;
    display: none;
    width:auto;
    border-radius: 3px;
    font-family: roboto;
}
#error-box p {
    margin:0;
    font-family: roboto;
    color: inherit!important;
    font-size: 14px;
}

.show-search-box-animation {
  animation-duration: 1s;
  animation-name: showBox;
  -webkitanimation-duration: 1s;
  -webkit-animation-name: showBox;
  -moz-animation-duration: 1s;
  -moz-animation-name: showBox;
  left:0 !important;
}
.hide-search-box-animation {
  animation-duration: 1s;
  animation-name: hideBox;
  -webkit-animation-duration: 1s;
  -webkit-animation-name: hideBox;
  -moz-animation-duration: 1s;
  -moz-animation-name: hideBox;
  left:-239px !important;
}
@-webkit-keyframes showBox {
    0% {left:-239px;}
    100% {left:0;}
}
@-webkit-keyframes hideBox {
    0% {left:0;}
    100% {left:-239px;}
}
@-moz-keyframes showBox {
    0% {left:-239px;}
    100% {left:0;}
}
@-moz-keyframes hideBox {
    0% {left:0;}
    100% {left:-239px;}
}

@media (max-device-width: 767px) {
    #map-wrapper {
        height: 360px;
    }
    #fullscreen-map-link,
    #reset-map-link,
    #search-box,
    #modal-map-results {
        display:none;
    }
    #map-info a {
        display: block;
        float: left;
    }
    #map-info a:first-of-type {
        float: right;
    }
}

@media print {
    body > *,
    #reset-map-link,
    #search-box {display:none;}
    #modal-map-results {
        display: block !important;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        position: static;
        top:0;
        left:0;
        margin:0 !important;
        width: 100%;
        height: 100%;
    }
    #modal-map-results .modal-header,
    #modal-map-results .modal-header #route-data li span,
    #modal-map-results .modal-header p {
        background-color: transparent;
        color: #000;
    }
    #modal-map-results .modal-header .close,
    #modal-map-results .modal-header #print-route-link {
        display:none !important;
    }
    #modal-map-results #results-box {
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }
}

.map-static {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: block;
    height: inherit;
    width: 100%;
}

#modal-map-results {
    display: none !important;
}
