/*** CUSTOM CSS ***/
.et_pb_equal_columns.vert-center .et_pb_column {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.show-mobile {
	display: none !important;
}

/**** AVAILABLE HOMES - ARCHIVE ****/
#home-count {
	text-align: center;
	margin: 40px auto;
	text-transform: uppercase;
	color: #000;
	width: 100%;
	margin: 20px 0;
}
	#home-count span {
		font-weight: 900;
		width: 50px;
		height: 50px;
		background: var(--brand-primary);
		padding: 0.6em;
		border-radius: 50%;
		color: #fff;
		font-size: 20px;
		display: inline-block;
	}
#homes-top-bar, #plans-top-bar {
	display: flex;
	justify-content: center;
	margin: 20px;
	text-align: center;
	width: 100%;
}
	#homes-top-bar select, #plans-top-bar select {
		width: 260px;
		background: var(--brand-primary);
		color: #fff;
		font-size: 16px;
		border: none;
		height: 40px;
		margin: 5px 10px;
		text-transform: capitalize;
	}
#home-list h1 {
	width: 100%;
}
#home-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3%; /* Handles the spacing cleanly */
}

#home-list article {
    position: relative;
    width: 31.33%; /* Mathematically perfect 3-column width */
    margin-bottom: 40px; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

#community-list article {
	position: relative;
	width: 75%;
	margin: 20px auto;
	display: block;
	box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

	#request-info-sidebar h2 {
		color: #fff;
		font-weight: 700;
		text-transform: uppercase;
	}
	
	#request-info-sidebar p.gform_required_legend {
		visibility: hidden;
	}


	
	.home-gallery .envira-pagination.envira-pagination-previous-next-only {
		display: none;
	}
#home-list .home-gallery {
	position: relative;
}
.home-gallery ul {
	display: flex;
	flex-wrap: wrap;
}
	.home-gallery li {
		max-width: 30%;
		margin: .5% 1%;
	}

	a.gallery-more {
		width: 264px;
		height: 187px;
		background: rgba(0,0,0,0.5);
		position: absolute;
		right: 7px;
		bottom: 212px;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		color: #fff;
		font-size: 24px;
		text-transform: uppercase;
		font-weight: 700;
		transition: all .2s ease-out;
	}
		a.gallery-more:hover {
			background: rgba(0,0,0,.8);
		}
	
	#single-request-info h2 {
		text-transform: uppercase;
		padding-bottom: 30px;
	}
	#single-request-info .gform_wrapper {
		margin-top: 40px;
	}

	.home-info-bottom {
		padding: 10px 2.5% 20px;
	}
		.home-info-comm-plan {
			display: flex;
			padding: 10px 0;
			border-top: 1px solid #ccc;
			border-bottom: 1px solid #ccc;
			margin-bottom: 30px;
		}
			.home-info-comm-plan h4 {
				font-size: 16px;
				text-transform: uppercase;
				width: 50%;
				line-height: 1.2;
				height: 50px;
				display: flex;
				flex-direction: column;
				justify-content: flex-start;
				padding: 0 20px;
			}
				.home-info-comm-plan h4:first-child {
					width: 75%;
				}
				.home-info-comm-plan h4 a {
					display: block;
					font-size: 22px;
					font-weight: 700;
					color: var(--brand-primary);
				}
				
				.home-info-bottom .btn {
					display: block;
					text-align: center;
					max-width: 75%;
					margin: 0 auto;
					background: var(--brand-primary);
					color: #fff;
					border: 1px solid var(--brand-primary);
					position: relative;
					padding-right: 60px;
					transition: all .2s ease-out;
				}
					.home-info-bottom .btn:hover {
						background: #000;
						color: #fff;
					}
					.home-info-bottom .btn:after {
						content: "»";
						position: relative;
						right: -10px;
						font-size: 22px;
						transition: all .2s ease-out;
					}
						.home-info-bottom .btn:hover:after {
							right: -20px;
						}

				ul#home-buttons {
					display: flex;
					flex-wrap: wrap;
				}	
					#home-buttons li {
						width: 49%;
						margin: 0 1% 1% 0;
					}
						#home-buttons li .btn {
							display: block;
							width: 100%;
							max-width: 100%;
							border-radius: 2em;
							background: #fff;
							color: #333;
							font-weight: 600;
						}
							#home-buttons li .btn:hover {
								background: #085084;
								color: #fff;
							}
						#home-buttons li .btn.blue {
							background: #085084;
							color: #fff;
						}
						#home-buttons li .btn.red {
							background: #75a2cd;
							color: #fff;
						}
						#home-buttons li .btn.blue:hover, #home-buttons li .btn.red:hover {
							background: #333;
							color: #fff;
						}
						
						

#home-more .thrive-modal {
	display: flex;
}
	#modal-gallery-container {
		max-width: 67%;
	}

#request-info-box .thrive-modal {
	max-width: 500px;
	background: #000;
	color: #fff;
	padding: 20px;
	text-align: center;
	font-size: 22px;
	line-height: 1;
}

	#request-info-box h2 {
		font-size: 42px;
		color: #fff;
		font-weight: 700;
		text-transform: uppercase;
	}
	
	

/**** COMMUNITIES - ARCHIVE ****/
.post-type-archive-community #et-main-area {
	padding-top: 80px;
	display: block;
}
.post-type-archive #main-content .container:before {
	display: none;
}
	.post-type-archive-community .home-info-top {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.post-type-archive-community .home-price-box {
		width: 40%;
	}
	.post-type-archive-community .address {
		width: 100%;
	}
		.post-type-archive-community .address h2 {
			font-size: 34px;
			padding: 1%;
		}
	.post-type-archive-community .home-price-box, .post-type-archive-community .sqft {
		font-size: 22px;
		font-weight: 600;
		color: #000;
		border-top: 1px solid #e1e1e1;
		border-bottom: 1px solid #e1e1e1;
		padding: 10px;
	}
	.post-type-archive-community .home-info-bottom {
		padding-top: 40px;
	}

/**** AVAILABLE HOMES - ARCHIVE ****/
#home-count {
	text-align: center;
	text-transform: uppercase;
	color: #000;
}
	#home-count span {
		font-weight: 900;
		width: 50px;
		height: 50px;
		background: var(--brand-primary);
		padding: 0.6em;
		border-radius: 50%;
		color: #fff;
		font-size: 20px;
		display: inline-block;
	}
#home-list article {
	position: relative;
	width: 30%;
	margin: 20px 3% 20px 0;
	display: block;
	box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}
#community-list article {
	position: relative;
	width: 75%;
	margin: 20px auto;
	display: block;
	box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}
#request-info-sidebar {
    display: block; /* Removed display: none! */
    position: absolute;
    top: 140px;
    right: 0;
    width: 350px;
    background: #000;
    padding: 30px;
    color: #fff;
    z-index: 99;
}
	#request-info-sidebar h2 {
		color: #fff;
		font-weight: 700;
		text-transform: uppercase;
	}
	
	#request-info-sidebar p.gform_required_legend {
		visibility: hidden;
	}

	.home-info-top {
		padding: 30px 2.5% 0px;
		display: flex;
		flex-wrap: wrap;
	}
		.home-info-top-left {
			width: 55%;
			padding-right: 5%;
		}
		.home-info-top .address {
			width: 100%;
			float: left;
			display: block;
			order: 1;
			margin-right: 9%;
		}
			.home-info-top .address h2 {
				font-size: 14px;
				line-height: 1;
				font-weight: 400;
				margin-top: 0;
			}
				.home-info-top .address h2 strong {
					display: block;
					font-size: 14px;
					font-weight: 900;
					line-height: 1;
				}
	.home-price-box {
		width: 100%;
		padding: 1% 1.5%;
		order: 1;
	}
		.home-price-box strong {
			display: block;
		}
		.home-price-box .price {
			display: block;
			font-size: 32px;
			margin: 5px auto;
		}
		.home-price-box .status {
			display: block;
			padding-top: 3px;
			border-top: 1px solid #aaa;
		}
			.home-price-box .status .const {
				display: block;
			}
	
		.home-price-box h4 {
			padding-bottom: 0;
			margin-bottom: 0;
			font-size: 13px;
		}
		.home-price-box .price.const {
			font-size: 26px;
			font-weight: 600;
			line-height: 1;
		}
		.homes .home-estimate, .single-homes .home-estimate {
			width: 45%;
			background: #eee;
			font-size: 30px;
			line-height: 1.2;
			font-weight: 900;
			padding: 0 2%;
			border-radius: 6px;
		}
			.homes .home-estimate span, .single-homes .home-estimate span {
				font-size: 13px;
			}
			.homes .home-estimate a, .single-homes .home-estimate a {
				display: block;
				font-size: 12px;
				margin-top: 20px;
			}
	
	.home-info-top .home-info-icons	 {
		display: flex;
		max-width: 100%;
		flex-wrap: wrap;
		order: 3;
		margin-top: 15px;
		padding: 5px 0;
		border-top: 2px solid #fafafa;
		border-bottom: 2px solid #fafafa;
	}
		.home-info-top .home-info-icons li {
			width: 32%;
			margin-right: 1%;
			position: relative;
			padding-left: 40px;
			background-repeat: no-repeat;
			background-position: center left 15%;
			background-size: 22px;
			height: 34px;
			font-size: 12px;
			display: flex;
			align-items: center;
		}
			.home-info-top .home-info-icons li.sqft {
				background-image: url(/wp-content/uploads/icon-plans.png);
			}
			.home-info-top .home-info-icons li.baths {
				background-image: url(/wp-content/uploads/icon-baths.png);
			}
			.home-info-top .home-info-icons li.beds {
				background-image: url(/wp-content/uploads/icon-beds.png);
			}
	
		.home-info-top .home-info-icons li.school {
			width: 99%;
			padding-left: 0;
			margin: 10px 0;
		}		
			.home-info-top .home-info-icons li.school h5 {
				font-weight: 600;
				color: var(--brand-primary);
				display: inline;
			}

	span.sqft {
		width: 50%;
	}
		span.sqft strong {
			display: block;
		}

	.home-gallery .envira-pagination.envira-pagination-previous-next-only {
		display: none;
	}
