@import url('https://fonts.googleapis.com/css?family=Libre+Franklin:400,700|Montserrat:400,700');

:root {

	/* Colors */
	--color-primary: #c62828;
	/*#aaa;*/
	/*#4a4a4a;*/


	/* Fonts */
	--font-primary: "Libre Franklin", sans-serif;
	--font-secondary: 'Lato', sans-serif;
	--font-teritary: 'Montserrat', sans-serif;

	--letter-spacing: 0.5px;
	--border-radius: 3px;
}


body {
	margin: 0;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

input {
	width: 95%;
}

/*-------------
GRID
--------------- */

.wrapper {
	/*max-width: 800px;*/
	/*margin: 0 auto;*/
}


/*-------------
MAP
--------------- */

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	box-shadow: none;
	font-family: var(--font-primary);
	/*color: grey;*/
	border-radius: 0;
	background: #fff;
}

.leaflet-popup-content-wrapper {
	background: grey;
	/*color: #fff;*/
	/*color: #000;*/
	/*text-transform: uppercase;*/
	/*letter-spacing: 0.5px;*/
	/*text-align: center;*/
	font-size: 11px;
	/*padding: 0;*/
	margin: 0;
	background: #fff;
	border: 2px solid #ddd;
}

.leaflet-popup-tip {
	display: none;
}


.leaflet-container a.leaflet-popup-close-button {
	display: none;
}

.leaflet-popup-content p {
	margin: 0;
}

.leaflet-popup-content p.popup__name,
.leaflet-popup-content p.popup__type {
	margin-top: 8px;
}

.leaflet-popup-content p.popup__address {
	margin-bottom: 16px;
}

.leaflet-popup-content p.popup__type {
	border-bottom: 1px solid #000;
	padding-bottom: 8px;
	font-size: 14px;
}

.leaflet-popup-content p.popup__type:last-child {
	border-bottom: none;
}

.leaflet-popup-content p.popup__type span {
	font-weight: 700;
	/*margin-left: 8px;*/
	color: #fd8d3c;

}

.leaflet-popup-content p.popup__type-header {
	font-weight: 700;
	text-transform: uppercase;
	color: #fd8d3c;
	margin-bottom: 8px;

}



/*.map {
	position: relative;
	height: 700px;
	width: 700px;
}*/

/* Needed for the map to appear */
#mapid { 
	height: 600px;
	width: 100%;
}

/*.test {
	position: absolute;
	top: 25%;
	left: 0;
	z-index: 999;
	border: 1px solid red;
}
*/

.map__info {
	margin: 0 auto;
	padding: 24px;
/*	padding-left: 0;
	padding-right: 0;*/
	/*padding: 0;*/
}

.map__credit {
	font-family: var(--font-primary);
	color: grey;
	font-size: 12px;
}

.map__headline,
.map__subheadline {
	font-family: var(--font-primary);
}

.map__headline {
	margin: 0;
	font-weight: 700;
	color: #4a4a4a;
	/*margin-top: 24px;*/
}

.map__subheadline {
	font-size: 14px;
	margin-top: 4px;
	padding-bottom: 24px;
	border-bottom: 1px solid #ddd;
}

.map__subheadline span {
	font-style: italic;
}

/* Displays information when a polygon is clicked */
.map__sentence {
	font-family: var(--font-primary);
	font-size: 18px;
	margin-top: 0;
	/*margin-top: 32px;*/
	/*margin-bottom: 32px;*/
}

.map__sentence span {
	font-weight: 700;
}

.is-red { color: #ca0020; }
.is-pink { color: #f4a582; }

.prompt {
	font-family: var(--font-primary);
	/*font-weight: 700;*/
	color: #4a4a4a;
	margin-top: 32px;
	margin-bottom: 8px;
}

/* This paragraph is hidden by default */
/*.map__sentence.is-hidden {
	display: none;
}
*/
/*-------------
OTHER
--------------- */
/*???*/
.info {
	background: white;
	font-family: var(--font-secondary);
	font-size: 14px;
	line-height: 1.8;
	border-radius: var(--border-radius);
	color: black;
	border: 2px solid black;
	max-width: 250px;
}


/*-------------
LEGEND
--------------- */

/* Legend title */
h4 {
	margin-top: 8px;
}

.legend {
	padding: 16px;
}

.map__legend {
	/*border: 1px solid blue;*/
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 16px;
	grid-row-gap: 16px;
	margin-bottom: 24px;

}

.legend__group {
	/*border: 1px solid red;*/
	display: flex;
	align-items: center;
}

.legend__square {
	background: #aaa;
	width: 15px;
	height: 15px;
	margin-right: 8px;
	/*opacity: 0.7;*/
	border: 1px solid #000;
}

.legend__line {
	height: 4px;
	width: 25px;
	margin-right: 8px;
	transform: rotate(-45deg);
}

.legend__image {
	height: 35px;
	margin-right: 8px;
}

.line-1 { background: #0571b0; }
.line-2 { background: #7b3294; }

/* Specific to this map */
/*.square-1 { background: #762a83; }
.square-2 { background: #af8dc3; }
.square-3 { background: #d9f0d3; }
.square-4 { background: #7fbf7b; }
.square-5 { background: #1b7837; }
*/
/*.square-1 { background: #008837; }
.square-2 { background: #a6dba0; }
.square-3 { background: #c2a5cf; }
.square-4 { background: #7b3294; }
.square-5 { background: #e66101; }*/

/*.s1 { color: #008837; }*/
/*.s2 { color: #a6dba0; }*/
/*.s3 { color: #c2a5cf; }
.s4 { color: #7b3294; }
.s5 { color: #e66101; }*/

.legend__value {
	margin: 0;
	font-size: 14px;
	font-family: var(--font-primary);
}

/* The tiny squares in the legend */
.legend i {
	width: 18px;
	height: 18px;
	border: 1px solid black;
	margin-right: 10px;
	float: left;
}

/* Legend attribution */
.source {
	margin-top: 8px;
	font-style: italic;
	line-height: 1.4;
}

.popup__name {
	text-transform: uppercase;
	font-size: 16px;
	color: #000;
	font-weight: 600;
	margin-top: 16px;
	/*margin-bottom: 0;*/
}

.popup__type { 
	/*color: #ddd;*/
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.popup__address {
	font-size: 14px;
/*	font-size: 'Lato', sans-serif;*/
	font-weight: 300;
	color: #000;
	margin: 0;
}

.popup__title span {
	font-weight: 700;
}

@media (max-width: 700px) {
	#mapid {
		width: 100%;
	}
}