/* ======================================

	Project Map

	(We're deliberately loading this separately for collaboration purposes.)

====================================== */
:root {
	--map-color-ut-wind: #0D4D92;
	--map-color-sol-storage: #F37128;
	--map-color-ut-sol: #fc0;
	--map-color-comm-sol: #54C8E8;
	--map-color-dist-sol: #54C8E8;
	--map-color-ut-storage: #00833E;
	--map-color-con-energy: #545454;
	--map-shadow: 0px 18px 24px rgba(0,0,0,0.05);
	--map-thumb-w: 76px;
	--map-ctrls-ht-approx: 150px;
}

.hero--map .meta {

	font-size: 14px;

	/* TODO: Apply site-wide? */
	-webkit-font-smoothing: antialiased;
	letter-spacing: -.01em;

}

.hero--map .pill-btn {
	box-shadow: var(--map-shadow);
}

.mapboxgl-control-container {
	visibility: hidden;
}

.hero--map {
	overflow: hidden;
	min-height: calc(var(--vh100) * .8);
}

.project-map {
	position: absolute;
	right: 0;
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	transition-duration: .8s;
	/* background-color: var(--white-smoke); */
}

.map-with-sidebar {
	width: 75%;
	right: 0%;
}

.project-details,
.project-map-sidebar--list {
	padding-top: 32px;
	padding-right: 20px;
	position: absolute;
	width: 25%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: var(--white);
	transition-property: left;
	transition-duration: .8s;
	padding-left: 10px;
}

/* (Page width split between map & sidebar) */
.project-map-sidebar--list {
	/* display: none; */

	z-index: 20;
	/*
	border-right: 1px solid rgba(0, 0, 0, 0.25);
	overflow: hidden;
	*/
}

.map__area--view-as-list .map__header {
	padding-left:  14px;
	padding-right: 14px;
	margin-top: 46px;
}

.map__header strong {
	font-weight: 700;
}

.map-feedback--count,
.map-feedback--filters {
	font-size: 20px;
}

.map-feedback--filters {
	margin-right: 20px;
}

.map-feedback--clear {
	font-weight: 700;
	color: var(--blue-light);
}

.map-feedback--clear:hover {
	text-decoration: underline;
}

.js-map-feedback[data-count="1"] .js-count-suffix--plural,
.js-map-feedback:not([data-count="1"]) .js-count-suffix--singular,
.js-map-feedback[data-search=""][data-filters=""] .js-map-feedback--filters {
	display: none;
}

.js-map-feedback[data-filtered="false"] .js-map-feedback--count,
.js-map-feedback[data-count="0"] .js-map-feedback--count,
.js-map-feedback[data-filtered="false"] .js-map-feedback--filters,
.js-map-feedback[data-count="0"] .js-map-feedback--filters {
	visibility: hidden;
}

.js-map-feedback[data-filtered="true"] .map-feedback--filter-prompt {
	display: none;
}

.map__area:not(.map__area--view-as-list) .project-map-sidebar--list {
	display: none;
}

.map__area--view-as-list {
	background-color: var(--white);
}

.map__area--view-as-list .project-map-sidebar--list {
	width: 100%;
}

.map__area--view-as-list .project-map-sidebar--list:after {
	content: "";
	position: absolute;
	left: 100%;
	width: 100%;
	top: 0;
	bottom: 0;
	height: 100%;
	background-color: var(--white);
}

.sidebar-closed {
	left: 0px;
}

.map__search-input {
	border-radius: 40px;
	border: none;
	background-color: #F1F1F1;
	color: var(--black); /* Chrome will auto-adjust placeholder color darker if not enough contrast */
	width: 95%;
	padding: 14px 22px;
	font-weight: 600;
	-webkit-font-smoothing: antialiased;
}

/* Both lines must @match */
.map__search-input:focus-visible,
.js-focus-visible .map__search-input:focus-visible { outline-offset: calc(var(--border-w, 2px) * -1); }
.js-focus-visible .map__search-input.focus-visible { outline-offset: calc(var(--border-w, 2px) * -1); }

.map__search-input::placeholder {
	color: var(--gray);
	font-style: italic;
}

/*
.project-map-sidebar--list button {
	border: none;
	color: inherit;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	cursor: pointer;
}
*/

.project-map-sidebar--filter-panel {
	position: absolute;
	z-index: 70; /* stack above site footer */
	top: auto;
	bottom: 0;
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: calc(100% - var(--map-ctrls-ht-approx));
}

.project-map-filter-panel {
	box-shadow: var(--map-shadow);
	padding-left: 16px;
	padding-right: 16px;
	padding-top: 23px;
	padding-bottom: 12px;
	border-top: 2px solid var(--blue-hawkes);
}

