/*
	Custom styles for MapPress v2.73.12
*/

/*
	-----------------------------------------------------------------------------------
	Map layout - table containing map, directions, poi list
	Font size and family can be removed to make map match your theme
	-----------------------------------------------------------------------------------
*/

body.single.tax_reservations-required .mapp-marker {
  width: 150px;
  height: 150px;
  position: relative;
  top: -64px;
  left: -64px;
}

body.single-place .leaflet-right .mapp-geolocate-control-wrapper {
  display: none !important;
}

body.single-place .leaflet-right .leaflet-control-zoom {
  display: none !important;
}

body.single-activity .leaflet-right .mapp-geolocate-control-wrapper {
  display: none !important;
}

.marker-cluster-small {
  background-color: rgba(39, 39, 38, 0.6);
  font-family: var(--global--font-primary);
}

.marker-cluster-small div {
  background-color: rgba(39, 39, 38, 0.8);
  color: var(--color-white);
  font: 1.125rem var(--global--font-primary) !important;
  font-weight: normal;
}

.marker-cluster-medium {
  background-color: rgba(39, 39, 38, 0.6);
  font-family: var(--global--font-primary);
}

.marker-cluster-medium div {
  background-color: rgba(39, 39, 38, 0.8);
  color: var(--color-white);
  font: 1.125rem var(--global--font-primary) !important;
  font-weight: normal;
}

.mapp-layout {
	border: none;
	color: var(--color-gray);
	margin: 0px !important;
	min-width: 100px;
	opacity: 1 !important;		/* Various themese set to 0 */
	padding: 0px;
	font-family: var(--global--font-primary);
}

.mapp-layout * {
	box-sizing: border-box;
	font-size: 1rem;
}

.mapp-canvas {
	user-select: none;
}

.mapp-layout .mapp-main .mapp-canvas img {
	border: none;
	max-width: none;        	/* 2021 interferes with pegman */
	padding: 0;					/* 2011 pads img tags, which interferes with map markers and tiles */
}

/* 2019 */
.mapp-layout input, .mapp-layout button, .mapp-layout select, .mapp-layout textarea, .mapp-layout p, .mapp-layout a {
	font-family: var(--global--font-primary);
}

.mapp-layout .mapp-wrapper {
	min-height: 50px;
	position: relative;
}

/* Responsive content */
.mapp-layout .mapp-content {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
}

.mapp-layout .mapp-main {
	display: flex;
	flex: 1;
	overflow: hidden;
	position: relative;
}

.mapp-hidden {
	display: none;
}


/*
	-----------------------------------------------------------------------------------
	Prevent theme conflicts with Google maps.  The !important modifier is used because some
	themes use high-priority (very specific) selectors that interfere.
	-----------------------------------------------------------------------------------
*/

/* Map controls are rendered here, not on the canvas */
.mapp-canvas-panel {
	flex: 1;
	height: 100%;
	margin: 0px;
	overflow: hidden !important;
	padding: 0px !important;
	position: relative;			/* Need for initial dialog position */
}

.mapp-canvas {
	height: 100%;
	word-wrap: normal;			/* 2013 sets break-word, which interferes w/Google copyright in IE only */
}

.mapp-canvas img {
	background: none;
	box-shadow: none !important;		/* 2012 */
	border-radius: 0px !important;		/* 2012 */
	visibility: inherit !important;
}

.mapp-dir {
	font-family: var(--global--font-primary) !important;
  color: var(--color-blue) !important;
}

.leaflet-container .leaflet-control-attribution * {
	font-size: 8px;
}

.leaflet-container .leaflet-control-attribution {
	display: none;
}

/* Prevent theme interference with leaflet */
.leaflet-popup-close-button {
	box-shadow: none !important;			/* 2016, 2017 */
	text-decoration: none !important;		/* 2019 */
}

a.leaflet-control-zoom-in, .leaflet-control-zoom-out {
	text-decoration: none !important;
}


.mapp-dialog {
	background-color: var(--color-gray);
	color: var(--color-white);
  font-family: var(--global--font-primary) !important;
	display: none;
	min-height: 40px;
	opacity: .95;
	padding: 10px;
	position: absolute;
	text-align: center;
	top: 0; left: 0; right: 0;
	z-index: 1000;
}


.mapp-dialog .mapp-spinner {
	display: inline-block;
}

/*
	-----------------------------------------------------------------------------------
	Geolocate control
	-----------------------------------------------------------------------------------
*/

.mapp-google .mapp-geolocate-control-wrapper {
	box-shadow: rgb(0 0 0 / 30%) 0px 1px 4px -1px;
	border-radius: 4px;
	margin-right: 10px;
}

