/**
 * floorplans_module.css
 *
 * Styles for template-parts/modules/floorplans_module.php
 * Two-column layout: table left (~55%), floorplan image right (~45%).
 * Table rows turn yellow on hover — CSS only, no JS.
 */

/* ---------------------------------------------------------------
   Section
--------------------------------------------------------------- */
.floorplans-module {
	padding: var(--section-pad);
}

/* ---------------------------------------------------------------
   Inner: two-column grid
--------------------------------------------------------------- */
.floorplans-module__inner {
	/*max-width: 1400px;*/
	margin: 0 auto;
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: 60px;
	align-items: start;
	background-color: #f2f2f2;
	padding:60px 40px
}

/* ---------------------------------------------------------------
   Left column
--------------------------------------------------------------- */
.floorplans-module__content {
	min-width: 0; /* prevent grid blowout */
}

/* ---------------------------------------------------------------
   Heading
--------------------------------------------------------------- */
.floorplans-module__heading {
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--black);
	margin: 0 0 48px;
}

/* ---------------------------------------------------------------
   Table
--------------------------------------------------------------- */
.floorplans-module__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	color: var(--black);
}

/* Column headers */
.floorplans-module__table thead th {
	padding: 10px 12px 10px 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #888888;
	text-align: left;
	border-top: 1px solid #cccccc;
	border-bottom: 1px solid #cccccc;
}

.floorplans-module__table thead th:last-child {
	padding-right: 0;
}

/* Body rows */
.floorplans-module__table tbody tr {
	border-bottom: 1px solid #cccccc;
	transition: background-color 0.15s ease;
}

.floorplans-module__table tbody tr:hover {
	background-color: var(--yellow);
}

.floorplans-module__table tbody td {
	padding: 14px 12px 14px 0;
	vertical-align: middle;
	line-height: 1.3;
}

.floorplans-module__table tbody td:last-child {
	padding-right: 0;
}

/* Floor name column — bold */
.floorplans-module__floor {
	font-weight: 700;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Total / footer row
--------------------------------------------------------------- */
.floorplans-module__table tfoot tr {
	border-top: 2px solid var(--black);
	border-bottom: none;
	transition: background-color 0.15s ease;
}

.floorplans-module__table tfoot tr:hover {
	background-color: var(--yellow);
}

.floorplans-module__table tfoot td {
	padding: 16px 12px 16px 0;
	font-weight: 700;
	vertical-align: middle;
}

.floorplans-module__table tfoot td:last-child {
	padding-right: 0;
}

/* ---------------------------------------------------------------
   Download / Brochure link
--------------------------------------------------------------- */
.floorplans-module__download {
	color: var(--black);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.floorplans-module__download:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------
   Right column: stacked floorplan images
   All images share the same grid cell — container grows to the
   tallest image naturally; no absolute positioning or overflow.
   JS adds/removes .is-active to control which is visible.
--------------------------------------------------------------- */
.floorplans-module__image-col {
	display: grid;
	min-width: 0;
}

.floorplans-module__image {
	grid-area: 1 / 1;
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.floorplans-module__image.is-active {
	opacity: 1;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */

/* Tablet: tighter padding */
@media (max-width: 1100px) {
	.floorplans-module {
		padding: 60px 0px;
	}

	.floorplans-module__inner {
		gap: 40px;
	}
}


@media (max-width: 992px) {

	.floorplans-module__inner {
		padding: 50px 20px;
	}

  .floorplans-module {
    padding: 0px 0px;
  }

}

/* Mobile: single column — image above table */
@media (max-width: 768px) {

	.floorplans-module__inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.floorplans-module__image-col {
		order: -1;
	}

	/* Heading sits in row 1; push stacked images down to row 2 */
	.floorplans-module__image-col .floorplans-module__heading {
		grid-row: 1;
		grid-column: 1;
	}

	.floorplans-module__image {
		grid-area: 2 / 1;
	}

	.floorplans-module__heading {
		margin-bottom: 24px;
	}

	.floorplans-module__table {
		font-size: 14px;
	}

	.floorplans-module__table thead th {
		font-size: 10px;
		padding: 8px 10px 8px 0;
	}

	.floorplans-module__table tbody td,
	.floorplans-module__table tfoot td {
		padding: 12px 10px 12px 0;
	}
}

@media (max-width: 480px) {
	.floorplans-module__table {
		font-size: 13px;
	}
}
