/* Every device */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&display=swap');

body {
    padding: 0px;
    margin: 0px;
    height: 100%;
	overflow: hidden;
	font-family: 'Open Sans', sans-serif;
	font-size: 1em;
}

html {
	padding: 0px;
    margin: 0px;
	height: 100%;
}

h1 {
	margin: 0;
    font-size: 1.5rem;
    padding: 0;
    display: inline-block;
}


#full-page {
	width: 100%;
	height: 100%;
	padding: 0px;
    margin: 0px;
	overflow: hidden;
}


#map-container {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	text-align: center;
	background-color: lightgrey;
	height: 100%;
}

#map {
	position: relative;
	width: 100%;	
	z-index: 1;
	display: block;
	height: 100%
}

#search-box-container {
	position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    height: 30px;
    z-index: 1000;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
	width: 30px;
	overflow: hidden;
	-webkit-transition: width 0.3s;
    -moz-transition: width 0.3s;
    -ms-transition: width 0.3s;
    -o-transition: width 0.3s;
    transition: width 0.3s;	
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}

#add-pin-container {
	position: absolute;
    top: 45px;
    left: 10px;
    background-color: white;
    height: 30px;
    z-index: 1000;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
	width: 30px;
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}

#searchBox {
	height: 100%;
    width: calc(100% - 35px);
    box-sizing: border-box;
    padding-left: 6px;
    border: none;
	outline: none;
}

.expanded {
	width: 300px !important;
}

.basemap-expanded {
	width: 142px !important;
}

.legend-expanded {
	width: 160px !important;
	height: 62px !important;
}


#search-icon {
	line-height: 30px;
    color: #4e4e4e;
	cursor: pointer;
	width: 30px;
    padding-left: 4px;
    box-sizing: border-box;
	height: 32px;
}

#add-pin-btn {
	line-height: 30px;
    color: #4e4e4e;
	cursor: pointer;
	width: 30px;
    padding-left: 7px;
    box-sizing: border-box;
}

#layers-icon {
	line-height: 30px;
    color: #4e4e4e;
	cursor: pointer;
	width: 30px;
    padding-left: 4px;
    box-sizing: border-box;
}


#basemap-selector-container {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	z-index: 1000;
	height: 30px;
	border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
	background: white;
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */	
	overflow: hidden;
	-webkit-transition: width 0.3s;
    -moz-transition: width 0.3s;
    -ms-transition: width 0.3s;
    -o-transition: width 0.3s;
    transition: width 0.3s;	

}

#select-basemap-input {
	height: 100%;
    width: 111px;
    box-sizing: border-box;
    padding-left: 2px;
    border: none;
	outline: none;
	float: right;
}

#select-basemap-label {
	font-size: 14px;
    font-weight: 600;
    padding-left: 6px;
    padding-right: 6px;
    line-height: 30px;
}

#add-pin-instructions {
	position: absolute;
    left: 36px;
    top: 0;
    width: 180px;
    font-size: 14px;
    background: rgba(0,0,0,0.4);
    padding: 4px;
    border-radius: 4px;
    color: white;
	opacity: 0;
	-webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -ms-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
	pointer-events: none;
}

#add-pin-instructions-mobile {
	position: absolute;
    left: 36px;
    top: 0;
    width: 180px;
    font-size: 14px;
    background: rgba(0,0,0,0.4);
    padding: 4px;
    border-radius: 4px;
    color: white;
	opacity: 0;
	-webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    -ms-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
	pointer-events: none;
}



.custom-popup {
	border-radius:6px;
	font-size: 12px;
	text-align: left;
	max-width: 270px;
	border: 0;
	width: 270px;
	padding: 0;
	white-space: normal !important;
	pointer-events: auto !important;
}

.popup-header {
	font-weight: 600;
    border-bottom: 1px solid lightgray;
    padding: 4px;
    border-radius: 4px 4px 0 0;
    color: white;
}

.eligible {
	background: #62ae2c;
}
.ineligible {
	background: #D4201B;
}

.popup-text {
	padding: 4px;
}

.leaflet-tooltip-top.custom-popup::before {
  border-top-color: white;
}

#close-popup-btn {
	position: absolute;
    right: -10px;
    top: -10px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
	color: #3c3c3c;
}

#close-popup-btn:hover {
	color: black;
}

#loading {
	z-index: 9999;
	display: none;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.3);
	position: absolute;
}

#legend-btn {
	line-height: 30px;
    color: #4e4e4e;
    cursor: pointer;
    box-sizing: border-box;
    transform: translate(0px,-4px);
}

#legend-container {
	position: absolute;
    top: 45px;
    right: 10px;
    z-index: 1000;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    background: white;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    padding: 4px;
    height: 34px;
    width: 34px;
    overflow: hidden;
    -webkit-transition: width 0.3s;
    -moz-transition: width 0.3s;
    -ms-transition: width 0.3s;
    -o-transition: width 0.3s;
    transition: width 0.3s;
    box-sizing: border-box;
}

#legend-title {
	font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    text-decoration: underline;
}

#legend-item-icon {
	display: inline-block;
    width: 30px;
    height: 20px;
    background: rgba(227,76,72,0.6);
    margin-right: 4px;
}

#legend-item-text {
	display: inline-block;
    font-size: 14px;
    line-height: 20px;
    transform: translateY(-4px);
}

.leaflet-ineligibility-pane > img {
  filter: hue-rotate(315deg);
}

img.leaflet-tile {
  width: 256.5px !important;
  height: 256.5px !important;
}