.map-result-dot {
	height: 16px;
	width:  16px;
	border-radius: 50%;
	margin-right: 12px;
	position: relative;
	top: 1px;
	flex-shrink: 0;
}

.map__area:not(.map__area--view-as-map) .if-view-as-map,
.map__area:not(.map__area--view-as-list) .if-view-as-list {
	display: none !important;
}

.project-list__image {
	max-width: var(--map-thumb-w);
	width: 100%;
	margin-right: 20px;
}

.map__area--view-as-list .project-list__image {
	position: absolute;
}

.map__area--view-as-list .project-name--list,
.map__area--view-as-list .mw-amount--list {
	font-size: 22px;
}

.map-result-dot--ut-wind {
	background-color: var(--map-color-ut-wind);
}

.map-result-dot--ut-sol {
	background-color: var(--map-color-ut-sol);
}

.map-result-dot--sol-storage {
	background-color: var(--map-color-sol-storage);
}

.map-result-dot--comm-solar {
	background-color: var(--map-color-comm-sol);
}

.map-result-dot--dist-solar {
	background-color: var(--map-color-dist-sol);
}

.map-result-dot--ut-storage {
	background-color: var(--map-color-ut-storage);
}

.map-result-dot--con-energy {
	background-color: var(--map-color-con-energy);
}

.map-result-dot--undefined {
	display: none;
}

.map-openbtn {
	font-size: 25px;
	cursor: pointer;
	background-color: var(--black);
	color: var(--white);
	padding: 10px 15px;
	border: none;
	height: 40px;
	width: 40px;
	position: absolute;
	left: 100%;
}

.map-openbtn:hover {
	background-color: #f1f1f1;
}

.map-filterview-btn {
	font-size: 15px;
	cursor: pointer;
	background-color: var(--black);
	color: var(--white);
	padding: 10px 15px;
	border: none;
	height: 40px;
	width: 228px;
	position: absolute;
	left: 35%;
	bottom: 2%;
	transition-property: opacity;
	transition-duration: .8s;
	opacity: 0.0;
	display: none;
}

.map-filterview-btn:hover {
	background-color: #f1f1f1;
}

.map-openbtn:hover {
	background-color: #f1f1f1;
}

.project-search {
	--vert-marg: 10px;
}

.project-search-fieldset {
	/* display: none; */
	background: var(--white);
	border: none;
	padding: 0;
	margin: 0;
}

.project-map-filter-panel .project-search-fieldset {
	padding: 10px;
}

/* .project-search-fieldset {
	padding-left:
} */

.project-search--a {
	margin-bottom: 40px;
}

.project-search--a .project-search-fieldset,
.project-search--a .project-search-title {
	padding: 0 12px;
}

/* .project-map-sidesearch .project-search-title {
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 14px;
} */

.listings {
	/* last value is effective visual bottom padding */
	height: calc(100% - 82px - 48px);
	overflow: auto;
	padding-bottom: 60px;
	padding-left: 14px;
	cursor: pointer;
}

.map__area--view-as-list .listings {
	--vert-marg: 10px;
	height: calc(100% - 48px);
}

.project-details__header,
.popup__row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.map__area--view-as-list .listings .item {
	cursor: text;
	align-items: flex-start;
}

.project-details {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	padding: 60px 6px 10px;
	z-index: 84;
	transition: var(--trans-active);
	overflow-y: auto;
	overflow-x: hidden;
}


.project-details:not(.show) {
	visibility: hidden;
	opacity: 0;
	transition: var(--trans-inactive);
}

.project-details.show {
	visibility: visible;
	opacity: 1;
}

.project-details__inner {
	display: block;
	max-width: 500px;
	margin: 0 auto;
	max-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;

	/* Make room for scrollbar */
	padding-left:  10px;
	padding-right: 10px;
	padding-bottom: 40px;
}

.project-details-close {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 18px;
	font-weight: 700;
	padding: 10px 26px;
}

.project-details-close__icon {
	display: inline-block;
	width: 12px;
	height: 12px;

	background-image: url('data:image/svg+xml;charset=UTF8,<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.58153 5.11669L9.4077 7.94286L7.94336 9.4072L5.11719 6.58103L2.29101 9.4072L0.826674 7.94286L3.65285 5.11669L0.826674 2.29051L2.29101 0.826174L5.11719 3.65235L7.94336 0.826174L9.4077 2.29051L6.58153 5.11669Z" fill="%232D3843"/></svg>');
	background-repeat: no-repeat;
	background-size: contain;

}

/* .project-details-close:hover .project-details-close__icon {
	opacity: .8;
} */

.project-details__image {
	display: block;
}

.project-details__image .aspect-wrap {
	margin-bottom: var(--vert-marg);
}

