/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

@import 'fontawesome-free-5.9.0-web/css/all.min.css';

@media only screen and (min-width: 768px) {
  html .entry .entry-content,
  html .entry .entry-summary {
    max-width: 90%;
    margin: 0 5%;
    padding: 0;
  }
}

#planlab-map-container {
	width: 100%;
	height: 100%;
	max-width: none;
	height: 700px;
	margin: 0;
	/* font-family: sans-serif; */
	font-family: "granville", serif;
	font-size: 16px;
	position: relative;

	display: flex;
	flex-direction: row-reverse;
	overflow: hidden;	
	box-shadow: 0 0 10px rgba(0,0,0,0.25);

	margin: 1em 0;
}

	#planlab-map-container input {
		vertical-align: baseline;
	}

	#planlab-map-container button {
		vertical-align: bottom;
		font-size: 0.88889em;
	}

		#planlab-map-container button.holderSearch {
			background: none;
			border-radius: 2px;
			color: inherit;
			font-weight: inherit;
			padding: 0.25em;
			opacity: 0.6;
			margin: -0.25em 0.5em;
			border: none;
		}

			#planlab-map-container button.holderSearch:hover {
				opacity: 1;
				background-color: rgba(0,0,0,0.5);
				color: white;
			}

			#planlab-map-container button.holderSearch::before {
				content: '\f002';
				font-family: 'Font Awesome 5 Free';
				font-weight: 900;
			}

	#planlab-map-container ul li {
		margin-left: 0;
		line-height: 1.8;
	}


#planlab-map-container #searchBox {
	background: #f3f3f3;
	flex-basis: 300px;
	display: flex;
	flex-direction: column;
	border-right: 1px solid rgba(0,0,0,0.25);
	position: relative;
}

	#planlab-map-container #searchBox .searchForm {
		flex-grow: 0;
		flex-shrink: 0;
		padding: 0.5em;
		position: relative;
	}
		#planlab-map-container .searchForm label {
			white-space: nowrap;
			margin: 0.5em 0.25em;
			cursor: pointer;
			line-height: 1em;
		}
		#planlab-map-container .searchForm label:hover,
		#planlab-map-container .searchForm input[type="radio"]:hover + label {
			color: #8e121d;
		}
		#planlab-map-container .searchForm input[type="text"] { 
			font-family: inherit;
			height: 46px;
			margin-bottom: 0.25em;
			padding-right: 92px;
			border: solid 1px rgb(204, 204, 204);
			width: 100%;
			font-size: 16px;
			color: inherit;
		}
		#planlab-map-container .searchForm input[type="radio"] { 
			margin-right: 0.5em; 
			vertical-align: middle;
			cursor: pointer;
		}
		#planlab-map-container .searchForm button {
			border-radius: 0;
			height: 46px;
			border: solid 1px transparent;
			padding: 0;
			width: 46px;
			text-align: center;
			position: absolute;
			right: 0.5em;
			top: calc(0.5em + 1px);
			background-color: #8e121d;
			font-size: 0.88889em;
			color: white;
			transition: background 150ms ease-in-out;
		}

			#planlab-map-container .searchForm button:hover { background-color: #444; }

			#planlab-map-container .searchForm button.clearSearch {
				font-size: 1.5em;
				background: transparent;
				color: grey;
				right: calc(0.333em + 46px);
				top: calc(0.333em + 1px);
			}
			#planlab-map-container .searchForm button.clearSearch:hover { color: black; }


	#planlab-map-container #searchBox .toggleNonMatching {
		display: inline-block;
		background: none;
		padding: 0.5em;
		margin: -0.5em 0.5em 0.5em;
		border-radius: 0;
		color: inherit;
		font-weight: inherit;
		text-align: right;
		border: none;
		font-size: 14px;
	}
		#planlab-map-container #searchBox .toggleNonMatching::before {
			content: '\f0c8';
        	font-family: 'Font Awesome 5 Free';
        	margin-right: 0.5em;
		}
			#planlab-map-container #searchBox .toggleNonMatching.on::before { content: '\f14a'; }

	#planlab-map-container #searchBox .results {
		margin: 0;
		padding: 0;
		list-style-type: none;
		flex-grow: 1;
		overflow-y: auto;
		border-top: 1px solid rgba(0,0,0,0.25);
	}

		#planlab-map-container #searchBox .results > li {
			padding: 0.5em;
			cursor: pointer;
			line-height: 1.125em;
        	transition: .2s all ease-in-out;
		}

			#planlab-map-container #searchBox .results > li:hover {
			    color: #8e121d;
			}
			#planlab-map-container #searchBox .results > li.selected {
			    background-color: #8e121d;
			    color: white;
			}
			#planlab-map-container #searchBox .results .blockNum,
			#planlab-map-container .leaflet-popup-content .blockNum {
				font-weight: bold;
				display: block;
			}
			#planlab-map-container .leaflet-popup-content .holderContainer { display: block; }

			#planlab-map-container #searchBox .results .holderContainer { 
				display: block; 
				padding-left: 0.5em;
			}

			#planlab-map-container #searchBox .results .holderContainer .holder { }

			.leaflet-popup-content {
			}

			#planlab-map-container #searchBox .results .holder,
			.leaflet-popup-content .holder {
				font-weight: bold;
				font-size: 16px;
				line-height: 1.125em;
			}

			#planlab-map-container #searchBox .results .date,
			.leaflet-popup-content .date {
				display: block;
				margin-left: 1em;
				margin: 0.25em 0 0.25em 1em;
			}

			#planlab-map-container #searchBox .results .holdings,
			.leaflet-popup-content .holdings {
				margin: 0.25em 0 0.25em 1em;
			}

			.leaflet-popup-content .holdings {
				max-height: 14em;
				overflow-y: auto;
			}

				#planlab-map-container #searchBox .results .holdings .blocks .blockCount::after,
				.leaflet-popup-content .holdings .blocks .blockCount::after {
					content: '\00a0\00a0//';
				}

				#planlab-map-container #searchBox .results .holdings .blocks > ul,
				.leaflet-popup-content .holdings .blocks > ul {
					padding-left: 0.5em;
					line-height: 1em;
					margin: 0;
				}

				#planlab-map-container #searchBox .results .holdings .heading,
				.leaflet-popup-content .holdings .heading {
					display: block;
					list-style-type: none;
					margin-top: 0.5em;
				}

				#planlab-map-container #searchBox .results .holdings .block,
				#planlab-map-container .leaflet-popup-content .holdings .block {
    				display: inline-block;
					line-height: 1.125em;
					padding: 0.125em 0.25em;
        			transition: .2s all ease-in-out;
				}

					.leaflet-popup-content .holdings .block:hover,
					#planlab-map-container #searchBox .results .holdings .block:hover,
					#planlab-map-container #searchBox .results .holdings .block.selected {
					    background-color: #8e121d;
					    color: white;
					    cursor: pointer;
					}

						#planlab-map-container #searchBox .results li.selected .holdings .block:hover,
						#planlab-map-container #searchBox .results li.selected .holdings .block.selected {
						    color: #8e121d;
						    background-color: white;
						}

			#planlab-map-container #searchBox .results .num { margin-left: 0.25em; }
			#planlab-map-container #searchBox .results .num::before { content: '('; }
			#planlab-map-container #searchBox .results .num::after { content: ')'; }


