/* Earls Gate interactive site plan (styles from the approved design). */

.eg-sp-root {
	position: relative;
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #424848;
}

/* Static fallback (no JavaScript, search engines). Hidden while the script builds the plan. */
.eg-sp-fallback img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

.eg-sp-fallback__side {
	margin: 16px 0 4px;
	font-weight: 600;
	color: #152940;
}

.eg-sp-fallback ul {
	margin: 0;
	padding-left: 20px;
}

.eg-js .eg-sp-root:not(.is-ready) {
	width: 100%;
	aspect-ratio: 1415 / 1000;
	max-height: 720px;
	overflow: hidden;
	border-radius: 20px;
	background: #f4f5f6;
}

.eg-js .eg-sp-root:not(.is-ready) .eg-sp-fallback {
	visibility: hidden;
}

/* Frame */
.eg-sp {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d9dde0;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(42, 79, 124, 0.08);
	line-height: normal;
}

.eg-sp *,
.eg-sp *::before,
.eg-sp *::after {
	box-sizing: border-box;
}

.eg-sp__map {
	position: relative;
	min-width: 0;
	background: #f4f5f6;
}

.eg-sp__vp {
	position: relative;
	width: 100%;
	aspect-ratio: 1415 / 880;
	overflow: hidden;
	border-radius: 14px;
	background: #f4f5f6;
	outline: none;
	-webkit-user-select: none;
	user-select: none;
}

.eg-sp__vp:focus-visible {
	box-shadow: 0 0 0 3px rgba(42, 79, 124, 0.35);
}

.eg-sp__stage {
	position: absolute;
	inset: 0;
	transform-origin: 0 0;
	will-change: transform;
}