.mapp-google .mapp-geolocate-control {
	background-color: white;
	background: white url('../icons/location.svg') no-repeat center center;
	background-size: 18px 18px;
	height: 40px;
	width: 40px;
}

.mapp-leaflet .mapp-geolocate-control-wrapper {
	border: 2px solid rgba(0,0,0,0.2);
	border-radius: 4px;
}

.mapp-geolocate-control {
	background-color: white;
	background: white url('../icons/location.svg') no-repeat center center;
	background-size: 18px 18px;
	height: 30px;
	width: 30px;
}

.mapp-geolocate {
	position: absolute;
  top: 0px;
  right: 5px;
	height: 30px;
	width: 30px;
  background: white url('../icons/location.svg') no-repeat center center;
}

/*
	-----------------------------------------------------------------------------------
	POI List (new)
	Structure:
		.mapp-list
			.mapp-list-header
			.mapp-items
				.mapp-item (one for each POI)
			.mapp-list-footer
				.mapp-paginate
	-----------------------------------------------------------------------------------
*/

.mapp-list { display : none; }

.mapp-has-list .mapp-list {
	background-color: white;
	border-right: none !important;
	display: flex;
	flex-direction: column;
	max-width: 67%;
  transition-property: none;
  transition-duration: 0;
	position: relative;		/* Needed to scroll list for selection */
	width: 0;
}

.mapp-list-open .mapp-list {
	width: 300px;
  padding-right: 1.5rem;
}

/* List toggle, left layout only */
.mapp-list-toggle {
	align-items: center;
	background-color: var(--color-gray);
	border: none;
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	margin: auto;
	position: absolute;
	top: 0; left: 100%; bottom: 0;
	width: 25px;
	z-index: 1000;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.mapp-list-toggle::before {
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 8px solid var(--color-white);
	content: '';
}

.mapp-list-open .mapp-list-toggle::before {
	width: 0;
	height: 0;
	border-left: none;
	border-right: 8px solid var(--color-white);
}

.mapp-list .mapp-list-header {
	border: 2px solid var(--color-gray);
  background: var(--color-lightestgray);
  font-family: var(--global--font-primary);
  margin-bottom: 1rem;
  border-radius: 50px;
	padding: .5rem .5rem .3rem .5rem;
	text-align: center;
}

.mapp-list .mapp-items {
	flex: 1;
	overflow: auto;
  padding-bottom: 1rem;
}

.mapp-list .mapp-item {
	align-items: center;
	border-bottom: none;
	display: flex;
	cursor: pointer;
	overflow: hidden;
	padding: .75rem .75rem .35rem .75rem;
  border-radius: 5px;
}

.mapp-list .mapp-info {
	align-items: start;
	display: flex;
	flex: 1;
}

.mapp-list .mapp-title {
	flex: 1;
	padding: 0px 10px 0px 0px;
  font-family: var(--global--font-primary) !important;
  font-weight: normal !important;
}

.mapp-list .mapp-neighborhood {
  font-family: var(--global--font-primary) !important;
  font-weight: normal !important;
  color: var(--color-lightergray);
}

.mapp-layout .mapp-iw .mapp-info .mapp-neighborhood {
  font-family: var(--global--font-primary) !important;
  font-weight: normal !important;
  color: var(--color-lightergray);
  padding: 0px 0px 0px 10px;
}

.marker-cluster span {
  font-family: var(--global--font-primary) !important;
  font-weight: normal !important;
}

.mapp-list .mapp-item.mapp-selected {
	background-color: var(--color-gray);
  color: var(--color-white);
}


.mapp-list .mapp-item:hover {
	background-color: var(--color-lightestgray);
  color: var(--color-gray);
}

.mapp-list .mapp-item .mapp-icon {
	border: none;                   /* 2011 */
	max-width: 32px !important; 	/* 2012 tries to override */
	max-height: 32px;
	padding: 0;               /* 2011 */
}

.mapp-list-footer {
	border-top: 2px solid var(--color-gray);
	display: flex;
	justify-content: center;
	padding: 10px;
}


/*
	-----------------------------------------------------------------------------------
	Pagination
	For: poi list, library picker, and style modal
	-----------------------------------------------------------------------------------
*/


/* Backend buttons are button elements */
.mapp-paginate button {
	font-size: 16px;
	margin: 0 5px;
}

/* Frontend buttons are divs to prevent theme interference w/styling */
.mapp-paginate-button {
	align-items: center;
	background-color: var(--color-gray);
  	color: var(--color-white);
	border: none;
	border-radius: 5px;
	display: inline-flex;
	font-size: 1.25rem;
	height: 30px;
	justify-content: center;
	margin: 0 2px;
	width: 30px;
	cursor: pointer;
  	font-family: var(--global--font-primary) !important;
}

.mapp-paginate-button.mapp-disabled {
	color: #aaa;
	cursor: default;
}

.mapp-paginate-count {
	display: inline-block;
	min-width: 60px;
	text-align: center;
  font-family: var(--global--font-primary) !important;
}


/*
	-----------------------------------------------------------------------------------
	Thumbnail styles
	Default is thumbnail on right
	-----------------------------------------------------------------------------------
*/

.mapp-list.mapp-thumb-top .mapp-item {
	flex-direction: column-reverse;
}

.mapp-list.mapp-thumb-top .mapp-thumbnail img {
	height: auto !important;
	width: 100% !important;
}

.mapp-list.mapp-thumb-left .mapp-thumbnail img, .mapp-list.mapp-thumb-right .mapp-thumbnail img {
	max-height: 70px;
	max-width: 70px;
  margin-right: .75rem;
}

.mapp-list.mapp-thumb-left .mapp-item, .mapp-list.mapp-thumb-left .mapp-info {
	flex-direction: row-reverse;
}

/*
	-----------------------------------------------------------------------------------
	Header
	-----------------------------------------------------------------------------------
*/
.mapp-header {
	background-color: transparent !important;
	border-bottom: none;
	display: flex;
  margin-bottom: 1rem;
}

.mapp-header-button {
	cursor: pointer;
	min-width: 70px;
	padding: 0 !important;
	text-align: center;
	text-transform: none;
}

/*
	-----------------------------------------------------------------------------------
	Search
	-----------------------------------------------------------------------------------
*/
.mapp-search {
	flex: 1;
	position: relative;
}

.mapp-search input.mapp-error {
	outline: 1px solid var(--color-red) !important;
}

.mapp-search input.mapp-places {
	background-color: white !important;		/* Algolia uses 240,240,240 */
	color: var(--color-gray) !important;				/* Theme */
}

.mapp-search ::placeholder {
	color: var(--color-lightgray) !important;				/* Themes */
}

.mapp-places.ui-autocomplete-input {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  border: none;
	border-bottom: 2px solid var(--color-gray) !important;
  border-radius: 0px;
  outline: none;
  background: var(--color-white);
  font-family: var(--global--font-primary);
  font-size: 1.25rem;
  font-weight: normal;
  width: 100%;
  padding: 10px 40px 10px 40px;
  height: 46px;
}

.mapp-search::after {
  content: '';
  background-color: var(--color-white);
  background-image: url('../icons/search.svg');
  width: 36px;
  height: 36px;
  border-radius: 50px;
  background-repeat: no-repeat;
  background-position: center center;
  display: block;
  position: absolute;
  left: 0px;
  top: -4px;
}

/* JQuery Autocomplete */
.mapp-search .ui-autocomplete {
	background: none;
	background-color: white;
	border: 2px solid var(--color-gray);
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: var(--global--font-primary);
	list-style: none;
	margin-top: 10px;
	max-width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0;
	position: absolute;
	z-index: 10000;
}

ul#ui-id-1 {
	top: 40px !important;
}

