* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);  
}

html, body, #map { 
    width: 100%; 
    height: 100%;       
    margin: 0; 
}  

#map-container { 
    position: absolute; 
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0; 
    border: 1px solid #ccc; 
}

#map {
    background-color: #fff;
}


/* Zoom controls on touch devices */
.leaflet-touch .leaflet-control-zoom {
    border: 1px solid #888;
    border-radius: 10px;
    -webkit-box-shadow: 0 0 8px rgba(0,0,0,0.4);    
            box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.leaflet-touch .leaflet-control-zoom a {
    width: 36px;
    height: 36px;
}
.leaflet-touch .leaflet-control-zoom-in {
    border-bottom: 1px solid #aaa;
    border-radius: 9px 9px 0 0;
    font-size: 26px;
    line-height: 36px;
}
.leaflet-touch .leaflet-control-zoom-out {
    border-radius: 0 0 9px 9px;
    font-size: 30px;
    line-height: 30px;
}


/* Static map */
.leaflet-static {
    cursor: auto;
}

/* Legend styles */
.leaflet-control-legend {
    background: #f8f8f9;
    -webkit-border-radius: 8px;
            border-radius: 8px;
    -webkit-box-shadow: 0 1px 7px rgba(0,0,0,0.4);    
            box-shadow: 0 1px 7px rgba(0,0,0,0.4);
}
.leaflet-control-legend-toggle {
    background: transparent url(../images/legend.png) no-repeat 50% 50%;
    width: 36px;
    height: 36px;
    display: block;
}
.leaflet-touch .leaflet-control-legend-toggle {
    width: 44px;
    height: 44px;
}
.leaflet-control-legend .leaflet-control-legend-view,
.leaflet-control-legend-expanded .leaflet-control-legend-toggle {
    display: none;
}
.leaflet-control-legend-expanded .leaflet-control-legend-view {
    display: block;
    position: relative;
}
.leaflet-control-legend-view {
    font: 12px/17px Arial, Helvetica, sans-serif;
    color: #000;
    padding: 10px;
    max-width: 200px;    
    max-height: 450px;    
    overflow: hidden;
}
.leaflet-control-legend-title {
    font-weight: bold;
    text-align: center;
    padding-bottom: 10px;
}
.leaflet-control-legend-items div {
    clear: both;
}
.leaflet-control-legend-items span {
    display: block;
    width: 16px;
    height: 16px;
    float: left;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-right: 5px;
}
.leaflet-control-legend-footer {
    padding-top: 10px;
}
.leaflet-control-legend-close-button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 5px 0 0;
    text-align: center;
    width: 18px;
    height: 14px;
    font: 16px/14px Tahoma, Verdana, sans-serif;
    color: #c3c3c3;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
}
.leaflet-control-legend-close-button:hover {
    color: #999;
}


/* Popup styles */
.leaflet-popup {
    z-index: 999;
}
.leaflet-popup-content-wrapper {
    -webkit-border-radius: 10px;
            border-radius: 10px;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    -webkit-box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

/* Label styles */
.leaflet-label {
    background: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.81);
    background-clip: padding-box;    
    margin-left: 5px;
    margin-top: 13px;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    border: 1px solid #aaa;
    -webkit-border-radius: 4px;
            border-radius: 4px;
    color: #111;
    display: block;
    font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
    padding: 1px 6px;
    position: absolute;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    white-space: nowrap;
    z-index: 8    
}
.leaflet-label-static {
    background: rgb(100, 100, 100);    
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;    
    color: #fff;  
    border: 0;    
    -webkit-border-radius: 0;
            border-radius: 0;   
    box-shadow: none;             
    margin-left: 0;
    margin-top: 0;
}
.leaflet-label-static.hide {
    display: none;
} 

.leaflet-label-info {
    background: rgb(100, 100, 100);    
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;    
    color: #fff;  
    width: 220px;
    border: 0;    
    white-space: normal;    
    -webkit-border-radius: 0;
            border-radius: 0;
    -webkit-box-shadow: 0 1px 7px rgba(0,0,0,0.4);    
            box-shadow: 0 1px 7px rgba(0,0,0,0.4);    
    margin-left: 0;
    margin-top: 0;
}
.leaflet-label-info.hide {
    display: none;
} 

/* Cluster styles */
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
    -webkit-transition: -webkit-transform 0.25s ease-out, opacity 0.25s ease-in;
    -moz-transition: -moz-transform 0.25s ease-out, opacity 0.25s ease-in;
    -o-transition: -o-transform 0.25s ease-out, opacity 0.25s ease-in;
    transition: transform 0.25s ease-out, opacity 0.25s ease-in;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgb(241, 211, 87);
    background-color: rgba(241, 211, 87, 0.6);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div  {
    background-color: rgb(240, 194, 12);
    background-color: rgba(240, 194, 12, 0.6);
}
.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.marker-cluster span {
    line-height: 30px;
}

/* Events control */
.leaflet-control-story a {
    display: block;
    float: left;
    margin-left: 5px;
    padding: 7px 12px;
    font: 17px Verdana, "Helvetica Neue", Arial, Helvetica, sans-serif;
    text-decoration: none;    
    font-weight: bold;
    color: #333;
    background: #fff;
    border: 1px solid #bbb;    
    -webkit-border-radius: 3px;
            border-radius: 3px;
    -webkit-box-shadow: 0 1px 7px rgba(0,0,0,0.4);    
            box-shadow: 0 1px 7px rgba(0,0,0,0.4);    
}


.leaflet-control-story a:first-child {
    margin-left: 0;
}

.leaflet-control-story a:hover {
    background: #eee;
}


.leaflet-control-story a.selected {
    background: #333;
    color: #fff;
}

@media all and (max-width: 640px) {
    .leaflet-control-story a {
        font-size: 12px;
    }
}

@media all and (max-width: 510px) {
    .leaflet-control-story {
        display: none;
    }
}

@media all and (max-height: 200px) {
    .leaflet-control-story {
        display: none;
    }
}


/* Minimap control */
.leaflet-control-minimap {
    border:solid rgba(255, 255, 255, 0.7) 3px;
    box-shadow: 0 1px 7px #999;
    background: #f8f8f9;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
}
.leaflet-control-minimap a {
    background-color: rgba(255, 255, 255, 0.75);
    background-position: 1px 2px;
    background-repeat: no-repeat;
    display: block;
    outline: none;
    z-index: 99999;
}
.leaflet-control-minimap a.minimized {
    background-position: 1px -18px;
}
.leaflet-control-minimap-toggle-display {
    background-image: url("../images/toggle.png");
    border-radius: 4px 4px 4px 4px;
    height: 19px;
    width: 19px;
    position: absolute;
    bottom: 0;
    right: 0; 
}


@media all and (max-width: 550px) {
    .leaflet-control-minimap {
        display: none;
    }
}

@media all and (max-height: 500px) {
    .leaflet-control-minimap {
        display: none;
    }
}

