/**
 * Google Maps (MLS_MAP_PROVIDER=google) only — loaded from includes/map-head.php.
 * InfoWindow chrome, mappoly listing popup close control, OverlayView hover tooltip.
 */

/* Listing InfoWindow: custom close in #ListingStatus (headerDisabled; no gm-style-iw-chr) */
#ListingStatus .mappoly-infowindow-close,
.mls-listing-infowindow .mappoly-infowindow-close {
	flex: 0 0 auto;
	margin: 0;
	padding: 4px 8px;
	border: none;
	background: transparent;
	color: #303030;
	cursor: pointer;
	line-height: 1;
	font-size: 16px;
}
.mls-listing-infowindow .mappoly-infowindow-close:hover,
.mls-listing-infowindow .mappoly-infowindow-close:focus {
	color: #000;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 2px;
	outline: none;
}
.mls-listing-infowindow .mappoly-infowindow-close .fa {
	pointer-events: none;
}

.gm-style .gm-style-iw-c {
	padding: 0 !important;
}
/* Fallback if headerDisabled unsupported */
.gm-style-iw-t:has(.mls-mappoly-tooltip) .gm-style-iw-chr {
	display: none !important;
}
.gm-style-iw-t:has(.mls-listing-infowindow) .gm-style-iw-chr {
	display: none !important;
}
.gm-style-iw-d {
	max-height: none !important;
	max-width: 263px !important;
	overflow: auto !important;
}
.gm-style .gm-style-iw-c {
	border-radius: 0 !important;
}
.gm-style-iw-t::before {
	border-top: none;
}
.gm-style-iw {
	top: 1px !important;
	left: 0 !important;
	background-color: #fff;
	box-shadow: none;
	border-radius: 0;
	border: none;
}

/* OverlayView marker hover tooltip (map-google-maps.js; inner class shared name with Mapbox) */
.mls-google-hover-tooltip .mls-mapbox-tooltip-popup {
	background-color: #fff;
	padding: 6px 10px;
	box-sizing: border-box;
}
