/* ===== Colour Palette 

Theme

#000000 - black
#303030 - black-alt
#5e5e5e - subheading
#c6c6c6 -- grey border
#f5f5f5
#ffffff


===== */

:root{
    --black: rgb(0,0,0);
    --theme: rgb(0,0,0);
    --grey-text: rgb(94,94,94);
    --border: rgb();
    --off-white: rgb(245,245,245);
    --white: rgb(255,255,255);
}

*{
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
    font-style: normal;
    font-weight: 100;
}


html,body{
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body{
    overscroll-behavior: none;
}

.prevent-scroll{
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6{
    font-family: "Lato", sans-serif;
    font-style: normal;
    font-weight: 200;
    letter-spacing: 2px;
}
.uppercase{
    text-transform: uppercase
}

/*
h1{
    font-family: 'GreycliffCF', sans-serif;
}*/

p, a{
    font-weight: 300;
    font-size: 16px;
}

.bolder{
    font-weight: 800;
}

a{
    text-decoration: none;
}

.inline-link{
    color: var(--black);
    font-size: 16px;
    font-weight: bolder;
    transition: 0.3s ease;
}

.inline-link:hover{
    color: var(--grey-text);
}

.content-btn{
    display: inline-block;
    text-decoration: none;
    height: 60px;
    line-height: 60px;
    text-align: center;
    padding: 0 30px;
    border-radius: 6px;
    transition: 0.3s ease;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    letter-spacing: 1px;
}

.primary-btn{
    background: var(--theme);
    color: var(--white);
    border: 1px solid var(--theme);
}

.primary-btn-alt{
    background: none;
    color: var(--grey-text);
    border: 1px solid var(--grey-text);
}

.secondary-btn{
    color: var(--white);
    border: 1px solid var(--white);
}

.primary-btn:hover{
    filter: brightness(0.6);
}

.primary-btn-alt:hover{
    background: var(--grey-text);
    color: var(--white);
}

.secondary-btn:hover{
    filter: brightness(0.8);
}

.filter-darken{
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-heading{
    color: var(--white);
    font-size: 42px;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: center;
}

.hero-subheading{
    font-size: 30px;
    color: var(--white);
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 30px;
}

.hero-desc{
    font-size: 22px;
    color: var(--white);
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
}

.hero-banner{
    width: 100%;
    height: 100vh;
    min-height: 650px;
    position: relative;
}

.featured-video-banner{
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background: url(../img/about-tb.jpg) no-repeat center;
    background-size: cover;
}

.hero-banner-video-container{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-banner-video-container video{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-content{
    position: absolute;
    width: 60%;
    max-width: 800px;
    min-width: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 3;
}

.lightbox-banner-cta{
    background: none;
    outline: none;
    position: relative;
    cursor: pointer;
    transition: 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 50px;
}

.htb-cta{
    text-align: center;
    display: inline-block;
}

.lightbox-banner-cta:hover{
    filter: brightness(1.4);
}

.lightbox-banner-cta i{
    width: 80px;
    border-radius: 50%;
    height: 80px;
    text-align: center;
    line-height: 80px;
    background: rgba(255,255,255,0.8);
    font-size: 30px;
    color: rgba(0,0,0,0.75);
}

.lightbox-banner-cta p{
    margin-top: 10px;
    font-weight: 300;
    color: var(--white);
    font-size: 16px;
}

.hero-btn-flex{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hbf-first{
    margin-right: 10px
}

.hbf-second{
    margin-left: 10px;
}


@media screen and (max-width:767px){
    .hero-heading{
        font-size: 32px
    }
    .hero-subheading{
        font-size: 20px;
    }
    .hero-desc{
        font-size: 16px;
    }
    .hbf-first{
        margin: 0 0 15px;
    }
    .hero-btn-flex a{
        width: 100%;
    }
    .hero-banner-content{
        width: 85%;
        min-width: 280px;
    }
    content-btn{
        height: 50px;
        line-height: 50px;
        padding: 0 30px;
    }
}

/* ===== Header + Main Menu ===== */

.site-header{
    position: fixed;
    top: 0;
    z-index: 20;
    width: 100%;
    height: 120px;
    transition: 0.5s ease;
}

.site-header-flex{
    width: 100%;
    height: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-flex{
    display: flex;
    align-items: center;
}

#tb-logo{
    width: 200px;
    transition: 0.3s ease;
    margin-right: 15px;
}

#cere-logo{
    width: 120px;
    transition: 0.3s ease;
    filter: invert(1);
}

.hdn-li{
    display: inline-block;
    position: relative;
    margin: 0 15px;
}

.hdn-li > a{
    text-decoration: none;
    color: var(--white);
    font-weight: 300;
    padding-bottom: 3px;
    position: relative;
}

/* Initial border bottom is invisible (no width) */
.hdn-li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: width 0.3s ease-in-out; /* Smooth transition */
}

.site-header.scrolled .hdn-li > a::after {
    background-color: var(--black);
}

/* On hover, expand the border to full width */
.hdn-li > a:hover::after {
    width: 100%;
}

.dropdown-menu{
    position: absolute;
    display: none;
    padding-top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
}

.hdn-li:hover .dropdown-menu{
    display: block;
}

.dropdown-menu > li{
    background: rgba(255,255,255,0.7);
    text-align: center;
    transition: 0.3s ease;
    opacity: 0;
    margin-bottom: 3px;
    line-height: 1;
    list-style: none;
}

.hdn-li:hover .dropdown-menu > li{
    opacity: 1;
}

.last-item-dd{
    margin-bottom: 0;
}

.dropdown-menu > li a{
    display: block;
    color: var(--black);
    padding: 10px;
}

.dropdown-menu > li:hover{
    background: rgb(0,0,0);
}

.dropdown-menu > li:hover a{
    color: var(--white);
} 


#site-header-right{
    display: flex;
    align-items: center;
}

#site-header-cta{
    height: 50px;
    border-radius: 6px;
    line-height: 50px;
    background: none;
    padding: 0 25px;
    display: block;
    border: 1px solid var(--white);
    transition: 0.3s ease;
    cursor: pointer;
    color: var(--white);
    margin-right: 25px;
    text-decoration: none;
    font-weight: 300;
}

#site-header-cta:hover{
    background: var(--white);
    color: var(--black);
}

#main-menu-cta{
    width: 27px;
    height: 20px;
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-cta-bar{
    width: 100%;
    height: 1px;
    background: var(--white);
    transition: 0.3s ease;
    margin: 1px 0;
}

/* === Scrolled header styles === */

.site-header.scrolled{
    position: fixed;
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.site-header.scrolled #tb-logo{
    filter: invert(1);
    width: 140px;
}

.site-header.scrolled #cere-logo{
    filter: invert(0);
    width: 90px;
}


