/*
 * Babcock Ranch Interactive Map Stylesheet
 *
 * Author:	YS
 * Version: 0.0.1
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

.babcock-ranch-interactive-map .interactive-map-wrapper {
	display: flex;
	gap: 35px;
}

.babcock-ranch-interactive-map .interactive-map-wrapper .map-filters {
	width: 30%;
}

.babcock-ranch-interactive-map .interactive-map-wrapper .map-content {
	width: 70%;
}

.babcock-ranch-interactive-map #babcock-ranch-map-canvas {
	width: 100%;
	height: 750px;
}

.babcock-ranch-interactive-map .interactive-map-wrapper .map-poi-filter-wrapper {
	position: relative;
	margin-left: 32px;
	padding-left: 0;
	border-bottom: 1px solid #C5C5C4;
	list-style: none;
}

.babcock-ranch-interactive-map .interactive-map-wrapper .icon_category_filter {
	position: absolute;
	left: -32px;
	width: 26px;
	height: 26px;
}

.map-poi-filter-wrapper .accordion-toggle {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 20px 0;
	border-bottom: 1px solid #C5C5C4;
	font-family: 'Domine', Sans-serif;
	font-size: 18px;
	font-weight: 600;
}

.map-poi-filter-wrapper .accordion-toggle::after {
	position: absolute;
	right: 0;
	font-size: 16px;
	content: "\f067";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
}

.map-poi-filter-wrapper .accordion-toggle.opened::after {
	content: "\f068";
}

.map-poi-filter-wrapper .accordion-toggle:hover {
	transition: all 0.1s;
}

.map-poi-filter-wrapper .accordion-content {
	max-height: 0;
	overflow: hidden;
	padding: 0;
	transition: max-height 1s ease-in-out, padding 1s ease-out, border 0.6s ease-out
}

.map-poi-filter-wrapper .accordion-content.show {
	max-height: 200px;
	overflow: hidden;
	padding: 15px 0;
	border-bottom: 1px solid #C5C5C4;
	transition: max-height 1s ease-in-out, padding 0.6s ease-out, border 0.6s ease-out;
}

.map-poi-filter-wrapper .map-poi-category-item .category-title {
	font-size: 16px;
	line-height: 20px;
}

.map-poi-item-filter {
	display: flex;
	position: relative;
	list-style: none;
	margin-bottom: 10px;
}

.map-poi-item-filter input[type="checkbox"] {
	position: absolute;
	top: 0;
}

.map-poi-item-filter label {
	margin-top: -2px;
	margin-left: 20px;
	font-family: 'Brandon Grotesque', Sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
}

.babcock-ranch-interactive-map .map-filters .reset-map-filters {
	display: inline-block;
	padding: 20px 0;
	font-family: 'Brandon Grotesque', Sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #9F9F9F;
}

.apply-map-filters {
	display: none;
	width: 100%;
	background-color: #5AB7B4;
	font-family: "brandon-grotesque", Sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 23px;
	letter-spacing: 0.1em;
	border: none;
	border-radius: 0px 0px 0px 0px;
	padding: 17px 22px 17px 22px;
}

.babcock-ranch-interactive-map .map-filters .reset-map-filters:hover,
.babcock-ranch-interactive-map .map-filters .reset-map-filters:active,
.babcock-ranch-interactive-map .map-filters .reset-map-filters:focus {
	color: #9F9F9F
}

.babcock-ranch-interactive-map .interactive-map-wrapper .map-content h6 {
	margin-top: 0;
	font-size: 16px;
}

.babcock-ranch-interactive-map .interactive-map-wrapper .map-content p {
	margin-bottom: 5px;
}

@media screen and (max-width: 1024px) {
	.babcock-ranch-interactive-map .interactive-map-wrapper {
		flex-direction: column;
	}
	
	.babcock-ranch-interactive-map .interactive-map-wrapper .map-filters {
		width: 100%;
	}
	
	.babcock-ranch-interactive-map .interactive-map-wrapper .map-content {
		width: 100%;
	}
	
	.babcock-ranch-interactive-map .map-poi-item-filter label {
		font-size: 16px;
		line-height: 18px;
		color: #6D6F70;
	}
}

@media screen and (max-width: 768px) {
	.map-filters {
		display: none;
	}
	
	body.map-filters-toggled-mobile {
		height: 100vh;
		overflow: hidden;
	}
	
	.toggle-map-filters {
		cursor: pointer;
	}
	
	.map-filters {
		display: none;
		visibility: collapse;
		opacity: 0;
		transition: all 0.2s;
		padding: 30px;
		background-color: #FFFFFF;
	}
	
	.map-filters.show {
		position: fixed;
		display: block;
		top: 0;
		left:0;
		width: 100vw;
		height: 100vh;
		z-index: 999999;
		opacity: 1;
		transition: all 0.2s;
		visibility: visible;
		overflow-y: scroll;
		padding-bottom: 150px;
	}
	
	.apply-map-filters {
		display: block;
	}
}

@media screen and (max-width: 480px) {
	#babcock-ranch-map-canvas {
		height: 600px;
	}
	
	.map-poi-filter-wrapper .accordion-toggle:hover [class^="icon_pin_"] {
		animation: none;
	}
}

/* Manual 'bounce' animation */
@keyframes small-bounce {
	from {
		transform: translate3d(0, 2px, 0); 
	} 
	to {
		transform: translate3d(0, -2px, 0); 
	}
}

@-webkit-keyframes small-bounce {
	from {
		-webkit-transform: translate3d(0, 2px, 0);
		transform: translate3d(0, 0, 0);
	}
	to {
		-webkit-transform: translate3d(0, -2px, 0);
		transform: translate3d(0, 50px, 0);
	}
}