/* MGH Property List – area intro + 2-col desktop / 1-col mobile property cards. */
/* Typography & colors: MGH design tokens only (no Elementor Style controls on this widget). */
/*
 * Selectors are scoped under div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list
 * so these rules win over Elementor’s cached CSS from old widget settings (higher specificity).
 */
/* Carousel: arrows only when navigation possible (disabled = hidden). Max 5 images. Area label top-left, gold banner bottom. */

/* Width comes from the Elementor container (Site Settings / layout). No max-width here. */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list {
	padding: 60px 20px 0 20px;
}

/* Intro title: mobile H3 → desktop H3 (mge_blue) */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__intro-title {
	margin: 0 0 20px 0;
	font-family: Poppins, sans-serif;
	font-size: 29px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	color: #2c3a60;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__intro-text {
	margin: 0 0 32px 0;
	max-width: 800px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0;
	color: #242424;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__intro-text p {
	margin: 0 0 1em 0;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__intro-text p:last-child {
	margin-bottom: 0;
}

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

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__grid {
	display: grid;
	grid-template-columns: 1fr;
	/* Mobile: 60px vertical between cards */
	gap: 60px;
	margin: 0;
	padding: 0;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__card {
	margin: 0;
	padding: 0;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel {
	position: relative;
	overflow: hidden;
	background: #e8e8e8;
}

/* Images: round only top-left + top-right */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-viewport {
	overflow: hidden;
	width: 100%;
	border-radius: 8px 8px 0 0;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-track {
	display: flex;
	transition: transform 0.28s ease;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-slide {
	flex-shrink: 0;
	box-sizing: border-box;
}

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

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel:hover .mgh-property-list__carousel-img,
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel:focus-within .mgh-property-list__carousel-img {
	transform: scale(1.1);
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel--placeholder .mgh-property-list__carousel-placeholder {
	width: 100%;
	aspect-ratio: 16 / 10;
	min-height: 180px;
	background: #ddd;
	border-radius: 8px 8px 0 0;
}

/* Area label: flush top-left; radius top-left + bottom-right only */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__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;
}

/* Mobile: full width; top-right corner rounded. Typography matches desktop except 10px / padding 10 */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__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;
	border-radius: 0 8px 0 0;
	box-sizing: border-box;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__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;
}

/* Avoid browser / theme focus fill (often reads as pink/magenta after click) */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-btn:focus {
	outline: none;
}

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

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

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

/* Press state: match default or hover, never UA accent */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-btn:not(:disabled):active {
	background-color: rgba(255, 255, 255, 0.85);
	color: #2c3a60;
}

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

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-btn--prev {
	left: 10px;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-btn--next {
	right: 10px;
}

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

/* Chevron from assets/images/chevron-right.svg (stroke and/or fill + currentColor) */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__carousel-btn-inner svg {
	width: auto;
	height: 20px;
	max-width: 20px;
	display: block;
	flex-shrink: 0;
}

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

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

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

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__card-body {
	padding: 20px 0 0 0;
}

/* Card title: mobile H5 → desktop H5 */
div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__card-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_list .mgh-property-list .mgh-property-list__excerpt {
	margin: 0 0 16px 0;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__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_list .mgh-property-list .mgh-property-list__excerpt-p:last-child {
	margin-bottom: 0;
}

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__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_list .mgh-property-list .mgh-property-list__cta:hover {
	text-decoration: underline;
}

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

div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__cta-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

@media (min-width: 768px) {
	div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list {
		padding: 100px 50px 0 50px;
	}

	div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__intro-title {
		font-size: 34px;
	}

	div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__intro-text {
		margin-bottom: 40px;
	}

	div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__card-title {
		font-size: 21px;
	}

	div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__grid {
		grid-template-columns: repeat(2, 1fr);
		/* Desktop: 100px vertical, 40px horizontal */
		gap: 100px 40px;
	}

	/* Desktop: banner only as wide as text; single line (ellipsis if too long) */
	div.elementor-widget.elementor-widget-mgh_property_list .mgh-property-list .mgh-property-list__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;
	}
}