table.project__table {
	border-collapse: collapse !important;
	font-size: 16px;
	font-weight: 500;
	color: var(--blue-licorice);
}

.project__table td, .project__table th {
	display: table-cell;
	vertical-align: inherit;
	padding: 6px 20px 6px 0;
	text-align: left;
	border-bottom: 1px solid var(--cta-color-wire-border);
}

/* .project__table tr:last-child td,
.project__table tr:last-child th {
	border-bottom: none;
} */

.project-details__link {
	max-width: 200px;
}

.listings .item {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--black);
	text-decoration: none;
	margin-right: 28px;
	padding: 16px 0 11px;
}

.map__area--view-as-list .listings .item {
	border-bottom: 0;
}

.project-list__text {
	max-width: 100%;
}

.project-name {
	display: block;
	color: var(--blue-licorice);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.map__area--view-as-map .project-name {
	overflow: hidden;
	font-weight: 500;
	font-size: 20px;
}

.project-name--list {
	overflow: hidden;
}

.map__area--view-as-map .project-list__text-col--a {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.map__area--view-as-list .project-list__text-col--a {
	--vert-marg: 22px; /* extra margin required to prevent conflict between thumbnail and table text below it) */
	width: 232px;
	margin-right: 0;
}

.project-list__desc p {
	font-weight: 550;
}

.map__area--view-as-list .project-name {
	padding-left: calc(var(--map-thumb-w) + 0px);
	color: var(--blue-light);
}

.project-name--drawer,
.mw-amount--drawer {
	font-size: 32px;
}

.project-name--drawer {
	-webkit-font-smoothing: antialiased;
	font-weight: 600;
	color: var(--blue-light);
	line-height: 1.2; /* prevents underhanging letters from getting cut off */
}

.popup-title,
.mw-amount--popup {
	font-size: 20px;
}

.mw-amount {
	display: block;
	color: var(--gray);
	font-weight: 500;
	text-align: right;
	white-space: nowrap;
	padding-left: 20px;
}

.map__area--view-as-map .mw-amount--list {
	font-size: 20px;
}

.popup__row+.popup__row {
	margin-top: 6px;
}

.popup__row--link {
	text-align: right;
	justify-content: flex-end;
}

.toggle-project-details {
	display: block;
	color: var(--blue-light);
	font-weight: 700;
	/* text-align: right; */
}

/* .toggle-project-details:focus-visible {
	color: var(--black);
} */
.toggle-project-details:hover {
	color: var(--black);
}

.listings .item:hover {
	background: #f1f1f1;
}

.map__area--view-as-list .listings .item:hover {
	background-color: transparent;
}

.listings .item:last-child { border-bottom: none; }

.listings .item .title {
	display: block;
	color: #00853e;
	font-weight: 500;
}

.listings .item .title small { font-weight: 400; }

.listings .item.active .title,
.listings .item .title:hover { color: #8cc63f; }

.listings .item.active {
	background-color: #f8f8f8;
}

.mapboxgl-popup {
	transition: opacity 2s;
}

.mapboxgl-popup-content {
	color: var(--blue-licorice);
	background-color: var(--white);
	font-size: 16px;
	font-weight: 500;
	min-width: 298px;
	box-shadow: var(--map-shadow);
	border-radius: 0;
	padding: 16px 14px 16px;
}

/* caret beneath popup bubble */
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
	visibility: hidden;
}

.popup-title {
	color: var(--blue-licorice);
	font-weight: 500;
}

.map-filter-group:not(:first-child) {
	margin-top: 23px;
}

.switch__wrap {
	cursor: pointer;
}

.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 25px;
	margin-right: 17px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #F1F1F1;
	-webkit-transition: .4s;
	transition: .4s;
}

.slider.ut-wind:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: var(--map-color-ut-wind);
	-webkit-transition: .4s;
	transition: .4s;
}

.slider.ut-sol:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: var(--map-color-ut-sol);
	-webkit-transition: .4s;
	transition: .4s;
}

.slider.sol-storage:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: var(--map-color-sol-storage);
	-webkit-transition: .4s;
	transition: .4s;
}

.slider.comm-sol:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: var(--map-color-comm-sol);
	-webkit-transition: .4s;
	transition: .4s;
}
.slider.ut-storage:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: var(--map-color-ut-storage);
	-webkit-transition: .4s;
	transition: .4s;
}

.slider.stage:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: var(--map-color-ut-wind);
	-webkit-transition: .4s;
	transition: .4s;
}

.slider.con-energy:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: var(--map-color-con-energy);
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked + .slider {
	background-color: #F1F1F1;
}

input:focus + .slider {
	box-shadow: 0 0 1px #F1F1F1;
}