.site-header.scrolled .menu-cta-bar{
    background: var(--black);
}

.site-header.scrolled .hdn-li > a, .site-header.scrolled #tb-logo-top, .site-header.scrolled #tb-logo-btm{
    color: var(--black);
}

.site-header.scrolled #site-header-cta{
    border: 1px solid var(--black);
    color: var(--black);
}


/* === Main menu === */

.main-menu{
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 
}

.main-menu-container{
    position: fixed;
    top: 0;
    right: -450px;
    height: 100vh;
    width: 450px;
    padding: 75px 50px 30px;
    transition: 0.5s ease;
    z-index: 1000 !important;
    background: var(--white);
    overflow-y: scroll;
}

.main-menu-container::-webkit-scrollbar{
  display: none; /* Safari */
}

.main-menu-container{
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Dark overlay for the rest of the screen */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity 0.5s ease;
}

.main-menu-container.menu-active{
    right: 0;
}

.menu-overlay.menu-active {
    opacity: 1;
    visibility: visible; /* Makes the overlay visible and opaque */
}

.close-menu{
    position: absolute;
    top: 30px;
    right: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
}

.close-menu p{
    margin-right: 5px;
}

.close-menu p, .close-menu i{
    transition: 0.3s ease;
}

.close-menu:hover .close-menu p, .close-menu:hover .close-menu i{
    color: var(--grey-text);
    font-weight: bolder;
} 

.mm-li{
    list-style: none;
    margin-bottom: 20px;
}

.mm-li a{
    font-size: 20px;
    color: var(--black);
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: 0.3s ease;
}

.mm-li a:hover{
    color: var(--grey-text);
}


/* Initial border bottom is invisible (no width) */
.mm-li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--grey-text);
    transition: width 0.3s ease-in-out; /* Smooth transition */
}

/* On hover, expand the border to full width */
.mm-li a:hover::after {
    width: 100%;
}

