/* Sanctuary Floor Plans — real floor SVGs + tooltips */

:root {
	--sfp-primary: var(--e-global-color-primary, #003c77);
	--sfp-on-primary: var(--e-global-color-b8082ea, #ffffff);
	--sfp-text: var(--e-global-color-text, #333333);
	--sfp-muted: #6b7c93;
	--sfp-bg: #ffffff;
	--sfp-soft: #eef2f7;
	--sfp-line: rgba(0, 60, 119, 0.22);
	--sfp-accent: #7592C1;
	--sfp-unit-match: rgb(117, 146, 193, 0.55);
	--sfp-unit-hover: rgb(117, 146, 193, 0.78);
	--sfp-unit-dim: 0.22;
	--sfp-font: "Tenor Sans", sans-serif;
	--sfp-display: "Buenard", "Tenor Sans", serif;
}

.sfp-page,
.sfp {
	box-sizing: border-box;
}

.sfp-page *,
.sfp-page *::before,
.sfp-page *::after,
.sfp *,
.sfp *::before,
.sfp *::after {
	box-sizing: border-box;
}

.sfp-page {
	background:
		radial-gradient(1200px 600px at 15% -10%, rgba(0, 60, 119, 0.05), transparent 60%),
		var(--sfp-bg);
	color: var(--sfp-primary);
	font-family: var(--sfp-font);
}

.sfp {
	position: relative;
	max-width: 1680px;
	margin: 0 auto;
	padding: 32px 28px 56px;
	/* min-height: calc(100vh - 40px); */
}

.sfp__title {
	margin: 0 0 28px;
	text-align: center;
	font-family: var(--sfp-font);
	font-weight: 400;
	font-size: clamp(32px, 5vw, 48px);
	letter-spacing: 0.04em;
	color: var(--sfp-primary);
}
/* —— Top tabs (Floor Plans / Site map) —— */
.sfp-page .sfp__tab {
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: 1680px;
	margin: 0 auto;
	padding: 0 28px !important;
	border-bottom: 1px solid var(--sfp-line);
	font-family: var(--sfp-font);
}
 
.sfp-page .sfp__tab a {
	display: inline-flex;
	align-items: center;
	margin-bottom: -1px;
	padding: 16px 22px;
	border-bottom: 2px solid transparent;
	color: var(--sfp-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, border-color 0.2s ease;
}
 
.sfp-page .sfp__tab a:hover,
.sfp-page .sfp__tab a:focus-visible {
	color: var(--sfp-primary);
	outline: none;
}
 
.sfp-page .sfp__tab a.active {
	color: var(--sfp-primary);
	border-bottom-color: var(--sfp-primary);
	font-weight: 600;
}
 
@media (max-width: 760px) {
	.sfp-page .sfp__tab {
		padding: 0 16px;
		gap: 0;
	}
 
	.sfp-page .sfp__tab a {
		padding: 14px 14px;
		font-size: 12px;
	}
}

.sfp.is-plate .sfp__title,
.sfp.is-detail .sfp__title,
.sfp.is-plate .sfp__intro,
.sfp.is-detail .sfp__intro{
	display: none;
	/* font-size: clamp(22px, 3vw, 32px);
	margin-bottom: 16px; */
}

/* —— Landing —— */
.sfp__landing {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 36px;
	min-height: 50vh;
	animation: sfp-fade-in 0.45s ease;
}

.sfp.is-plate .sfp__landing,
.sfp.is-detail .sfp__landing {
	display: none;
}

.sfp__types {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: min(700px, 100%);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfp__types-row {
	width: 100%;
}

.sfp__types-row-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px 22px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sfp__types-row-list > li {
	flex: 0 0 calc((100% - 44px) / 3);
	max-width: calc((100% - 44px) / 3);
}

.sfp__type {
	appearance: none;
	border: 1px solid var(--sfp-primary);
	background: var(--sfp-primary);
	color: var(--sfp-on-primary);
	cursor: pointer;
	padding: 22px 16px 18px;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	width: 100%;
	font-family: inherit;
	height: 100%;
}

.sfp__type:hover,
.sfp__type:focus-visible,
.sfp__type.is-active {
	background: transparent;
	color: var(--sfp-primary);
	outline: none;
}
.sfp__type[data-sfp-type="penthouse"],
.sfp__type[data-sfp-type="townhouse"] {
    border-color: #d88219;
    background: #d88219;
    color: #fff;
}

.sfp__type[data-sfp-type="penthouse"]:hover,
.sfp__type[data-sfp-type="penthouse"]:focus-visible,
.sfp__type[data-sfp-type="penthouse"].is-active,
.sfp__type[data-sfp-type="townhouse"]:hover,
.sfp__type[data-sfp-type="townhouse"]:focus-visible,
.sfp__type[data-sfp-type="townhouse"].is-active {
    background: transparent;
    color: #d88219;
}

.sfp__type:hover {
	transform: translateY(-2px);
}

.sfp__type-symbol {
	display: block;
	font-size: clamp(20px, 5vw, 24px);
	letter-spacing: 0.06em;
	line-height: 1.1;
	margin-bottom: 8px;
	white-space: normal;
}

@media (max-width: 960px) {
	.sfp__title {
		font-size: 18px;
	}
}

.sfp__type-label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.08em;
	/* text-transform: uppercase; */
	opacity: 0.92;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}

.sfp__intro {
	margin: 0;
	text-align: center;
	font-size: 16px;
	line-height: 1.55;
	color: var(--sfp-text);
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.sfp__intro-kicker {
	display: block;
	margin-bottom: 8px;
	font-family: var(--sfp-display);
	font-size: 18px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sfp-primary);

}
.sfp__intro .sfp__intro-description{
	max-width: 640px;

}

/* —— Plate view: normal top toolbar —— */
.sfp__plate {
	display: none;
	animation: sfp-fade-in 0.4s ease;
}

.sfp.is-plate .sfp__plate {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 62vh;
}

.sfp__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 20px;
	padding: 4px 0 8px;
	border-bottom: 1px solid var(--sfp-line);
}

.sfp__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 160px;
}
 
.sfp__field-label {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sfp-muted);
}
 
/* Custom Dropdown Styling */
.sfp__select-wrap {
	position: relative;
	display: block;
	width: 100%;
  }
  .sfp__select-wrap button{
	background-color: unset !important;
	color: unset !important;
  }
  
  .sfp__custom-trigger {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--sfp-primary);
	background: #ffffff;
	color: var(--sfp-primary);
	font-family: var(--sfp-font);
	font-size: 15px;
	line-height: 1.3;
	padding: 10px 36px 10px 12px;
	cursor: pointer;
	border-radius: 0;
	min-width: 180px;
	width: 100%;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
  }
  
  .sfp__custom-trigger:focus-visible {
	outline: 1px solid var(--sfp-primary);
	outline-offset: 1px;
  }
  
  .sfp__custom-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--sfp-primary);
	border-top: none;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .sfp__custom-option {
	padding: 10px 12px;
	font-size: 14px;
	color: var(--sfp-primary);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
  }
  
  .sfp__custom-option:hover,
  .sfp__custom-option.is-selected {
	background: var(--sfp-soft);
	color: var(--sfp-primary);
	font-weight: 600;
  }
  
  /* Arrow position & rotation state */
  .sfp__select-arrow {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 12px;
	height: 8px;
	color: var(--sfp-primary);
	transform: translateY(-50%);
	transition: transform 0.18s ease;
	pointer-events: none;
	z-index: 2;
  }
  
  .sfp__select-wrap.is-open .sfp__select-arrow {
	transform: translateY(-50%) rotate(180deg) !important;
  }