.mapp-search .ui-autocomplete li.ui-menu-item {
	background-color: inherit;
	border-bottom: none;
	border-top: none;
	border-right: none;
	border-left: none;
	box-shadow: none;
	color: inherit;
	cursor: inherit;
	font-family: var(--global--font-primary);
  font-weight: normal;
	margin: 0;
	padding: 10px;
}

.mapp-search .ui-autocomplete li.ui-menu-item .ui-menu-item-wrapper{
	font-family: var(--global--font-primary);
  font-weight: normal;
}

.mapp-search .ui-autocomplete li.ui-menu-item:hover {
	background-color: var(--color-gray);
  color: var(--color-white);
}

.mapp-search .ui-autocomplete div.ui-menu-item-wrapper {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
  display: block;
}

.mapp-search .ui-autocomplete li.ui-state-focus {
	background-image: none;
	background-color: #f6f6f6;
}

/*
	-----------------------------------------------------------------------------------
	Filters
	-----------------------------------------------------------------------------------
*/

.mapp-filters-toggle {
	align-items: center;
  justify-content: start;
	display: flex;
  font-family: var(--global--font-primary);
  font-size: 24px;
  font-weight: normal;
  width: 300px;
}

.mapp-filters {
	background-color: white;
	border-bottom: none;
	height: 100%;
  max-height: 100vh;
  max-width: 300px;
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 1;
}

.mapp-filters-list {
	flex: 1;
	overflow: auto;
	padding: 0px 10px 5px 0px;
  padding-bottom: 50px;
}

.mapp-filters-toolbar {
	border-top: none;
	padding: 5px 10px 5px 0px;
  display: flex;
  align-items: center;
}