.main-menu-contact{
    width: 100%;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--grey-text);
}

.mm-subheading{
    font-size: 13px;
    font-family: "Lato", sans-serif;
    text-transform: uppercase;
    color: var(--grey-text);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.mm-contact-list li{
    list-style: none;
    margin-bottom: 10px;
}

.mm-contact-title{
    font-weight: bolder;
}

.mm-contact-list li a{
    color: var(--black);
    transition: 0.3s ease;
    font-size: 14px;
}

.mm-contact-list li a:hover{
    color: var(--grey-text);
}

.last-item{
    margin-bottom: 0;
}

@media screen and (max-width:1300px){
    #header-display-nav{
        display: none;
    }
}

@media screen and (max-width:767px){
    #site-header-cta{
        display: none
    }
    .main-menu-container{
        right: -100%;
        height: 100vh;
        width: 100%;
        padding: 75px 30px 30px;
    }   
    #tb-logo{
        width: 140px;
    }
    #cere-logo{
        width: 100px;
    }
}

.marketing-banner-flex{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.marketing-card{
    width: 31.3333%;
    height: 280px;
    margin: 0 1% 15px;
    border: 1px solid var(--theme);
    position: relative;
}

@media screen and (max-width: 850px){
    .marketing-card{
        width: 48%;
    }
}

.mc-int{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 75%;
    text-align: center;
}

.mc-int .fcb-title{
    color: var(--black);
    margin-bottom: 15px;
}

.comm-cards .fcb-title{
    margin-bottom: 0 !important;
}

.mb-desc{
    color: var(--grey-text);
}

@media screen and (max-width:767px){
    .last-card{
        margin-bottom: 0;
    }
}

.inline-bolder{
    color: var(--black);
    font-weight: bolder;
}

/* ===== Community Images ==== */


#discovery-ridge-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#discovery-ridge-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#springbank-hill-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#springbank-hill-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#signal-hill-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#signal-hill-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#aspen-woods-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#aspen-woods-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#christie-park-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#christie-park-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#strathcona-park-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#strathcona-park-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#coach-hill-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#coach-hill-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#west-springs-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#west-springs-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#patterson-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#patterson-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}
#cougar-ridge-int {
    background: url(../img/neighbourhood-int-ph.jpg) no-repeat center;
    background-size: cover;
}
#cougar-ridge-banner {
    background: url(../img/neighbourhood-ph.jpg) no-repeat center;
    background-size: cover;
}


/* ==== Site Images ==== */

.content-section{
    width: 100%;
    position: relative;
    padding: 75px 12%;
}

.no-padding-btm{
    padding-bottom: 0;
}

.content-section-int{
    position: relative;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    max-width: 1800px;
}

.content-section-last{
    padding-bottom: 75px;
}

@media screen and (max-width:767px){
    .content-section{
        padding: 60px 7% 0;
    }
    .content-section-last{
        padding-bottom: 60px;
    }
}

.overview-section{
    text-align: center;
}

.content-header-center{
    text-align: center;
}

.content-header-title{
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--black);
}

.small-content-title{
    margin-bottom: 20px;
    font-size: 30px;
}

.content-header-subheading{
    font-size: 28px;
    color: var(--grey-text);
    margin-bottom: 20px;
}

.content-para{
    font-size: 16px;
    font-weight: 400;
    color: var(--grey-text);
    line-height: 1.7;
}

.desc-end{
    margin-bottom: 0;
}

.overview-section-desc{
    margin-bottom: 40px;
}

.heading-break{
    margin-bottom: 40px;
}