#home-list .home-gallery {
	position: relative;
}
	#home-list .home-gallery a:before {
/* 	    content: "Ask how you can save $950-$1,300 per month on this home »"; */
		position: absolute;
		bottom: 7px;
		z-index: 10;
		width: 100%;
		padding: 10px 2.5%;
		background: var(--brand-primary);
		color: #fff;
		box-sizing: border-box;
		font-size: 18px;
	}
.home-gallery ul {
	display: flex;
	flex-wrap: wrap;
}
	.home-gallery li {
		max-width: 30%;
		margin: .5% 1%;
	}

	a.gallery-more {
		width: 264px;
		height: 187px;
		background: rgba(0,0,0,0.5);
		position: absolute;
		right: 7px;
		bottom: 212px;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		color: #fff;
		font-size: 24px;
		text-transform: uppercase;
		font-weight: 700;
		transition: all .2s ease-out;
	}
		a.gallery-more:hover {
			background: rgba(0,0,0,.8);
		}
	
	.promo-offers .et_pb_section {
		padding: 0 !important;
	}
	.post-type-archive-homes .promo-header-text	 {
		display: none;
	}	
	.post-type-archive-homes .promo-offers .et_pb_column_1_4 {
		width: 100% !important;
	}
		.post-type-archive-homes .promo-offers .et_pb_blurb_content {
			background: #eee;
			padding: 2%;
			margin: 5px auto !important;
			height: 90px;
			display: flex;
			flex-wrap: wrap;
			align-items: center;
		}
			.post-type-archive-homes .promo-offers .et_pb_blurb_description p, .post-type-archive-homes .promo-offers .et_pb_blurb_description ul {
				display: none;
			}
			.post-type-archive-homes .promo-offers .et_pb_blurb_description, .post-type-archive-homes .promo-offers .et_pb_blurb_description h4 {
				font-size: 12px !important;
				margin: 0;
			}
			.post-type-archive-homes .promo-offers .et_pb_blurb_container {
				width: 65% !important;
				padding-left: 5%;
			}
			.post-type-archive-homes .promo-offers .et_pb_main_blurb_image {
				width: 30%;
			}
				.post-type-archive-homes .promo-offers .et_pb_main_blurb_image img {
					width: 80px;
					height: 80px;
					margin-right: 4%;
					object-fit: contain;
				}
	#single-request-info h2 {
		text-transform: uppercase;
		padding-bottom: 30px;
	}
	#single-request-info .gform_wrapper {
		margin-top: 40px;
	}

	.home-info-bottom {
		padding: 10px 2.5% 20px;
	}
		.home-info-comm-plan {
			display: flex;
			padding: 10px 0;
			border-top: 1px solid #ccc;
			border-bottom: 1px solid #ccc;
			margin-bottom: 30px;
		}
			.home-info-comm-plan h4 {
				font-size: 16px;
				text-transform: uppercase;
				width: 50%;
				line-height: 1.2;
				height: 30px;
				display: flex;
				flex-direction: column;
				justify-content: flex-start;
				padding: 0 20px 0 0;
			}
				.home-info-comm-plan h4:first-child {
					width: 75%;
				}
				.home-info-comm-plan h4 a {
					display: block;
					font-size: 13px;
					font-weight: 700;
					color: var(--brand-primary);
					line-height: 1;
				}
				
				.home-info-bottom .btn, .single-homes #home-promos .btn {
					display: block;
					text-align: center;
					max-width: 75%;
					margin: 0 auto;
					background: var(--brand-primary);
					color: #fff;
					border: 1px solid var(--brand-primary);
					position: relative;
					padding: .5em;
					transition: all .2s ease-out;
				}
					.home-info-bottom .btn:hover {
						background: #000;
						color: #fff;
					}
					.home-info-bottom .btn:after {
						content: "»";
						position: relative;
						right: -10px;
						font-size: 22px;
						transition: all .2s ease-out;
					}
						.home-info-bottom .btn:hover:after {
							right: -20px;
						}

				.promo-offers {
					padding: 5px;
					order: 5;
				}
					.promo-offers ul li {
						margin: 5px;
						padding: 15px;
						background: #efefef;
					}
				
#home-more .thrive-modal {
	display: flex;
}
	#modal-gallery-container {
		max-width: 67%;
	}

#request-info-box .thrive-modal {
	max-width: 500px;
	background: #000;
	color: #fff;
	padding: 20px;
	text-align: center;
	font-size: 22px;
	line-height: 1;
}
		
/*** SINGLE HOMES ***/
body.single-homes #home-info {
	display: flex;
	width: 100%;
	margin: 0 auto;
}
	body.single-homes #home-info #et-boc {
		width: 65%;
	}
	body.single-homes #home-info-left {
		width: 35%;
		padding: 2.5%;
	}
		body.single-homes .home-info-top .home-info-icons li:not(:last-child) {
			padding-left: 55px;
		}
	body.single-homes #et-boc .et-l .et_pb_row {
		width: 100%;
		max-width: 100% !important;
	}
	body.single-homes #home-promos #et-boc {
		width: 100%;
		max-width: 100%;
	}
	body.single-homes #home-promos .et_pb_row_4col {
		display: flex;
		justify-content: center;
		width: 80%;
		margin: 0 auto;
		padding: 27px 0;
	}
		body.single-homes #home-promos .et_pb_row_4col .et_pb_column {
			width: 23%;
			margin-right: 1%;
			margin-left: 1%;
		}
	
	

#home-title {
	margin-bottom: 0 !important;
	border-bottom: 5px solid var(--brand-primary);
	padding-bottom: 40px;
}
#home-title.video {
	padding-bottom: 40px;
}

#home-title .fluid-width-video-wrapper {
	position: relative;
	bottom: 27px;
}
#home-title > iframe, #plan-tour > iframe {
	height: 900px!important;
	position: relative;
	bottom: 27px;
	margin-bottom: 15px;
	width: 100% !important;
}
/*
	#plan-tour>iframe {
		bottom: 0;
		margin-bottom: 27px;
	}
*/
#home-title .fluid-width-video-wrapper iframe{
	position: absolute;
	bottom: 27px;
	margin-bottom: 0; 
}
	#home-title h1 {
		background: var(--brand-primary);
		color: #fff !important;
		display: block;
		padding: 1em;
		font-weight: 700;
		text-transform: uppercase;
		position: absolute;
		bottom: -44px;
		width: 100%;
	}
/*
		#home-title h1:before {
			content: "";
			display: block;
			border-top: 35px solid rgba(0,0,0,.5);
			border-left: 36px solid transparent;
			position: absolute;
			left: -36px;
			bottom: -5px;
		}
*/

#single-home-gallery {
	border-left: 2px solid var(--brand-primary);
	max-height: 800px;
	overflow: hidden;
}
	#single-request-info input:not([type=submit]), #single-request-info textarea {
		background: #eee;
		color: #000;
	}
	#single-request-info input::placeholder, #single-request-info textarea::placeholder {
		color: #000;
	}
	

#plan-gallery .et_pb_gallery_items {
	display: flex;
	flex-wrap: wrap;
}
	#plan-gallery .et_pb_gallery_item {
		width: 24% !important;
		margin: 1% 1% 0 0 !important;
	}


#single-home-sub-menu ul {
	padding: 0 !important;
	display: flex;
	justify-content: flex-start;
}
	#single-home-sub-menu li {
		display: flex;
		flex-direction: column;
		justify-content: center;
		height: 100%;
	}
		#single-home-sub-menu li a {
			padding: 0.4em 1.5em;
			color: #fff !important;
			text-transform: uppercase;
			display: flex;
			flex-direction: column;
			justify-content: center;
			transition: all .2s ease-out;
			background: transparent;
		}
			#single-home-sub-menu li a:hover {
				background: #fff;
				color: #000 !important;
			}
			
