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

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

/**** SOCIAL ICONS ****/
.et-social-icons {
    float: right;
}
	.et-social-icons li {
	    display: inline-block;
	    margin-left: 20px;
	}
		.et-social-icon a {
		    display: inline-block;
		    font-size: 24px;
		    position: relative;
		    text-align: center;
		    -webkit-transition: color .3s ease 0s;
		    transition: color .3s ease 0s;
		    color: #666;
		    text-decoration: none;
		}
			.et-social-youtube a.icon:before {
			    content: "\E0A3";
			}

/**** AVAILABLE HOMES - ARCHIVE ****/
#home-count {
    text-align: center;
    margin: 40px auto;
    text-transform: uppercase;
    color: #000;
	width: 63%;
    margin: 20px 0;
}
	#home-count span {
	    font-weight: 900;
	    width: 50px;
	    height: 50px;
	    background: #ff4e00;
	    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: 63%;
}
	#homes-top-bar select, #plans-top-bar select {
		width: 260px;
	    background: #990f08;
	    color: #fff;
	    font-size: 16px;
	    border: none;
	    height: 40px;
	    margin: 5px 10px;
	    text-transform: capitalize;
	}

#home-list article {
    position: relative;
    width: 65%;
    margin: 20px 5% 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 {
    position: absolute;
    top: 80px;
    right: 0;
    width: 33%;
    background: #000;
    padding: 2.5%;
    color: #fff;
    z-index: 10;
}
	#request-info-sidebar h2 {
	    color: #fff;
	    font-weight: 700;
	    text-transform: uppercase;
	}
	
	#request-info-sidebar p.gform_required_legend {
	    visibility: hidden;
	}

	.homes .home-info-top {
	    padding: 30px 2.5% 0px;
	    display: flex;
	    flex-wrap: wrap;
	}
		.homes .home-info-top .address {
		    width: 66%;
		    float: left;
		    display: block;
		    order: 1;
		    margin-right: 9%;
		}
			.homes .home-info-top .address h2 {
			    font-size: 17px;
			    line-height: 1.5;
			    font-weight: 700;
			}
				.homes .home-info-top .address h2 strong {
				    display: block;
				    font-size: 24px;
				    font-weight: 900;
				}
	
	.home-info-top .home-info-icons {
	    display: flex;
	    max-width: 66%;
	    flex-wrap: wrap;
	    order: 3;
	}
		.home-info-top .home-info-icons li {
		    width: 30%;
		    margin-right: 1%;
		    position: relative;
		    padding-left: 40px;
		    background-repeat: no-repeat;
		    background-position: center left;
		}
			.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: #ff4e00;
	            display: inline;
			}
	
	span.sqft {
	    width: 50%;
	}
		span.sqft strong {
		    display: block;
		}
	.home-price-box {
	    width: 25%;
	    padding: 1% 1.5%;
	    background: #ddd;
	    order: 1;
	}
		.home-price-box strong {
		    display: block;
		}
		.home-price-box .price {
		    display: block;
		    font-size: 32px;
		    margin: 10px auto;
		}
			.home-price-box .price.const {
			    font-size: 16px;
			    font-weight: 600;
			    line-height: 1;
			}
		.home-price-box .status {
		    display: block;
		    padding-top: 3px;
		    border-top: 1px solid #aaa;
		}
			.home-price-box .status .const {
			    display: block;
			}
	
	.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: #ff4e00;
				}
				
				.home-info-bottom .btn {
				    display: block;
				    text-align: center;
				    max-width: 75%;
				    margin: 0 auto;
				    background: #ff4e00;
				    color: #fff;
				    border: 1px solid #ff4e00;
				    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;
						}


#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-tab {
    font-size: 22px;
    color: #fff;
    transform: rotate(-90deg);
    position: fixed;
    left: calc(100vw - 225px);
    top: 350px;
    background: #000;
    max-width: 400px;
    max-height: 60px;
    z-index: 10;
    padding: 0.5em 3em;
    cursor: pointer;
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
}

	#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;
    margin: 40px auto;
    text-transform: uppercase;
    color: #000;
}
	#home-count span {
	    font-weight: 900;
	    width: 50px;
	    height: 50px;
	    background: #990f08;
	    padding: 0.6em;
	    border-radius: 50%;
	    color: #fff;
	    font-size: 20px;
        display: inline-block;
	}
#home-list article {
    position: relative;
    width: 65%;
    margin: 20px 5% 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 {
    position: absolute;
    top: 140px;
    right: 0;
    width: 33%;
    background: #000;
    padding: 2.5%;
    color: #fff;
}
	#request-info-sidebar h2 {
	    color: #fff;
	    font-weight: 700;
	    text-transform: uppercase;
	}
	
	#request-info-sidebar p.gform_required_legend {
	    visibility: hidden;
	}

	.homes .home-info-top {
	    padding: 30px 2.5% 0px;
	    display: flex;
	    flex-wrap: wrap;
	}
		.homes .home-info-top .address {
		    width: 66%;
		    float: left;
		    display: block;
		    order: 1;
		    margin-right: 9%;
		}
			.homes .home-info-top .address h2 {
			    font-size: 17px;
			    line-height: 1.5;
			    font-weight: 700;
			}
				.homes .home-info-top .address h2 strong {
				    display: block;
				    font-size: 24px;
				    font-weight: 900;
				}
	
	.home-info-top .home-info-icons {
	    display: flex;
	    max-width: 66%;
	    flex-wrap: wrap;
	    order: 3;
	}
		.home-info-top .home-info-icons li {
		    width: 30%;
		    margin-right: 1%;
		    position: relative;
		    padding-left: 40px;
		    background-repeat: no-repeat;
		    background-position: center left;
		    background-size: 32px;
		    height: 34px;
		}
			.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: #990f08;
	            display: inline;
			}

	.home-price-box {
	    width: 25%;
	    padding: 1% 1.5%;
	    background: #ddd;
	    order: 1;
	}
		.home-price-box .price {
		    display: block;
		    font-size: 32px;
		    margin: 10px auto;
		}
			.home-price-box .price.const {
			    font-size: 16px;
			    font-weight: 600;
			    line-height: 1;
			}
		.home-price-box .status {
		    display: block;
		    padding-top: 3px;
		    border-top: 1px solid #aaa;
		}
			.home-price-box .status .const {
			    display: block;
			    line-height: 1.2;
			}
	
	.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: #990f08;
	    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);
		}
	
	#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: #990f08;
				}
				
				.home-info-bottom .btn {
				    display: block;
				    text-align: center;
				    max-width: 75%;
				    margin: 0 auto;
				    background: #990f08;
				    color: #fff;
				    border: 1px solid #990f08;
				    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;
						}


#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-tab {
    font-size: 22px;
    color: #fff;
    transform: rotate(-90deg);
    position: fixed;
    left: calc(100vw - 225px);
    top: 350px;
    background: #000;
    max-width: 400px;
    max-height: 60px;
    z-index: 10;
    padding: 0.5em 3em;
    cursor: pointer;
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
}

	#request-info-box h2 {
	    font-size: 42px;
	    color: #fff;
	    font-weight: 700;
	    text-transform: uppercase;
	}
	
	
	
/*** SINGLE HOMES ***/
#home-title {
    margin-bottom: 0 !important;
    border-bottom: 5px solid #990f08;
    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: #990f08;
	    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 #990f08;
	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.2em;
		    border: 1px solid #991009;
		    display: block;
		    line-height: 1;
		    transition: all .2s ease-out;
		}
			.single-plans #single-home-row-4 h4 a:hover strong {
			    background: #991009;
			    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: #990f08;
		}
		
	#single-specs {
	    width: 100%;
	}
		#single-specs li {
		    font-size: 18px;
		    width: 30%;
		    padding-left: 40px;
		    position: relative;
		}
			#single-specs li:before {
			    content: "";
			    display: block;
			    position: absolute;
			    left: 0;
			    width: 32px;
			    height: 32px;
			}
			#single-specs li#baths:before {
			    background: url(/wp-content/uploads/icon-baths.png) no-repeat center / contain;
			}
			#single-specs li#beds:before {
			    background: url(/wp-content/uploads/icon-beds.png) no-repeat center / contain;
			}
			#single-specs 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: #990f08;
		}
		
	.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 ***/