.sfp__back {
	appearance: none;
	border: 1px solid var(--sfp-primary);
	background: var(--sfp-primary);
	color: var(--sfp-on-primary);
	font-family: inherit;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 10px 14px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	align-self: flex-end;
	font-size: 14px !important;
}

.sfp__back:hover,
.sfp__back:focus-visible {
	background:var(--sfp-on-primary);
	color: var(--sfp-primary);
	outline: none;
}
.sfp__back::before {
    content: "←";
    margin-right: 8px;
    font-size: 20px;
    line-height: 1;
}

.sfp__plate-hint {
	margin: 0 0 2px auto;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--sfp-text);
	align-self: flex-end;
	padding-bottom: 10px;
}

.sfp__plate-stage {
	position: relative;
	background: var(--sfp-soft);
	border: 1px solid var(--sfp-line);
	min-height: 480px;
	padding: 20px;
	overflow: hidden;
}

.sfp__plate-host {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 440px;
	width: 100%;
}

.sfp__plate-svg {
	width: 100%;
	max-width: 1100px;
	height: auto;
	display: block;
}

.sfp__empty {
	margin: 0;
	padding: 40px 24px;
	text-align: center;
	color: var(--sfp-muted);
	font-size: 16px;
}

/* Interactive units inside Engrain SVGs */
.sfp__plate-svg [data-fp-unit] {
	cursor: default;
	transition: fill 0.15s ease, opacity 0.15s ease, stroke 0.15s ease;
	pointer-events: none;
}