.card-flex-4, .card-flex-3{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.card-4{
    height: 250px;
    display: block;
    position: relative;
    background: rgba(0,0,0,0.25);
    width: 23%;
    cursor: pointer;
    margin: 0 1% 20px;
}

.card-3{
    height: 250px;
    display: block;
    position: relative;
    background: rgba(0,0,0,0.25);
    width: 31.3333%;
    cursor: pointer;
    margin: 0 1% 20px;
}

@media screen and (max-width:1023px){
    .card-4{
        width: 31.3333%;
    }
}

@media screen and (max-width:767px){
    .card-3,.card-4{
        width: 100%;
        margin: 0 0 15px;
    }
    .content-header-title{
        font-size: 30px;
    }

    .content-header-subheading{
        font-size: 26px;
    }
}

.comm-card-flex{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.comm-card{
    width: 23%;
    display: block;
    height: 250px;
    margin: 0 1% 20px;
    border: 1px solid var(--black);
    transition: 0.3s ease;
    position: relative;
}

@media screen and (max-width:900px){
    .comm-card{
        width: 31.3333%;
    }
}

@media screen and (max-width:767px){
    .comm-card{
        width: 48%;
    }
}

.comm-card .fcb-title{
    color: var(--black);
    transition: 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80%;
    text-align: center;
}

.comm-card:hover{
    background: var(--black);
}

.comm-card:hover .fcb-title{
    color: var(--white);
}

.flex-card-bg{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.flex-card-darken{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: 0.3s ease;
    background: rgba(0,0,0,0.35);
}

.card-3:hover .flex-card-darken, .card-4:hover .flex-card-darken{
    background: rgba(255,255,255,0.15);
}

.flex-card-btn{
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 25px;
    width: 100%;
    z-index: 3;
}

.flex-card-btn i{
    width: 70px;
    border-radius: 50%;
    height: 70px;
    text-align: center;
    line-height: 70px;
    background: rgba(255,255,255,0.8);
    font-size: 26px;
    color: rgba(0,0,0,0.75);
    margin-bottom: 15px;
}

.fcb-title{
    font-size: 24px;
    color: var(--white);
}

/* ===== Home ===== */


@media screen and (max-width:1023px){
    .fcb-title{
        font-size: 20px;
    }
    .hero-banner-video-container{
        display: none;
    }
    #htb{
        background: url(../img/htb.jpg) no-repeat center center;
        background-size: cover;
    }
}

#wha-1{
    background: url(../img/who-we-are.jpg) no-repeat center;
    background-size: cover;
}
#wha-2{
    background: url(../img/what-sets-us-apart.jpg) no-repeat center;
    background-size: cover;
}
#wha-3{
    background: url(../img/not-just-about-selling.jpg) no-repeat center;
    background-size: cover;
}
#ql-listings{
    background: url(../img/featured-listings-int.jpg) no-repeat center;
    background-size: cover;
}
#ql-films{
    background: url(../img/videos-int.jpg) no-repeat center;
    background-size: cover;
}
#ql-selling{
    background: url(../img/selling-int.jpg) no-repeat center;
    background-size: cover;
}

.two-sec-flex{
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.tsf-text{
    width: 45%;
}

.tsf-text-video{
    width: 38%;
}

.tsf-para-block{
    margin-bottom: 15px;
}

.tsf-pb-last{
    margin-bottom: 0;
}

.tsf-img{
    width: 45%;
    height: 550px;
    background: rgba(0,0,0,0.2);
}

#steve{
    background: url(../img/steve.jpg) no-repeat top center;
    background-size: cover;
}

#phil{
    background: url(../img/phil.jpg) no-repeat top center;
    background-size: cover;
}

.tsf-video{
    width: 57%;
    overflow: hidden;
}

.tsf-video-container {
    position: relative;
    padding-bottom: 56.25%;
    width: 100%;
    max-width: 100%;
    height: 0;
    overflow: hidden;
}

.tsf-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


#home-worth-bg{
    background: url(../img/content-int-ph.jpg) no-repeat center;
    background-size: cover;
}


.overview-w-vieo{
    width: 100%;
    position: relative;
    text-align: center;
}

.owv-para-block{
    margin-bottom: 15px;
}

.owv-text{
    width: 100%;
    margin-bottom: 30px;
}

.owv-video{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%; /* Ensure it scales with screen size */
}

.owv-video iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-flex{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between
}

.video-single{
    width: 32%;
}

@media screen and (max-width:850px){
    .video-single{
        width: 48%;
        margin-bottom: 25px;
    }
}

@media screen and (max-width:767px){
    .video-single{
        width: 100%;
    }
}

/* ===== Content banner images ==== */

.content-page-top-banner{
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
}

.cptb-img{
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    left: 0;
    top: 0;
    z-index: 1;
}

