/**
 * NTM Floor Plan Card — structural styles.
 *
 * Colors, fonts, sizes and spacing come from the widget's Elementor controls
 * (their defaults reproduce the design). The values here are fallbacks and
 * layout mechanics only.
 */

.ntm-fpc {
	--ntm-fpc-justify: flex-start;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	overflow: hidden;
	box-sizing: border-box;
	background-color: #fff;
	border: 1px solid #e9e8e4;
	border-radius: 18px;
}

.ntm-fpc *,
.ntm-fpc *::before,
.ntm-fpc *::after {
	box-sizing: border-box;
}

/* Columns grow to fill their row, so hiding one never leaves a gap. */
.ntm-fpc__col {
	flex: 1 1 auto;
	min-width: 0;
}

.ntm-fpc__photo  { flex-basis: 27%; }
.ntm-fpc__plan   { flex-basis: 41%; }
.ntm-fpc__details { flex-basis: 32%; }

/* ----- Photo ----------------------------------------------------------- */

.ntm-fpc__photo {
	display: block;
	min-height: 220px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* ----- Photo column as a display panel (icon, heading, text, divider, note) */

.ntm-fpc__photo--panel,
.ntm-fpc__photo--both {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-decoration: none;
}

.ntm-fpc__photo--panel { background-color: #f4efe7; }

.ntm-fpc__photo--both::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ntm-fpc-ph-overlay, rgba(244, 239, 231, 0.84));
}

.ntm-fpc__ph {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 28px 24px;
	text-align: center;
}

.ntm-fpc__ph-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 50%;
	background-color: #dce8e4;
	color: #2f6066;
	font-size: 22px;
	line-height: 1;
}

.ntm-fpc__ph-icon i { font-size: inherit; color: inherit; }
.ntm-fpc__ph-icon svg { width: 1em; height: 1em; fill: currentColor; }

.ntm-fpc .ntm-fpc__ph-heading {
	margin: 0 0 8px;
	padding: 0;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 21px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.25;
	color: #0b3b60;
}

.ntm-fpc .ntm-fpc__ph-text {
	margin: 0 0 22px;
	padding: 0;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #4a4a44;
}

.ntm-fpc__ph-divider {
	display: block;
	width: 130px;
	max-width: 100%;
	height: 0;
	margin: 0 0 16px;
	border-top: 1px solid #dcd4c6;
}

.ntm-fpc .ntm-fpc__ph-note {
	margin: 0;
	padding: 0;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #4e9497;
}

/* The last item never adds space below. */
.ntm-fpc__ph > :last-child { margin-bottom: 0 !important; }

/* ----- Floor plan ------------------------------------------------------ */

.ntm-fpc__plan {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 40px 26px;
	background-color: #fff;
	text-align: center;
}

.ntm-fpc__plan-media {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	line-height: 0;
}

.ntm-fpc__plan-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	transition: opacity 0.2s ease;
}

.ntm-fpc .ntm-fpc__plan-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #1c6e73;
	text-decoration: none;
	transition: color 0.2s ease;
}

/* ----- Details --------------------------------------------------------- */

.ntm-fpc__details {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 30px 28px 28px;
	background-color: #f8f7f3;
}

.ntm-fpc .ntm-fpc__title {
	margin: 0 0 6px;
	padding: 0;
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #0b3b60;
}

.ntm-fpc .ntm-fpc__title a {
	color: inherit;
	text-decoration: none;
}

.ntm-fpc__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: var(--ntm-fpc-justify);
	column-gap: 4px;
	row-gap: 2px;
	margin-bottom: 12px;
}

.ntm-fpc__amount {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 700;
	color: #0b3b60;
}

.ntm-fpc__suffix {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	color: #5a6168;
}

.ntm-fpc__subtitle {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 14px;
	padding: 8px 12px;
	border-radius: 100px;
	background-color: #e3f1f3;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	color: #0b3b60;
}

.ntm-fpc__excerpt {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 1.6;
	color: #565c62;
	overflow-wrap: anywhere;
}

.ntm-fpc__excerpt p {
	margin: 0 0 0.75em;
}

.ntm-fpc__excerpt > :last-child {
	margin-bottom: 0;
}

/* ----- Button ---------------------------------------------------------- */

.ntm-fpc__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding-top: 24px;
}

.ntm-fpc--pin-yes .ntm-fpc__actions {
	margin-top: auto;
}

.ntm-fpc .ntm-fpc__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 24px;
	border-radius: 100px;
	background-color: #6db6b9;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition-property: color, background-color, border-color, box-shadow;
	transition-duration: 200ms;
}

.ntm-fpc__icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.ntm-fpc__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ntm-fpc a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/*
 * Fallback stacking for pages whose Elementor CSS has not been regenerated
 * yet. The responsive width controls override these once saved.
 */
@media (max-width: 1024px) {
	.ntm-fpc__photo,
	.ntm-fpc__plan { flex-basis: 50%; }
	.ntm-fpc__details { flex-basis: 100%; }
	.ntm-fpc__photo { min-height: 340px; }
}

@media (max-width: 767px) {
	.ntm-fpc__photo,
	.ntm-fpc__plan,
	.ntm-fpc__details { flex-basis: 100%; }
	.ntm-fpc__photo { min-height: 260px; }
}