/* Every known unit is hoverable for tooltips; only filter matches stay highlighted */
.sfp__plate-svg [data-fp-unit][data-sfp-unit-id] {
	pointer-events: auto;
	cursor: pointer;
	outline: none;
}

.sfp__plate-svg [data-fp-unit].is-dim {
	opacity: 0.34;
	fill: #d7dde6 !important;
	stroke: transparent;
	stroke-width: 0;
}

.sfp__plate-svg [data-fp-unit].is-dim:hover,
.sfp__plate-svg [data-fp-unit].is-dim.is-tip,
.sfp__plate-svg [data-fp-unit].is-dim:focus {
	opacity: 0.72;
	fill: #c5ced9 !important;
	outline: none;
}

.sfp__plate-svg [data-fp-unit].is-match {
	opacity: 1;
	fill: var(--sfp-unit-match) !important;
	stroke: var(--sfp-primary);
	stroke-width: 0.6;
}

.sfp__plate-svg [data-fp-unit].is-match:hover,
.sfp__plate-svg [data-fp-unit].is-match.is-tip,
.sfp__plate-svg [data-fp-unit].is-match:focus {
	fill: var(--sfp-unit-hover) !important;
	outline: none;
}

.sfp__plate-svg [data-fp-unit].is-selected {
	fill: var(--sfp-accent) !important;
	opacity: 1;
}

/* Unit number labels drawn on the plate */
.sfp__plate-svg .sfp-unit-label {
	pointer-events: none;
	user-select: none;
	fill: #003c77;
	transition: opacity 0.15s ease, fill 0.15s ease;
}

.sfp__plate-svg .sfp-unit-label.is-dim {
	opacity: 0.25;
	fill: #6b7c93;
}

.sfp__plate-svg .sfp-unit-label.is-match {
	opacity: 1;
	fill: #003c77;
	font-weight: 700;
}

/* —— Hover tooltip (414-style, no view photo) —— */
.sfp__tip {
	position: absolute;
	z-index: 5;
	width: min(300px, calc(100% - 32px));
	padding: 18px 18px 16px;
	background: #fff;
	color: var(--sfp-primary);
	box-shadow: 0 10px 28px rgba(0, 36, 72, 0.18);
	pointer-events: none;
	transform: translate(-8px, -8px);
	animation: sfp-tip-in 0.16s ease;
}

.sfp__tip[hidden] {
	display: none !important;
}

.sfp__tip-name {
	font-family: var(--sfp-display);
	font-size: 28px;
	line-height: 1.15;
	font-weight: 400;
	color: var(--sfp-primary);
	margin: 0 0 10px;
}

.sfp__tip-rule {
	width: 100%;
	height: 1px;
	background: var(--sfp-accent);
	margin: 0 0 12px;
}

