/* =========================================================================
   Home Designs listing — /home-designs/
   Replica of the live Bricks archive. Measurements taken from the live page.

   Palette: teal #008083, navy #304056, classic grey #5A5B5D, ink #1a1a1a,
            label #363636, intro band #f7f7f7.

   Centuma is already loaded globally by public/styles.css.
   ====================================================================== */

.wscf-hd,
.wscf-hd-archive {
	--wscf-hd-teal: #008083;
	--wscf-hd-navy: #304056;
	--wscf-hd-grey: #5a5b5d;
	--wscf-hd-ink: #1a1a1a;
	--wscf-hd-text: #363636;
	font-family: "Centuma", Helvetica, Arial, sans-serif;
}

.wscf-hd *,
.wscf-hd-archive *,
.wscf-hd *::before,
.wscf-hd-archive *::before,
.wscf-hd *::after,
.wscf-hd-archive *::after {
	box-sizing: border-box;
}

.wscf-hd-container {
	width: 100%;
	max-width: 1430px;
	margin: 0 auto;
	padding: 0 20px;
}

/* -------------------------------------------------------------------------
   Hero banner
   ---------------------------------------------------------------------- */

.wscf-hd-hero {
	line-height: 0;
}

.wscf-hd-hero .wscf-hd-hero-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	object-position: top center;
}

/* -------------------------------------------------------------------------
   Intro band
   ---------------------------------------------------------------------- */

.wscf-hd-intro {
	background-color: #f7f7f7;
	padding: 44px 20px 66px;
}

.wscf-hd-intro-inner {
	max-width: 970px;
	margin: 0 auto;
	text-align: center;
}

.wscf-hd-intro-title {
	color: var(--wscf-hd-navy);
	font-size: 48px;
	font-weight: 300;
	text-align: center;
	margin: 0 0 19px;
	padding: 0;
	line-height: normal;
	text-transform: none;
}

.wscf-hd-intro-copy {
	color: var(--wscf-hd-navy);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 300;
	margin: 0;
	padding: 0;
}

/* The archive intro is one paragraph. The category pages carry the two or three
   the term descriptions hold, so they need something between them. */
.wscf-hd-intro-copy + .wscf-hd-intro-copy {
	margin-top: 18px;
}

/* -------------------------------------------------------------------------
   Filter panel
   ---------------------------------------------------------------------- */

.wscf-hd-filter-band {
	padding: 58px 0 59px;
}

.wscf-hd-filter {
	width: 100%;
	max-width: 1032px;
	margin: 0 auto;
	background-color: var(--wscf-hd-navy);
	padding: 31px 30px 30px;
	display: flex;
	flex-direction: column;
	row-gap: 21px;
}

.wscf-hd-filter-title {
	color: #fff;
	font-size: 32px;
	font-weight: 300;
	text-align: center;
	margin: 0;
	padding: 0;
	line-height: normal;
	text-transform: none;
}

.wscf-hd-filter-form {
	margin: 0;
}

.wscf-hd .wscf-hd-filter-list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	column-gap: 2.67%;
	row-gap: 17px;
	list-style: none;
	/* Same 15px the house & land panel uses. Without it the Search button sits
	   hard against the bottom row of dropdowns. */
	margin: 15px 0;
	padding: 0;
}

.wscf-hd .wscf-hd-drop {
	width: 31.5%;
	position: relative;
	background: #fff;
	border: 0;
	margin: 0 0 5px;
	padding: 0;
	list-style: none;
}

.wscf-hd-drop fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.wscf-hd-drop-label {
	position: relative;
	width: 100%;
	cursor: pointer;
	padding: 15px 10px 15px 20px;
	display: flex;
	align-items: center;
	column-gap: 10px;
	font-size: 17px;
	color: var(--wscf-hd-navy);
	line-height: normal;
	text-transform: uppercase;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-position: right 10px center;
	background-repeat: no-repeat;
	background-size: 20px auto;
}

