#stellar-interactive-google-map {
    height: 80vh;
    min-height: 500px;
    background: #ccc;
}

#stellar-interactive-google-map .map-popup-content {
    max-width: 85vw;
}

/***************************************************************************************/
/* Google Map Legend Styles
/***************************************************************************************/

#google-map-legend {
    margin: 10px 15px;
    max-height: calc( 100% - 45px );
    width: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    bottom: 20px;
    pointer-events: all;
}

#google-map-legend .scroll-box {
    background: rgba( 0,0,0,.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 14px;
}

#google-map-legend h3 {
    color: #fff;
    margin: 4px 0 4px;
}

#google-map-legend .legend-visibility-link {
    color: #fff;
    border: none;
    text-decoration: none;
    float: right;
}

#google-map-legend hr {
    margin: 0 0 5px;
}

#google-map-legend ul {
    padding: 0 !important;
    margin: 0 !important;
}

#google-map-legend li {
    list-style-type: none !important;
    left: 0 !important;
    padding: 0 !important;
}

#google-map-legend .li-content {
    cursor: default;
    padding: 2px 4px;
    background: #666;
    color: #fff;
    display: block;
    border-bottom: 2px solid #fff;
}

#google-map-legend ul ul .li-content {
    background: #999;
}

#google-map-legend .li-content > a {
    float: right;
    color: #fff;
    margin: 0 4px;
    text-decoration: none;
    border: none;
}

#google-map-legend .marker-links a {
    display: block;
    color: #ddd;
    border: none;
    padding: 4px;
    text-decoration: none;
}

#google-map-legend .marker-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

#google-map-legend span.category-count {
    float: right;
    color: #333;
    background-color: #fff;
    display: inline-block;
    position: relative;
    top: 2px;
    line-height: 1.2em;
    font-size: 10px;
    padding: 0 5px;
    border-radius: 8px;
    margin: 0 4px;
    text-decoration: none;
    border: none;
}

/* the font awesome icons are both loaded, but one is hidden */
#google-map-legend .legend-visibility-link .active,
#google-map-legend .legend-visibility-link.active .inactive,
#google-map-legend .menu-visibility-link .active,
#google-map-legend .menu-visibility-link.active .inactive,
#google-map-legend .map-visibility-link .active,
#google-map-legend .map-visibility-link.active .inactive {
    display: none;
}

#google-map-legend .legend-visibility-link .inactive,
#google-map-legend .legend-visibility-link.active .active,
#google-map-legend .menu-visibility-link .inactive,
#google-map-legend .menu-visibility-link.active .active,
#google-map-legend .map-visibility-link .inactive,
#google-map-legend .map-visibility-link.active .active {
    display: inline;
}

/* This hides the marker count for empty categories in the legend */
#google-map-legend ul.marker-links:empty {
    display: none !important;
}