.sfp__tip-lines {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-family: var(--sfp-font);
	font-size: 14px;
	line-height: 1.4;
	color: var(--sfp-primary);
}

/* —— Detail overlay —— */
.sfp__detail {
    display: none;
    position: relative;
    width: 100%;
    padding: 28px 0 40px;
    animation: sfp-fade-in 0.35s ease;
}

.sfp.is-detail .sfp__detail {
    display: block;
}

.sfp.is-detail .sfp__plate {
    display: none;
}
.sfp__detail-inner {
    max-width: 1280px;
	margin-top: 50px;
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.sfp__detail-close {
	position: absolute;
	top: 10px;
	right: 0;
	appearance: none;
	border: none;
	background: transparent;
	color: var(--sfp-primary);
	font-family: inherit;
	font-size: 14px !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
}

.sfp__detail-close:hover {
	opacity: 0.7;
	outline: none;
	background-color: var(--sfp-primary) !important;
}
.sfp__detail-close:focus,
.sfp__detail-close:focus-visible
{
	background-color: unset !important;
	color: unset !important;
}

.sfp__x {
	position: relative;
	width: 14px;
	height: 14px;
	margin-top: -3px;
}

.sfp__x::before,
.sfp__x::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1.5px;
	background: currentColor;
}

.sfp__x::before {
	transform: rotate(45deg);
}

.sfp__x::after {
	transform: rotate(-45deg);
}

.sfp__detail-meta {
	padding-top: 12px;
}

.sfp__eyebrow {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sfp-muted);
}

.sfp__rule {
	width: 48px;
	height: 1px;
	background: var(--sfp-accent);
	margin: 0 0 16px;
	border: 0;
}

.sfp__plan-name {
	margin: 0 0 28px;
	font-family: var(--sfp-display);
	font-weight: 400;
	font-size: clamp(36px, 5vw, 52px);
	line-height: 1.1;
	color: var(--sfp-primary);
}

.sfp__config {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 16px;
	line-height: 1.45;
	color: var(--sfp-text);
}

.sfp__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sfp__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 12px 18px;
	border: 1px solid var(--sfp-primary);
	background: transparent;
	color: var(--sfp-primary);
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sfp__btn:hover,
.sfp__btn:focus-visible {
	background: var(--sfp-primary);
	color: var(--sfp-on-primary);
	outline: none;
}

.sfp__btn--solid {
	background: var(--sfp-primary);
	color: var(--sfp-on-primary);
}

.sfp__btn--solid:hover,
.sfp__btn--solid:focus-visible {
	background: transparent;
	color: var(--sfp-primary);
}

.sfp__btn[hidden],
.sfp__btn.is-hidden {
	display: none;
}