.cptb-img img{
    position: absolute;
    height: auto;
    width: auto;
    min-width: 100%;
    min-height: 100%;
    max-width: 125%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.cptb-darken{
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    background: rgba(0,0,0,0.35);
}

.cptb-overview{
    position: absolute;
    top: 50%;
    z-index: 3;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 60%;
    min-width: 500px;
}

@media screen and (max-width:767px){
    .content-page-top-banner{
        height: 45vh;
        min-height: 250px;
    }
    .cptb-overview{
        min-width: 250px;
        width: 85%;
    }
    .cptb-img img{
        max-width: 200%;
    }
}

/* ===== Footer ===== */

.site-footer{
    position: relative;
    width: 100%;
    background: rgb(250,250,250);
    padding: 30px 12%;
}

.footer-top{
    width: 100%;
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
}

#footer-logo{
    margin-right: 15px;
}

#footer-logo img{
    width: 150px;
}

#footer-cere img{
    width: 90px;
}

.footer-nav-section{
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

.footer-nav-section ul{
    margin-bottom: 10px;
}

.footer-nav-section li{
    display: inline-block;
    list-style: none;
    margin: 7px 15px;
    text-align: center;
}

.footer-nav-section li a{
    transition: 0.3s ease;
    font-size: 16px;
    position: relative;
    color: var(--black);
}

/* Initial border bottom is invisible (no width) */
.footer-nav-section li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--grey-text);
    transition: width 0.3s ease-in-out; /* Smooth transition */
}

/* On hover, expand the border to full width */
.footer-nav-section li a:hover::after {
    width: 100%;
}

.footer-nav-section li a:hover{
    color: var(--grey-text);
}

.legal-container{
    width: 100%;
    padding: 20px 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#copyright{
    color: var(--black);
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
}

#privacy-policy{
    transition: 0.3s ease;
    font-size: 13px;
    color: var(--grey-text);
}

#privacy-policy:hover{
    color: var(--black);
    font-weight: bolder;
}

.footer-btm{
    width: 100%;
}

#remax-banner{
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#remax-banner img{
    width: 200px;
    margin-right: 20px;
}

#remax-banner p{
    font-size: 10px;
    line-height: 1.25;
    flex: 1;
    color: var(--black);
}


@media screen and (max-width:767px){
    .footer-top{
        padding-bottom: 20px;
    }
    .footer-nav-section{
        padding: 0 0 20px;
    }
    .footer-nav-section ul{
        margin-bottom: 30px;
    }
    #footer-top{
        padding-bottom: 0;
    }
    .footer-nav-section li{
        width: 100%;
        margin: 5px 0;
    }
    #copyright, #privacy-policy{
        width: 100%;
        text-align: center;
    }
    #copyright{
        margin-bottom: 5px;
    }
    #remax-banner img{
        margin: 0 auto 20px;
    }
    #remax-banner p{
        width: 100%;
        text-align: center;
        flex: auto;
    }
}


/* ===== Lightbox ===== */

/* Hide the lightbox by default */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    width: 90vw;
    height: 50.625vw;
    max-height: 80vh;
    max-width: 142.222vh;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.video-container{
    transform: translate3d(0, 0, 0);
    height: 100%;
}


/* Close button style */
.close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
}

/* Responsive iframe */
.lightbox-content iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.contact-banner{
    width: 100%;
    height: 100vh;
    min-height: 930px;
    position: relative;
}

#schedule-banner{
    background: url(../img/schedule.jpg) no-repeat center;
    background-size: cover;
}

.contact-form-container{
    width: 45%;
    min-width: 350px;
    background: var(--white);
    border-radius: 5px;
    padding: 50px 65px;
}

@media screen and (max-width:767px){
    .contact-form-container{
        padding: 45px;
    }
}

.form-title-container{
    text-align: center;
}

.contact-form{
    width: 100%;
}

/* ===== Form Styles ===== */

input, textarea{
    outline: none;
}


.form-section{
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    max-width: 600px;
    width: 100%;
}

.form-margin-offset{
    margin-top: -40px;
}

.wpcf7 label{
    font-weight: 300;
    color: var(--grey-text);
    font-size: 16px;
    width: 100%;
}

.wpcf7-text{
    width: 100%;
    height: 45px;
    font-weight: 300;
    padding: 0 10px;
    color: var(--grey-text);
    font-size: 16px;
    border: 1px solid var(--grey-text);
}

.wpcf7-textarea{
    width: 100%;
    max-width: 100%;
    height: 200px;
    max-height: 200px;
    font-weight: 300;
    padding: 0 10px;
    color: var(--grey-text);
    font-size: 16px;
    border: 1px solid var(--grey-text);
}

