
/****************************************
 * INFOBOX
 ****************************************/

/* Generic element for Google Maps OR Mapbox */
.map-infobox {
	color: #2a2a2a;
}

#portal-column-content .hike-title {
	/* override theme styles */
	text-transform: none;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
	letter-spacing: 0;
	line-height: 1.25;
}

#portal-column-content .hike-title a {
	color: #00557B;
	text-decoration: underline;
}

	#portal-column-content .hike-title a:hover,
	#portal-column-content .hike-title a:focus {
		text-decoration: none;
		color: #00557B;
	}

.map-infobox .hike-meta {
	margin-top: .5rem;
	padding-top: .5rem;
	border-top: 1px dashed #ccc;
}

/****************************************
 * HIKE META & ICONS
 ****************************************/
.hike-meta {
	font-size: .8666rem;
	color: inherit;
}

	.hike-meta span {
		display: flex;
		align-items: center;
	}

	.hike-meta .no-value {
		display: none !important;
	}

	.hike-meta span span {
		display: inline;
		margin-right: 0;
	}

	.hike-meta > span::before {
		display: inline-block;
		content: '';
		width: .8666rem;
		height: .8666rem;
		margin-right: .5em;
		background-size: 100% auto;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}

	.hike-meta .hike-completed::before {
		background-image: url("/++theme++plonetheme.wta/images/svg/check-mark-circle-green.svg");
	}

	.hike-meta .hike-date::before {
		background-image: url("/++theme++plonetheme.wta/images/svg/calendar-gray.svg");
	}

	.hike-meta .hike-mileage::before {
		background-image: url("/++theme++plonetheme.wta/images/svg/trail-icons/length.svg");
	}

	.hike-meta .hike-gain::before {
		background-image: url("/++theme++plonetheme.wta/images/svg/trail-icons/elevation.svg");
	}

	.hike-meta .hike-gain + .hike-peak::before {
		content: '|';
		font-weight: normal;
		margin-right: 0;
	}

	.hike-meta .hike-rating::before {
		background-image: url("/++theme++plonetheme.wta/images/svg/trail-icons/rating.svg");
	}

.hike-image {
	margin-top: .5rem;
	text-align: center;
}

/******************************
 * MAPBOX SPECIFIC
 ******************************/
.mapboxgl-popup-content {
	padding: 10px;
	width: 11rem;
	border: 0.5px solid rgba(151, 151, 151, .75);
	box-shadow: 0 2px 4px 0 rgba(141,141,141,0.5);
}

/* our design doesn't include the close button or pointer on the infobox */
.mapboxgl-popup-close-button {
	display: none;
}

.mapboxgl-popup-tip {
	/* take up same amount of space, but be transparent */
	border-color: transparent !important;
}

.mapboxgl-control-container fieldset {
	position: relative;
	padding: 0;
	margin: 0;
	border: 0;
	line-height: inherit;
}

#map-layer-options input[type="checkbox"] + label::before {
	height: 1rem;
	width: 1rem;
}

.mapboxgl-ctrl-top-left .map-filter input[type="checkbox"] + label:last-of-type {
	margin-bottom: 0;
}

/****************************************
 * MAPBOX Expandable controls
 ****************************************/

 /* We'll write it when we need it. */

/****************************************
 * MAPBOX STYLE OVERRIDES
 ****************************************/
.mapboxgl-map {
	font-family: inherit !important;
}

.mapboxgl-map .mapboxgl-ctrl-top-left {
	left: 20px;
	top: 20px;
	font-size: 15px;
}

.mapboxgl-map .mapboxgl-ctrl-top-left .mapboxgl-ctrl {
	padding: 1em;
}