.eg-sp__base {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

.eg-sp__tint {
	position: absolute;
	inset: 0;
	background: #2a4f7c;
	opacity: 0.07;
	mix-blend-mode: multiply;
	pointer-events: none;
}

.eg-sp__svg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.eg-sp__veil {
	fill: #f7f8f9;
	opacity: 0.74;
	fill-rule: evenodd;
	pointer-events: none;
}

.eg-sp__site {
	fill: none;
	stroke: #152940;
	stroke-width: 1.8;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.eg-sp__fac {
	cursor: pointer;
}

.eg-sp__fac-area {
	fill: #2a4f7c;
	fill-opacity: 0;
	transition: fill-opacity 0.18s;
}

.eg-sp__fac-edge {
	fill: none;
	stroke: #152940;
	stroke-width: 1.4;
	stroke-dasharray: 6 3;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.eg-sp__sides {
	pointer-events: none;
}

.eg-sp__sides path {
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	transition: fill 0.2s;
}

.eg-sp__plot {
	cursor: pointer;
	outline: none;
}

.eg-sp__plot path {
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	transition: fill 0.2s, transform 0.2s;
}

.eg-sp__leader {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s;
}

.eg-sp__leader line,
.eg-sp__fac-line {
	stroke: #152940;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	pointer-events: none;
}

.eg-sp__leader circle {
	fill: #fff;
	stroke: #152940;
	stroke-width: 1.3;
	vector-effect: non-scaling-stroke;
}

/* Labels on the map */
.eg-sp__labels {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.eg-sp__at {
	position: absolute;
	white-space: nowrap;
	pointer-events: none;
}

.eg-sp__place {
	display: block;
	padding: 3px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 1px 3px rgba(21, 41, 64, 0.14);
	font-size: 12.5px;
	font-weight: 600;
	color: #424848;
}

.eg-sp__name {
	display: block;
	padding: 5px 11px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(21, 41, 64, 0.22), 0 0 0 1px rgba(21, 41, 64, 0.08);
	color: #152940;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.18s, transform 0.18s;
}

.eg-sp__name-t {
	display: block;
}

.eg-sp__name-a {
	display: block;
	margin-top: 1px;
	font-size: 12px;
	font-weight: 400;
	color: #5c6466;
}

.eg-sp__tag-at {
	z-index: 2;
	pointer-events: auto;
	cursor: pointer;
}

.eg-sp__tag {
	display: block;
	padding: 2px 9px;
	border: 1px solid #152940;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(21, 41, 64, 0.14);
	color: #152940;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	transition: background 0.15s, color 0.15s;
}

.eg-sp__tag.is-on {
	border-color: #2a4f7c;
	background: #2a4f7c;
	color: #fff;
}

.eg-sp__card-at {
	position: absolute;
	z-index: 4;
	pointer-events: none;
}

.eg-sp__card {
	min-width: 230px;
	padding: 10px 14px 11px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(21, 41, 64, 0.2), 0 1px 2px rgba(21, 41, 64, 0.08);
}

.eg-sp__card b {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #152940;
}

.eg-sp__card span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: #424848;
	white-space: nowrap;
}

/* Zoom buttons and hint */
.eg-sp__ctl {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(21, 41, 64, 0.14);
}

.eg-sp__ctl button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #152940;
	font-family: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.eg-sp__ctl button + button {
	border-top: 1px solid #d9dde0;
}

/* On touch screens the zoom buttons are 44 px, easy to tap. */
@media (pointer: coarse) {
	.eg-sp__ctl button {
		width: 44px;
		height: 44px;
	}
}

.eg-sp__ctl button.is-reset {
	font-size: 17px;
}

.eg-sp__ctl button:hover:not(:disabled) {
	background: #f4f5f6;
}

.eg-sp__ctl button:disabled {
	cursor: default;
}

.eg-sp__hint {
	position: absolute;
	left: 50%;
	bottom: 12px;
	z-index: 6;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(21, 41, 64, 0.9);
	color: #fff;
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
	transition: opacity 0.4s;
}

/* Side panel */
.eg-sp__panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
}

.eg-sp__head {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 22px 16px;
	border-bottom: 1px solid #d9dde0;
}

.eg-sp__head-t {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.eg-sp__title {
	font-size: 18px;
	font-weight: 600;
	color: #152940;
}

.eg-sp__sub {
	font-size: 14px;
	color: #5c6466;
}

.eg-sp__switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: #424848;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

/* An invisible touch area of 44 px around the "Names" switch. */
.eg-sp__switch::after {
	position: absolute;
	inset: -5px -4px;
	content: "";
}

.eg-sp__track {
	position: relative;
	flex: 0 0 auto;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: #cfd5da;
	transition: background 0.2s;
}

.eg-sp__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}

.eg-sp__switch.is-on .eg-sp__track {
	background: #2a4f7c;
}

.eg-sp__switch.is-on .eg-sp__thumb {
	transform: translateX(16px);
}

.eg-sp__list {
	display: grid;
	flex: 1 1 auto;
	align-content: start;
	gap: 2px 8px;
	min-height: 160px;
	padding: 6px 12px 12px;
	overflow-x: hidden;
	overflow-y: auto;
}

.eg-sp__group {
	grid-column: 1 / -1;
	margin: 12px 10px 4px;
	font-size: 13px;
	font-weight: 600;
	color: #152940;
}

.eg-sp__group--fac {
	margin-top: 14px;
}

.eg-sp__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #424848;
	font-size: 15px;
	cursor: pointer;
	outline-offset: 1px;
	transition: background 0.15s, color 0.15s;
}

.eg-sp__row.is-on {
	background: #2a4f7c;
	color: #fff;
}

.eg-sp__dot {
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border-radius: 3px;
}

.eg-sp__row.is-on .eg-sp__dot {
	box-shadow: 0 0 0 1.5px #fff;
}

.eg-sp__ring {
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
}

.eg-sp__row-t {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.eg-sp__row-l {
	line-height: 1.3;
}

.eg-sp__row-a {
	font-size: 13px;
	line-height: 1.3;
	color: #5c6466;
	transition: color 0.15s;
}

.eg-sp__row.is-on .eg-sp__row-a {
	color: rgba(255, 255, 255, 0.8);
}

.eg-sp__sel {
	flex: 0 0 auto;
	padding: 14px 16px 0;
	border-top: 1px solid #d9dde0;
}

.eg-sp__selcard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
	padding: 16px 18px;
	border-radius: 14px;
	background: #152940;
	color: #fff;
}

.eg-sp__selmeta {
	font-size: 14px;
	font-weight: 600;
	color: #8abd3a;
}

.eg-sp__seltitle {
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.eg-sp__selarea {
	font-size: 17px;
	line-height: 1.3;
}

.eg-sp__seltext {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.eg-sp__enquire {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #8abd3a;
	color: #152940;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.eg-sp__enquire:hover,
.eg-sp__enquire:focus-visible {
	background: #7cad30;
	color: #152940;
}

.eg-sp__enquire--s {
	margin-top: 0;
	padding: 9px 18px;
}

.eg-sp .eg-sp__pick {
	margin: 0 6px 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #5c6466;
	text-wrap: wrap;
}

.eg-sp__legend {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding: 12px 22px;
	border-top: 1px solid #d9dde0;
	font-size: 13px;
	color: #424848;
}

.eg-sp__key {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.eg-sp__key-dot {
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

/* Without side panel */
.eg-sp__compact {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	padding: 16px 20px;
	border-top: 1px solid #d9dde0;
	background: #fff;
}

.eg-sp__compact-l {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	font-size: 14px;
	color: #424848;
}

.eg-sp__compact-l .eg-sp__key-dot {
	width: 13px;
	height: 13px;
	border-radius: 4px;
}

.eg-sp__compact-sel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.eg-sp__compact-t {
	font-size: 15px;
	color: #152940;
}

.eg-sp__compact-t strong {
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.eg-sp *,
	.eg-sp *::before,
	.eg-sp *::after {
		transition-duration: 0.01ms !important;
	}
}