.wpcf7-form-control-wrap{
    margin-bottom: 15px;
    display: block;
    padding-top: 5px;
}

.wpcf7-submit{
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
    height: 50px;
    cursor: pointer;
    line-height: 50px;
    text-align: center;
    padding: 0 30px;
    border-radius: 6px;
    transition: 0.3s ease;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    left: 50%;
    color: var(--white);
    transform: translateX(-50%);
    background: var(--theme);
    border: 1px solid var(--theme);
}

.wpcf7-submit:hover{
    background: none;
    color: var(--theme);
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output{
    font-weight: 300;
    color: var(--grey-text);
    font-size: 16px;
    border: 1px solid rgba(0,0,0,0.2) !important;
}

@media screen and (max-width:767px){
    .content-btn-flex a{
        width: 100%;
    }
    .content-btn-flex .primary-btn{
        margin-bottom: 10px;
    }
    .hbf-second{
        margin-left: 0;
    }
}

.flex-int{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.contact-overview{
    width: 45%;
}

.cd-list{
    width: 100%;
    margin-bottom: 30px;
}

.last-cd-list{
    margin-bottom: 0;
}

.cd-list li{
    list-style: none;
}

.cd-title{
    color: var(--white);
    font-size: 22px;
    font-weight: 400;
}

.cd-list > li{
    margin-bottom: 12px;
}

.cd-list > li > a{
    color: var(--white);
    border-bottom: 1px solid var(--white);
    font-weight: 400;
    transition: 0.3s;
}

.cd-list > li > a:hover{
    border-bottom: 1px solid var(--grey-text);
    color: var(--grey-text);
}

.cd-list-dark .cd-title, .cd-list-dark > li > a{
    color: var(--black);
}

.cd-list-dark > li > a{
    border-bottom: 1px solid var(--black);
}

.cd-list-dark > li > a:hover{
    border-bottom: 1px solid var(--grey-text);
    color: var(--grey-text);
}

.cd-list .social-icons{
    margin-top: 10px;
}

.social-icons{
    display: flex;
}

.social-icons li{
    list-style: none;
    margin-right: 10px;
}

.last-social-icon{
    margin-right: 0;
}

.social-icons a{
    display: block;
}

.social-icons i{
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    transition: 0.3s ease;
}

.social-icons a:hover i{
    color: var(--black);
    background: var(--off-white);
}

@media screen and (max-width:767px){
    .contact-banner{
        position: relative;
        height: auto;
        padding: 130px 8% 50px;
    }
    .flex-int{
        transform: none;
        top: auto;
        left: auto;
    }
    .contact-overview{
        width: 100%;
        margin-bottom: 40px;
    }
    .contact-form-container{
        width: 100%;
    }
}

.awards{
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.awards li{
    margin-bottom: 15px;
    margin-right: 20px;
    list-style: none;
}

.awards li img{
    max-height: 40px;
}

@media screen and (max-width:767px){
    #steve, #phil{
        margin-bottom: 25px;
        order: 1;
    }
    .about-tsf-text{
        order: 2;
    }
    .tsf-text, .tsf-text-video{
        width: 100%;
        margin-bottom: 30px;
    }
    .tsf-img{
        width: 100%;
        height: 300px;
    }
    .tsf-video{
        width: 100%;
    }
}

/* ===== Recently Sold ===== */

.listing-tabs button{
    font-size: 16px;
    border: 1px solid #000;
    color: #000;
    font-weight: 400;
    outline: none;
    background:none;
    padding: 5px 15px;
    margin-right: 5px;
}

.active-tab{
    background: #000 !important;
    color: #FFF !important;
}

.listing-feed-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.listing-feed-flex .listing {
  width: calc(33.333% - 10px);
  box-sizing: border-box;
  padding: 10px;
}

@media screen and (max-width:1050px){
    .listing-feed-flex .listing {
        width: calc(50% - 10px);
    }
}

@media screen and (max-width:767px){
    .listing-feed-flex .listing {
        width: 100%;
    }
}

.listing-img{
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

@media screen and (min-width:2000px){
    .listing-img{
        height: 370px;
    }
}


.listing-img img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-width: 100%;
    min-height: 100%;
    max-width:120%;
}

.listing h3{
    margin: 5px 0 3px;
    font-weight: 400;
}

.listing p{
	line-height: 1.3;
}