#plan-tour {
    margin: 40px auto -14px !important;
}
/*
	#plan-tour iframe, #home-title iframe {
	    width: 100%;
	    height: 900px;
	}
*/
#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;
		}
	#request-info-tab {
	    top: 490px;
	    width: 100%;
	    max-height: 100%;
	    padding: 0.5em 10px;
	    left: calc(100vw - 170px);
	    max-width: 300px;
	}
	
/*
	#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-tab {
	    top: 400px;
	    width: 100%;
	    max-height: 100%;
	    padding: 0.5em 10px;
	    left: calc(100vw - 133px);
	    max-width: 230px;
	    font-size: 18px;
	    z-index: 100000;
	}
	#request-info-sidebar {
		display: none;
	}
	
	
#home-list article {
    width: 100%;
    display: flex;
    flex-direction: column;
}
	#home-list article .home-info-top {
	    order: 1;
	}
	#home-list article .home-info-icons {
	    flex-direction: row;
	    flex-wrap: wrap;
	}
		#home-list article .home-info-icons li {
		    width: 30%;
		    margin-right: 1%;
		    padding-left: 0;
		    padding-top: 44px;
		}
		#home-list article .home-info-icons li:last-child {
		    width: 100%;
		    padding-top: 10px;
		    padding-left: 5%;
		}
	#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 {
		    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 Red Gable Red as a safety fallback */
    --brand-primary: var(--kbcg-brand-primary, #8d332c); 
    
    /* 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, #8d332c) 80%, black); 
}

/* ==========================================================
   2. 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; 
}

/* ==========================================================
   3. PREMIUM FLOOR PLAN ARCHIVE LAYOUT 
   ========================================================== */
#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 (Backup if SVGs are removed) */
#main-content ul.plan-info-icons li.sqft  { background-image: url('images/icon-plans.png') !important; }
#main-content ul.plan-info-icons li.baths { background-image: url('images/icon-baths.png') !important; }
#main-content ul.plan-info-icons li.beds  { background-image: url('images/icon-beds.png') !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; 
    }
}

/* ==========================================================
   COMMUNITY ARCHIVE CARDS
   ========================================================== */
.kbcg-archive-card-content {
    padding: 25px 20px;
}

.kbcg-card-title-wrap {
    margin-bottom: 25px;
    text-align: center;
}

.kbcg-card-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kbcg-card-title a {
    text-decoration: none;
    color: var(--kbcg-brand-primary, #8d332c) !important;
}

.kbcg-card-city {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--kbcg-brand-secondary, #322d29);
    margin-top: 10px;
    font-weight: 800;
}

.kbcg-card-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 20px 10px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
}

.kbcg-stat-box {
    text-align: center;
}

.kbcg-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    font-weight: 800;
    margin-bottom: 6px;
}

.kbcg-stat-value {
    font-size: 18px;
    color: var(--kbcg-brand-primary, #8d332c);
    font-weight: 800;
}

.kbcg-stat-divider {
    background: #ddd;
    height: 40px;
    width: 1px;
    margin: 0 auto;
}

.kbcg-card-inventory {
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 800;
    color: var(--kbcg-brand-primary, #8d332c);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Forces the button to stretch full width in the card */
.kbcg-archive-card-content .kbcg-view-details-btn {
    width: 100%;
    display: block; 
}

/* ==========================================================
   4. GLOBAL BUTTON STYLING (Homes, Plans, Communities)
   ========================================================== */

/* Isolated Custom Button Styles */
.kbcg-archive-card .btn,
#kbcg-unified-card .btn {
    display: inline-block;
    background: var(--kbcg-brand-primary, #8d332c);
    padding: 0.5em 1.5em;
    border-radius: 4px;
    border: 1px solid var(--kbcg-brand-primary, #8d332c);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-family: inherit;
    font-size: 16px;
    transition: all .2s ease-out;
    top: 10px;
    position: relative;
    text-decoration: none;
}

.kbcg-archive-card .btn:hover,
#kbcg-unified-card .btn:hover {
    background: white;
    color: var(--kbcg-brand-primary, #8d332c);
}

.kbcg-archive-card .btn.outline,
#kbcg-unified-card .btn.outline {
    background: transparent;
    border: 2px solid var(--kbcg-brand-primary, #8d332c);
    color: var(--kbcg-brand-primary, #8d332c);
}

.kbcg-archive-card .btn.outline:hover,
#kbcg-unified-card .btn.outline:hover {
    background: var(--kbcg-brand-primary, #8d332c);
    color: #fff;
}

#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;
}

/* ==========================================================
    5. SINGLE PAGE UNIFIED SPEC CARD 
   ========================================================== */
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;
}

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;
}

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;
}

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;
}

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;
}

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;
}

@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; }
}

/* ==========================================================
   6. UNIFIED SPEC CARD ICONS
   ========================================================== */
body ul#single-specs,
body ul#single-specs-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

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;
    justify-content: flex-start !important;
    gap: 6px !important; 
    min-height: 45px !important;
}

body ul#single-specs li strong,
body ul#single-specs-list li strong {
    color: #333333 !important; 
    font-weight: 400 !important; 
    margin: 0 !important; 
}

body ul#single-specs li span,
body ul#single-specs-list li span {
    color: var(--brand-primary) !important; 
    font-weight: 800 !important; 
    margin: 0 !important; 
}

/* Fallback icons */
body ul#single-specs li.sqft,   body ul#single-specs-list li#sqft-target   { background-image: url('images/icon-plans.png') !important; }
body ul#single-specs li.beds,   body ul#single-specs-list li#beds-target   { background-image: url('images/icon-beds.png') !important; }
body ul#single-specs li.baths,  body ul#single-specs-list li#baths-target  { background-image: url('images/icon-baths.png') !important; }
body ul#single-specs li.garage, body ul#single-specs-list li#garage-target { background-image: url('images/icon-garage.png') !important; }
body ul#single-specs li.type,   body ul#single-specs-list li#type-target   { background-image: url('images/icon-type.png') !important; }
body ul#single-specs li::before,
body ul#single-specs-list li::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
}

/* ==========================================================
    7. 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; 
    }
    
}

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;
}

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; 
}

/* ==========================================================
    8. FOOTER & DISCLAIMER
   ========================================================== */
/* Force the legal footer to break out of Divi's narrow rows */
.kbcg-plan-legal-branding {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
}

.kbcg-plan-disclaimer-wrap {
    max-width: 1000px;
    margin: 0 auto 30px auto;
    padding: 0 5%;
}
.kbcg-plan-disclaimer-wrap p {
    color: #999999 !important; 
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: center;
    font-style: italic;
}

.kbcg-plan-mini-footer {
    background-color: var(--kbcg-brand-primary, #8d332c) !important;
    padding: 40px 0 !important;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* THE BREAKOUT TRICK: Forces full width across any screen */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
}

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

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

/* ==========================================================
    9. SUB-MENU ACTION BAR (DESKTOP & BASE STYLES)
   ========================================================== */
#single-home-sub-menu {
    width: 100% !important; 
    background-color: #333333 !important; 
    padding: 0 !important; 
    position: relative;
    z-index: 99;
}

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

#single-home-sub-menu li {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    margin: 0 !important; 
}

#single-home-sub-menu a {
    color: #ffffff !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 12px 15px !important; 
    border-radius: 4px;
    display: inline-block !important; /* Critical for padding & hover to work correctly */
    transition: all 0.3s ease-in-out !important; 
}