.slider:before {
	-webkit-transform: translateX(-2px) scale(1.2);
	    -ms-transform: translateX(-2px) scale(1.2);
	        transform: translateX(-2px) scale(1.2);
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px) scale(1.2);
	    -ms-transform: translateX(26px) scale(1.2);
	        transform: translateX(26px) scale(1.2);
}


/* Rounded sliders */
.slider.round {
	border-radius: 25px;
}

.slider.round:before {
	border-radius: 50%;
}

/* Rounded sliders */
.slider.round {
	border-radius: 25px;
}

.slider.round:before {
	border-radius: 50%;
}

.slider-text-label {
	color: var(--blue-licorice);
	font-weight: 500;
	margin-top: 3px;
}

.toggle-container {
	color: var(--blue-licorice);
	font-weight: 500;
	margin-bottom: 8px;
}

.container {
	display: block;
	position: relative;
	padding-left: 40px;
	margin-top: 14px;
	margin-bottom: 12px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	-webkit-font-smoothing: antialiased;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	color: var(--blue-licorice);
}

/* Hide the browser's default checkbox */
.container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Create a custom checkbox */
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	margin-top: -3px;
	height: 25px;
	width: 25px;
	background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
	background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
	background-color: var(--map-color-ut-wind);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
	display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
	left: 9px;
	top: 5px;
	width: 5px;
	height: 10px;
	border: solid var(--white);
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

.hero--map ::-webkit-scrollbar {
	width: 4px;
	height: 12px;
	border-left: 0;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 5px;
}

.hero--map ::-webkit-scrollbar-track {
	background: none;
	background: #E7EAED;
	border-radius: 5px;
}

.hero--map ::-webkit-scrollbar-thumb {
	background: var(--black);
	border-radius: 5px;
}

.map-view-ctrls {
	position: absolute;
	z-index: 80;
	top: 0;
	right: 0;
	padding: 16px;
}

.map-show-hide-filter-panel {
	box-shadow: var(--map-shadow);
}


@media (max-width: 767px){

	/* .map__area--view-as-list .map-view-ctrls, */
	/* .map-view-ctrls
	{
		top: 72px;
	} */

	.map__area--view-as-list .mw-amount--list {
		padding-left: 0;
	}

	.project-name--list {
		max-width: 206px;
		white-space: normal;
	}
}

/* --------------------

	=Tablet+
	>=sm
	@match breakpoint_vals

-------------------- */
@media (min-width: 768px){

	.map__area--view-as-list .project-name {
		padding-left: calc(var(--map-thumb-w) + 20px);
	}

	.mapboxgl-popup-content {
		min-width: 335px;
	}

}

/* --------------------

	=Laptop + =Desktop
	>=md
	@match breakpoint_vals

-------------------- */

@media (max-width: 1367px){

	.map__area:not(.map__area--mobile-filters-open) .project-map-filter-panel {
		display: none !important;
	}

}

@media (min-width: 1368px){

	:root {
		--map-thumb-w: 260px;
	}

	.hero--map {
		min-height: 800px;
	}

	.map__area:not(.map__area--view-as-list) .project-map-sidebar--list {
		display: block;
		/* display: none; */
	}

	.map__area--view-as-map .project-name {
		font-size: 32px;
	}

	.map__area--view-as-map .project-name--list {
		font-size: 20px;
	}

	.map__area--view-as-list .map__title {
		text-indent: -3px;
	}

	/* .toggle-project-details {
		display: none;
	} */

	.project-map-filter-panel {
		border-top: 0;
	}

	.project-map {
		width: 75%;
		bottom: 0;
		padding-bottom: 0;
	}

	.map-view-ctrls {
		margin-right: 28px;
	}

	.project-map-sidebar--filter-panel {
		position: absolute;
		width: 319px;
		max-width: 100%;
		right: 32px;
		top: 98px;
		bottom: auto;
	}

	.project-map-sidebar--list {
		display: block;
	}

	.map__area--view-as-list .project-name {
		padding-left: 0;
	}

	.map__area--view-as-list .project-name--list,
	.map__area--view-as-list .mw-amount--list {
		font-size: 32px;
	}

	.project-list__desc p {
		font-weight: 550;
		font-size: 20px;
	}

	.map__area--view-as-list .project-map-sidebar--list {
		width: 75%;
	}

	.map__area--view-as-list .project-list__text-col--a {
		--vert-marg: 10px;
	}

	.project-details {
		width: 30vw;
		max-width: 660px;
		padding: 60px 40px 20px;
	}

	.map__area--view-as-list .project-list__image {
		position: static;
		margin-right: 2px;
	}

	.map-feedback--filters {
		margin-right: 6vw;
	}

}

/* --------------------

	XL =Desktops
	>=lg
	@match breakpoint_vals

-------------------- */
@media (min-width: 1920px){

	.map-feedback--filters {
		margin-right: 6vw;
	}

}