.single-homes #overview {
	background: #ddd;
	padding: 20px;
}
	div[id*=single-home-row], div[id*=single-home-row] ul {
		display: flex;
	}
	div[id*=single-home-row] {
		border-bottom: 1px solid #aaa;
		padding: 10px 1%;
	}
		div[id*=single-home-row]:last-child {
			border-bottom: 0;
		}
		div[id*=single-home-row] h4 {
			padding-bottom: 0;
		}
		#single-home-row-5 {
			display: none;
		}
	
	.single-plans #single-home-row-4 h4 {
		display: block;
		width: 100%;
	}
		.single-plans #single-home-row-4 h4 a strong {
			padding: 0.3em;
			border: 1px solid var(--brand-primary);
			display: block;
			line-height: 1;
			transition: all .2s ease-out;
		}
			.single-plans #single-home-row-4 h4 a:hover strong {
				background: var(--brand-primary);
				color: #fff;
			}


	#single-street {
		width: 75%;
		font-size: 20px;
		line-height: 1;
	}
		#single-street strong {
			display: block;
			font-size: 28px;
		}

	
	#single-price {
		font-size: 35px;
	}
		#single-price .const {
			font-size: 20px;
			line-height: 1;
			display: flex;
			text-align: right;
		}
		
	.single-community #single-price {
		font-size: 23px;
		line-height: 0.8;
	}
		.single-community #single-price span {
			font-size: 35px;
			display: block;
		}

	#single-status {
		font-size: 22px;
	}
		#single-status strong {
			color: var(--brand-primary);
		}
		
	#single-specs {
		width: 100%;
	}
		#single-specs li, .single-plans #overview li {
			font-size: 18px;
			width: 30%;
			padding-left: 40px;
			position: relative;
		}
			#single-specs li:before, .single-plans #overview li:before {
				content: "";
				display: block;
				position: absolute;
				left: 0;
				width: 32px;
				height: 32px;
			}
			#single-specs li#baths:before, .single-plans #overview li#baths:before {
				background: url(/wp-content/uploads/icon-baths.png) no-repeat center / contain;
			}
			#single-specs li#beds:before, .single-plans #overview li#beds:before {
				background: url(/wp-content/uploads/icon-beds.png) no-repeat center / contain;
			}
			#single-specs li#sqft:before, .single-plans #overview li#sqft:before {
				background: url(/wp-content/uploads/icon-plans.png) no-repeat center / contain;
			}
			
			.single-community #sqft {
				font-size: 22px;
				margin-left: 5%;
				line-height: 1;
			}
				.single-community #sqft span {
					display: block;
					font-size: 26px;
				}
		
		#single-home-row-4 h4 {
			width: 50%;
		}
		#single-home-row-4 h4 a strong {
			display: block;
			font-size: 22px;
			color: var(--brand-primary);
		}
		
	.single-community #single-home-row-1 {
		justify-content: space-between;
		padding: 10px 5%;
		background: #e1e1e1;
	}

	
	#floor-plan a strong {
		display: block;
		font-size: 20px;
		padding: 10px 0;
		text-decoration: underline;
	}
	
	#schools h2 {
		padding-bottom: 30px;
	}
	#schools ul {
		display: flex;
		flex-wrap: wrap;
	}
		#schools li {
			padding: 0.6em 1em;
			border-bottom: 1px solid #aaa;
			line-height: 1.2;
		}
		#schools li:nth-child(even) {
			width: 70%;
		}
		#schools li:nth-child(odd) {
			width: 30%;
			background: #ddd;
		}


/*** FLOOR PLANS ***/
.post-type-archive-plans #content-area ~ p {
	width: 65%;
}

#plan-tour {
	margin: 40px auto -14px !important;
}
/*
	#plan-tour iframe, #home-title iframe {
		width: 100%;
		height: 900px;
	}
*/
.single-plans #home-title .et_pb_title_container {
	position: absolute;
	top: 100%;
}
#plan-gallery .et_pb_gallery_items {
	display: flex;
	flex-wrap: wrap;
}
	#plan-gallery .et_pb_gallery_item {
		width: 24% !important;
		margin: 1% 1% 0 0 !important;
	}


#footer-bottom .container {
	padding-top: 0 !important;
}


@media screen and (max-width: 768px) {
	#home-list article {
		width: 100%;
	}
		.homes .home-info-top .address {
			width: 100%;
			margin-right: auto;
		}
			.homes .home-info-top .address h2 {
				line-height: 1;
			}
		.home-info-top .home-info-icons {
			display: flex;
			max-width: 100%;
			flex-wrap: nowrap;
			order: 3;
			flex-direction: column;
		}
			.home-info-top .home-info-icons li {
				width: 100%;
				padding: 10px 10px 10px 40px;
			}
		.home-price-box {
			width: 100%;
			margin: 10px auto;
			padding: 5%;
		}
		.home-info-top .home-info-icons li.school h5 {
			display: block;
			width: 100%;
		}
		.home-info-comm-plan {
			flex-wrap: wrap;
		}
		.home-info-comm-plan h4, .home-info-comm-plan h4:first-child {
			width: 100%;
			padding: 1em;
			height: auto;
		}
		.home-info-comm-plan h4:first-child {
			border-bottom: 1px solid #ddd;
		}
	
/*
	#plan-tour iframe, #home-title iframe {
		height: 450px;
	}
*/
}




@media screen and (max-width: 630px) {
	
	.show-mobile {
		display: block !important;
	}
	
	
	#home-title .fluid-width-video-wrapper {
/* 		margin-bottom: 100px !important; */
	}	
/*
	#home-title iframe {
		height: 220px !important;
	}
*/
.post-type-archive-community #et-main-area {
	padding-top: 0;
}
	h1 {
		font-size: 35px;
	}

	#single-home-sub-menu ul {
		flex-wrap: wrap;
	}
		#single-home-sub-menu li {
			width: 100%;
			text-align: center;
		}
	div[id*=single-home-row] {
		flex-direction: column;
	}
		#single-street, #single-home-row-4 h4 {
			width: 100%;
			margin: 10px auto;
		}
		#schools li:nth-child(odd), #schools li:nth-child(even) {
			width: 100%;
		}
	#request-info-sidebar {
		display: none;
	}
	
	
#home-list article {
	width: 100%;
	display: flex;
	flex-direction: column;
}
	#home-list article .home-info-top {
		order: 1;
	}
		.homes .home-info-top-left {
			padding-left: 5%;
		}
		.homes .home-info-top-left, .homes .home-estimate {
			width: 100%;
			text-align: center;
		}
		.homes .home-estimate span:first-child {
			display: block;
			margin-top: 5px;
		}
		.homes .home-estimate a {
			margin-bottom: 5px;
		}
	#home-list article .home-info-icons {
		flex-direction: row;
		flex-wrap: wrap;
		width: 55%;
	}
		#home-list article .home-info-icons li {
			width: 32%;
			margin-right: 1%;
			padding-left: 0;
			padding-top: 44px;
		}
		#home-list article .home-info-icons li:last-child {
			width: 30%;
			margin-right: 1%;
			padding-left: 0;
			padding-top: 44px;
		}
	#home-list article .home-info-bottom {
		order: 2;
	}
	
	.post-type-archive-community .address h2 {
		font-size: 28px;
		padding: 1% 5%;
		text-align: center;
	}
	.post-type-archive-community .home-price-box strong, .post-type-archive-community .sqft span {
		display: block;
	}
	.post-type-archive-community .home-price-box, .post-type-archive-community .sqft {
		padding: 4%;
		width: 100%;
		text-align: center;
	}
	
	.single-community #single-price {
		padding-bottom: 20px;
		font-weight: 700;
	}
		.single-community #single-price span {
			font-size: 34px;
			font-weight: 400;
		}
	.single-community #single-price {
		font-size: 23px;
		line-height: 0.8;
	}
	.single-community #sqft {
		margin-left: 0;
	}
		.single-community #sqft span {
			font-weight: 400;
		}
	
	#home-title > iframe, #plan-tour > iframe {
		height: 400px !important;
	}
	#single-specs {
		flex-direction: column;
	}
		#single-specs li, .single-plans #overview li {
			width: 100%;
			margin-bottom: 25px;
			padding-left: 60px;
			height: 50px;
			display: flex;
			flex-direction: column;
			justify-content: center;
			font-weight: 600;
		}
			#single-specs li:before {
				width: 44px;
				height: 44px;
			}
	
		
}

/* ==========================================================================
   ↓↓↓ KBCG BLUEPRINT OVERRIDES START HERE ↓↓↓ 
   ========================================================================== */

:root {
    /* Maps to the dynamic KBCG Master Node, keeping the old red as a safety fallback */
    --brand-primary: var(--kbcg-brand-primary, #227482); 
    
    /* Auto-creates a darker hover color based on whatever the Master Node color is! */
    --brand-primary-dark: color-mix(in srgb, var(--kbcg-brand-primary, #227482) 80%, black); 
}

/* ==========================================================
   1. GLOBAL CARD UI (Homes, Plans, Communities)
   ========================================================== */
#home-list article, 
#community-list article {
    background-color: #ffffff !important; 
    border-radius: 12px !important;
    border: 1px solid #dcdcdc !important; 
    margin-bottom: 50px !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; 
    overflow: hidden !important; 
    transition: box-shadow 0.3s ease !important;
}
#home-list article:hover, 
#community-list article:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important; 
}


/* ==========================================================
   2. PREMIUM FLOOR PLAN LAYOUT (Independent from Specs)
   ========================================================== */
#main-content .plan-info-top { padding: 30px 5% 0px !important; }
#main-content .plan-info-bottom { padding: 10px 5% 30px !important; }

/* The Dynamic Brand Title */
#main-content .plan-info-top .address h2 a strong {
    color: var(--brand-primary) !important;
}