/* HOVER: White box for legibility */
#single-home-sub-menu a:hover {
    background-color: #ffffff !important;
    color: var(--kbcg-brand-primary, #8d332c) !important;
    letter-spacing: 1.5px !important; 
}

/* DESKTOP ONLY: Vertical Pipes & Spacing */
@media (min-width: 981px) {
    #single-home-sub-menu ul {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px 0 !important; 
        padding: 5px 20px !important; 
    }

    #single-home-sub-menu li:not(:first-child)::before {
        content: "|" !important;
        position: absolute !important;
        left: 0 !important;
        transform: translateX(-50%) !important;
        color: rgba(255,255,255,0.2) !important;
        font-weight: 300 !important;
    }

    #single-home-sub-menu .external-inventory-link,
    #single-home-sub-menu li[style*="margin-left"] {
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
    }
}

/* ==========================================================
    10. GALLERY & FORM 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 MASTER GALLERY GRID (All Devices Base) --- */
body .plan-gallery-grid .et_pb_gallery_items {
    display: grid !important;
    gap: 2px !important; 
    width: 100% !important;
}
body .plan-gallery-grid .et_pb_gallery_item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    float: none !important;
    display: block !important;
}

body .plan-gallery-grid .et_pb_gallery_image,
body .plan-gallery-grid .et_pb_gallery_image img {
    display: block !important;
    vertical-align: bottom !important;
    line-height: 0 !important;
    margin-bottom: 0 !important;
}

#plan-gallery-slider img {
    object-fit: cover !important; /* Stops stretching */
}



/* ========================================= */
/* DESKTOP RULES (4 Columns, 20 Images)      */
/* ========================================= */
@media screen and (min-width: 981px) {
    body .plan-gallery-grid .et_pb_gallery_items {
        grid-template-columns: repeat(4, 1fr) !important; 
    }
    
    /* Hide image 21+ */
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(n+21) {
        display: none !important;
    }

    /* Overlay for EXACTLY IMAGE 20 */
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(20) .et_pb_gallery_image {
        position: relative !important;
        display: block !important;
    }
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(20) .et_pb_gallery_image::after {
        content: '+ View More Photos' !important;
        position: absolute !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        background-color: rgba(141, 51, 44, 0.85) !important; /* Red Gable Red Tint */
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: bold !important;
        font-size: 16px !important;
        text-transform: uppercase !important;
        pointer-events: none !important; 
        z-index: 9999 !important;
    }
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(20) .et_overlay {
        display: none !important;
    }
}

/* ========================================= */
/* MOBILE RULES (2 Columns, 4 Images)        */
/* ========================================= */
@media screen and (max-width: 980px) {
    body .plan-gallery-grid .et_pb_gallery_items {
        grid-template-columns: repeat(2, 1fr) !important; 
    }

    /* Hide image 5+ */
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(n+5) {
        display: none !important;
    }

    /* Overlay for EXACTLY IMAGE 4 */
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(4) .et_pb_gallery_image {
        position: relative !important;
        display: block !important;
    }
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(4) .et_pb_gallery_image::after {
        content: '+ View More Photos' !important;
        position: absolute !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        background-color: rgba(141, 51, 44, 0.85) !important; /* Red Gable Red Tint */
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: bold !important;
        font-size: 18px !important;
        text-transform: uppercase !important;
        pointer-events: none !important; 
        z-index: 9999 !important;
    }
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(4) .et_overlay {
        display: none !important;
    }
}
/* --- END MASTER GRID --- */

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

/* ==========================================================
    11. THE "NO-JUMP" STRETCH SLIDER (The Holy Grail)
   ========================================================== */
@media screen and (min-width: 981px) {
    /* 1. The Flex Row */
    .et_pb_row:has(#plan-gallery-slider),
    .et_pb_row:has(#community-gallery-slider) {
        width: 80% !important; max-width: 100% !important; margin: 0 auto !important;
        display: flex !important; align-items: stretch !important; padding: 0 !important;
    }

    /* 2. The Anchor Column */
    .et_pb_column:has(#plan-gallery-slider),
    .et_pb_column:has(#community-gallery-slider) {
        flex: 2 !important; margin-right: 0 !important; padding: 0 !important; 
        position: relative !important; min-height: 550px !important;
    }

    /* 3. The Absolute Slider Module */
    #plan-gallery-slider, 
    #community-gallery-slider { 
        position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        height: 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
    }
}

/* 4. Force Master Wrappers to 100% */
#plan-gallery-slider .et_pb_gallery_items, #community-gallery-slider .et_pb_gallery_items,
#plan-gallery-slider .et_pb_slider, #community-gallery-slider .et_pb_slider,
#plan-gallery-slider .et_pb_slides, #community-gallery-slider .et_pb_slides {
    height: 100% !important; width: 100% !important; 
    padding: 0 !important; margin: 0 !important; 
}

/* 5. THE HOLY GRAIL: Stack them, keep them block, fade via opacity */
#plan-gallery-slider .et_pb_slide, #community-gallery-slider .et_pb_slide,
#plan-gallery-slider .et_pb_gallery_item, #community-gallery-slider .et_pb_gallery_item {
    position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    height: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
    display: block !important; /* Defeats Divi's display:none script */
    opacity: 0 !important; /* Hides inactive slides smoothly natively */
    z-index: 1 !important;
    transition: opacity 0.8s ease-in-out !important; /* Smooth butter fade */
}

/* 6. Show the Active Slide */
#plan-gallery-slider .et-pb-active-slide, #community-gallery-slider .et-pb-active-slide {
    opacity: 1 !important; 
    z-index: 2 !important;
}

/* 7. Let Images Cover the Absolute Slide Perfectly */
#plan-gallery-slider img, #community-gallery-slider img,
#plan-gallery-slider .et_pb_gallery_image, #community-gallery-slider .et_pb_gallery_image,
#plan-gallery-slider .et_pb_gallery_image a, #community-gallery-slider .et_pb_gallery_image a {
    height: 100% !important; width: 100% !important; display: block !important;
    padding: 0 !important; margin: 0 !important; max-height: none !important;
}
#plan-gallery-slider img, #community-gallery-slider img {
    object-fit: cover !important; object-position: center !important;
}

/* 8. Controls to the front */
#plan-gallery-slider .et-pb-controllers, #community-gallery-slider .et-pb-controllers,
#plan-gallery-slider .et-pb-arrow-prev, #plan-gallery-slider .et-pb-arrow-next,
#community-gallery-slider .et-pb-arrow-prev, #community-gallery-slider .et-pb-arrow-next {
    z-index: 10 !important;
}

/* 9. Mobile Setup */
@media screen and (max-width: 980px) {
    .et_pb_row:has(#plan-gallery-slider), .et_pb_row:has(#community-gallery-slider) {
        display: block !important; width: 90% !important; max-width: 90% !important; margin: 0 auto !important;
    }
    #plan-gallery-slider, #community-gallery-slider {
        position: relative !important; height: 350px !important;
    }
}

/* Zillow Polish (Controls styling) */
#plan-gallery-slider .et-pb-arrow-prev, #plan-gallery-slider .et-pb-arrow-next,
#community-gallery-slider .et-pb-arrow-prev, #community-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;
}
#plan-gallery-slider .et-pb-arrow-prev:hover, #plan-gallery-slider .et-pb-arrow-next:hover,
#community-gallery-slider .et-pb-arrow-prev:hover, #community-gallery-slider .et-pb-arrow-next:hover { background-color: #000000 !important; }
#plan-gallery-slider .et-pb-controllers, #community-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;
}
#plan-gallery-slider .et-pb-controllers a, #community-gallery-slider .et-pb-controllers a {
    background-color: rgba(255, 255, 255, 0.5) !important; width: 8px !important; height: 8px !important;
    margin: 0 4px !important; border-radius: 50% !important; transition: all 0.3s ease !important; box-shadow: none !important; 
}
#plan-gallery-slider .et-pb-controllers .et-pb-active-control, #community-gallery-slider .et-pb-controllers .et-pb-active-control { background-color: #ffffff !important; transform: scale(1.3) !important; }

