/**
 * Homes Listings grid and card styles.
 */

.homes-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 0 0 30px;
	background-color: #ffffff;
	border-top: 1px solid #111111;
	border-bottom: 1px solid #111111;
}

.homes-filters__field {
	min-width: 0;
	background: #fff;
	text-align: left;
	width: 16.66666666666667%;
	max-width: 215px;
	border-right: 1px solid #cdcac6;
	padding-right: 10px;
}

.homes-filters__field:first-child {
	border-left: 1px solid #cdcac6;
}

.homes-filters__field label {
	display: block;
	margin: 0;
	padding: 10px 14px 0;
	color: #292929;
	font-size: 22px;
	letter-spacing: .03em;
	line-height: 1.2;
	text-transform: uppercase;
}

.homes-filters__field select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 6px 15px 10px 10px;
	border: 0;
	border-radius: 0;
	background-color: #fff;
	color: #4d4d4d;
	font: inherit;
	line-height: 1.3;
	cursor: pointer;
}

.homes-filters__field select:focus-visible {
	outline: 2px solid #5f5446;
	outline-offset: -3px;
}

.homes-filters__reset__wrapper {
	position: relative;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	justify-content: flex-end;
}

.homes-filters__reset {
	display: flex;
	align-items: center;
	gap: 10px;
}

.homes-filters__reset img {
	width: 20px;
	height: 20px;
}

.homes-filters__submit {
	grid-column: 1 / -1;
	justify-self: center;
	margin: 11px 0 10px;
	border: 0;
	background: transparent;
	color: #5f5446;
	font-size: 13px;
	line-height: 1.3;
	text-decoration: underline;
	text-transform: uppercase;
	cursor: pointer;
}

.homes-filters__submit:hover,
.homes-filters__submit:focus-visible {
	color: #292929;
	text-decoration-thickness: 2px;
}

.homes-listings__results {
	position: relative;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 1rem;
}

.homes-listings__results>* {
	transition: opacity .18s ease;
}

.homes-listings.is-loading .homes-listings__results>* {
	opacity: .45;
}

.homes-listings.is-loading .homes-listings__results {
	pointer-events: none;
}

.homes-listings__results::before {
	position: absolute;
	z-index: 2;
	top: min(150px, 35%);
	left: 50%;
	width: 30px;
	height: 30px;
	box-sizing: border-box;
	border: 2px solid rgba(8, 107, 55, .2);
	border-top-color: #086b37;
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .85);
	content: "";
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%);
}

.homes-listings.is-loading .homes-listings__results::before {
	animation: homes-listings-spin .8s linear infinite;
	opacity: 1;
	visibility: visible;
}

@keyframes homes-listings-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.homes-listings.is-loading .homes-listings__results::before {
		animation: none;
	}
}

.homes-listings .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.homes-grid {
	--homes-grid-gap: clamp(20px, 3vw, 40px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--homes-grid-gap);
	margin: 30px 0;
}

.home-card {
	display: flex;
	flex: 0 1 calc((100% - var(--homes-grid-gap) - var(--homes-grid-gap)) / 3);
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #a7a7a7;
	background: #fff;
	color: #4d4d4d;
}

.home-card__image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #eee;
}

.home-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-card__image--placeholder {
	background: #f1efec;
}

.home-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.home-card__title {
	position: relative;
	margin: 0 0 20px;
	padding: 0 0 10px 0;
	color: #292929;
	font-family: 'GoogleFonts-Tangerine', serif;
	font-size: 50px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.15;
	text-align: center;
}

.home-card__title::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: #555;
	content: "";
}

.home-card__price,
.home-card__builder,
.home-card__availability {
	margin: 0 0 3px;
	font-size: 1.125rem !important;
	line-height: 1.75em !important;
	padding-bottom: 0 !important;
}

.home-card__availability {
	margin-bottom: 10px;
	min-height: calc(1.125rem * 1.75);
}

.home-card__price span {
	margin-left: 3px;
	color: #252525;
	font-size: 26px;
}

.home-card__builder a {
	color: inherit;
	text-decoration: none;
}

.home-card__builder a:hover,
.home-card__builder a:focus-visible {
	text-decoration: underline;
}

.home-card__meta {
	display: flex;
	justify-content: center;
	margin: 20px 0 40px 0;
	padding: 0;
	text-align: center;
}

.home-card__meta-item {
	flex: 0 1 20%;
	min-width: 0;
	padding: 0 6px;
	border-left: 1px solid #8a8a8a;
}

.home-card__meta-item:first-child {
	border-left: 0;
}

.home-card__meta dt {
	margin: 0 0 7px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.1;
	white-space: nowrap;
}

.home-card__meta dd {
	margin: 0;
	font-size: 14px;
	line-height: 1.1;
}

.home-card__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	margin-top: auto;
}

.home-card__button {
	display: flex;
	box-sizing: border-box;
	width: 100%;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	margin: 0;
	background: transparent;
	color: #5f5446;
	text-decoration: none !important;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5rem;
	text-align: center;
	text-transform: uppercase;
	transition: all 0.20s linear;
	padding: .5rem;
	border: 1px solid #5f5446;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.home-card__button:hover,
.home-card__button:focus-visible {
	box-shadow: 0 0 50px 50px rgba(95, 84, 70, 0.075) inset;
	text-decoration: none;
	color: #5f5446;
}

.home-card__button:only-child {
	grid-column: 1 / -1;
}

.homes-request-info-form {
	text-align: center;
}

.homes-request-info-form h3 {
	color: #5f5446;
	margin-bottom: 10px;
	font-size: 2.875rem;
	font-family: 'GoogleFonts-Lora', serif;
	font-weight: 400;
}

@media (max-width: 750px) {
	.homes-request-info-form.fancybox-content {
		padding: 30px;
	}

	.homes-request-info-form .h4.preheadline {
		font-size: 1.125rem;
	}

	.homes-request-info-form #homes-request-info-form__heading.h2 {
		font-size: 4rem;
	}
}



.homes-grid-empty {
	padding: 24px;
	color: #111111;
	text-align: center;
	font-size: 22px;
}

@media (max-width: 1399px) {
	.home-card {
		flex-basis: calc((100% - var(--homes-grid-gap)) / 2);
	}
}

@media (max-width: 1100px) {
	.homes-filters__field {
		width: 33.33333333333333%;
		max-width: 100%;
	}

	.homes-filters__field:nth-child(4) {
		border-left: 1px solid #cdcac6;
	}

	.homes-filters__field:nth-child(1),
	.homes-filters__field:nth-child(2),
	.homes-filters__field:nth-child(3) {
		border-bottom: 1px solid #cdcac6;
	}
}

@media (max-width: 750px) {
	.home-card {
		flex-basis: 100%;
	}

	.homes-filters__field {
		width: 50%;
	}

	.homes-filters__field:nth-child(1),
	.homes-filters__field:nth-child(2),
	.homes-filters__field:nth-child(3),
	.homes-filters__field:nth-child(4) {
		border-bottom: 1px solid #cdcac6;
	}

	.homes-filters__field:nth-child(4) {
		border-left: none;
	}

	.homes-filters__field:nth-child(5) {
		border-bottom: 1px solid #cdcac6;
	}

}

@media (max-width: 520px) {
	.homes-filters__field {
		width: 100%;
	}
}

@media (max-width: 380px) {
	.home-card__body {
		padding-right: 12px;
		padding-left: 12px;
	}

	.home-card__meta-item {
		padding-right: 3px;
		padding-left: 3px;
	}

	.home-card__meta dt,
	.home-card__meta dd {
		font-size: 12px;
	}
}