.mapp-filters-toolbar::before {
  width: 100%;
  content: '';
  height: 50px;
  z-index: 1;
  position: absolute;
  left: 0;
  bottom: 41px;
  background: rgb(255,255,255);
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.5032387955182073) 50%, rgba(255,255,255,0) 100%);
}

.mapp-filter {
	margin-bottom: 5px;
}

.mapp-filter-label {
  font-size: .825rem;
  text-transform: uppercase;
  color: var(--color-lightgray);
  font-family: var(--global--font-mono);
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: .5rem;
}

/* Select filters are displayed inline next to their label */
.mapp-filter.mapp-select .mapp-filter-label {
	display: inline-block;
	margin-right: 20px;
}

.mapp-filter.mapp-select .mapp-filter-values {
	display: inline-block;
}

/* Set a max-height to force column wrapping instead of rows*/
.mapp-filter-values {
	display: flex;
	flex-direction: column;
  margin-bottom: 1rem;
}

.mapp-filter-values > label {
	display: inline-block;
	font-weight: normal;		/* 2017 */
	margin-right: 10px;
	white-space: nowrap;
}

.mapp-filter-values input[type="checkbox"] {
	margin-right: 5px;
}

.mapp-filters-reset {
	float: right;
}

/*
	------------------------------------------------------------------------------------------------------------
	Infobox

	- This applies only to Infoboxes!  Google standard infoWindow / Leaflet popup use class .mapp-iw instead

	.mapp-ib-wrapper						- positioning element
		.mapp-ib-content					- box + tip
			.mapp-ib 						- box only, with border
				.mapp-iw | .mapp-iw-edit	- infowindow (popup) or tooltip content
			.mapp-ib-tip						- triangle tip

	Classses applied to mapp-ib-wrapper:
		type / open				.mapp-ib-edit | .mapp-open

	Classes applied to mapp-iw:
		template name			.mapp-map-popup | .mapp-mashup-popup
	-----------------------------------------------------------------------------------------------------------
*/

/* Positioning element: width prevents clipping, height must be zero or it'll obscure canvas */
.mapp-ib-wrapper {
	display: none;
	max-height: 100%;	/* Based on map size */
	max-width: 100%;		/* Based on map size */
	position: absolute;
}

.mapp-ib-wrapper.mapp-open {
	display: flex;
}

.single-place .mapp-ib-wrapper.mapp-open {
	display: none;
}

.single-activity .mapp-ib-wrapper.mapp-open {
	display: none;
}

.mapp-ib-content {
	display: flex;
  max-width: 300px;
	flex-direction: column;
	line-height: 0;		/* Prevent font from distorting tip */
	z-index: 1005;		/* Needed for Leaflet, above menu icon, below menu */
}

.mapp-ib-content .mapp-ib-flip {
	flex-direction: column-reverse;
}

/* In fullscreen Google sets map z-index very high */
:fullscreen ~ .mapp-ib-wrapper { z-index: 10000000000; }
:-webkit-full-screen ~ .mapp-ib-wrapper { z-index: 10000000000; }
:-moz-full-screen ~ .mapp-ib-wrapper { z-index: 10000000000; }
:-ms-fullscreen ~ .mapp-ib-wrapper { z-index: 10000000000; }

.mapp-ib {
	background-color: white;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	line-height: normal;
	outline: none;
	overflow: hidden;
	box-shadow: 0 0px 7px 0px rgba(0,0,0,0.20);
  padding: 1rem;
  border-radius: 5px;
}

.mapp-ib-tip {
	display: flex;
	flex: 0 0 auto;
	left: 50%;
  top: -1px;
	position: relative;
	width: 0;
}

.mapp-ib-tip:before {
	border: 10px solid transparent;
	border-top: 10px solid white;
	border-bottom: none;
	content: "";
	left: -10px;
	position: relative;
	width: 0;
}

.mapp-ib-flip .mapp-ib-tip {
	transform: rotate(180deg);
}

/*
	-----------------------------------------------------------------------------------
	IB Styles
	-----------------------------------------------------------------------------------
*/
.mapp-ib-dark .mapp-ib {
	background-color: black;
	border: 5px solid white;
	color: white;
}

.mapp-ib-dark .mapp-ib-tip {
	height: 10px;
}

.mapp-ib-dark .mapp-ib-tip:before, .mapp-ib-dark .mapp-ib-tip:after {
	border: 15px solid transparent;
}

.mapp-ib-dark .mapp-ib-tip:before {
	border-top: 15px solid white;
	border-bottom: none;
	left: -15px;
	top: -4px;
}

.mapp-ib-dark .mapp-ib-tip:after {
	border: 10px solid transparent;
	border-top: 10px solid black;
	border-bottom: none;
	content: "";
	left: -10px;
	position: absolute;
	top: -6px
}

