/* MGH Property Spotlight – single property row; 800×450 media + fluid text column. */
/* Scoped like property-list for Elementor specificity. */

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight {
	margin-top: 60px;
	padding: 60px 20px 60px 20px;
	background-color: rgba(185, 200, 185, 0.2) !important;
	background-image: none !important;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__empty {
	margin: 0;
	line-height: 1.4;
	color: #4c4c4c;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}

/* Whole row clickable via stretched CTA link overlay. */
div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__row--linked {
	position: relative;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__row--linked .mgh-property-spotlight__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Media column: max 800px wide, 800/450 aspect */
div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__media {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel {
	position: relative;
	overflow: hidden;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-viewport {
	overflow: hidden;
	width: 100%;
	border-radius: 8px;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-track {
	display: flex;
	transition: transform 0.28s ease;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-slide {
	flex-shrink: 0;
	box-sizing: border-box;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	aspect-ratio: 800 / 450;
	object-fit: cover;
	transition: transform 300ms ease-out;
	transform: scale(1);
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel:hover .mgh-property-spotlight__carousel-img,
div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel:focus-within .mgh-property-spotlight__carousel-img {
	transform: scale(1.01);
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel--placeholder .mgh-property-spotlight__carousel-placeholder {
	width: 100%;
	aspect-ratio: 800 / 450;
	min-height: 200px;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 8px;
}

/* Mobile: full 8px radius on all image corners (slides + img help clip when track uses transform). */
@media (max-width: 767px) {
	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-viewport {
		border-radius: 8px;
	}

	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-slide {
		border-radius: 8px;
		overflow: hidden;
	}

	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-img {
		border-radius: 8px;
	}

	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel--placeholder .mgh-property-spotlight__carousel-placeholder {
		border-radius: 8px;
	}
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 10px;
	background-color: #2c3a60;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 8px 0 8px 0;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__banner {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: auto;
	z-index: 2;
	padding: 10px;
	background-color: #baa558;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	/* Mobile: full-width bar — bottom corners match image */
	border-radius: 0 0 8px 8px;
	box-sizing: border-box;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.85);
	color: #2c3a60;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	transition: opacity 0.2s ease, visibility 0.2s ease, background-color 300ms ease-out, color 300ms ease-out, box-shadow 300ms ease-out;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	-webkit-appearance: none;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:focus {
	outline: none;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:focus-visible {
	outline: 2px solid #2c3a60;
	outline-offset: 2px;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:not(:disabled):focus:not(:hover) {
	background-color: rgba(255, 255, 255, 0.85);
	color: #2c3a60;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:not(:disabled):hover:focus {
	background-color: #2c3a60;
	color: #ffffff;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:not(:disabled):active {
	background-color: rgba(255, 255, 255, 0.85);
	color: #2c3a60;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:not(:disabled):hover:active {
	background-color: #2c3a60;
	color: #ffffff;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn--prev {
	left: 10px;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn--next {
	right: 10px;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn-inner svg {
	width: auto;
	height: 20px;
	max-width: 20px;
	display: block;
	flex-shrink: 0;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn--prev .mgh-property-spotlight__carousel-btn-inner svg {
	transform: scaleX(-1);
	transform-origin: center;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:disabled {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__carousel-btn:not(:disabled):hover {
	background-color: #2c3a60;
	color: #ffffff;
}

/* Body: same rules as property list card */
div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__body {
	padding: 0;
	min-width: 0;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__title {
	margin: 0 0 12px 0;
	font-family: Poppins, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	color: #2c3a60;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__excerpt {
	margin: 0 0 16px 0;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__excerpt-p {
	margin: 0 0 10px 0;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0;
	color: #2c3a60;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__excerpt-p:last-child {
	margin-bottom: 0;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	color: #2c3a60;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__cta:hover,
div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__row--linked:hover .mgh-property-spotlight__cta,
div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__row--linked:focus-within .mgh-property-spotlight__cta {
	text-decoration: none;
	color: #baa558;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__cta-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__cta-icon svg {
	width: auto;
	height: 10px;
	display: block;
}

@media (min-width: 768px) {
	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight {
		margin-top: 100px;
		padding: 100px 50px 100px 50px;
	}

	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__title {
		font-size: 21px;
	}

	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__banner {
		left: 0;
		right: auto;
		width: max-content;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 11px;
		font-weight: 600;
		line-height: 1.4;
		padding: 15px;
		border-radius: 0 8px 0 8px;
	}
}

@media (min-width: 1024px) {
	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__row {
		grid-template-columns: minmax(0, 800px) minmax(0, 1fr);
		gap: 40px;
		align-items: start;
	}

	div.elementor-widget.elementor-widget-mgh_property_spotlight .mgh-property-spotlight__media {
		margin: 0;
		max-width: none;
	}
}