/* ==========================================================
    12. AVAILABLE HOMES OVERVIEW STYLING 
   ========================================================== */
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; }

h2.kbcg-price-tag {
    color: var(--brand-primary) !important;
    font-weight: 900 !important; font-size: 34px !important; 
    margin-top: 0 !important; text-align: right !important;
}
hr.kbcg-divider { border: none !important; border-top: 1px solid #aaaaaa !important; opacity: 1 !important; margin: 15px 0 !important; }
span.kbcg-red-stat { color: var(--brand-primary) !important; font-weight: 800 !important; font-size: 18px !important; }

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; }

@media screen and (max-width: 980px) {
    div.card-header-flex { flex-direction: column !important; }
    h2.kbcg-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; }
}

.kbcg-mobile-badge-divider { display: none !important; }
@media (max-width: 767px) { .kbcg-mobile-badge-divider { display: block !important; width: 100% !important; margin: 0 !important; } }

/* ==========================================================
    13. SCHOOL CARD & COMMUNITY CARD UI
   ========================================================== */
#school-info-card, .kbcg-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; max-width: 998px !important; margin: 30px auto !important; 
    display: block !important; box-sizing: border-box !important; clear: both !important;
}

#school-info-card h3.school-header, .kbcg-community-card h3, .kbcg-community-card h2, .kbcg-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; text-align: left !important;
}
.school-icon-svg, .kbcg-card-icon { width: 26px !important; height: 26px !important; fill: var(--brand-primary) !important; flex-shrink: 0; }

#school-info-card ul#dynamic-school-list, .kbcg-community-card ul.kbcg-card-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, .kbcg-community-card ul.kbcg-card-list li {
    display: flex !important; justify-content: space-between !important; align-items: flex-start !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;
}
#school-info-card ul#dynamic-school-list li:nth-child(even), .kbcg-community-card ul.kbcg-card-list li:nth-child(even) { background-color: rgba(0,0,0,0.04) !important; }
#school-info-card ul#dynamic-school-list li strong, .kbcg-community-card ul.kbcg-card-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; margin-top: 3px !important;
}
#school-info-card .kbcg-red-stat { font-weight: 800 !important; color: var(--brand-primary) !important; text-align: right !important; }

@media screen and (max-width: 980px) {
    #school-info-card, .kbcg-community-card { width: 100% !important; max-width: 100% !important; margin: 20px 0 !important; padding: 25px 20px !important; }
    #school-info-card ul#dynamic-school-list li, .kbcg-community-card ul.kbcg-card-list li { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; padding: 15px !important; }
    #school-info-card .kbcg-red-stat { text-align: left !important; }
}