/* Desktop Icon Centering */
#main-content ul.plan-info-icons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important; 
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    width: 100% !important;
}
#main-content ul.plan-info-icons li {
    width: auto !important; 
    margin: 0 15px !important; 
    padding-left: 40px !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 32px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 16px !important;
    color: var(--brand-primary) !important; 
    font-weight: 600 !important;
}

/* Icon Images */
#main-content ul.plan-info-icons li.sqft  { background-image: url('/wp-content/uploads/icon-plans.png') !important; }
#main-content ul.plan-info-icons li.baths { background-image: url('/wp-content/uploads/icon-baths.png') !important; }
#main-content ul.plan-info-icons li.beds  { background-image: url('/wp-content/uploads/icon-beds.png') !important; }

/* ==========================================================
   3. GLOBAL BUTTON STYLING (Homes, Plans, Communities)
   ========================================================== */
#home-list article .btn, 
#community-list article .btn {
    display: block !important;
    text-align: center !important;
    max-width: 75% !important;
    margin: 0 auto !important;
    background: var(--brand-primary) !important; 
    color: #ffffff !important; 
    border: 2px solid var(--brand-primary) !important; 
    position: relative !important;
    padding: 12px 60px 12px 20px !important; 
    transition: all .3s ease !important; 
    text-transform: uppercase !important;
    font-weight: bold !important;
    border-radius: 6px !important; 
}
#home-list article .btn:hover, 
#community-list article .btn:hover {
    background: #ffffff !important; 
    color: var(--brand-primary) !important; 
}
#home-list article .btn:after, 
#community-list article .btn:after {
    content: "»" !important;
    position: absolute !important;
    right: 20px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all .3s ease !important;
}
#home-list article .btn:hover:after, 
#community-list article .btn:hover:after { 
    right: 12px !important; 
    color: var(--brand-primary) !important; 
}

#main-content .home-info-bottom .btn:hover,
#main-content .plan-info-bottom .btn:hover {
    background: #ffffff !important;
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

#main-content .home-info-bottom .btn:hover:after,
#main-content .plan-info-bottom .btn:hover:after {
    color: var(--brand-primary) !important;
}

/* Mobile Left-Aligned Vertical Stack */
@media screen and (max-width: 768px) {
    #main-content ul.plan-info-icons {
        flex-direction: column !important; 
        align-items: flex-start !important; 
        padding-left: 0 !important; 
    }
    #main-content ul.plan-info-icons li {
        width: auto !important; 
        margin: 0 0 15px 0 !important; 
    }
}

/* ==========================================================
    4. SINGLE PAGE UNIFIED SPEC CARD (IRONCLAD VERSION)
   ========================================================== */

/* The Container Wrapper */
body #kbcg-unified-card {
    background: #f8f8f8 !important; 
    padding: 40px !important; 
    border-radius: 12px !important; 
    border: 1px solid #dcdcdc !important; 
    margin: 20px auto 40px auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    max-width: 1000px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* DESKTOP: Specs Left, Image Right */
body .card-top-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
}

body .card-col-specs { flex: 1 !important; order: 1 !important; }

body .card-col-image { 
    flex: 0 0 320px !important; 
    text-align: center !important;
    order: 2 !important;
}

/* Image Assets */
body .card-col-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    border: 1px solid #dcdcdc !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

body .card-col-image img:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.12) !important;
    border-color: var(--brand-primary) !important;
}

/* Label below image */
body .click-to-view-label {
    color: var(--brand-primary) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    margin-top: 12px !important;
    text-transform: uppercase !important;
    display: block !important;
}

/* Divider & Button */
body .spec-divider-final {
    border: 0 !important;
    border-top: 1px solid #dcdcdc !important;
    margin: 30px 0 !important;
    opacity: 0.6 !important;
    order: 3 !important;
}

body #flyer-button-wrap {
    display: flex !important;
    justify-content: center !important;
    order: 4 !important;
}

/* --- BUTTON STYLING & HOVER --- */
body a.download-flyer-btn {
    display: inline-block !important;
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--brand-primary) !important;
    padding: 12px 35px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: all 0.3s ease-in-out !important;
}

body a.download-flyer-btn:hover {
    background: #ffffff !important;
    color: var(--brand-primary) !important;
    cursor: pointer !important;
}

/* --- MOBILE PIVOT --- */
@media screen and (max-width: 768px) {
    body #kbcg-unified-card { padding: 30px 20px !important; }
    body .card-top-row { display: block !important; }
    body .card-col-specs { order: 1 !important; margin-bottom: 20px !important; }
    body .spec-divider-final { order: 2 !important; }
    body #flyer-button-wrap { order: 3 !important; margin-bottom: 30px !important; }
    body .card-col-image { order: 4 !important; width: 100% !important; flex: 0 0 100% !important; }
    body a.download-flyer-btn { width: 100% !important; text-align: center !important; }
}

/* --- ICON LIST & IMAGE PATHS --- */
/* ==========================================================
    UNIFIED SPEC CARD ICONS (The "Peace Treaty" for Homes & Plans)
   ========================================================== */

/* ==========================================================
   SPEC TEXT STYLING (Labels vs Variable Data)
   ========================================================== */

/* ==========================================================
   UNIFIED SPEC CARD ICONS (The Complete "No-Repeat" Master)
   ========================================================== */

/* 1. Reset the lists */
body ul#single-specs,
body ul#single-specs-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. The List Items (Stops the repeating wallpaper + Snug Fit Flexbox) */
body ul#single-specs li,
body ul#single-specs-list li {
    padding: 12px 0 12px 50px !important; 
    color: #333333 !important; 
    font-weight: 400 !important; 
    font-size: 18px !important;
    
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 30px !important;
    
    display: flex !important;
    align-items: center !important;
    
    /* THE FIX: Forces items to pack left, with exactly 6px between them */
    justify-content: flex-start !important;
    gap: 6px !important; 
    
    min-height: 45px !important;
}

/* 3. The Static Labels (Targeting the <strong> tag) */
body ul#single-specs li strong,
body ul#single-specs-list li strong {
    color: #333333 !important; 
    font-weight: 400 !important; 
    margin: 0 !important; /* Stripped the old margin-right */
}

/* 4. The Variable Data (Teal and Bold) */
body ul#single-specs li span,
body ul#single-specs-list li span {
    color: #17717a !important; 
    font-weight: 800 !important; 
    margin: 0 !important; /* Stripped the old margin-right */
}

/* 5. Dual-Targeting the Icons */
body ul#single-specs li.sqft,   body ul#single-specs-list li#sqft-target   { background-image: url('/wp-content/uploads/icon-plans.png') !important; }
body ul#single-specs li.beds,   body ul#single-specs-list li#beds-target   { background-image: url('/wp-content/uploads/icon-beds.png') !important; }
body ul#single-specs li.baths,  body ul#single-specs-list li#baths-target  { background-image: url('/wp-content/uploads/icon-baths.png') !important; }
body ul#single-specs li.garage, body ul#single-specs-list li#garage-target { background-image: url('https://cherryvalleycourtyards.com/wp-content/uploads/icon-garage.png') !important; }
body ul#single-specs li.type,   body ul#single-specs-list li#type-target   { background-image: url('https://cherryvalleycourtyards.com/wp-content/uploads/icon-type.png') !important; }

/* 6. GHOSTBUSTER: Kill the old Flintrock ::before icons */
body ul#single-specs li::before,
body ul#single-specs-list li::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
}

/* ==========================================================
    18. SINGLE PLAN CTAs & BUTTONS
   ========================================================== */
.plan-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0 0 0;
    width: 100%;
}

#overview-inventory-target, #plan-target {
    width: 100%;
}

.plan-cta-wrapper .btn {
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
    padding: 14px 24px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .plan-cta-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }
    #overview-inventory-target, #plan-target {
        flex: 1; 
    }
    
    /* Desktop Vertical Divider */
    #single-home-sub-menu .external-inventory-link {
        border-left: 2px solid rgba(255, 255, 255, 0.4) !important;
        padding-left: 15px !important;
        margin-left: 15px !important;
    }
}

/* THE BOSS (Primary Button) */
body .plan-primary-btn, 
body .plan-primary-btn:link, 
body .plan-primary-btn:visited {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border: none !important;
}
body .plan-primary-btn:hover {
    background-color: var(--brand-primary-dark) !important; 
    color: #ffffff !important; /* Force white text on hover */
}

/* THE ASSISTANT (Secondary Charcoal Button) */
body .plan-secondary-btn, 
body .plan-secondary-btn:link, 
body .plan-secondary-btn:visited {
    background-color: #333333 !important;
    color: #ffffff !important;
    border: none !important;
}
body .plan-secondary-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important; /* Force white text on hover */
}

