/**
 * Hemlock Hills - Live Cabin Viewers: badge style on the property cards.
 *
 * Green strip at the bottom of the card photo with a gold eye icon. Scoped to the Elementor
 * card widgets, so it works with or without the Property Cards plugin; it overrides the older
 * per-page Elementor badge CSS (e.g. the 60px-tall strip on the photo-carousel pages).
 */

.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: auto;
	height: auto;
	min-height: 30px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 14px;
	background: #155E45;
	background-image: none;
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 2;
}

.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	margin: 0;
	flex-shrink: 0;
	background: #CE8F3A;
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2012C2%2012%205%205%2012%205C19%205%2022%2012%2022%2012C22%2012%2019%2019%2012%2019C5%2019%202%2012%202%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2012C2%2012%205%205%2012%205C19%205%2022%2012%2022%2012C22%2012%2019%2019%2012%2019C5%2019%202%2012%202%2012Z'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Old eye image in the photo-carousel card template; replaced by the icon above. */
.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter img {
	display: none;
}

.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter span {
	font: inherit;
	color: inherit;
}

@media (max-width: 768px) {
	.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter {
		font-size: 13px;
		padding: 8px 12px;
		min-height: 28px;
	}

	.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter::before {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 480px) {
	.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter {
		font-size: 12px;
		padding: 8px 12px;
	}

	.elementor-widget-shortcode:has(.single-image, .blur-border-carousel) .viewing-counter::before {
		width: 16px;
		height: 16px;
	}
}