/* ==========================================================
   14. DYNAMIC BADGES
========================================================== */
.kbcg-status-badge {
    position: absolute; top: 30px; right: -70px; width: 250px; text-align: center; 
    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;
}
.badge-sold-out { background-color: #000000; }     
.badge-coming-soon { background-color: #1e73be; }  
.badge-grand-opening { background-color: var(--brand-primary); }

.kbcg-image-badge {
    position: absolute !important; top: 12px !important; 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; 
}
.kbcg-badge-red   { background-color: rgba(255, 207, 201, 0.85) !important; color: #a61b00 !important; }
.kbcg-badge-gold  { background-color: rgba(255, 229, 160, 0.85) !important; color: #8a6500 !important; }
.kbcg-badge-green { background-color: rgba(212, 237, 188, 0.85) !important; color: #2f6600 !important; }
.kbcg-badge-black { background-color: rgba(232, 234, 237, 0.85) !important; color: #333333 !important; }

/* Status Pill/Dot */
.kbcg-status-pill { display: flex !important; align-items: center !important; gap: 6px !important; background-color: #f0f0f0 !important; color: #333 !important; font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase !important; padding: 5px 12px !important; border-radius: 20px !important; letter-spacing: 0.5px !important; }
.kbcg-status-dot { width: 10px !important; height: 10px !important; border-radius: 50% !important; display: inline-block !important; }
.kbcg-dot-green  { background-color: #28a745 !important; box-shadow: 0 0 5px rgba(40,167,69,0.4) !important; }
.kbcg-dot-yellow { background-color: #f1c40f !important; box-shadow: 0 0 5px rgba(241,196,15,0.4) !important; }
.kbcg-dot-red    { background-color: var(--brand-primary) !important; box-shadow: 0 0 5px rgba(0,0,0,0.3) !important; }
.kbcg-dot-gray   { background-color: #242323 !important; }

/* ==========================================================
    15. ARCHIVE HOMES CARD STYLING (V6 - THE LUXURY GRID)
   ========================================================== */
.kbcg-archive-card-content { padding: 22px !important; display: flex !important; flex-direction: column !important; gap: 15px !important; }
.kbcg-price-row { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; }
.kbcg-big-price { font-size: 28px !important; font-weight: 800 !important; color: var(--brand-primary) !important; line-height: 1 !important; }

ul.kbcg-icon-grid {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important; 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.kbcg-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; padding-top: 32px !important; 
    background-position: top center !important; background-repeat: no-repeat !important; background-size: 26px 26px !important;
}
ul.kbcg-icon-grid li.beds { background-image: url('images/icon-beds.png') !important; }
ul.kbcg-icon-grid li.baths { background-image: url('images/icon-baths.png') !important; }
ul.kbcg-icon-grid li.sqft { background-image: url('images/icon-plans.png') !important; }

.kbcg-grid-label { font-size: 11px !important; color: #888 !important; text-transform: uppercase !important; font-weight: 700 !important; margin-top: 2px !important; }
.kbcg-meta-label { font-weight: 700 !important; text-transform: uppercase !important; font-size: 13px !important; color: #333 !important; margin-right: 5px !important; }

/* ==========================================================
    16. MONTHLY PAYMENT BANNERS
   ========================================================== */
.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 {
    background-color: var(--brand-primary); color: #ffffff !important; text-align: center !important; padding: 15px !important; 
    font-size: 22px !important; font-weight: 500 !important; text-transform: uppercase !important; margin: 15px 0 5px 0 !important; box-shadow: 0px 4px 10px rgba(0,0,0,0.15) !important; 
}
.single-home-payment-banner strong { font-size: 26px !important; font-weight: 900 !important; margin-left: 5px !important; }
.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; }

/* ==========================================================
    17. ARCHIVE DROPDOWNS & SIDEBAR & RECAPTCHA
   ========================================================== */
select#refine-area-homes, select#refine-plan-homes, select#refine-sort-homes {
    min-height: 48px !important; height: auto !important; padding: 0 15px !important; line-height: 48px !important; 
    background-color: var(--brand-primary); color: #ffffff; border: 1px solid var(--brand-primary-dark); font-size: 16px;
}

.grecaptcha-badge { bottom: 90px !important; z-index: 9999 !important; }

@media (min-width: 981px) {
    body.archive .container { width: 80% !important; max-width: 1080px !important; }
    body.archive #left-area, body.archive #content-area { width: 100% !important; float: none !important; position: relative !important; padding-right: 0 !important; }
    body.archive #sidebar { display: none !important; }
    
    #homes-top-bar, #plans-top-bar { width: 65% !important; margin-left: 0 !important; justify-content: center !important; text-align: center !important; }
    #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; }
    
    #request-info-sidebar {
        display: block !important; position: absolute; top: 310px; 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;
    }
    body #request-info-tab { display: none !important; }
}

@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; }
}

.post-type-archive-plans #content-area, .post-type-archive-homes #content-area, .post-type-archive-community #content-area { width: 100% !important; float: none !important; }  

/* ==========================================================
   18. GRAVITY FORMS DARK MODE (Master Edition)
========================================================== */
html body .gform_validation_container, 
html body .gfield_visibility_hidden { 
    display: none !important; position: absolute !important; left: -9999px !important; 
}

/* Modal Background (Only applies to the popup box) */
html body #request-info-box .thrive-modal { 
    padding: 35px 25px 25px 25px !important; background: #111111 !important; 
    color: #ffffff !important; border-radius: 8px !important; position: relative !important; 
}

/* Beautiful White Labels - TIGHTENED */
html body .gform_wrapper .gfield_label {
    color: #ffffff !important;
    font-size: 14px !important; /* Shaved down 1px */
    font-weight: bold !important;
    margin-bottom: 4px !important; /* Cut in half to pull label closer to box */
    display: block !important;
    text-align: left !important;
}

/* Clean, Dark Inputs - TIGHTENED */
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: 10px 12px !important; /* Shaved down internal padding */
    border: 1px solid #444444 !important;
    border-radius: 6px !important;
    background-color: #262626 !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important; /* Reduced space between fields */
    font-family: inherit !important;
    font-size: 15px !important; 
}
html body .gform_wrapper ::placeholder {
    color: #aaaaaa !important;
}

/* The Glowing Submit Button - TIGHTENED */
html body .gform_wrapper input[type="submit"],
html body .gform_wrapper .gform_button {
    background-color: var(--kbcg-brand-primary) !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 14px !important; /* Shaved down for a sleeker button */
    font-size: 16px !important; /* Scaled down slightly */
    font-weight: 900 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 6px !important;
    margin-top: 5px !important; /* Pulled button closer to the form */
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important; 
    transition: all 0.3s ease !important;
}

/* Hover: White Background with Primary Brand Color Text & Glow */
html body .gform_wrapper input[type="submit"]:hover,
html body .gform_wrapper .gform_button:hover {
    background-color: #ffffff !important; 
    color: var(--kbcg-brand-primary) !important;
    box-shadow: 0 0 20px var(--kbcg-brand-primary) !important; /* Your dynamic root color glow! */
}

/* ERROR TEXT VISIBILITY FIX */
html body .gform_validation_errors, 
html body .gform_validation_errors *, 
html body .gfield_description.validation_message,
html body .gform_wrapper .gfield_error .gfield_label {
    color: #ff4d4d !important; /* Bright red for high contrast against dark bg */
    font-weight: bold !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; }

/* ==========================================================
   18B. MODAL TAB & DESKTOP KILL-SWITCH
========================================================== */
/* 1. Kill the tab entirely on all screens by default */
#request-info-tab {
    display: none !important; 
}

/* 2. ONLY bring it back to life if the screen is mobile */
@media (max-width: 980px) {
    body #request-info-sidebar { display: none !important; }
    
    #request-info-tab {
        position: fixed !important; 
        top: 50% !important; 
        right: 0 !important; 
        left: auto !important; 
        transform: translateY(-50%) !important; 
        width: 45px !important; 
        height: auto !important; 
        padding: 25px 0 !important; 
        margin: 0 !important; 
        background-color: var(--kbcg-brand-primary, #8d332c) !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; 
        cursor: pointer !important;
    }
}

/* 3. Modal X Button Polish */
html body #request-info-box .thrive-modal a[href^="tel"] { display: block !important; margin-bottom: 30px !important; }
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; text-align: center !important; background-color: transparent !important; background-image: none !important; 
    color: #888888 !important; 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; cursor: pointer !important;
}
html body #request-info-box .thrive-modal-exit:hover { color: #ffffff !important; border-color: #ffffff !important; }
html body .thrive-modal-entire.modal-visible, html body #thrive-modal-background { z-index: 999999999 !important; }

/* ==========================================================
   18C. PHONE LINKS 
========================================================== */
a.kbcg-request-phone, 
#request-info-sidebar a[href^="tel"], 
#request-info-box a[href^="tel"], 
.thrive-modal a[href^="tel"] {
    color: #ffffff !important; text-decoration: none !important; font-size: 26px !important; font-weight: 900 !important;
    display: block !important; text-align: center !important; margin-bottom: 15px !important; transition: color 0.3s ease !important;
}

a.kbcg-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(--kbcg-brand-primary, #8d332c) !important; 
}

/* ==========================================================
   19. MOBILE HEADER: THE AGENCY STACK (Logos Centered)
   ========================================================== */
@media (max-width: 980px) {
    header#header .et_menu_container { display: flex !important; flex-direction: column !important; align-items: center !important; position: relative !important; padding-top: 20px !important; }
    #logo { order: 1 !important; margin: 0 0 20px 0 !important; max-width: 220px !important; width: auto !important; float: none !important; }
    #logo-2 { order: 2 !important; margin: 0 0 15px 0 !important; max-width: 180px !important; width: auto !important; float: none !important; }
    #header-mid { order: 3 !important; width: 100% !important; }
    .mobile_menu_bar { position: absolute !important; top: 30px !important; right: 20px !important; margin: 0 !important; z-index: 100 !important; }
}

/* ==========================================================
   20. INTERACTIVE PLAT SVG 
   ========================================================== */
.plat-container { position: relative; width: 100%; max-width: 1080px; margin: 0 auto; }
.plat-image { display: block; width: 100%; height: auto; }
.plat-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }

ul#single-specs-list { display: flex !important; flex-direction: column !important; justify-content: center !important; height: 100% !important; min-height: 400px !important; }

/* ==========================================================
   21. ARCHIVE LAYOUT & CARD UI 
   ========================================================== */
#home-count {
    display: flex !important; align-items: center !important; justify-content: center !important; 
    width: 100% !important; text-align: center !important; margin: 30px auto !important; 
    font-size: 18px !important; font-weight: bold !important; text-transform: uppercase !important;
}
@media (min-width: 981px) {
    #home-count {
        justify-content: flex-start !important; 
        text-align: left !important; 
        margin: 20px 0 !important;
        width: 65% !important;
    }
}
#home-count span {
    background: var(--kbcg-brand-primary, #8d332c) !important; color: #fff !important; 
    padding: 10px 15px !important; border-radius: 50% !important; font-size: 20px !important; 
    font-weight: 900 !important; margin-right: 8px !important;
}

#homes-top-bar form {
    display: flex !important; gap: 10px !important; flex-wrap: wrap !important; margin-bottom: 20px !important;
}

/* The Cards */
.kbcg-archive-card {
    display: flex !important; flex-direction: column !important; background: #fff !important; 
    border: 1px solid #cccccc !important; border-radius: 12px !important; overflow: hidden !important; 
    margin-bottom: 50px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}
.home-gallery img { width: 100% !important; display: block !important; }

/* The Badge */
.kbcg-image-badge {
    position: absolute !important; top: 12px !important; 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;
}

/* Card Content Details */
.kbcg-archive-card-content .address h2 {
    font-size: 24px !important; line-height: 1.2 !important; margin: 0 !important; font-weight: 800 !important;
}
.kbcg-archive-card-content .address h2 a { text-decoration: none !important; }
.kbcg-archive-card-content .address h2 strong {
    display: block !important; color: #333 !important; margin-bottom: 4px !important;
}
.kbcg-archive-card-content .address h2 span {
    font-weight: 500 !important; font-size: 14px !important; color: #777 !important; 
    text-transform: uppercase !important; letter-spacing: 0.5px !important;
}

ul.kbcg-icon-grid li img {
    width: 32px !important; height: 32px !important; margin-bottom: 8px !important; object-fit: contain !important;
}
.kbcg-meta-list { display: flex !important; flex-direction: column !important; gap: 12px !important; font-size: 13px !important; }

