.plan-subplans {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: stretch;
	margin: 0 auto;
	width: 1550px;
	box-sizing: border-box;
}

.plan-subplans__right {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	width: calc(100% + (50vw - 50%));
	margin-right: calc(-50vw + 50%);
}

.plan-subplans__right:has(.plan-subplans__slider-track .plan-subplans__slide:only-child) {
	width: 100%;
	margin-right: 0;
}

.plan-subplans__left {
	display: flex;
	flex-direction: column;
	width: 500px;
}

.plan-subplans__panel {
	display: none;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.plan-subplans__panel--active {
	display: flex;
	flex-direction: column;
}

.plan-subplans__brochure-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
}

.plan-subplans__title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.plan-subplans__table {
	width: 100%;
	border-collapse: collapse;
	border: none;
}

.plan-subplans__table th,
.plan-subplans__table td {
	padding: 0.5rem 0.75rem 0.5rem 0;
	text-align: left;
	background: none;
	border: none;
}

.plan-subplans__table th {
	font-weight: 600;
	color: #444;
	width: 35%;
}

.plan-subplans__table td {
	color: #333;
}

/* Brochure buttons – full width, stacked, blue */
.plan-subplans__brochure-btn {
	display: block;
	width: 70%;
	box-sizing: border-box;
	padding: 0.75rem 1.5rem;
	background: #3e4e59;
	color: #fff !important;
	text-align: center;
	text-decoration: none;
	font-size: 0.95rem;
	border: none;
	font-weight: 500;
	text-transform: uppercase;
	border-radius: 0;
	cursor: pointer;
}

.plan-subplans__brochure-btn:hover {
	background: #2d3a42;
	color: #fff !important;
}

.plan-subplans__brochure-btn--disabled {
	background: #ccc;
	color: #888;
	cursor: not-allowed;
	pointer-events: none;
}

/* Toggle */
.plan-subplans__toggle {
	display: flex;
	gap: 0.5rem;
    justify-content:end !important;
}

.plan-subplans__toggle-btn {
	padding: 0.5rem 1rem;
	border: none;
	background: #fff;
	cursor: pointer;
	font-size: 0.95rem;
	border-radius: 4px;
}

.plan-subplans__toggle-btn:hover {
	background: #ffcc3e;
	color: #3e4e59;
}

.plan-subplans__toggle-btn--active {
	background: #ffcc3e;
	color: #3e4e59;
	border: none;
}

.plan-subplans__slider {
	position: relative;
	overflow: hidden;
	height: 800px;
}

.plan-subplans__slider-track {
	--slide-index: 0;
	display: flex;
	flex-wrap: nowrap;
	height: 100%;
	transition: transform 0.35s ease;
	transform: translateX(calc(-1 * var(--slide-index) / var(--slide-total) * 100%));
}

.plan-subplans__slide {
	flex: 0 0 66.666%;
	width: 66.666%;
	height: 100%;
	min-width: 0;
	margin-right: 10px;
}

.plan-subplans__slide:last-child {
	margin-right: 0;
}

.plan-subplans__slide:only-child {
	flex: 0 0 100%;
	width: 100%;
}


.plan-subplans__slide {
	position: relative;
}

.plan-subplans__slide-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: #f8f8f8;
}

.plan-subplans__slide-img[hidden] {
	display: none !important;
}

.plan-subplans__slide-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.plan-subplans__nav {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	/* Keep pagination inside the 1550px box (right column in-box width) */
	max-width: calc(1550px - 500px - 2rem);
}

/* Pagination bar – progress bar + current/total text */
.plan-subplans__pagination-bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

.plan-subplans__pagination-track {
	flex: 1;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
}

.plan-subplans__pagination-fill {
	height: 100%;
	background: #3e4e59;
	border-radius: 4px;
	transition: width 0.35s ease;
}

.plan-subplans__pagination-text {
	font-size: 0.9rem;
	font-weight: 500;
	color: #444;
	min-width: 3ch;
}

.plan-subplans__slide-img--floorplan img {
	border: 1px solid #333F4830;
}

@media (max-width: 1550px) {

	.plan-subplans {

		width: 100% !important;
	}
	.plan-subplans__right {
		width: 100% !important;
		margin-right: 0;
	}

	.plan-subplans__slide {
		flex: 0 0 var(--slide-width-px, 100%);
		width: var(--slide-width-px, 100%);
		margin-right: 0;
	}

	.plan-subplans__nav {
		max-width: 100%;
	}
}

@media (max-width: 1200px) {
	.plan-subplans {
		flex-direction: column;
		gap: 1.5rem;
		width:100%;
	}

	.plan-subplans__left {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}

	.plan-subplans__right {
		width: 100%;
		margin-right: 0;
		order: -1;
	}

	.plan-subplans__slider {
		width: 100%;
		height: auto;
		min-height: 280px;
		height:400px;

		aspect-ratio: 4 / 3;
	}

	.plan-subplans__slide {
		flex: 0 0 100%;
		width: 100%;
		margin-right: 0;
	}

	.plan-subplans__title {
		font-size: 1.25rem;
	}

	.plan-subplans__nav {
		flex-wrap: wrap;
		gap: 0.75rem;
		margin-top: 0.75rem;
		max-width: none;
	}
	.plan-subplans__brochure-btn {
		width:100% !important;
	}
}

@media (max-width: 768px) {
	.plan-subplans__title {
		font-size: 0.8rem;
	}

	.plan-subplans__slider {
		aspect-ratio: 3 / 2;
		height:300px;
		min-height: 220px;
	}

	.plan-subplans__nav {
		justify-content: center;
	}
}