.wscf-hd-drop-label::before {
	content: "";
	display: inline-block;
	width: 12.59px;
	height: 13.17px;
	flex: none;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.wscf-hd-drop--bed .wscf-hd-drop-label::before {
	background-image: url(images/bed-icon.svg);
	width: 23px;
	height: 14px;
}

.wscf-hd-drop--bath .wscf-hd-drop-label::before {
	background-image: url(images/bathtub.svg);
}

.wscf-hd-drop--cars .wscf-hd-drop-label::before {
	background-image: url(images/cars-icon.svg);
	width: 22px;
	height: 14px;
}

.wscf-hd-drop--house-type .wscf-hd-drop-label::before,
.wscf-hd-drop--collection .wscf-hd-drop-label::before {
	background-image: url(images/home.svg);
}

.wscf-hd-drop--lot-width .wscf-hd-drop-label::before {
	background-image: url(images/lw-icon.svg);
	width: 21px;
	height: 12px;
}

.wscf-hd-drop--budget .wscf-hd-drop-label::before {
	background-image: url(images/money.svg);
	width: 15px;
	height: 15px;
}

.wscf-hd-drop-list {
	display: none;
	position: absolute;
	top: 48px;
	left: 0;
	width: 100%;
	background-color: #fff;
	padding: 10px 15px;
	z-index: 999;
	flex-direction: column;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.wscf-hd-drop.is-open .wscf-hd-drop-list {
	display: flex;
}

.wscf-hd-drop-list label {
	display: inline-block;
	margin-right: 10px;
	margin-bottom: 15px;
	color: var(--wscf-hd-text);
	cursor: pointer;
	font-size: 15px;
}

.wscf-hd-drop-list label:last-child {
	margin-bottom: 0;
}

.wscf-hd-filter-submit {
	display: flex;
	justify-content: center;
}

.wscf-hd-filter-submit input[type="submit"] {
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: var(--wscf-hd-navy);
	font-family: inherit;
	font-size: 18.28px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 16px 62px 15px;
	text-align: center;
	cursor: pointer;
}

/* -------------------------------------------------------------------------
   Grid
   ---------------------------------------------------------------------- */

.wscf-hd-grid-band {
	padding: 90px 0 100px;
	margin-bottom: 50px;
}

.wscf-hd-grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	margin: 0 -20px;
}

.wscf-hd-card {
	width: 33.33%;
	padding: 0 20px;
	margin-bottom: 40px;
}

/* height:100% inside a stretched flex row is what keeps the teal rules level
   across a row no matter how long the titles run. */
.wscf-hd-card-inner {
	height: 100%;
	background: #fff;
	border-bottom: 5px solid var(--wscf-hd-teal);
}

.wscf-hd-card-image {
	position: relative;
	line-height: 0;
}

.wscf-hd-card-image img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 423 / 320;
	object-fit: cover;
}

/* Fixed 103px content width is deliberate — it wraps "Creative Collection"
   onto two lines, as on live. */
.wscf-hd-badge {
	position: absolute;
	top: 22px;
	left: 18px;
	width: 103px;
	padding: 8px 16px;
	color: #fff;
	font-size: 16px;
	line-height: normal;
	text-align: left;
	background: rgba(92, 92, 94, 0.8);
}

.wscf-hd-badge--classic_collection {
	background: var(--wscf-hd-grey);
}

.wscf-hd-badge--creative_collection {
	background: var(--wscf-hd-teal);
}

.wscf-hd-card-body {
	padding: 12px 10px 30px;
}

.wscf-hd-card-title {
	font-size: 25.899px;
	font-weight: 400;
	line-height: normal;
	text-transform: uppercase;
	color: var(--wscf-hd-ink);
	text-align: left;
	margin: 0 0 30px;
	padding: 0;
}

.wscf-hd-card-title a {
	color: inherit;
	text-decoration: none;
}

.wscf-hd-card-title a:hover {
	color: var(--wscf-hd-teal);
}

.wscf-hd .wscf-hd-meta {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wscf-hd .wscf-hd-meta li {
	display: flex;
	align-items: flex-end;
	color: var(--wscf-hd-navy);
	font-size: 18.693px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wscf-hd-meta-icon {
	display: flex;
	align-items: center;
	flex: none;
}

.wscf-hd-meta-val {
	display: block;
	margin-left: 6px;
	color: var(--wscf-hd-ink);
}

.wscf-hd-meta-label {
	display: block;
}

.wscf-hd-empty {
	color: var(--wscf-hd-navy);
	font-size: 18px;
	padding: 20px 0;
}

/* -------------------------------------------------------------------------
   Pagination

   Live hides its pager outright, which strands you at 6 of 50 designs if the
   infinite scroll fails. We render a working one and hide it from JS only once
   the observer is actually running (see public/homedesigns.js).
   ---------------------------------------------------------------------- */

.wscf-hd-pagination {
	padding-top: 15px;
}

.wscf-hd-pagination ul {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 20px;
	row-gap: 10px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wscf-hd-pagination li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wscf-hd-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 100px;
	background: #00889b;
	color: #fff;
	font-size: 16px;
	text-decoration: none;
}

.wscf-hd-pagination .page-numbers.current {
	background: #c2b39a;
	color: #000;
}

.wscf-hd-pagination .page-numbers.dots {
	background: none;
	color: var(--wscf-hd-navy);
}

.wscf-hd-is-infinite .wscf-hd-pagination {
	display: none;
}

/* While a filter request is in flight. Keeps the grid in place so the page doesn't
   jump, and blocks clicks on results that are about to be replaced. */
.wscf-hd-results {
	position: relative;
	transition: opacity 0.15s ease;
}

.wscf-hd-results.wscf-hd-is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.wscf-hd-results.wscf-hd-is-loading::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 32px;
	height: 32px;
	margin-left: -16px;
	border: 3px solid rgba(48, 64, 86, 0.2);
	border-top-color: var(--wscf-hd-teal);
	border-radius: 50%;
	animation: wscf-hd-spin 0.7s linear infinite;
}

@keyframes wscf-hd-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.wscf-hd-results { transition: none; }
	.wscf-hd-results.wscf-hd-is-loading::after { animation: none; }
}