.mapp-ib-light .mapp-ib {
	background-color: white;
	box-shadow: 10px 10px 0px rgb(0 0 0 / 40%);
	border: 5px solid black;
	color: black;
}

.mapp-ib-light .mapp-ib-tip {
	height: 10px;
}

.mapp-ib-light .mapp-ib-tip:before, .mapp-ib-light .mapp-ib-tip:after {
	border: 15px solid transparent;
}

.mapp-ib-light .mapp-ib-tip:before {
	border-top: 15px solid black;
	border-bottom: none;
	left: -15px;
	top: -4px;
}

.mapp-ib-light .mapp-ib-tip:after {
	border: 10px solid transparent;
	border-top: 10px solid white;
	border-bottom: none;
	content: "";
	left: -10px;
	position: absolute;
	top: -6px
}

/*
	-----------------------------------------------------------------------------------
	Popup contents
	-----------------------------------------------------------------------------------
*/

.mapp-iw {
	display: flex;
	flex-direction: column;
	min-width: 200px;
	overflow: hidden;
}

.mapp-iw * {
	font-size: 16px;
}

/* Gutenberg messes up IW fonts */
.block-editor-page .mapp-iw * {
	font-size: 16px !important;
}

/* Override common theme / user agent styles that interfere */
.mapp-layout .mapp-iw * {
	color: black;
	line-height: normal;
}

.mapp-iw p {
	margin: 0 !important;
	padding: 0;
}

/* Try to constrain oembeds to container */
.mapp-iw iframe {
	max-height: 100%;
	max-width: 100%;
}

/* Override theme link styles */
.mapp-iw a, .mapp-iw a:link, .mapp-iw a:active, .mapp-iw a:visited, .mapp-iw a:hover {
	border: none !important;
	box-shadow: none !important;			/* 2016, 2017 */
	color: var(--color-gray) !important;
	margin: 0;
	padding: 0;
	text-decoration: none !important;
}

.mapp-iw .mapp-thumbnail {
	display: flex;
	overflow: hidden;
}

/* Display block removes extra whitespace @ bottom */
.mapp-iw .mapp-thumbnail img {
	display: block;
	max-height: 80px;
	max-width: 80px !important;
	object-fit: cover;
}


.mapp-iw .mapp-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 100px;			/* Used when IB is very small and thumbnail is on top */
	overflow: hidden;
}

.mapp-iw .mapp-title {
	font-weight: normal;
	padding: 0px 0px 0px 10px;
	white-space: normal;
}

.mapp-iw .mapp-body {
	flex: 1;
	overflow: auto;
	overflow-wrap: break-word;
	padding: 0 10px;
}

.mapp-iw .mapp-links {
	padding: 10px;
	white-space: nowrap;
}

/* Make directions look like a link */
.mapp-iw .mapp-dir {
	color: #4272db;
}

/* Workarounds for IE, which doesn't like flex */
.mapp-ie .mapp-iw {
	display: block;
	overflow: auto;
}

.mapp-ie .mapp-iw .mapp-body {
	flex: none;
	overflow: none;
}

/*
	-----------------------------------------------------------------------------------
	Thumbnail styles
	-----------------------------------------------------------------------------------
*/

a.popup-image-link {
	position: absolute;
  width: 100%;
  height: 112px;
  top: 0px;
  left: 0px;
}

/* Limit info section to width of featured image.  */
.mapp-iw.mapp-thumb-top .mapp-info {
	min-width: 100%;
	width: 0;
}

.mapp-iw.mapp-thumb-left .mapp-thumbnail img, .mapp-iw.mapp-thumb-right .mapp-thumbnail img {
	min-height: 80px;
}

/* Limit info section to height of featured image.  */
.mapp-iw.mapp-thumb-left .mapp-info, .mapp-iw.mapp-thumb-right .mapp-info  {
	min-height: 100%;
	min-width: 138px;
	height: 0;
}

.mapp-iw.mapp-thumb-left {
	flex-direction: row;
}

.mapp-iw.mapp-thumb-right {
	flex-direction: row-reverse;
}



/*
	-----------------------------------------------------------------------------------
	IB Animations
	-----------------------------------------------------------------------------------
*/

@keyframes floatdown {
	from { margin-top: 0 }
	to { margin-top: 5px }
}

@keyframes floatup {
	from { margin-top: 0 }
	to { margin-top: -5px }
}

.mapp-ib-wrapper.mapp-ib-float {
	animation: floatup 0.4s forwards;
}

.mapp-ib-wrapper.mapp-ib-flip.mapp-ib-float {
	animation: floatdown 0.4s forwards;
}


