/* Secção Planta — lista + SVG interactivo */

.ligarena-planta-section {
	--ligarena-planta-navy: #001c48;
	--ligarena-planta-cyan: #5bc8e1;
	--ligarena-planta-join-top: var(--ligarena-contact-footer-slope, clamp(4rem, 8vw, 7rem));
	--ligarena-planta-join-bottom: var(--ligarena-contact-footer-slope, clamp(4rem, 8vw, 7rem));
	/* Hexágono regular (flat-top): lados iguais → aspect-ratio 2/√3 */
	--ligarena-planta-hex: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
	--ligarena-planta-hex-ratio: 1.1547005;
	position: relative;
	z-index: 0;
	width: 100vw;
	max-width: 100vw;
	margin: calc(-1 * var(--ligarena-planta-join-top)) calc(50% - 50vw) 0;
	padding: calc(var(--ligarena-planta-join-top) + clamp(3.5rem, 7vw, 5.5rem))
		var(--ligarena-site-pad-x, 10vw)
		calc(var(--ligarena-planta-join-bottom) + clamp(4rem, 8vw, 6rem));
	box-sizing: border-box;
	background: var(--ligarena-planta-navy);
	color: #ffffff;
	overflow: visible;
}

.page-espacos .entry-content > .ligarena-planta-section,
.page-espacos .entry-content.is-layout-constrained > .ligarena-planta-section {
	max-width: none !important;
	margin-block-start: calc(-1 * var(--ligarena-planta-join-top)) !important;
	margin-top: calc(-1 * var(--ligarena-planta-join-top)) !important;
	margin-block-end: 0 !important;
	margin-bottom: 0 !important;
}

.ligarena-planta-section__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.ligarena-planta-section__header {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(0.65rem, 1.2vw, 1rem);
	margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
}

.ligarena-planta-section__title {
	margin: 0;
	color: #ffffff;
}

.ligarena-planta-section__rule {
	display: block;
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.45);
	transform: scaleY(0.5);
	transform-origin: center;
}

.ligarena-planta-section__layout {
	display: grid;
	grid-template-columns: minmax(20rem, 30rem) minmax(0, 1fr);
	gap: clamp(2.75rem, 6vw, 5.5rem);
	align-items: start;
}

.ligarena-planta-section__group + .ligarena-planta-section__group {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.ligarena-planta-section__group-title {
	margin: 0 0 clamp(0.85rem, 1.5vw, 1.25rem);
	color: #ffffff;
}

.ligarena-planta-section__items {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.4rem;
}

.ligarena-planta-section__item-btn {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.95rem;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0.7rem 0.5rem 0.3rem;
	border: 0;
	background: transparent;
	color: #8aa0b5;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: color 0.4s ease;
}

.ligarena-planta-section__item.is-active .ligarena-planta-section__item-btn,
.ligarena-planta-section__item-btn:hover,
.ligarena-planta-section__item-btn:focus-visible {
	background: transparent;
	color: #ffffff;
	outline: none;
}

.ligarena-planta-section__hex {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.45rem;
	height: auto;
	aspect-ratio: var(--ligarena-planta-hex-ratio);
	background: #2f5f82;
	clip-path: var(--ligarena-planta-hex);
	color: #ffffff;
	transform: scale(1);
	transition:
		background-color 0.4s ease,
		color 0.4s ease,
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ligarena-planta-section__item.is-active .ligarena-planta-section__hex,
.ligarena-planta-section__item-btn:hover .ligarena-planta-section__hex,
.ligarena-planta-section__item-btn:focus-visible .ligarena-planta-section__hex {
	background: var(--ligarena-planta-cyan);
	color: #ffffff;
	transform: scale(1.08);
}

.ligarena-planta-section__hex-label {
	font-family: var(--ligarena-font-heading, "LigaPortugal", "Montserrat", sans-serif);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
}

.ligarena-planta-section__item[data-planta-space="wc"] .ligarena-planta-section__hex-label {
	font-size: 0.72rem;
	letter-spacing: 0.02em;
}

.ligarena-planta-section__item-label {
	position: relative;
	justify-self: start;
	width: fit-content;
	max-width: 100%;
	font-family: var(--ligarena-font-heading, "LigaPortugal", "Montserrat", sans-serif);
	font-size: clamp(1.12rem, 0.92rem + 0.7vw, 1.5rem);
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.25;
	text-transform: uppercase;
	transition: color 0.4s ease;
}

.ligarena-planta-section__item-label::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.12em;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.ligarena-planta-section__item.is-active .ligarena-planta-section__item-label,
.ligarena-planta-section__item-btn:hover .ligarena-planta-section__item-label,
.ligarena-planta-section__item-btn:focus-visible .ligarena-planta-section__item-label {
	color: #ffffff;
}

.ligarena-planta-section__item.is-active .ligarena-planta-section__item-label::after,
.ligarena-planta-section__item-btn:hover .ligarena-planta-section__item-label::after,
.ligarena-planta-section__item-btn:focus-visible .ligarena-planta-section__item-label::after {
	transform: scaleX(1);
}

.ligarena-planta-section__item-area {
	font-family: var(--ligarena-font-heading, "LigaPortugal", "Montserrat", sans-serif);
	font-size: clamp(1.05rem, 0.88rem + 0.55vw, 1.35rem);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.25;
	white-space: nowrap;
	opacity: 1;
	transition: color 0.4s ease;
}

.ligarena-planta-section__item.is-active .ligarena-planta-section__item-area,
.ligarena-planta-section__item-btn:hover .ligarena-planta-section__item-area,
.ligarena-planta-section__item-btn:focus-visible .ligarena-planta-section__item-area {
	color: #ffffff;
}

.ligarena-planta-section__map {
	position: relative;
	width: 100%;
	min-width: 0;
	align-self: center;
}

.ligarena-planta-section__map-base {
	position: relative;
	width: 100%;
	background: var(--ligarena-planta-navy);
}

.ligarena-planta-section__svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	overflow: visible;
}

/* Overlay absoluto — mesma técnica que mapa_interativo.html */
.ligarena-planta-section__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	overflow: visible;
	pointer-events: none;
}