.kbcg-dynamic-link { color: var(--kbcg-brand-primary, #8d332c) !important; text-decoration: none !important; }
.kbcg-dynamic-span { color: var(--kbcg-brand-primary, #8d332c) !important; }

.kbcg-view-details-btn {
    display: block !important; width: 100% !important; text-align: center !important; margin-top: 25px !important; 
    box-sizing: border-box !important; padding: 14px !important; text-decoration: none !important; 
    font-weight: 900 !important; text-transform: uppercase !important; border-radius: 6px !important; 
    font-size: 16px !important; letter-spacing: 1px !important;
}

.kbcg-no-results { margin-top: 20px !important; }

/* ==========================================================
   22. SIDEBAR & MODAL STYLING
   ========================================================== */
.kbcg-sidebar-wrapper {
    background-color: #000000 !important; 
    padding: 20px 30px 25px 30px !important; 
    color: #ffffff !important; 
    box-shadow: -5px 5px 15px rgba(0,0,0,0.2) !important; 
    border-radius: 12px !important;
}

.kbcg-sidebar-wrapper h2, 
#request-info-box h2 {
    color: #ffffff !important; 
    margin-top: 0 !important; 
    margin-bottom: 5px !important; 
    font-size: 22px !important; 
    text-transform: uppercase !important; 
    text-align: center !important;
}

.kbcg-sidebar-wrapper p, 
#request-info-box p {
    color: #cccccc !important; 
    margin-top: 0 !important;
    margin-bottom: 8px !important; 
    text-align: center !important; 
    font-size: 16px !important; 
    font-weight: 600 !important;
}

/* The Phone Number (Flexbox Alignment) */
a.kbcg-request-phone, 
#request-info-sidebar a[href^="tel"], 
#request-info-box a[href^="tel"], 
.thrive-modal a[href^="tel"] {
    color: #ffffff !important; 
    text-decoration: none !important; 
    font-size: 24px !important; 
    font-weight: 900 !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 10px !important; 
    margin-bottom: 20px !important; 
    transition: color 0.3s ease !important;
}

/* Put the Giant Phone Icon on a Diet */
a.kbcg-request-phone img,
#request-info-sidebar a[href^="tel"] img,
#request-info-box a[href^="tel"] img,
.thrive-modal a[href^="tel"] img {
    width: 28px !important; 
    height: 28px !important; 
    margin: 0 !important; 
    display: block !important;
    object-fit: contain !important;
}

/* Kills any rogue top margin Gravity Forms tries to add */
#request-info-sidebar .gform_wrapper,
#request-info-box .gform_wrapper {
    margin-top: 0 !important;
}

/* ==========================================================
   F. STATUS RIBBON (The Mathematically Perfect Centering)
========================================================== */
.home-gallery, .et_pb_image_wrap {
    position: relative !important;
    overflow: hidden !important; 
}

.ribbon-wrapper {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 160px !important;
    height: 160px !important;
    z-index: 20 !important;
    pointer-events: none !important;
    overflow: hidden !important; 
}

.home-ribbon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 300px !important; 
    padding: 12px 0 !important; 
    color: #fff !important;
    font-size: 13px !important; 
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important; 
    text-align: center !important;
    transform: translate(-50%, -50%) rotate(45deg) translateY(-45px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

/* Centralized Ribbon Color Classes */
.ribbon-green  { background-color: #28a745 !important; }
.ribbon-red    { background-color: #cd3239 !important; }
.home-ribbon.ribbon-yellow,
.single-home-ribbon.ribbon-yellow { 
    background-color: #ffc107 !important; 
    color: #000000 !important; 
}
.ribbon-gray   { background-color: #888888 !important; }
.ribbon-teal   { background-color: var(--kbcg-brand-primary, #8d332c) !important; }

/* --- G. FILTER BAR: 3-COL DESKTOP & WHITE ARROWS --- */
#homes-top-bar form {
    display: flex !important; gap: 15px !important; margin-bottom: 30px !important;
}
@media (min-width: 981px) {
    #homes-top-bar form { flex-wrap: nowrap !important; } 
    #homes-top-bar form select { flex: 1 1 33% !important; min-width: 0 !important; }
}

/* Custom White Arrow Injection */
select#refine-area-homes, select#refine-plan-homes, select#refine-sort-homes {
    appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px !important; 
}

/* Force existing card layout to beat Divi */
.card-top-row { display: flex !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 40px !important; }
@media (max-width: 980px) { .card-top-row { flex-direction: column !important; } }

/* ==========================================================
   JUMBO HERO RIBBON (For Single Homes Only)
========================================================== */
.single-ribbon-wrapper {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 250px !important;  
    height: 250px !important;
    z-index: 20 !important;
    pointer-events: none !important;
    overflow: hidden !important; 
}

.single-home-ribbon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 450px !important; 
    padding: 16px 0 !important; 
    color: #fff !important;
    font-size: 18px !important; 
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    text-align: center !important;
    transform: translate(-50%, -50%) rotate(45deg) translateY(-70px) !important; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.4) !important;
}

/* ==========================================================
   SINGLE PLAN OVERRIDES
============================================================= */

/* . Unified Overview Card */
#kbcg-unified-card { background: #f8f8f8 !important; padding: 40px !important; border-radius: 8px !important; border: 1px solid #eaeaea !important; margin: 30px 0 !important; }
.card-top-row { display: flex !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 40px !important; }
.card-col-specs { flex: 0 0 250px !important; }
.card-col-image { flex: 1 !important; text-align: center !important; }
ul#single-specs-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.click-to-view-label { font-size: 13px !important; font-weight: bold !important; text-transform: uppercase !important; color: var(--kbcg-brand-primary, #8d332c) !important; margin-top: 15px !important; }

/* ==========================================================
   AGENCY UPGRADES & DIVI OVERRIDES (SINGLE PAGE FIXES)
============================================================= */

/* --- 1. TITLE BAR FIX --- */
#main-content .container > h1:first-of-type, h1.main_title { display: none !important; }

.et_pb_post_title#home-title { 
    background-color: var(--kbcg-brand-primary, #8d332c) !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    width: 100% !important; 
}
.et_pb_post_title#home-title h1 { 
    color: #ffffff !important; 
    font-weight: 900 !important; 
    text-transform: uppercase !important; 
    margin: 0 !important; 
    padding: 15px 10px !important;
    text-align: center !important; 
    display: block !important;
}

/* --- GLOBAL HERO VIDEO GAP FIX (Flush to Title Bar) --- */
#home-title > iframe, #plan-tour > iframe, .fluid-width-video-wrapper, #home-title .fluid-width-video-wrapper iframe {
    bottom: 0 !important;
    margin-bottom: 0 !important;
}
#home-title .et_pb_title_featured_container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 0 !important; 
}

/* --- 2. GLOBAL GRAVITY FORMS SUBMIT BUTTON FIX --- */
html body .gform_wrapper .gform_footer input[type="submit"],
html body .gform_wrapper .gform_footer button.gform_button { 
    background-color: var(--kbcg-brand-primary, #8d332c) !important; 
    color: #ffffff !important; 
    border: none !important; 
    padding: 15px 25px !important; 
    width: 100% !important; 
    height: auto !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important; 
    font-weight: bold !important; 
    cursor: pointer !important; 
    border-radius: 3px !important; 
    font-size: 16px !important; 
    -webkit-appearance: none !important; 
    margin-top: 10px !important;
}
html body .gform_wrapper .gform_footer input[type="submit"]:hover { 
    background-color: #333333 !important; 
}

/* --- 3. MOBILE HERO, WIDTH, & GALLERY FIXES --- */
@media screen and (max-width: 980px) { 
    /* Fix Card layout */
    .card-top-row { flex-direction: column !important; } 
    .card-col-specs { flex: auto !important; width: 100% !important; } 

    /* Revert the Hero row to natural Divi mobile width */
    #single-home-hero .et_pb_row:first-child { 
        width: 90% !important; 
        max-width: 90% !important; 
        margin: 0 auto !important; 
        padding: 0 !important; 
    }

    /* Kill the old theme's rogue margins causing the gap below the video */
    #home-title > iframe, #plan-tour > iframe, .fluid-width-video-wrapper, #home-title .fluid-width-video-wrapper iframe {
        bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    #home-title .et_pb_title_featured_container {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        line-height: 0 !important; 
    }

    /* Mobile Filter Alignment Fix */
    #homes-refine {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-bottom: 25px;
    }
    
    #homes-refine select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
} 