/* ==========================================================
    5. KBCG PLAN TEMPLATE FOOTER & DISCLAIMER
   ========================================================== */

#kbcg-plan-legal-branding {
    width: 100% !important;
    margin-top: 50px !important;
}

/* Disclaimer Logic */
.kbcg-plan-disclaimer-wrap {
    max-width: 1000px;
    margin: 0 auto 30px auto;
    padding: 0 5%;
}

.kbcg-plan-disclaimer-wrap p {
    color: #999999 !important; /* Light, unobtrusive text */
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: center;
    font-style: italic;
}

/* Dynamic Brand Mini-Footer Logic */
.kbcg-plan-mini-footer {
    /* BOOM: Here is the Master Node connection! */
    background-color: var(--brand-primary) !important; 
    padding: 40px 0 !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kbcg-mini-footer-logo {
    max-width: 180px !important; /* Controlled logo size */
    height: auto !important;
    display: block;
}

/* Mobile Tweak */
@media screen and (max-width: 768px) {
    .kbcg-plan-mini-footer { padding: 30px 0 !important; }
    .kbcg-mini-footer-logo { max-width: 140px !important; }
}

/* ==========================================================
    6. SUB-MENU ACTION BAR (STABLE & CENTERED)
   ========================================================== */
#single-home-sub-menu {
    width: 100% !important; 
    background-color: #333333 !important; 
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    padding: 15px 0 !important;
    border-top: 1px solid #444444 !important;
    border-bottom: 1px solid #222222 !important;
}

#single-home-sub-menu ul {
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#single-home-sub-menu ul li a {
    color: #ffffff !important;
    font-size: 15px !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
}

/* ==========================================================
    7. GALLERY & FORM (THE 4X4 GRID & STRETCH FIX)
   ========================================================== */

@media screen and (min-width: 981px) {
    .et_pb_row:has(#single-home-sub-menu),
    .et_pb_row:has(#plan-gallery-grid) {
        width: 80% !important;
        max-width: 100% !important; 
        margin: 0 auto !important; 
    }
}

/* The Stretch (Form hits the floor) */
.et_pb_row:has(#plan-gallery-grid) {
    display: flex !important;
    align-items: stretch !important; 
}

/* THE 4X4 DESKTOP GRID */
#plan-gallery-grid .et_pb_gallery_item {
    width: 25% !important; 
    float: left !important;
    clear: none !important; 
    margin: 0 !important;
    padding: 2px !important; 
    box-sizing: border-box !important;
}

/* DESKTOP OVERLAY: Stop at 20 photos  */
@media screen and (min-width: 981px) {
    /* Hide 21st image and beyond */
    #plan-gallery-grid .et_pb_gallery_item:nth-child(n+21) {
        display: none !important; 
    }
    /* Add the overlay to the 20th image */
    #plan-gallery-grid .et_pb_gallery_item:nth-child(20) .et_pb_gallery_image a {
        position: relative !important; display: block !important;
    }
    #plan-gallery-grid .et_pb_gallery_item:nth-child(20) .et_pb_gallery_image a::after {
        content: "+ View More Photos"; 
        position: absolute !important; top: 0 !important; left: 0 !important;
        width: 100% !important; height: 100% !important;
        background-color: rgba(255, 255, 255, 0.7) !important; 
        color: #000 !important; 
        display: flex !important; align-items: center !important; justify-content: center !important;
        font-size: 18px !important; font-weight: bold !important;
        z-index: 10 !important; pointer-events: none !important; 
    }
}

/* The Dark Form Column */
.et_pb_column:has(.gform_wrapper) {
    background-color: #131313 !important; 
    padding: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Gravity Form Fields (White Text, Dark Boxes) */
.gform_wrapper.gravity-theme input:not([type=submit]), 
.gform_wrapper.gravity-theme textarea {
    background-color: #262626 !important;
    border: 1px solid #444444 !important;
    color: #ffffff !important; 
    padding: 12px !important;
}

.gform_wrapper.gravity-theme ::placeholder {
    color: #aaaaaa !important;
}

/* Force Form Error Text to be visible (Dark Red) */
.gform_validation_errors, 
.gform_validation_errors *, 
.et_pb_contact_error_text,
.wpforms-error-container,
.wpforms-error-container * {
    color: #d8000c !important; 
    font-weight: bold !important;
}

/* ==========================================================
    8. RESPONSIVE MOBILE FIX (WIDTH MATCH & 2x2 GRID)
   ========================================================== */
@media screen and (max-width: 980px) { 
    
    /* 1. MATCH THE MOBILE HERO WIDTH */
    .et_pb_row:has(#single-home-sub-menu),
    .et_pb_row:has(#plan-gallery-grid) {
        width: 90% !important; 
        max-width: 90% !important;
        margin: 0 auto !important; 
    }

    /* 2. Un-stack the row so form drops below */
    .et_pb_row:has(#plan-gallery-grid) {
        display: block !important;
    }

    /* 3. Force Mobile Gallery into a 2-Column Grid */
    #plan-gallery-grid .et_pb_gallery_item {
        width: 50% !important; 
    }

    /* 4. HIDE extra photos on mobile & ADD OVERLAY */
    #plan-gallery-grid .et_pb_gallery_item:nth-child(n+5) {
        display: none !important;
    }
    #plan-gallery-grid .et_pb_gallery_item:nth-child(4) .et_pb_gallery_image a {
        position: relative !important; display: block !important;
    }
    #plan-gallery-grid .et_pb_gallery_item:nth-child(4) .et_pb_gallery_image a::after {
        content: "+ View More Photos"; 
        position: absolute !important; top: 0 !important; left: 0 !important;
        width: 100% !important; height: 100% !important;
        background-color: rgba(255, 255, 255, 0.7) !important; 
        color: #000 !important; 
        display: flex !important; align-items: center !important; justify-content: center !important;
        font-size: 15px !important; font-weight: bold !important;
        z-index: 10 !important; pointer-events: none !important; 
    }
}

/* ==========================================================
    9. THE SLIDER ALTERNATIVE (For < 8 Images)
   ========================================================== */

/* 1. Match the Desktop "Glove Fit" Row Behavior */
@media screen and (min-width: 981px) {
    .et_pb_row:has(#plan-gallery-slider) {
        width: 80% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: stretch !important; 
        padding: 0 !important;
    }
}

/* 2. Proportion the Columns (66% Slider / 33% Form) */
.et_pb_column:has(#plan-gallery-slider) {
    flex: 2 !important; 
    margin-right: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

#plan-gallery-slider {
    margin: 0 !important;
    height: 100% !important;
    flex-grow: 1 !important;
}

/* 3. Force Divi's internal layers to fill the height */
#plan-gallery-slider .et_pb_gallery_items,
#plan-gallery-slider .et_pb_gallery_item,
#plan-gallery-slider .et_pb_gallery_image,
#plan-gallery-slider .et_pb_slides,
#plan-gallery-slider .et_pb_slide {
    height: 100% !important; 
    min-height: 550px !important; 
    border-radius: 0px !important;
}

/* The Magic Crop: Keeps 16:9 images from stretching vertically */
#plan-gallery-slider img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
}

/* 4. Mobile Polish for the Slider */
@media screen and (max-width: 980px) {
    .et_pb_row:has(#plan-gallery-slider) {
        display: block !important;
        width: 90% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
    #plan-gallery-slider .et_pb_gallery_items,
    #plan-gallery-slider .et_pb_gallery_item,
    #plan-gallery-slider .et_pb_gallery_image,
    #plan-gallery-slider .et_pb_slides,
    #plan-gallery-slider .et_pb_slide {
        min-height: 350px !important; 
    }
}

/* ==========================================================
    10. SLIDER UI POLISH (ZILLOW STYLE)
   ========================================================== */

/* 1. The Arrows (White on Dark Background) */
#plan-gallery-slider .et-pb-arrow-prev,
#plan-gallery-slider .et-pb-arrow-next {
    color: #ffffff !important;
    font-size: 36px !important; 
    background-color: rgba(19, 19, 19, 0.85) !important; 
    padding: 15px 20px !important;
    border-radius: 0px !important; 
    transition: all 0.3s ease !important;
    text-shadow: none !important;
}

/* Darken box on hover so the arrow pops */
#plan-gallery-slider .et-pb-arrow-prev:hover,
#plan-gallery-slider .et-pb-arrow-next:hover {
    background-color: #000000 !important; 
}

/* 2. The Zillow Black Opacity Pill */
#plan-gallery-slider .et-pb-controllers {
    background-color: rgba(0, 0, 0, 0.5) !important; 
    border-radius: 20px !important; 
    padding: 5px 12px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important; 
    bottom: 15px !important;
}

/* 3. The White Dots */
#plan-gallery-slider .et-pb-controllers a {
    background-color: rgba(255, 255, 255, 0.5) !important; /* Dim white */
    width: 8px !important; 
    height: 8px !important;
    margin: 0 4px !important;
    border-radius: 50% !important; 
    transition: all 0.3s ease !important;
    box-shadow: none !important; 
}