.ligarena-planta-section__art,
.ligarena-planta-section__art * {
	pointer-events: none;
}

.ligarena-planta-section__mask,
.ligarena-planta-section__mask path {
	fill: var(--ligarena-planta-navy, #001c48);
	pointer-events: none;
}

.ligarena-planta-section__zones {
	pointer-events: none;
}

.ligarena-planta-section__zone {
	fill: transparent;
	stroke: none;
	pointer-events: fill !important;
	cursor: pointer;
}

.ligarena-planta-section__highlight {
	pointer-events: all;
	cursor: pointer;
	outline: none;
}

.ligarena-planta-section__highlight-fill {
	opacity: 0;
	pointer-events: fill;
	transition: opacity 0.35s ease;
	fill: var(--ligarena-planta-cyan);
}

.ligarena-planta-section__highlight.is-active .ligarena-planta-section__highlight-fill {
	opacity: 0.6;
}

.ligarena-planta-section__hex-marker {
	pointer-events: auto;
	cursor: pointer;
	outline: none;
}

.ligarena-planta-section__hex-marker polygon {
	fill: #2f5f82;
	stroke: var(--ligarena-planta-navy);
	stroke-width: 2;
	transition:
		fill 0.35s ease,
		transform 0.35s ease;
	transform-box: fill-box;
	transform-origin: center;
}

.ligarena-planta-section__hex-marker text {
	fill: #ffffff;
	font-family: var(--ligarena-font-heading, "LigaPortugal", "Montserrat", sans-serif);
	font-size: 15px;
	font-weight: 700;
	text-anchor: middle;
	dominant-baseline: central;
	pointer-events: none;
}

.ligarena-planta-section__hex-marker[data-planta-space="wc"] text {
	font-size: 11px;
	letter-spacing: 0.02em;
}

.ligarena-planta-section__hex-marker.is-active polygon,
.ligarena-planta-section__hex-marker:hover polygon {
	fill: var(--ligarena-planta-cyan);
	transform: scale(1.12);
}

@media (max-width: 980px) {
	.ligarena-planta-section__layout {
		grid-template-columns: 1fr;
		gap: clamp(2.25rem, 5vw, 3.5rem);
	}

	.ligarena-planta-section__title {
		white-space: normal;
	}

	.ligarena-planta-section__map {
		order: -1;
	}
}

@media (max-width: 720px) {
	.ligarena-planta-section {
		padding-block: calc(var(--ligarena-planta-join-top) + clamp(2.5rem, 8vw, 3.5rem))
			calc(var(--ligarena-planta-join-bottom) + clamp(3rem, 8vw, 4.5rem));
	}

	.ligarena-planta-section__header {
		flex-direction: column;
		align-items: stretch;
		gap: 0.7rem;
	}

	.ligarena-planta-section__rule {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ligarena-planta-section__item-btn,
	.ligarena-planta-section__hex,
	.ligarena-planta-section__item-label,
	.ligarena-planta-section__item-label::after,
	.ligarena-planta-section__item-area,
	.ligarena-planta-section__zone,
	.ligarena-planta-section__highlight,
	.ligarena-planta-section__hex-marker polygon {
		transition: none;
	}
}
