/**
* @package      CRE8 Social
* @copyright    Copyright (C) Creative Graphics. All rights reserved.
* @license      GNU/GPL, see LICENSE.php
*
* Hand-written styling for the "browse on map" clustered marker feature (media/scripts/geomap.js).
* Not sourced from a third-party package, so it lives here rather than media/styles/vendors/.
*/

.es-geomap {
	width: 100%;
	height: 400px;
}

.es-geomap-cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.es-geomap-popup {
	min-width: 160px;
}

.es-geomap-popup__thumb {
	display: block;
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 6px;
}

.es-geomap-popup__title a {
	font-weight: 600;
	text-decoration: none;
}

/* The theme's global img{} resets (max-width, opacity, object-fit, border-radius - meant for
   content thumbnails) bleed into Google's own map chrome (Street View pegman, control icons),
   which needs exact unscaled sprite dimensions to render. #es#es (double ID) matches the site's
   established trick for reliably beating style.min.css regardless of WAM stylesheet load order -
   see feedback_yootheme_element_css_keyframes / the CSS specificity note in project memory.
   :not(.es-geomap-popup__thumb) carves out our own popup thumbnail - it also lives inside
   .gm-style (Google's InfoWindow renders our popup content), so without the exclusion this same
   reset was clobbering its own object-fit/border-radius (forcing object-fit:fill, stretching the
   image) despite winning on specificity alone. */
#es#es .es-geomap .gm-style img:not(.es-geomap-popup__thumb) {
	max-width: none;
	max-height: none;
	opacity: 1;
	border-radius: 0;
	-o-object-fit: fill;
	object-fit: fill;
}