/*
	-----------------------------------------------------------------------------------
	Layouts
	-----------------------------------------------------------------------------------
*/
.mapp-inline .mapp-main {
	flex-direction: column-reverse;
}

.mapp-inline .mapp-list {
	border-right: none;
	border-top: 1px solid lightgray;
	max-height: 400px;
	max-width: none;
	width: auto;
}

.mapp-inline .mapp-directions {
	width: auto;
}

/*
	-----------------------------------------------------------------------------------
	Views
	-----------------------------------------------------------------------------------
*/

.mapp-view-filters .mapp-filters {
	display: flex;
	flex-direction: column;
	z-index: 10000;
}

.mapp-view-menu .mapp-menu {
	display: block;
}

.mapp-view-directions .mapp-directions {
	display: block;
}

.mapp-view-directions .mapp-list {
	display: none;
}

/*
	-----------------------------------------------------------------------------------
	Mini view
	-----------------------------------------------------------------------------------
*/

.mapp-footer {
	background-color: var(--color-gray);
	border-top: none;
	display: none;
	padding: .5rem;
	text-align: center;
  font-family: var(--global--font-primary) !important;
  height: 44px;
}

.mapp-footer .mapp-view-list {
  font-family: var(--global--font-primary) !important;
  color: var(--color-white);
  display: flex;
  align-items: center;
}

.mapp-footer .mapp-view-map {
  font-family: var(--global--font-primary) !important;
  color: var(--color-white);
  display: flex;
  align-items: center;
}

.mapp-footer [data-mapp-action="view-map"] { display: none; }

.mapp-view-mini .mapp-filters {
	max-height: none;
}

/* In mini view place the list under the map */
.mapp-view-mini .mapp-main {
	flex-direction: column-reverse;
}

/* Position list absolute, otherwise it will compress map bounds */
.mapp-view-mini .mapp-main {
	position: relative;
}

.mapp-view-mini .mapp-list {
	bottom: 0;
	height: 0;
	max-width: none;
	position: absolute;
	width: 100%;
	z-index: 10000;
}

.mapp-view-mini.mapp-list-open .mapp-list {
	height: 100%;
}

/* Close list when a POI is open */
.mapp-view-mini.mapp-poi-open .mapp-list {
	height: 0;
}

.mapp-view-mini .mapp-footer {
	display: block;
}

.mapp-view-mini .mapp-list {
	width: 100% !important;
  padding-right: 0rem !important;
}

.mapp-view-mini.mapp-list-open .mapp-footer [data-mapp-action="view-list"] { display: none; }
.mapp-view-mini.mapp-list-open .mapp-footer [data-mapp-action="view-map"] { display: block; }

/*
	-----------------------------------------------------------------------------------
	Markers
	-----------------------------------------------------------------------------------
*/

.mapp-marker {
	cursor: pointer;
	filter: none;
	position: absolute;
	touch-action: none;		/* For dragdrop */
}

/* Label */
.mapp-marker img:nth-child(2) {
	height: 50%;
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 50%;
}

/* Image transforms base */
.mapp-marker img {
	transform-origin: 50% 100%;
	width: 100%;
}

/* Scale image */
.mapp-marker-scale img {
	transform-origin: 50% 100%;
	transform: scale(1.2);
	perspective: 1001px;
}

/* Scale label - combine transforms */
.mapp-marker-scale img:nth-child(2) {
	transform: translate(-50%, -50%) scale(1.5);
}

.mapp-marker-circle {
	overflow: visible !important;
}

.mapp-marker-circle::before {
	background-color: rgba(255,255,255,0.7);
	border: 3px solid white;
	border-radius: 50%;
	box-sizing: border-box;
	content: "";
	left: -25%;
	top: -25%;
	width: 150%;
	height: 150%;
	position: absolute;
	z-index: -1;
}

/*
	-----------------------------------------------------------------------------------
	Directions
	-----------------------------------------------------------------------------------
*/

.mapp-directions {
	background-color: white;
	display: none;
	padding: 10px;
	position: relative;
	max-width: 45%;
	overflow: auto;
	width: 250px;
}

.mapp-view-mini .mapp-directions {
	width: auto;
}

.mapp-directions input {
	border: 1px solid gray;     /* 2020 */
	padding: 3px;
}


.mapp-directions .mapp-dir-toolbar {
	margin-top: 10px;
}

.mapp-directions .mapp-dir-swap {
	display:inline-block;
	border: none !important;	/* 2015 */
	text-align: center ;
	vertical-align: middle ;
	width: 24px ;
	height: 24px ;
	line-height: 24px ;
	background-color: transparent;
	padding: 0px ;
	margin: 0px ;
	position: relative;
	vertical-align: bottom;
}