.sfp__plan-art {
	position: relative;
	background: var(--sfp-soft);
	border: 1px solid var(--sfp-line);
	padding: 24px;
	min-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sfp__plan-viewport {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sfp__plan-art img {
	width: 100%;
	max-width: 720px;
	height: auto;
	display: block;
}

.sfp__zoom,
.sfp__zoom-hint {
	display: none;
}

.sfp__unit-chip {
	margin: 0 0 18px;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sfp-muted);
}

@keyframes sfp-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sfp-slide-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sfp-tip-in {
	from {
		opacity: 0;
		transform: translate(-8px, 0);
	}
	to {
		opacity: 1;
		transform: translate(-8px, -8px);
	}
}

@media (max-width: 960px) {
	.sfp__detail-inner {
		grid-template-columns: 1fr;
	}

	.sfp__plate-hint {
		margin-left: 0;
		width: 100%;
		padding-bottom: 0;
	}
}

@media (max-width: 760px) {
	.sfp {
		padding: 24px 16px 40px;
	}

	.sfp__types {
		gap: 12px;
	}

	.sfp__types-row-list {
		gap: 12px;
	}

	.sfp__types-row-list > li {
		flex: 0 0 calc((100% - 12px) / 2);
		max-width: calc((100% - 12px) / 2);
	}

	.sfp__type {
		padding: 16px 10px 14px;
	}

	.sfp__type-symbol {
		font-size: 20px;
	}

	.sfp__select {
		min-width: 140px;
		width: 100%;
	}

	.sfp__field {
		flex: 1 1 140px;
	}

	.sfp__plate-stage {
		min-height: 320px;
		padding: 12px;
	}

	.sfp__plate-host {
		min-height: 280px;
	}
}

.sfp-preview-note {
	max-width: 1680px;
	margin: 0 auto;
	padding: 12px 28px 0;
	font-family: var(--sfp-font);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--sfp-muted);
}
@media (max-width: 760px) {
    .sfp.is-detail {
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }

    .sfp.is-detail .sfp__plate {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .sfp.is-detail .sfp__detail {
        position: relative;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 20px 0 50px;
    }

    .sfp.is-detail .sfp__detail-inner {
        display: flex;
        flex-direction: column;
        gap: 24px;
        height: auto;
    }

    .sfp.is-detail .sfp__detail-meta {
        width: 100%;
    }

    .sfp.is-detail .sfp__plan-art {
        width: 100%;
        min-height: 280px;
        height: auto;
    }
}

@media (min-width: 961px) {
	.sfp__plan-art {
		height: min(78vh, 820px);
		min-height: 520px;
		padding: 0;
		overflow: hidden;
	}

	.sfp__zoom {
		display: flex;
		align-items: center;
		gap: 6px;
		position: absolute;
		top: 12px;
		right: 12px;
		z-index: 2;
	}

	.sfp__zoom-btn {
		appearance: none;
		width: 36px;
		height: 36px;
		margin: 0;
		padding: 0;
		border: 1px solid var(--sfp-primary);
		background: var(--sfp-bg);
		color: var(--sfp-primary);
		font-family: inherit;
		font-size: 20px;
		line-height: 1;
		cursor: pointer;
	}

	.sfp__zoom-btn--reset {
		width: auto;
		padding: 0 12px;
		font-size: 11px;
		letter-spacing: 0.12em;
		text-transform: uppercase;
	}

	.sfp__zoom-btn:hover,
	.sfp__zoom-btn:focus-visible {
		background: var(--sfp-primary);
		color: var(--sfp-on-primary);
		outline: none;
	}

	.sfp__zoom-btn:disabled {
		opacity: 0.35;
		cursor: default;
	}

	.sfp__zoom-btn:disabled:hover,
	.sfp__zoom-btn:disabled:focus-visible {
		background: var(--sfp-bg);
		color: var(--sfp-primary);
	}

	.sfp__zoom-level {
		min-width: 52px;
		text-align: center;
		font-size: 12px;
		letter-spacing: 0.08em;
		color: var(--sfp-primary);
	}

	.sfp__zoom-hint {
		display: block;
		position: absolute;
		left: 16px;
		bottom: 12px;
		z-index: 2;
		margin: 0;
		font-size: 11px;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--sfp-muted);
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	.sfp__plan-art.is-zoomed .sfp__zoom-hint {
		opacity: 0;
	}

	.sfp__plan-viewport {
		position: absolute;
		inset: 52px 16px 36px;
		overflow: hidden;
		cursor: default;
		touch-action: none;
	}

	.sfp__plan-art.is-zoomed .sfp__plan-viewport {
		cursor: grab;
	}

	.sfp__plan-art.is-panning .sfp__plan-viewport {
		cursor: grabbing;
	}

	.sfp__plan-viewport:focus-visible {
		outline: 1px solid var(--sfp-primary);
		outline-offset: -1px;
	}

	.sfp__plan-art img {
		position: absolute;
		left: 0;
		top: 0;
		width: auto;
		max-width: none;
		max-height: none;
		height: auto;
		transform-origin: 0 0;
		user-select: none;
		-webkit-user-drag: none;
		pointer-events: none;
	}
}