@import 'font.css';

div#map {
    width: 100%;
    float: left;
    padding-bottom: 50%;
    max-height: 650px;
    min-height: 500px;
    opacity: 0;
    transition: .1s ease-in all;
}

.no-js div#map {
	opacity: 1;
}

button#overlay_toggle:focus {
    outline: none;
}

/* The popup bubble styling. */
.popup-bubble {
/* Position the bubble centred-above its parent. */
position: absolute;
top: 0;
left: 0;
transform: translate(-50%, -100%);
/* Style the bubble. */
background-color: rgba(0,0,0,0.8);
color: white;
padding: 12px 10px;
font-family: sans-serif;
overflow-y: auto;
/*max-height: 60px;*/
text-align: center;
font-size: 16px;
transition: all .125s ease-in-out;
animation: label-transition .5s;
}

/* The parent of the bubble. A zero-height div at the top of the tip. */
.popup-bubble-anchor {
/* Position the div a fixed distance above the tip. */
position: absolute;
width: 100%;
bottom: 8px; /* TIP_HEIGHT= */
left: 0;
}

/* This element draws the tip. */
.popup-bubble-anchor::after {
content: "";
position: absolute;
top: 0;
left: 0;
/* Center the tip horizontally. */
transform: translate(-50%, 0);
/* The tip is a https://css-tricks.com/snippets/css/css-triangle/ */
width: 0;
height: 0;
/* The tip is 8px high, and 12px wide. */
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 8px solid rgba(0,0,0,0.8); /* TIP_HEIGHT= */
transition: all .125s ease-in-out;
}

/* JavaScript will position this div at the bottom of the popup tip. */
.popup-container {
cursor: auto;
height: 0;
position: absolute;
/* The max width of the info window. */
width: 200px;
visibility: visible;
opacity: 1;
}

.popup-bubble.hide-labels {
visibility: hidden;
opacity: 0;
}

.legend {transition: all .125s ease-in;}

.legend.legend-inactive {opacity: .5;}

.legend.legend-inactive li:hover {background: transparent;}

.popup-tip-anchor.hide-this {
	display: none;
}

button.gm-control-active.gm-fullscreen-control {
    background: transparent;
}

.popup-bubble.hide-labels.keep-popup {
    visibility: visible!important;
    opacity: 1!important;
}

.homelabel .popup-bubble {background: rgba(119, 142, 167, 1)!important;}

.homelabel .popup-bubble {
	background: rgba(119, 142, 167, 0.8)!important;
	font-weight: bold;
}

.homelabel.popup-bubble-anchor:after {
	border-top-color: rgba(119, 142, 167, 0.8)!important;
	visibility: visible!important;
	opacity: 1!important;
}

button#overlay_toggle {
    text-align: center;
    float: left;
    width: 100%;
    background: transparent;
    color: black;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgb(119, 142, 167);
}

.popup-bubble-anchor.hide-anchor:after {
	border-top-color: transparent!important;
	opacity: 0;
}

.map-hover-active .highlight-this .popup-bubble {
	background: rgba(135,143,110, 0.8)!important;
	opacity: 1!important;
	top: -10px;
}

.map-hover-active .popup-bubble-anchor.highlight-this:after {
	border-top-color: rgba(135,143,110, 0.8)!important;
	opacity: 1!important;	
	top: -10px;	
}

.hide-popups .popup-bubble-anchor .hide {
	opacity: 0;
	visibility: hidden;
}

.hide-popups .popup-bubble-anchor:after {
	border-top-color: transparent;
	visibility: hidden;
	opacity: 0;
}

.legend a {
    color: #333;
    text-decoration: none;
}

li.legend-points {
    width: 25%;
    float: left;
    font-size: 14px;
    padding: 10px 0px;
    text-align: center;
    transition: all .125s ease-in-out;
    color: rgba(135,143,110, 1);
    border-right: 2px solid #efefef;
    border-bottom: 2px solid #efefef;    
}

li.legend-points:hover {
    background: rgba(135,143,110, 0.3);
}

button#overlay_toggle {
    background: #f9f9f9;
    border: 2px solid #efefef;
    border-left: 0px;
    border-right: 0px;
}

ul.legend {
    float: left;
    width: 100%;
    background: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
}

.gm-style-cc > div, .gm-style-cc > div a, .gmnoprint, .popup-bubble, .gm-style-mtc > div, #map div[role="button"], .gm-style-iw div div {font-family: "Gotham Book", Helvetica, sans-serif!important;}

.popup_trigger {display: none;}

.popup_trigger.active + .popup_block {opacity: 1; visibility: visible;} 

.hide-popups .popup_trigger {opacity: 0; visibility: hidden;}

.hide-popups .homelabel .popup_trigger {opacity: 1; visibility: visible;}


@media only screen and (min-width: 1100px) {
li.legend-points:nth-child(4n+4) {
    border-right: 0px;
}
}

@media only screen and (max-width: 1100px) and (min-width: 901px) {
	li.legend-points {width: 33.3333%}
	li.legend-points:nth-child(3n+3) {
    border-right: 0px;
	}
	
	.popup-bubble {
		font-size: 14px;
	}
}

@media only screen and (max-width: 900px) and (min-width: 601px) {
	li.legend-points {width: 50%}
	li.legend-points:nth-child(even) {
    border-right: 0px;
	}	
	
	.popup-bubble {
		font-size: 12px;
	}
	
}

@media only screen and (max-width: 768px) {
	.popup-bubble {font-size: 14px; width: 150px;}
	.popup_trigger {width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,1); display: block; position: relative; z-index: 1; left:-15px; top: -15px;}
	.homelabel .popup_trigger {background: rgba(119, 142, 167, 1);}
	.popup_trigger + .popup_block {opacity: 0; visibility: hidden;}
	.popup_trigger.active + .popup_block {opacity: 1; visibility: visible; z-index: 2;}
	.homelabel .popup_trigger + .popup_block, .homelabel .popup_trigger.active + .popup_block {opacity: 1; visibility: visible;}
	.homelabel .popup-bubble {background: rgba(119, 142, 167, 1)!important;}
	.popup-bubble {background: rgba(0,0,0,1); top: -20px;}
	.popup-bubble {background: rgba(0,0,0,1); top: -20px;}
		.popup-bubble {
		font-size: 12px;
	}
	.map-hover-active .highlight-this .popup-bubble {
		background: rgba(135,143,110, 1)!important;
		opacity: 1!important;
		visibility: visible!important;
		top: -10px;
	}
	
	.map-hover-active .highlight-this .popup_trigger {
		background: rgba(135,143,110, 1)!important;
	}
	
	.popup-bubble-anchor::after {visibility: hidden; border-color: transparent; opacity: 0;}
	
}

@media only screen and (max-width: 600px) {
	li.legend-points {width: 100%; border-right: 0px;}
}