.mapp-directions .mapp-route {
	margin: 10px 0 0px 0 ;
}

.mapp-directions .mapp-dir-saddr, .mapp-directions .mapp-dir-daddr {
	width: 80% ;
	line-height: normal ;
}

.mapp-directions .mapp-dir-saddr {
	margin-bottom: 5px;
}

.mapp-directions .mapp-dir-arrows {
	background: transparent url('../images/directions.png') no-repeat center center;
	background-position: -10px -489px;
	cursor: pointer;
	display: inline-block;
	height: 12px;
	margin: 0;
	padding: 0;
	position: relative;
	top: 10px; left: 5px;
	vertical-align: middle;
	width: 10px;
}

/*
	-----------------------------------------------------------------------------------
	Custom controls
	-----------------------------------------------------------------------------------
*/

.mapp-menu-toggle {
	background: white url('../images/menu-2x.png') no-repeat center center;
	background-size: 24px 24px;
	box-shadow: rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px;
	color: #777;
	cursor: pointer;
	height: 29px;
	outline: none;
	outline: none;		/* Prevent focus outline */
	position: absolute;
	top: 10px; left: 10px; bottom: 0; right: 0;
	width: 32px;
	z-index: 1000;
}

.mapp-menu {
	background-color: white;
	border: 1px solid lightgray;
	color: #606060;
	cursor: default;
	display: none;
	overflow: auto;
	padding: 5px 0 5px 0;
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 150px;
	z-index: 1010;
}

.mapp-menu-item {
	cursor: pointer;
	line-height: 20px;
	padding: 5px 10px 5px 10px;
}

.mapp-menu-item:hover {
	background-color: #f8f8f8;
	color: black;
}
.mapp-menu-item.mapp-active {
	background-color: #f6f6f6;
	color: black;
	font-weight: bold;
}

.mapp-menu-separator {
	padding: 0;
	border-bottom: 1px solid lightgray;
}

.mapp-menu-footer {
	position: absolute;
	bottom: 0;
	right: 0;
}

.mapp-menu-help {
	justify-content: center;
	background-color: #fafafa;
	border-radius: 50%;
	border: 1px solid lightgray;
	font-size: 10px;
	width: 15px;
	height: 15px;
	display: flex;
	align-items: center;
	line-height: 10px;
	margin-right: 5px;
	margin-bottom: 2px;
	opacity: .7;
	color: gray;
}

.mapp-menu-help:hover {
	opacity: 1;
}


/*
	-----------------------------------------------------------------------------------
	Mashup modal:

	Use these styles with the 'mashup-modal.php' template.

	.mapp-modal
		.mapp-modal-backdrop
		.mapp-modal-content
			.mapp-modal-close
			.mapp-modal-featured
			.mapp-modal-article
				.mapp-modal-body
				.mapp-modal-meta

	-----------------------------------------------------------------------------------
*/

/* Prevent scrollbars when popup is open */
body.mapp-modal-noscroll {
	overflow-y: hidden;
}

.mapp-modal {
	position: fixed;
	top: 0; left: 0; bottom: 0; right: 0;
	z-index: 100000;		/* WP adminbar is 99999 */
}

.mapp-modal-title {
	margin-bottom: 15px;
}

.mapp-modal-content {
	background-color: white;
	box-shadow: 5px 5px 10px #888;
	box-sizing: content-box;
	display: flex;
	flex-direction: row;
	height: 80vh;
	max-height: 900px;
	max-width: 1024px;
	position: fixed;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 80vw;
	z-index: 1;
}

/* Featured image displays on the left by default */
.mapp-modal-featured {
	max-width: 40%;
}

.mapp-modal-featured img {
	height: 100% !important;
	object-fit: cover;
	width: 100% !important;
	max-width: none !important;
}

.mapp-modal-article {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: auto;
	padding: 30px;
}

.mapp-modal-meta {
	display: flex;
	font-size: 12px;
	justify-content: space-between;
	margin-top: 50px;
}

/* Element to receive focus when modal opens (e.g. scrollable post content) */
.mapp-modal-focus {
	outline: none;
}

.mapp-modal-backdrop {
	background-color: black;
	opacity: 0.6;
	height: 100vh;
	width: 100vw;
	user-select: none;
}

.mapp-modal-close {
	color: white;
	cursor: pointer;
	display: inline-block;
	font-family: var(--global--font-primary);
	font-size: 36px;
	line-height: 36px;
	position: absolute;
	text-align: center;
	top: 5px; right: -40px;
	z-index: 1;
}

.mapp-modal-close:hover {
	color: black;
}

.mapp-modal-spinner-wrapper {
  transform: translate(-200%, -200%);
  width: 5px;
  height: 5px;
}