.wscf-hd-filter-submit input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: default;
}

.wscf-hd-sentinel {
	height: 1px;
}

.wscf-hd-loading {
	text-align: center;
	padding: 20px 0;
	color: var(--wscf-hd-navy);
}

/* -------------------------------------------------------------------------
   Breakpoints — mirroring the live responsive stack
   ---------------------------------------------------------------------- */

@media screen and (max-width: 1679px) {
	.wscf-hd-card-title { font-size: 24.899px; }
	.wscf-hd-intro-copy { font-size: 22px; }
}

@media screen and (max-width: 1580px) {
	.wscf-hd-card-title { font-size: 23.899px; }
	.wscf-hd-intro-copy { font-size: 20px; }
	.wscf-hd-grid { margin: 0 -15px; }
	.wscf-hd-card { padding: 0 15px; }
}

@media screen and (max-width: 1440px) {
	.wscf-hd-card-title { font-size: 21.899px; margin-bottom: 23px; }
	.wscf-hd-card { margin-bottom: 35px; }
	.wscf-hd-grid-band { padding: 65px 0; }
	.wscf-hd-filter-band { padding: 48px 0 49px; }
}

@media screen and (max-width: 1350px) {
	.wscf-hd-card-title { font-size: 20.899px; margin-bottom: 25px; }
	.wscf-hd-drop-label { font-size: 16.664px; }
}

@media screen and (max-width: 1250px) {
	.wscf-hd-card-title { font-size: 18.899px; }
	.wscf-hd-intro-title { font-size: 40px; }
	.wscf-hd-intro-copy { font-size: 18px; }
	.wscf-hd .wscf-hd-meta li { font-size: 16px; }
	.wscf-hd-meta-icon { height: 22px; }
	.wscf-hd-filter { max-width: 1020px; }
	.wscf-hd .wscf-hd-filter-list { column-gap: 2%; row-gap: 15px; }
	.wscf-hd-filter-band { padding: 35px 0 40px; }
}

@media screen and (max-width: 991px) {
	.wscf-hd-card { width: 49.9%; padding: 0 12px; }
	.wscf-hd-grid { margin: 0 -12px; }
	.wscf-hd-grid-band { padding: 50px 0; margin-bottom: 30px; }
	.wscf-hd-filter { max-width: 760px; }
	.wscf-hd-filter-band { padding: 30px 0 35px; }
	.wscf-hd-filter-submit input[type="submit"] { padding: 10px 25px; font-size: 16px; }
}

@media screen and (max-width: 767px) {
	.wscf-hd-intro-title { font-size: 32px; }
	.wscf-hd-filter { max-width: 100%; row-gap: 20px; }
	.wscf-hd-filter-band { padding: 25px 0 30px; }
	.wscf-hd-drop-label { font-size: 14px; }
}

@media screen and (max-width: 680px) {
	.wscf-hd-grid { margin: 0; }
	.wscf-hd-card { width: 100%; padding: 0; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media screen and (max-width: 600px) {
	.wscf-hd .wscf-hd-drop { width: 48.9%; }
}

@media screen and (max-width: 533px) {
	.wscf-hd-grid-band { padding: 40px 0; }
}

@media screen and (max-width: 479px) {
	.wscf-hd .wscf-hd-drop { width: 100%; }
	.wscf-hd .wscf-hd-filter-list { row-gap: 5px; }
}

@media screen and (max-width: 478px) {
	.wscf-hd-intro-title { font-size: 28px; }
	.wscf-hd-filter-title { font-size: 28px; }
	.wscf-hd-filter { padding: 35px 20px 30px; }
	.wscf-hd-filter-band { padding: 10px 0 25px; }
}

@media screen and (max-width: 440px) {
	.wscf-hd .wscf-hd-drop { border: 2px solid var(--wscf-hd-navy); }
}