/* ==========================================================
    23. GLOBAL BRAND BUTTONS (.btn-brand)
   ========================================================== */
.btn-brand {
    display: inline-block !important;
    background-color: var(--kbcg-brand-primary, #8d332c) !important;
    color: #ffffff !important;
    padding: 14px 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    border-radius: 4px !important; 
    border: 2px solid var(--kbcg-brand-primary, #8d332c) !important;
    transition: all 0.4s ease-in-out !important;
    text-align: center !important;
    cursor: pointer !important;
}

/* Hover State: Background white, Text Brand, Border Brand */
.btn-brand:hover {
    background-color: #ffffff !important;
    color: var(--kbcg-brand-primary, #8d332c) !important;
    border-color: var(--kbcg-brand-primary, #8d332c) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Optional: Full Width Version (Useful for Mobile) */
.btn-brand.full-width {
    display: block !important;
    width: 100% !important;
}

/* ==========================================================
    16B. GLOBAL BRAND BUTTONS (Light Version for Dark Backgrounds)
   ========================================================== */
.btn-brand-alt {
    display: inline-block !important;
    background-color: #ffffff !important;
    color: var(--kbcg-brand-primary, #8d332c) !important;
    padding: 14px 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    border-radius: 4px !important; 
    border: 2px solid #ffffff !important;
    transition: all 0.4s ease-in-out !important;
    text-align: center !important;
    cursor: pointer !important;
}

/* Hover State: Transparent background, white text, white border */
.btn-brand-alt:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* ==========================================================
    24. FULL-IMAGE CATEGORY CARDS (#mid-blocks)
   ========================================================== */
/* 1. Full-Width Row Layout */
#mid-blocks .et_pb_row {
    width: 95% !important; 
    max-width: 1920px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 15px !important; 
}

/* 2. The Columns (Cards) */
#mid-blocks .et_pb_column {
    min-height: 320px !important;
    flex: 1 !important; 
    margin: 0 !important; 
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 3. The Interactive Lift */
#mid-blocks .et_pb_column:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
}

/* 4. The Dark Overlay */
#mid-blocks .et_pb_column::before {
    content: "";
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65) !important; 
    transition: background 0.3s ease !important;
    z-index: 1 !important;
}

#mid-blocks .et_pb_column:hover::before {
    background: rgba(0,0,0,0.35) !important; 
}

/* 5. Center the Text Module */
#mid-blocks .et_pb_module, 
#mid-blocks .mid-block {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    text-align: center !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 6. The Text Styling */
#mid-blocks .mid-block h4,
#mid-blocks .mid-block h4 a,
#mid-blocks h4, 
#mid-blocks h4 a {
    font-family: "Oswald", "Lato", sans-serif !important;
    font-size: 33px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.85) !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    pointer-events: none !important; 
}

/* 7. Mobile Stacking */
@media screen and (max-width: 980px) {
    #mid-blocks .et_pb_row {
        flex-direction: column !important;
        width: 90% !important;
    }
    #mid-blocks .et_pb_column {
        width: 100% !important;
        min-height: 250px !important;
    }
}

/* ==========================================================
   25. MOBILE MASTER STACK (REFINED ALIGNMENT & BOXING)
   ========================================================== */
@media (max-width: 980px) {
    html, body { overflow-x: hidden !important; width: 100% !important; }

    /* --- THE CLEAN MOBILE SUBMENU --- */
    #single-home-sub-menu {
        width: 100% !important;
        margin: 0 !important; 
        border-radius: 0 !important;
    }
    #single-home-sub-menu ul {
        flex-direction: column !important;
        padding: 0 !important; 
    }
    #single-home-sub-menu li {
        width: 100% !important;
        justify-content: center !important;
        padding: 0 !important; 
        display: block !important; 
    }
    
    /* Sleek edge-to-edge links */
    #single-home-sub-menu a {
        display: block !important; 
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 20px !important; 
        text-align: center !important;
        border-radius: 0 !important; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important; 
    }
    
    /* Remove line from the very last item so it doesn't look messy */
    #single-home-sub-menu li:last-child a {
        border-bottom: none !important;
    }

    /* Kills the white hover box on mobile touch screens to prevent "sticky" hover */
    #single-home-sub-menu a:hover {
        background-color: transparent !important;
        color: #ffffff !important;
        letter-spacing: 1px !important;
    }

    /* Kills the old floating pseudo-lines */
    #single-home-sub-menu li::before,
    #single-home-sub-menu li::after { 
        display: none !important; 
    } 

    /* --- THE BOXED CARDS --- */
    #school-info-card, .kbcg-community-card {
        width: 94% !important; 
        max-width: 94% !important;
        margin: 20px auto !important;
        background-color: #f8f8f8 !important; 
        border: 1px solid #dcdcdc !important; 
        box-shadow: none !important; 
        border-radius: 8px !important;
    }

    /* --- OVERVIEW & GALLERY ALIGNMENT --- */
    #single-home-row-1, 
    #kbcg-unified-card,
    .et_pb_row:has(.plan-gallery-grid),
    .plan-gallery-grid {
        width: 94% !important; 
        max-width: 94% !important;
        margin: 5px auto 15px auto !important; 
        background: transparent !important; 
        border: none !important;
        box-shadow: none !important;
    }

    /* --- GALLERY OVERLAY FIX --- */
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(4) .et_pb_gallery_image::after,
    body .plan-gallery-grid .et_pb_gallery_item:nth-of-type(20) .et_pb_gallery_image::after {
        content: '+ VIEW PHOTOS' !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: rgba(141, 51, 44, 0.9) !important;
    }
}

/* ==========================================================
   26. GLOBAL SMART VIDEO TESTIMONIALS 
   ========================================================== */
.kbcg-smart-yt {
    position: relative;
    cursor: pointer;
    display: block;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #000; 
}
.kbcg-smart-yt img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}
.kbcg-smart-yt:hover img {
    opacity: 0.85; 
}
.kbcg-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(141, 51, 44, 0.9); /* Brand Primary */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.kbcg-smart-yt:hover .kbcg-yt-play {
    background: #E52D27; /* YouTube Red on hover */
    transform: translate(-50%, -50%) scale(1.1);
}
.kbcg-yt-play::after {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

/* ==========================================================
   27. KBCG PREMIUM GALLERY CARDS (THE TOP-OF-FUNNEL GRID)
   ========================================================== */
.kbcg-gallery-card {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    position: relative !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer !important;
}

.kbcg-gallery-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Forcing the 3:2 Aspect Ratio */
.kbcg-gallery-card .et_pb_image_wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 3/2 !important; 
    overflow: hidden !important;
}

.kbcg-gallery-card.et_pb_image {
    margin: 0 !important;
    padding: 0 !important;
}

.kbcg-gallery-card .et_pb_image_wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important; 
}

/* 2. The Dark "View This Home" Overlay Engine */
.kbcg-gallery-card .et_pb_image_wrap::before {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(141, 51, 44, 0.85) !important; /* Brand Overlay */
    opacity: 0;
    transition: opacity 0.3s ease-in-out !important;
    z-index: 10;
}

.kbcg-gallery-card:hover .et_pb_image_wrap::before {
    opacity: 1 !important;
}