/* Active Dot (Bright White + Pops outward) */
#plan-gallery-slider .et-pb-controllers .et-pb-active-control {
    background-color: #ffffff !important; 
    transform: scale(1.3) !important; 
}

/* ==========================================================
    AVAILABLE HOMES: OVERVIEW CARD STYLING 
   ========================================================== */

/* 1. Address & Price Header */
div.card-header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
}

h2#single-street { margin-bottom: 0 !important; }

div#single-home-row-2 h4,
h4#single-status {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Bigger Price Tag */
h2.fr-price-tag {
    color: var(--brand-primary) !important;
    font-weight: 900 !important;
    font-size: 34px !important; 
    margin-top: 0 !important;
    text-align: right !important;
}

/* Custom Dividers (Solid #aaaaaa) */
hr.fr-divider {
    border: none !important;
    border-top: 1px solid #aaaaaa !important; 
    opacity: 1 !important;
    margin: 15px 0 !important;
}

/* Brand Primary Bold Variables */
span.fr-red-stat {
    color: var(--brand-primary) !important;
    font-weight: 800 !important;
    font-size: 18px !important;
}

/* ==========================================================
    DESKTOP & MOBILE: VERTICAL SPECS STACK
   ========================================================== */
div#single-home-row-3 {
    width: 100% !important;
    display: block !important; 
}

ul#single-specs {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important; 
    gap: 20px !important; 
    list-style: none !important;
    padding: 0 !important;
    margin: 25px 0 !important;
}

ul#single-specs li {
    width: 100% !important; 
    max-width: 100% !important;
    flex: 1 1 100% !important; 
    display: flex !important;
    align-items: center !important;
    padding-left: 45px !important; 
    min-height: 40px !important; 
    line-height: 1.2 !important; 
}

div.card-links-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 20px !important;
}
div.card-links-row h4 { margin-bottom: 0 !important; }

/* ==========================================================
    MOBILE OVERRIDES (STACKING & ROW DIVIDERS)
   ========================================================== */
@media screen and (max-width: 980px) {
    div.card-header-flex {
        flex-direction: column !important;
    }
    
    h2.fr-price-tag {
        width: 100% !important;
        text-align: left !important;
        border-top: 1px solid #aaaaaa !important; 
        opacity: 1 !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
    }
    
    div.card-links-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    h4#plan {
        border-top: 1px solid #aaaaaa !important; 
        opacity: 1 !important;
        padding-top: 15px !important;
    }
}

/* ==========================================================
   MOBILE ONLY BADGE DIVIDER (Inherits .fr-divider styles)
========================================================== */
.fr-mobile-badge-divider {
    display: none !important; /* Hidden on Desktop */
}

@media (max-width: 767px) {
    .fr-mobile-badge-divider {
        display: block !important;
        width: 100% !important;   /* Forces the line break */
        margin: 0 !important;     /* The flexbox gap will handle the spacing! */
    }
}

/* ==========================================================
    SCHOOL CARD: FINAL STYLES (DESKTOP & MOBILE MATCHED)
   ========================================================== */
#school-info-card {
    background-color: #f8f8f8 !important; 
    padding: 35px 45px !important; 
    border-radius: 12px !important; 
    border: 1px solid #dcdcdc !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important; 
    
    width: 100% !important; 
    max-width: 998px !important; /* Locks to top card on desktop */
    
    margin: 30px auto !important; 
    display: block !important;
    box-sizing: border-box !important;
    clear: both !important;
}

#school-info-card h3.school-header {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding: 10px 0 15px 0 !important; 
    border-bottom: 1px solid #dcdcdc !important; 
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    line-height: 1.6 !important; 
    text-align: left !important;
}

.school-icon-svg {
    width: 26px !important;
    height: 26px !important;
    fill: var(--brand-primary) !important;
}

#school-info-card ul#dynamic-school-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important; 
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#school-info-card ul#dynamic-school-list li {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: flex-start !important; /* Pins label to top on multi-line text */
    font-size: 18px !important; 
    padding: 14px 20px !important; 
    margin: 0 !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
    border: none !important;
    background: transparent;
}

#school-info-card ul#dynamic-school-list li:nth-child(even) {
    background-color: rgba(0,0,0,0.04) !important; 
}

#school-info-card ul#dynamic-school-list li strong {
    color: #555 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    min-width: 150px !important; /* Gives the label space to breathe */
    margin-top: 3px !important; /* Perfect visual alignment with the text */
}

#school-info-card .fr-red-stat {
    font-weight: 800 !important;
    color: var(--brand-primary) !important;
    text-align: right !important;
}

/* Mobile Tweak: Exactly matching the 100% width */
@media screen and (max-width: 980px) {
    #school-info-card { 
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 20px 0 !important; 
        padding: 25px 20px !important; 
    }
    #school-info-card ul#dynamic-school-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 15px !important;
    }
    /* THE FIX: Left align text when stacked on mobile */
    #school-info-card .fr-red-stat {
        text-align: left !important;
    }
}

/* ==========================================================
    COMMUNITY CARD UI
   ========================================================== */
.fr-community-card {
    background-color: #f8f8f8 !important; 
    padding: 35px 45px !important; 
    border-radius: 12px !important; 
    border: 1px solid #dcdcdc !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important; 
    width: 100% !important; 
    margin: 30px auto !important; 
    box-sizing: border-box !important;
    clear: both !important;
}

/* Bully-proof Header Styling: Targets ANY h2 or h3 in the card */
.fr-community-card h3,
.fr-community-card h2,
.fr-card-header {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    padding: 10px 0 15px 0 !important; 
    border-bottom: 1px solid #dcdcdc !important; 
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    line-height: 1.6 !important; 
}

.fr-card-icon {
    width: 26px !important;
    height: 26px !important;
    fill: var(--brand-primary) !important;
    flex-shrink: 0;
}

/* Universal List Styling (Replaces the ID-specific rule) */
.fr-community-card ul.fr-card-list {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important; 
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fr-community-card ul.fr-card-list li {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
    font-size: 18px !important; 
    padding: 14px 20px !important; 
    margin: 0 !important;
    border-radius: 6px !important;
    line-height: 1.4 !important;
    border: none !important;
    background: transparent;
}

.fr-community-card ul.fr-card-list li:nth-child(even) {
    background-color: rgba(0,0,0,0.04) !important; 
}

.fr-community-card ul.fr-card-list li strong {
    color: #555 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
}

/* Mobile Tweak */
@media screen and (max-width: 980px) {
    .fr-community-card { padding: 25px 20px !important; }
    .fr-community-card ul.fr-card-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
}

/* ==========================================================
   DYNAMIC COMMUNITY BADGES (Pixel-Perfect Centering)
========================================================== */
.fr-status-badge {
    position: absolute;
    top: 30px;         
    right: -70px;      
    width: 250px;      
    text-align: center; 
    
    /* THE NUDGE: 6px top/bottom, 0px right, 15px left to center the text! */
    padding: 6px 0 6px 15px; 
    
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 11px;   
    letter-spacing: 1px;
    
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Specific Colors for specific statuses */
.badge-sold-out { background-color: #000000; }     
.badge-coming-soon { background-color: #1e73be; }  
.badge-grand-opening { background-color: var(--brand-primary); }

/* ==========================================================
    ARCHIVE HOMES CARD STYLING (V6 - THE LUXURY GRID)
   ========================================================== */
.fr-archive-card-content {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Sleek Price & Pill Status Row */
.fr-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.fr-big-price {
    font-size: 28px !important; 
    font-weight: 800 !important;
    color: var(--brand-primary) !important;
    line-height: 1 !important;
}

.fr-status-pill {
    background-color: #f0f0f0 !important; /* Sleek gray badge */
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 5px 12px !important;
    border-radius: 20px !important; /* Makes it a pill shape */
    letter-spacing: 0.5px !important;
}

/* THE BULLETPROOF ICON GRID */
ul.fr-icon-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 Equal Columns ALWAYS */
    gap: 10px !important;
    padding: 18px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    border-top: 1px solid #eaeaea !important;
    border-bottom: 1px solid #eaeaea !important;
}

ul.fr-icon-grid li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #333 !important;
    
    /* Icon Formatting */
    padding-top: 32px !important; /* Pushes number down to make room for icon */
    background-position: top center !important;
    background-repeat: no-repeat !important;
    background-size: 26px 26px !important;
}

/* YOUR ICONS - HARDCODED! */
ul.fr-icon-grid li.beds { background-image: url('/wp-content/uploads/icon-beds.png') !important; }
ul.fr-icon-grid li.baths { background-image: url('/wp-content/uploads/icon-baths.png') !important; }
ul.fr-icon-grid li.sqft { background-image: url('/wp-content/uploads/icon-plans.png') !important; }

.fr-grid-label {
    font-size: 11px !important;
    color: #888 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
}

.fr-meta-label {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    color: #333 !important;
    margin-right: 5px !important;
}

/* ==========================================================
    11. MONTHLY PAYMENT BANNER - ARCHIVE HOMES (RESPONSIVE SIZING)
   ========================================================== */
.mh-payment-banner-archive,
.mh-payment-banner-archive * {
    font-size: 16px; 
    padding-top: 10px; 
    padding-bottom: 10px;
}

@media screen and (min-width: 981px) {
    .mh-payment-banner-archive,
    .mh-payment-banner-archive * {
        font-size: 20px; 
        padding-top: 12px; 
        padding-bottom: 12px;
    }
}

/* ==========================================================
    SINGLE HOME PAYMENT BANNER
   ========================================================== */
.single-home-payment-banner {
    background-color: var(--brand-primary); 
    color: #ffffff !important;
    text-align: center !important;
    padding: 15px !important; /* Nice thick banner */
    font-size: 22px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important; /* Makes it feel like an announcement */
    margin: 15px 0 5px 0 !important;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15) !important; /* Lifts it off the page */
}

/* Make the actual price jump out even more */
.single-home-payment-banner strong {
    font-size: 26px !important; 
    font-weight: 900 !important;
    margin-left: 5px !important;
}

/* The tiny disclaimer text underneath */
.single-home-payment-disclaimer {
    font-size: 11px !important; 
    line-height: 1.4 !important; 
    color: #777777 !important; 
    margin-top: 5px !important; 
    margin-bottom: 20px !important;
    text-align: center !important;
}

/* ==========================================================
    UNIVERSAL SUBMENU BAR STYLING
   ========================================================== */
#single-home-sub-menu {
    background-color: #333333 !important;
}

/* ==========================================================
    19. SUBMENU DIVIDERS & HOVER FIXES
   ========================================================== */

/* 1. Base Link Styling */
#single-home-sub-menu a {
    color: #ffffff !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
}

