/* Style body */
body {
    color: #404040;
    font: 400 15px/22px "Source Sans Pro", "Helvetica Neue", Sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}
/* Box sizing */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
/* Style sidebar and map elements along with child elements */
.sidebar {
    position: absolute;
    width: 24%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}
.map {
    position: absolute;
    left: 24%;
    width: 76%;
    top: 0;
    bottom: 0;
}
#ltoggle {
    position: absolute;
    background: #fff;
    top: 0;
    right: 0;
    margin: 10px 10px 0 0;
    border-radius: 3px;
    width: 150px;
    border: 1px solid rgba(0,0,0,0.4);
    z-index: 98;
}
#ltoggle a {
    font-size: 0.9em;
    color: #404040;
    display: block;
    margin: 0;
    padding: 0;
    padding: 5px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    text-align: center;
}
#ltoggle a:last-child {
    border: none;
}
#ltoggle a:hover {
    background-color: #f8f8f8;
    color: #404040;
}
#ltoggle a.activate {
    background-color: #d5070d;
    color: #ffffff;
}
#ltoggle a.activate:hover {
    background: #a80202;
}
.heading {
    position: fixed;
    background: #4d4d4d;
    width: 24%;
    min-height: 163px;
    color: #fff;
    text-align: center;
}
#title {
    padding-top: 10px;
    padding-bottom: 5px;
}
.listings {
    position: fixed;
    top: 163px;
    width: 24%;
    height: 79%;
    overflow: auto;
}
.listings .item {
    display: block;
    border-bottom: 1px solid #eee;
    padding: 10px;
    text-decoration: none;
}
.listings .item:last-child { 
    border-bottom: none; 
}
.listings .item .title {
    display: block;
    color: #d5070d;
    font-weight: 700;
}
.listings .item .title small { 
    font-weight: 400;
}
.listings .item.active .title,
.listings .item .title:hover { 
    color: #a80202; 
}
.listings .item.active {
    background-color: #DCDCDC;
}
::-webkit-scrollbar {
    width: 12px;
    border-right: 1px solid #4d4d4d;
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-track {
    background: none;
}
::-webkit-scrollbar-thumb {
    background: #d5070d;
    border-radius: 0;
}
.overlay::-webkit-scrollbar {
    width: 9px;
    border-left: 0;
    background: rgba(0,0,0,0.1);
}
.overlay::-webkit-scrollbar-track {
    background: #999;
}
.overlay::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 0;
}
h1 {
    font-family: "Alegreya SC", serif;
    font-size: 2.1em;
    font-weight: 500;
    text-shadow: 2px 2px #000;
    margin: 0;
}
#sbutton {
    padding: 7px 0 5px 10px;
    font-family: "Alegreya SC", serif;
    font-size: 1.1em;
    text-align: left;
    width: 50%;
    float: left;
}
span {
    white-space: nowrap;
}
#dl-right {
    padding: 7px 8px 5px 0;
    text-align: right;
    width: 50%;
    float: left;
}
#time {
    font-family: "Alegreya SC", serif;
    font-size: 1.1em;
    display: inline-block;
}
#info-button{
    vertical-align: top;
}
#clear {
    clear: both;
}
hr {
    max-width: 150px;
    border-color: #999;
}
.form-control {
    border-radius: 3px;
    padding: 1px 5px;
    width: 70%;
    font-size: 1em;
}
a {
    color: #404040;
    text-decoration: none;
}
a:hover {
    color: #101010; 
}
.marker {
    border: none;
    cursor: pointer;
    height: 13px;
    width: 13px;
    background-image: url("../img/marker.png");
    background-color: rgba(0, 0, 0, 0);
    transform: translate(9px, 18px, 0);
}
.marker:hover {
    border: none;
    cursor: pointer;
    height: 14px;
    width: 14px;
    background-image: url("../img/marker_hover.png");
    background-color: rgba(0, 0, 0, 0);
    transform: translate(9px, 18px, 0);
}
.clearfix { 
    display: block;
}
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
/* Marker tweaks */
.mapboxgl-popup {
    padding-bottom: 20px;
}
.mapboxgl-popup-close-button {
    font-size: 1.3em;
    color: #fff;
    padding: 0px 4px;
}
.mapboxgl-popup-close-button:hover {
    background-color: #a80202;
}
.mapboxgl-popup-content {
    font: 400 15px/22px "Source Sans Pro", "Helvetica Neue", Sans-serif;
    padding: 0;
    width: 280px;
    box-shadow: 3px 3px 3px rgba(0,0,0,0.20);
}
.mapboxgl-popup-content-wrapper {
    padding: 1%;
}
.mapboxgl-popup-content h3 {
    background: #d5070d;
    color: #fff;
    margin: 0;
    display: block;
    padding: 10px;
    font-weight: 700;
    font-size: 1em;
}
.mapboxgl-popup-content h4 {
    margin: 0;
    display: block;
    padding: 5px 0px 5px 10px;
    font-weight: 400;
    font-size: 0.9em;
    margin: 0;
}
.mapboxgl-popup-content div {
    padding: 10px;
}
.mapboxgl-container .leaflet-marker-icon {
    cursor: pointer; 
}
.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
    border-bottom-color: #d5070d;
    padding-top: 15px;
}
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip {
    border-bottom-color: #d5070d;
    padding-top: 15px;
}
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
    border-bottom-color: #d5070d;
    padding-top: 15px;
}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
    border-right-color: #d5070d;
}
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
    border-left-color: #d5070d;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    border-top-color: #d5070d;
}
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip {
    border-top-color: #d5070d;
}
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
    border-top-color: #d5070d;
}
.mapboxgl-popup-anchor-left {
    padding-top: 20px;
    padding-left: 15px;
}
.mapboxgl-popup-anchor-right {
    padding-top: 20px;
    padding-right: 15px;
}
.mapboxgl-ctrl-logo {
    margin: 5px 0px 0px;
}
p {
    font-size: 0.9em;
    line-height: 1.3;
    margin: 4px 0;
}
/* Style information box overlay and popup */
.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 99;
    line-height: 20px;
    overflow: auto;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
    transition: opacity 500ms;
}
.popup {
    padding: 2em;
    margin: 4em auto;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    width: 50%;
    position: relative;
    transition: all 500ms ease-out;
}
.poph1 {
    font-family: "Alegreya SC", serif;
    font-size: 2em;
    font-weight: 600;
    text-shadow: none;
    margin: 0;
    text-align: center;
}
.popup .close {
    position: absolute;
    top: 0.8em;
    right: 1.2em;
    transition: all 500ms;
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    color: #333;
}
.popup .close:hover {
    color: #d5070d;
}
.popup .content {
    max-height: 30%;
    overflow: auto;
    color: #333;
    text-align: left;
    font-size: 1.1em;
}
.infohead {
    padding: 1em 1.4em 1em;
}
ul {
    list-style-type: none;
    font-size: 0.9em;
    padding: 0 2em;
}
li {
    padding: 0 2em 0.5em;
    font-size: 0.9em;
}
.tips {
    display: block;
    margin: 0 auto 1em;
    border-radius: 3px;
}
/* Adjust elements for max screen width of 1101px */
@media screen and (max-width: 1101px) {
    .heading {
        min-height: 191px;
        font-size: 0.8em;
    }
    .listings {
        top: 191px;
        font-size: 0.8em;
    }
    #sbutton, #dl-right {
    text-align: center;
    width: 100%;
    }
}
/* Adjust elements for max screen width of 801px */
@media screen and (max-width: 801px) {
    .popup {
        padding: 20px;
        margin: 3em auto;
    }
    .popup .close {
        top: 0.6em;
        right: 1em;
    }
    .poph1 {
        font-size: 1.5em;
    }
    .infohead {
        font-size: 1em;
        text-align: center;
        padding: 1em 0.8em 1em;
    }
    .overlay {
        line-height: 16px;
    }
    ul {
        padding: 0;
    }
    li {
        padding: 0 0.8em 0.5em;
        text-align: center;
    }
}
/* Adjust elements for max screen width, remove sidebar and expand map */
@media screen and (max-width: 600px) {
    #ltoggle {
        display: none;
    }
    .sidebar {
        display: none;
    }
    .map {
        left: 0;
        width: 100%;
    }
    .popup {
        padding: 15px;
        margin: 2em auto;
        width: 60%;
    }
    .popup .close {
        top: 0.4em;
        right: 0.6em;
    }
    .poph1 {
        font-size: 1.3em;
    }
    .infohead {
        font-size: 0.8em;
        padding: 1em 0.5em 1em;
    }
    .overlay {
        line-height: 12px;
    }
    li {
        padding: 0 0.5em 0.3em;
    }
}