#planlab-map-container #searchBox .pagination {
	font-size: 12px;
	font-style: italic;
	padding: 0 0.5em;
	border-top: 1px solid #00000040;
}

	#planlab-map-container #searchBox .pagination .control {
		float: right;
	}

		#planlab-map-container #searchBox .pagination .control a {
			text-decoration: none !important;
			margin: 0 0.5em;
			cursor: pointer;
		}



#planlab-map-container .leaflet-container {
	font-family: inherit;
	font-size: 14px;
}


#planlab-map-container .leaflet-control-layers label {
	font-family: "granville", serif;
}

#planlab-map-container .leaflet-control-layers-selector {
	top: 2px;
	position: relative;
}

#planlab-map-container .leaflet-control-layers label {
	font-size: 14px;
}

#planlab-map-container .leaflet-popup-content p {
	font-size: 16px;
}


#planlab-map-container #searchBox .leaflet-control-search {
    display: none !important;
}

#planlab-map-container .mapWrapper {
	flex-grow: 1;
	/* box-shadow: 0 0 10px rgba(0,0,0,0.25); */
	z-index: 2;
}

.entry .entry-content #planlab-map-container .mapWrapper .leaflet-control-container a {
    text-decoration: none;
}

#planlab-map-container .blocks a.more { 
	padding: 0.25em 0.5em; 
	text-decoration: none;
	cursor: pointer;
	color: #537b4f;
}
#planlab-map-container .blocks a.more::before {
	content: 'Show';
}
#planlab-map-container .blocks a.more::after {
	content: '\00a0\f0d7';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}

#planlab-map-container .blocks.showing a.more::before {
	content: 'Hide';
}
#planlab-map-container .blocks.showing a.more::after {
	content: '\00a0\f0d8';
}

#planlab-map-container .blocks  ul.more {
	display: none;
}
#planlab-map-container .blocks.showing ul.more {
	display: block;
}

#planlab-map-container .map .hover {
	stroke: rgba(255,255,0,0.5);
	stroke-width: 6;
}
/*
#planlab-map-container .map .block {
	stroke: rgba(255,127,0,1);
	stroke-width: 3;
	fill: rgba(255,127,0,0.5);
}
*/
#planlab-map-container .map .blockHover {
	stroke: rgba(255,127,0,1);
	stroke-width: 3;
	fill: rgba(255,127,0,0.5);
}
#planlab-map-container .map .nonMatchingLayer { opacity: 0.2; stroke-width: 1 !important; }

#planlab-map-container .map .mapLayer.mining { stroke-width: 3; }
#planlab-map-container .map .mapLayer.mining.ON { stroke: #931a1d; fill: #931a1d80; }
#planlab-map-container .map .mapLayer.mining.ON.hover { stroke: #1d220c; }
#planlab-map-container .map .mapLayer.mining.QC { stroke: #d71920; fill: #d7192080; }
#planlab-map-container .map .mapLayer.mining.QC.hover { stroke: #1d220c; }

#planlab-map-container .map .mapLayer.nation { 
	stroke-width: 1; 
	stroke: #1e361c;
	fill: #1e361ccd;
}
#planlab-map-container .map .mapLayer.nation.hover { fill: #1e361c; }


#planlab-map-container .exceededMax {
	line-height: 1em;
	padding: 0 1em 1em;
	font-style: italic;
	color: #8e121d;
}

#planlab-map-container .browser-print-holder { height: 30px; }
#planlab-map-container .leaflet-control-home {
	box-sizing: content-box;
	color: #3a3a3a;
	cursor: pointer;
}

#planlab-map-container .leaflet-control-home:hover {
	background-color: #f4f4f4 !important;
	color: black;
}
#planlab-map-container .leaflet-control-home::after {
	content: '\f015';
	font-family: 'Font Awesome 5 Free';
	font-size: 16px;
	line-height: 30px;
	width: 100%;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	font-weight: 900;
}

.spinOverlay {
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height: 100%;
	background-color: rgba(255,255,255,0.5);
}

	.spinOverlay .spinner {
		top:50%;
		left: 50%;
		position: absolute;
	}