/* 2. THE DESKTOP HOVER: White Background, Black Text! */
#single-home-sub-menu a:hover {
    background-color: #ffffff !important;
    color: #000000 !important; 
}

/* 3. DESKTOP STYLING (Thicker Vertical Line) */
@media (min-width: 768px) {
    #single-home-sub-menu .external-inventory-link {
        /* Increased to 3px to make it a tad thicker! */
        border-left: 3px solid rgba(255, 255, 255, 0.4) !important;
        padding-left: 15px !important;
        margin-left: 15px !important;
    }
}

/* 4. MOBILE STYLING (Proper Gaps & Un-Hidden Lines!) */
@media (max-width: 767px) {
    #single-home-sub-menu, 
    #single-home-sub-menu ul {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important; /* Stops Divi from hiding our line! */
    }
    
    /* Target the wrappers (Divi lists or direct links) */
    #single-home-sub-menu li,
    #single-home-sub-menu > a {
        display: block !important; /* Overrides our JS inline-block */
        width: 100% !important;
        margin-bottom: 24px !important; /* Creates a nice 24px gap BETWEEN links */
        position: relative !important; /* Anchors the line */
        overflow: visible !important; /* Protects the line */
    }

    /* Remove the gap under the very last item */
    #single-home-sub-menu li:last-child,
    #single-home-sub-menu > a:last-child {
        margin-bottom: 0 !important;
    }

    /* Keep the links themselves clean and blocky */
    #single-home-sub-menu a {
        display: block !important;
        padding: 12px 15px !important;
        text-align: center;
        background-color: transparent; 
        border: none !important;
    }
    
    /* THE HORIZONTAL LINE (Thicker & Centered in the 24px gap!) */
    #single-home-sub-menu li:not(:last-child)::after,
    #single-home-sub-menu > a:not(:last-child)::after {
        content: '' !important;
        position: absolute !important;
        bottom: -13px !important;
        left: 20% !important;
        width: 60% !important;
        height: 2px !important;
        background-color: rgba(255, 255, 255, 0.4) !important;
        display: block !important;
        z-index: 10;
    }
}

/* ==========================================================
    STATUS DOTS & CUSTOM HIGHLIGHT BADGES
   ========================================================== */
/* The Status Dot */
.fr-status-pill {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.fr-status-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* Status Colors */
.fr-dot-green  { background-color: #28a745 !important; box-shadow: 0 0 5px rgba(40,167,69,0.4) !important; }
.fr-dot-yellow { background-color: #f1c40f !important; box-shadow: 0 0 5px rgba(241,196,15,0.4) !important; }
.fr-dot-red    { background-color: var(--brand-primary) !important; box-shadow: 0 0 5px rgba(0,0,0,0.3) !important; }
.fr-dot-gray   { background-color: #242323 !important; }

/* The Image Highlight Badge*/
.fr-image-badge {
    position: absolute !important;
    top: 12px !important; /* Moved to Top Left! */
    left: 12px !important;
    z-index: 10 !important;
    padding: 6px 16px !important; 
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 20px !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    backdrop-filter: blur(3px) !important; 
}

/* Pastel Backgrounds (85% Opacity) + Dark Rich Text */
.fr-badge-red   { 
    background-color: rgba(255, 207, 201, 0.85) !important; /* #ffcfc9 */
    color: #a61b00 !important; 
}
.fr-badge-gold  { 
    background-color: rgba(255, 229, 160, 0.85) !important; /* #ffe5a0 */
    color: #8a6500 !important; 
}
.fr-badge-green { 
    background-color: rgba(212, 237, 188, 0.85) !important; /* #d4edbc */
    color: #2f6600 !important; 
}
.fr-badge-black { 
    background-color: rgba(232, 234, 237, 0.85) !important; /* Soft gray */
    color: #333333 !important; 
}

/* ==========================================================
    CORNER RIBBONS (SOLD & PENDING)
   ========================================================== */
.home-gallery {
    position: relative !important;
    overflow: hidden !important; /* Forces the ribbon to clip at the corner cleanly */
}

/* The invisible box that holds the rotated ribbon */
.ribbon-wrapper {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 150px !important;  /* INCREASED from 120px */
    height: 150px !important; /* INCREASED from 120px */
    overflow: hidden !important;
    z-index: 15 !important;
    pointer-events: none !important; 
}

/* The actual ribbon strip */
.home-ribbon {
    position: absolute !important;
    top: 40px !important;     /* Pushed down to match the new width */
    right: -55px !important;  /* Pulled further right to center the text */
    width: 230px !important;  /* MASSIVE STRETCH! Well past the 150px wrapper */
    
    transform: rotate(45deg) !important;
    text-align: center !important;
    padding: 7px 0 !important; 
    font-size: 13px !important; 
    font-weight: 900 !important; 
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}

/* Ribbon Colors */
.ribbon-red    { background-color: var(--brand-primary) !important; }
.ribbon-yellow { background-color: #f1c40f !important; color: #111111 !important; }

/* ==========================================================
    17. HOMES ARCHIVE DROPDOWN FIX
   ========================================================== */
select#refine-area-homes, 
select#refine-plan-homes, 
select#refine-sort-homes {
    min-height: 48px !important; /* Gives the text room to breathe */
    height: auto !important;
    padding: 0 15px !important; /* Removes vertical padding that causes clipping */
    line-height: 48px !important; /* Perfectly vertically centers the text */
    background-color: var(--brand-primary);
    color: #ffffff;
    border: 1px solid var(--brand-primary-dark);
    font-size: 16px;
}

/* ==========================================================
    RECAPTCHA BADGE FIX
   ========================================================== */
/* Move the Google Captcha badge up so it stops fighting Divi */
.grecaptcha-badge {
    bottom: 90px !important; /* Pushes it just above the Back to Top button */
    z-index: 9999 !important;
}

/* ==========================================================
   1. DESKTOP SIDEBAR 
========================================================== */
@media (min-width: 768px) {
    body #request-info-tab { display: none !important; }
    
    #request-info-sidebar {
        position: absolute; /* Starts absolute, JS makes it sticky */
        top: 250px;
        right: 0;
        width: 350px;
        background: #000000 !important;
        padding: 30px !important;
        color: #ffffff !important;
        z-index: 99 !important;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
    }
}

/* ==========================================================
   2. MOBILE TAB (The Stretch Fix)
========================================================== */
@media (max-width: 767px) {
    body #request-info-sidebar { display: none !important; }
    
    body #request-info-tab {
        position: fixed !important;
        top: 50% !important;
        right: 0 !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        
        /* THE STRETCH FIX: Auto height + breathing room */
        width: 45px !important;
        height: auto !important; 
        padding: 25px 0 !important; 
        margin: 0 !important;
        
        background-color: var(--brand-primary) !important; 
        color: #ffffff !important;
        writing-mode: vertical-rl !important;
        text-orientation: mixed !important;
        white-space: nowrap !important;
        
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        
        border-radius: 8px 0 0 8px !important;
        z-index: 99999 !important;
        font-size: 15px !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3) !important;
    }
}

/* ==========================================================
   3. THE FORM BEAUTIFICATION (Executive Override)
========================================================== */
/* Hide the Spam Traps completely */
html body .gform_validation_container, 
html body .gfield_visibility_hidden {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Modal Internal Spacing */
html body #request-info-box .thrive-modal {
    padding: 35px 25px 25px 25px !important;
    background: #111111 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* Beautiful White Labels */
html body .gform_wrapper .gfield_label {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-align: left !important;
}

/* Clean, Modern Inputs */
html body .gform_wrapper input[type="text"],
html body .gform_wrapper input[type="email"],
html body .gform_wrapper input[type="tel"],
html body .gform_wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 15px !important;
    border: none !important;
    border-radius: 6px !important;
    background-color: #f5f5f5 !important;
    color: #333333 !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
    font-family: inherit !important;
    font-size: 16px !important; /* Prevents iPhone auto-zoom */
}

/* The Big Brand Submit Button */
html body .gform_wrapper input[type="submit"],
html body .gform_wrapper .gform_button {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 18px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 6px !important;
    margin-top: 15px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    transition: background 0.3s ease !important;
}

html body .gform_wrapper input[type="submit"]:hover,
html body .gform_wrapper .gform_button:hover {
    background-color: var(--brand-primary-dark) !important;
}

/* Removes bullet points if Gravity Forms tries to add them to lists */
html body .gform_wrapper ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================
   4. FINAL MODAL POLISH (Spacing, X Button, Hamburger)
========================================================== */

/* Add breathing room below the phone number */
html body #request-info-box .thrive-modal a[href^="tel"] {
    display: block !important;
    margin-bottom: 30px !important; 
}