/* https://www.w3schools.com/howto/howto_css_loader.asp */
.mapp-modal-spinner {
	background: transparent url(../images/spinner-2x.gif) no-repeat center center;
	height: 40px;
	width: 40px;
	margin-left: 10px;
	margin-right: 10px;
	position: absolute;
	top: 50%; left: 50%;
}


/*
	-----------------------------------------------------------------------------------
	Misc
	-----------------------------------------------------------------------------------
*/

.mapp-align-left { float: left; }
.mapp-align-right { float: right; }
.mapp-align-center { margin-left: auto; margin-right: auto; }

.mapp-close {
	color: gray;
	cursor: pointer;
	display: inline-block;
	font-family: var(--global--font-primary);
	font-size: 18px;
	font-weight: bold;
	height: 20px;
	line-height: 20px;
	position: absolute;
	text-align: center;
	top: 0px; right: 0px;
	width: 20px;
	z-index: 1;
}

.mapp-close:after {
	content: "x";
}

.mapp-close:hover {
	color: black;
}

img.mapp-icon, .mapp-icon img {
	box-shadow: none !important;	/* 2012 applies box shadow to all images */
	filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.4));
	height: 32px;
	width: 32px;
	vertical-align: middle;
}

.mapp-error {
	background-color: #ffebe8;
	margin: 0;
	padding: 2px;
	background-color: pink;
	border: 1px solid red !important;
}

.mapp-search input.mapp-places {
  border: none;
  padding-left: 40px;
}

.mapp-spinner {
	background: transparent url(../images/loading.gif) no-repeat center center;
	height:16px;
	width: 16px;
	margin-left: 10px;
	margin-right: 10px;
}

*[data-mapp-action] {
	cursor: pointer;
}

.mapp-max {
	width: 100%;
}

.mapp-caret:after {
	content: "";
  display: inline-block;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid black;
  border-bottom: none;
  margin-left: 10px;
  vertical-align: middle;
  margin-top: -5px;
  opacity: .3;
}

.mapp-caret:before {
	content: "";
	display: inline-block;
  height: 24px;
  width: 24px;
  margin-right: 5px;
  position: relative;
  top: -1px;
  background-size: contain;
  background: transparent;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url('../icons/filter.svg');
  border: none !important;
}

.filters-collapser.mapp-caret:before {
	content: "";
	display: inline-block;
  height: 24px;
  width: 24px;
  margin-right: 5px;
  position: relative;
  top: 4px;
  background-size: contain;
  background: transparent;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url('../icons/filter.svg');
  border: none !important;
}

.filters-collapser.mapp-caret:after {
  display: none;
}


@media(max-width:768px) {
  .filters-collapser.mapp-caret:after {
  	content: "";
    display: inline-block;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid black;
    border-bottom: none;
    margin-left: 10px;
    vertical-align: middle;
    margin-top: -5px;
    opacity: .3;
  }
}

/* Pseudo-buttons, to avoid theme styles */
.mapp-button, .mapp-button-submit {
	color: var(--color-gray);
	margin-right: 5px;
	text-transform: none;
  font-family: var(--global--font-primary);
  font-weight: normal;
  font-size: 1.125rem;
}

.mapp-button-submit {
	color: var(--color-gray);
  display: inline-flex;
  border: 2px solid var(--color-lightergray);
  padding: 5px 10px;
}

.mapp-button-submit:hover {
  border: 2px solid var(--color-gray);
}

.mapp-filter-values label {
  font-family: var(--global--font-primary);
}

.mapp-filter-values .mapp-icon {
  display: none !important;
}

/* .mapp-filter-values input[type="checkbox"] {
    display: none;
} */

.mapp-filter-values label {
  cursor: pointer;
  color: var(--color-gray);
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
  font-size: 1.125rem;

  /*16px width of fake checkbox + 6px distance between fake checkbox and text*/
  padding-left: 22px;
}

.mapp-filter-values label::before,
.mapp-filter-values label::after {
  position: absolute;
  content: "";

  /*Needed for the line-height to take effect*/
  display: inline-block;
}

.mapp-filter-values label::before {
  height: 14px;
  width: 14px;
  border: 2.5px solid var(--color-lightgray);
  border-radius: 2px;
  left: 0px;

  /*(24px line-height - 16px height of fake checkbox) / 2 - 1px for the border
   *to vertically center it.
   */
  top: 3px;
}

.mapp-filter-values label.checked::after {
  height: 5px;
  width: 9px;
  border-left: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(-45deg);
  left: 4px;
  top: 7px;
}

.mapp-filter-values label input[type="checkbox"] ~ label::after {
    content: none;
}

.mapp-filter-values label input[type="checkbox"] {
  opacity: 0;
}

.mapp-count {
  display: none !important;
}

