
/* --------------------------------------------------------------------------------------------- */

.leaflet-control-zoom-fullscreen { background-image: url(images/icon-fullscreen.png); }
.leaflet-container:-webkit-full-screen { width: 100% !important; height: 100% !important; z-index: 99999; }
.leaflet-pseudo-fullscreen { position: fixed !important; width: 100% !important; height: 100% !important; top: 0px !important; left: 0px !important; z-index: 99999; }

.opacity_slider_div { }

/* --------------------------------------------------------------------------------------------- */

    .leaflet-control-layers-group-name {
      font-weight: bold;
      margin-bottom: 5px;
      display: block;
    }

    .leaflet-control-layers-group {
      margin-bottom: 10px;
    }

    .leaflet-control-layers-expanded label {
      padding-left: 5px;
      padding-right: 5px;
    }
    
    .leaflet-control-layers-expanded {
      padding: 10px;
    }
    .leaflet-control-labelB {
      margin-top: 0px;
      margin-bottom: 2px;
    }

/* --------------------------------------------------------------------------------------------- */

.leaflet-control-minimap {
    border:solid rgba(255, 255, 255, 1.0) 4px;
    /*box-shadow: 0 1px 5px rgba(0,0,0,0.65);*/
    border-radius: 0px; /* loose the open arrow in Chrome if nonzero */
    background: #f8f8f9;
    transition: all .2s;
}

.leaflet-control-minimap a {
    background-color: rgba(255, 255, 255, 1.0);
    background-repeat: no-repeat;
    display: block;
    outline: none;
    z-index: 99999;
    transition: all .2s;
}

.leaflet-control-minimap a.minimized {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
    background-position: -4px -4px;
}

.leaflet-control-minimap-toggle-display {
    background-image: url("images/toggle.png");
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    border-radius: 2px 0px 2px 0px;
    height: 15px;
    width: 15px;
    position: absolute;
    bottom: 0;
    left: 0; 
}

/* --------------------------------------------------------------------------------------------- */

.leaflet-sidebar {
    position: absolute;
    height: 100%;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;

    z-index: 100000; /* DNELSON changed from 2000 to be under a bootstrap modal */
}

.leaflet-sidebar.left {
    left: -580px;
    transition: left 0.5s, width 0.5s;

    padding-right: 0;
}

.leaflet-sidebar.right {
    right: -580px;
    transition: right 0.5s, width 0.5s;

    padding-left: 0;
}

.leaflet-sidebar.left.visible {
    left: 0;
}

.leaflet-sidebar.right.visible {
    right: 0;
}

.leaflet-left {
    transition: left 0.5s;
}

.leaflet-right {
    transition: right 0.5s;
}

.leaflet-sidebar > .leaflet-control {
    height: 100%;
    width: 100%;

    overflow: auto;
    -webkit-overflow-scrolling: touch;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 8px 24px;

    font-size: 1.1em;

    background: white;
    box-shadow: 0 1px 7px rgba(0,0,0,0.65);
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

@media(max-width:767px){
    .leaflet-sidebar {
        width: 100%;
        padding: 0;
    }

    .leaflet-sidebar.left {
        left: -100%;
    }

    .leaflet-sidebar.right {
        right: -100%;
    }

    .leaflet-sidebar.left.visible {
        left: 0;
    }

    .leaflet-sidebar.right.visible {
        right: 0;
    }

    .leaflet-sidebar > .leaflet-control {
        box-shadow: none;
        -webkit-border-radius: 0;
        border-radius: 0;
    }

    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 100%;
    }

    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 100%;
    }
}

@media(min-width:768px) and (max-width:991px){
    .leaflet-sidebar {
        width: 305px;
    }

    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 305px;
    }

    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 305px;
    }
}

@media(min-width:992px) and (max-width:1199px){
    .leaflet-sidebar {
        width: 390px;
    }

    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 390px;
    }

    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 390px;
    }
}

@media(min-width:1200px){
    .leaflet-sidebar {
        width: 460px;
    }

    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 460px;
    }

    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 460px;
    }
}

@media(min-width:1600px){
    .leaflet-sidebar {
        width: 540px;
    }

    .leaflet-sidebar.left.visible ~ .leaflet-left {
        left: 540px;
    }

    .leaflet-sidebar.right.visible ~ .leaflet-right {
        right: 540px;
    }
}

.leaflet-sidebar .close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 31px;
    height: 31px;

    color: #333;
    font-size: 25pt;
    line-height: 1em;
    text-align: center;
    background: white;
    -webkit-border-radius: 16px;
    border-radius: 16px;
    cursor: pointer;

    z-index: 8;
}