/* Ensure the modal box contains the X button */
html body #request-info-box .thrive-modal {
    position: relative !important; 
}

/* Rebuild the X Button to sit INSIDE the box, away from the hamburger */
html body #request-info-box .thrive-modal-exit {
    position: absolute !important;
    top: 15px !important; 
    right: 15px !important; 
    width: 30px !important;
    height: 30px !important;
    line-height: 26px !important; /* Perfect vertical center */
    text-align: center !important;
    background-color: transparent !important; /* Clean app look */
    background-image: none !important; /* Kills the child theme image */
    color: #888888 !important; /* Soft gray */
    border: 2px solid #888888 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

/* Make it pop when tapped/hovered */
html body #request-info-box .thrive-modal-exit:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Ultimate Hamburger Defeat (Ensures black overlay is supreme) */
html body .thrive-modal-entire.modal-visible, 
html body #thrive-modal-background {
    z-index: 999999999 !important; 
}

/* ==========================================================
   REQUEST INFO SIDEBAR PHONE NUMBER
========================================================== */
.kbcg-request-phone {
    font-weight: 900 !important;
    font-size: 22px !important;
    color: var(--brand-primary) !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
    transition: opacity 0.3s ease !important;
}

.kbcg-request-phone:hover {
    opacity: 0.8 !important; /* Nice little hover effect */
}

 /* ==========================================================
   DIVI ARCHIVE OVERRIDE: FORCE FULL WIDTH
   ========================================================== */
.post-type-archive-plans #content-area,
.post-type-archive-homes #content-area,
.post-type-archive-community #content-area {
    width: 100% !important;
    float: none !important;
}  

/* ==========================================================
   RESURRECT THE DESKTOP SIDEBAR
   ========================================================== */
@media (min-width: 768px) {
    #request-info-sidebar {
        display: block !important; /* Overrides the old Flintrock hidden rule */
        right: 0 !important;
        width: 350px !important;
        background: #000000 !important;
        padding: 30px !important;
        color: #ffffff !important;
        z-index: 999999 !important; /* Forces it above Divi's layers */
        box-shadow: -5px 5px 15px rgba(0,0,0,0.2) !important;
        opacity: 1 !important;
        visibility: visible !important;
        /* Note: We let Javascript handle the 'position' and 'top' so it can scroll! */
    }
    
    body #request-info-tab { 
        display: none !important; /* Ensure mobile tab stays hidden on desktop */
    }
}

/* ==========================================================
   THE TRUE FLINTROCK ARCHETYPE: 65% / 33% SPLIT (V2 - Dialed In)
   ========================================================== */
@media (min-width: 981px) {
    /* 1. The Container (Capped at 1080px so cards stay ~700px wide) */
    body.archive .container {
        width: 80% !important;
        max-width: 1080px !important; /* Reverted to Flintrock Original! */
    }
    
    body.archive #left-area,
    body.archive #content-area {
        width: 100% !important;
        float: none !important;
        position: relative !important; /* Anchors the sidebar */
        padding-right: 0 !important;
    }
    
    body.archive #sidebar { display: none !important; }

    /* 2. Constrain & CENTER the Headers over the 65% column */
    #home-count, #homes-top-bar, #plans-top-bar {
        width: 65% !important; /* Matches the card width exactly */
        margin-left: 0 !important;
        justify-content: center !important; /* Centered! */
        text-align: center !important; /* Centered! */
    }

    /* 3. The Massive 1-Column Cards (65%) */
    #home-list, #community-list {
        display: block !important;
        width: 100% !important;
    }

    #home-list article.et_pb_post, 
    #community-list article.et_pb_post {
        width: 65% !important; 
        margin: 20px 0 40px 0 !important;
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* 4. The Black Sidebar (Locked to 350px) */
/* ==========================================================
   UPDATED SIDEBAR: DOCKED POSITION (65/33 Archetype)
   ========================================================== */
@media (min-width: 981px) {
    #request-info-sidebar {
        display: block !important;
        position: absolute; 
        top: 310px; 
        /* DOCKED: Sitting exactly to the right of the 65% card */
        left: 68%; 
        width: 350px !important; 
        background: #000000 !important;
        padding: 30px !important;
        color: #ffffff !important;
        z-index: 99 !important;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.2) !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* No 'right' property here - let JS handle the 'undocking' */
    }
}

/* 5. Kill the Default Blue Browser Phone Link */
#request-info-sidebar a.fr-request-phone,
#request-info-sidebar a[href^="tel"],
#request-info-box a.fr-request-phone,
#request-info-box a[href^="tel"] {
    color: #ffffff !important; /* Pure white text */
    text-decoration: none !important; /* Kills the underline */
    font-size: 26px !important; /* Nice and big */
    font-weight: 900 !important;
    display: block !important;
    margin-bottom: 15px !important;
    transition: color 0.3s ease !important;
}

/* Add a slick brand-color hover effect */
#request-info-sidebar a.fr-request-phone:hover,
#request-info-box a.fr-request-phone:hover {
    color: var(--brand-primary) !important; 
}
    
    body #request-info-tab { 
        display: none !important; 
    }
}

/* Mobile Overrides (Keep it 100% stacked) */
@media (max-width: 980px) {
    #home-count, #homes-top-bar, #plans-top-bar { width: 100% !important; justify-content: center !important; text-align: center !important; }
    #home-list article.et_pb_post { width: 100% !important; }
}

/* ==========================================================
   GLOBAL PHONE LINK FIX (Desktop Sidebar & Mobile Modal)
   ========================================================== */
a.fr-request-phone,
#request-info-sidebar a[href^="tel"],
#request-info-box a[href^="tel"],
.thrive-modal a[href^="tel"] {
    color: #ffffff !important; /* Pure white text */
    text-decoration: none !important; /* Kills the browser underline */
    font-size: 26px !important; /* Nice and big */
    font-weight: 900 !important;
    display: block !important;
    text-align: center !important; /* Centers it perfectly in the mobile modal */
    margin-bottom: 15px !important;
    transition: color 0.3s ease !important;
}

/* Add the slick hover effect */
a.fr-request-phone:hover,
#request-info-sidebar a[href^="tel"]:hover,
#request-info-box a[href^="tel"]:hover,
.thrive-modal a[href^="tel"]:hover {
    color: var(--brand-primary, #c31928) !important; 
}

/* ==========================================================
   MOBILE HEADER: THE AGENCY STACK (Logos Centered, Menu Pinned)
   ========================================================== */
@media (max-width: 980px) {
    /* 1. Turn the header container into a vertical stack */
    header#header .et_menu_container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centers everything */
        position: relative !important;
        padding-top: 20px !important;
    }

    /* 2. Reorder the HTML visually (Logo 2 jumps up under Logo 1) */
    #logo {
        order: 1 !important;
        margin: 0 0 20px 0 !important;
        max-width: 220px !important; /* Gives it room to breathe and grow */
        width: auto !important;
        float: none !important;
    }
    
    #logo-2 {
        order: 2 !important;
        margin: 0 0 15px 0 !important;
        max-width: 180px !important; /* Slightly smaller for hierarchy, but legible */
        width: auto !important;
        float: none !important;
    }

    /* 3. Push the phone number and nav container below the logos */
    #header-mid {
        order: 3 !important;
        width: 100% !important;
    }

    /* 4. The Hamburger Pin (Un-stick it from the stack, pin to top right) */
    .mobile_menu_bar {
        position: absolute !important;
        top: 30px !important; /* Aligns vertically with the top logo */
        right: 20px !important;
        margin: 0 !important;
        z-index: 100 !important;
    }
}

/* ==========================================================
   PLANS PAGE: VERTICAL CENTERING
   ========================================================== */
ul#single-specs-list {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Centers the items vertically */
    height: 100% !important; /* Forces it to match the column height */
    min-height: 400px !important; /* Gives it a baseline height to work with */
}