/* 3. The "VIEW THIS HOME" Button Injection */
.kbcg-gallery-card .et_pb_image_wrap::after {
    content: 'VIEW THIS HOME' !important;
    position: absolute !important;
    top: 50% !important; 
    left: 50% !important;
    transform: translate(-50%, -40%) !important; 
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border: 1px solid #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    opacity: 0;
    transition: all 0.3s ease-in-out !important;
    z-index: 11;
    white-space: nowrap !important;
}

.kbcg-gallery-card:hover .et_pb_image_wrap::after {
    opacity: 1 !important;
    transform: translate(-50%, -50%) !important; 
}

/* 4. THE "SMART INDICATOR" BADGES (Video & 3D) */
.kbcg-gallery-card.kbcg-has-video::before,
.kbcg-gallery-card.kbcg-has-3d::after,
.kbcg-gallery-card.kbcg-has-both::before,
.kbcg-gallery-card.kbcg-has-both::after {
    position: absolute !important;
    top: 15px !important;
    background: rgba(0,0,0,0.7) !important; 
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    z-index: 15 !important;
    pointer-events: none !important; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.kbcg-gallery-card.kbcg-has-video::before { content: '▶ VIDEO' !important; right: 15px !important; }
.kbcg-gallery-card.kbcg-has-3d::after { content: '3D TOUR' !important; right: 15px !important; }
.kbcg-gallery-card.kbcg-has-both::before { content: '▶ VIDEO' !important; right: 105px !important; }
.kbcg-gallery-card.kbcg-has-both::after { content: '3D TOUR' !important; right: 15px !important; }

/* ==========================================================
   28. KBCG SMART TRIM GALLERY (SINGLE HOME DASHBOARD)
   ========================================================== */
.kbcg-smart-gallery .et_pb_gallery_items {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important; 
    padding: 0 !important;
}

@media (max-width: 767px) {
    .kbcg-smart-gallery .et_pb_gallery_items {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.kbcg-smart-gallery .et_pb_gallery_item:nth-child(n+5) {
    display: none !important;
}

.kbcg-smart-gallery .et_pb_gallery_item {
    margin: 0 !important;
    width: 100% !important;
}

.kbcg-gallery-more-overlay {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(141, 51, 44, 0.85) !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
    z-index: 10 !important;
    pointer-events: none !important; 
    transition: background 0.3s ease !important;
}

.kbcg-smart-gallery .et_pb_gallery_item:hover .kbcg-gallery-more-overlay {
    background: rgba(141, 51, 44, 0.95) !important;
}

.kbcg-smart-gallery .et_overlay {
    background-color: rgba(255, 255, 255, 0.75) !important; 
}
.kbcg-smart-gallery .et_overlay::before {
    color: var(--kbcg-brand-primary, #8d332c) !important; 
}

.kbcg-smart-gallery .et_pb_gallery_item:nth-child(4) .et_overlay {
    display: none !important;
}

/* ==========================================================
   GLOBAL LIGHTBOX DISCLAIMER 
   ========================================================== */
.mfp-title {
    display: block !important; 
    font-size: 0 !important; 
    color: transparent !important; 
    text-align: center !important;
    padding-top: 10px !important;
}

.mfp-title::after {
    content: 'Disclaimer: Photography and renderings may depict optional features, custom modifications, or discontinued selections not included in standard offerings. Please consult with a representative for current availability and specific details.' !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.6) !important; 
    letter-spacing: 1px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    display: block !important;
}

/* ==========================================================
   29. KBCG SMART MATTERPORT FACADE (IN-PLACE LOAD + CUBE ICON)
   ========================================================== */
.kbcg-smart-3d {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    background: #000 !important;
    margin-bottom: 20px !important;
}

.kbcg-smart-3d img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.7; 
    transition: opacity 0.3s ease !important;
}

.kbcg-smart-3d:hover img {
    opacity: 0.5 !important;
}

/* The 3D Play Button */
.kbcg-3d-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(141, 51, 44, 0.9) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 15px 25px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    white-space: nowrap !important; 
}

/* THE GEOMETRIC CUBE ICON */
.kbcg-3d-btn::before {
    content: '' !important;
    display: block !important;
    width: 22px;
    height: 22px;
    background-color: #ffffff; 
    
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>') no-repeat center !important;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>') no-repeat center !important;
    
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    transition: background-color 0.3s ease !important;
}

.kbcg-smart-3d:hover .kbcg-3d-btn {
    background: #ffffff !important;
    color: var(--kbcg-brand-primary, #8d332c) !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
}

.kbcg-smart-3d:hover .kbcg-3d-btn::before {
    background-color: var(--kbcg-brand-primary, #8d332c) !important;
}

/* ==========================================================
   30. KBCG MEDIA DASHBOARD FINISHING 
   ========================================================== */
.kbcg-media-container {
    background-color: #ffffff !important; 
    background-image: none !important; 
    width: 85% !important; 
    max-width: 1200px !important; 
    border-radius: 8px !important;
    overflow: hidden !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    margin: 40px auto 100px auto !important; 
    border: 1px solid #e0e0e0 !important;
    border-left: 8px solid var(--kbcg-brand-primary, #8d332c) !important; 
    padding: 0 !important;
}

.kbcg-media-title {
    background-color: var(--kbcg-brand-primary, #8d332c) !important; 
    padding: 20px 30px !important;
    width: 100% !important; 
    max-width: 100% !important;
    min-width: 100% !important; 
    margin: 0 0 20px 0 !important;
    box-sizing: border-box !important; 
}

.kbcg-media-title h2 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.kbcg-media-title p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    text-align: left !important;
}

.kbcg-media-container .et_pb_row:not(.kbcg-media-title) {
    width: 94% !important;
    max-width: 94% !important;
    padding: 5px 0 15px 0 !important;
}

.kbcg-media-container .et_pb_gallery_items {
    padding: 0 !important;
}

@media (min-width: 768px) {
    .kbcg-mobile-break { display: none !important; }
}
@media (max-width: 767px) {
    .kbcg-mobile-break { 
        display: block !important; 
        content: ""; 
        margin-top: 2px; 
    }
}

/* ==========================================================
   31. KBCG GLOBAL DASHBOARD BUTTONS
   ========================================================== */
.kbcg-card-btn .et_pb_button {
    background-color: transparent !important;
    color: var(--kbcg-brand-primary, #8d332c) !important;
    border: 2px solid var(--kbcg-brand-primary, #8d332c) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease-in-out !important;
    text-align: center !important;
    display: inline-block !important;
}

.kbcg-card-btn .et_pb_button:hover {
    background-color: var(--kbcg-brand-primary, #8d332c) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(141, 51, 44, 0.3) !important; /* Brand Shadow Overlay */
}

.kbcg-card-btn {
    text-align: center !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
}

.kbcg-card-btn.et_pb_module {
    text-align: center !important; 
    width: 100% !important;
}

/* ==========================================================
   32. KBCG HERO GRID TITLES
   ========================================================== */
.kbcg-hero-title {
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--kbcg-brand-primary, #8d332c) !important;
    margin-top: 15px !important;
    margin-bottom: 40px !important; 
}

/* ==========================================================
   UNIVERSAL INTERACTIVE IMAGE HOVER (Plats & Floorplans)
   ========================================================== */
.kbcg-interactive-img-link {
    display: inline-block !important;
    position: relative !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.kbcg-interactive-img-link img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important; 
}

.kbcg-interactive-img-link .click-to-view-label {
    color: var(--kbcg-brand-primary, #8d332c) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    margin-top: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.kbcg-interactive-img-link:hover {
    transform: translateY(-5px) !important;
}

.kbcg-interactive-img-link:hover img {
    transform: scale(1.02) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
    border-color: var(--kbcg-brand-primary, #8d332c) !important;
}

.kbcg-interactive-img-link:hover .click-to-view-label {
    opacity: 1 !important;
    color: #000000 !important; 
    letter-spacing: 1.5px !important;
}