/* Agent Details */
#inner-page-wrapper {
    overflow-x: hidden;
}

#inner-page-wrapper > .container {
    width: 100%;
    padding: 0;
}

.ip-banner {
    display: none;
}

#content-full {
    margin-top: 0;
}

.hp-slide-arr {
    margin: 0 10px;
    top: 5px;
    position: relative;
}

.hp-slide-arr img {
    height: 32px;
}

/* banner */
.ip-ad-banner {
    position: relative;
}

.ip-ad-banner::before {
    content: '';
    position: absolute;
    bottom: -329px;
    right: 0;
    width: 70px;
    height: 380px;
    background-color: #9b1512;
    background-image: url(../../images/about-accent.jpg);
    background-size: cover;
    z-index: 3;
}

.ip-ad-banner-img  {
    /*height: 100vh;
    max-height: 1080px;*/
    height: 497px;
    position: relative;
    z-index: 1;
}

.ip-ad-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ip-ad-banner-nav-container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.ip-ad-banner #breadcrumbs {
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
}

.ip-ad-banner-nav {
    padding: 18px 0;    
    position: absolute;
    background-image: url(../../images/aff-left-bg.jpg);
    background-attachment: fixed;    
    width: 100%;
    bottom: 0;
    z-index: 2;
    
}

.ip-ad-banner-nav::before{    
    position: absolute;
    top: 0;
    right: -25px;
    width: 50%;
    height: 100%;
    content: '';
    z-index: 1;
    transform: skewX(-40deg);
    background-color: #fff;
}

.ip-ad-banner-nav > * {
    position: relative;
    z-index: 2;
}

.ip-ad-banner-nav-links {
    display: flex;
}


.ip-ad-banner-nav-links li {
    margin: 0 35px;
    font-size: 15px;
    text-transform: uppercase;
}

/* welcome */
.ip-ad-welcome{
    padding: 90px 0;
    position: relative;
    margin-bottom: 90px;
}

.ip-ad-welcome > * {
    position: relative;
    z-index: 2;
}

.ip-ad-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../../images/hp-texture.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: .30;
    z-index: 1;
}

.ip-ad-welcome::after {
    content: '';
    position: absolute;
    width: 70px;
    height: calc(100% - 329px);
    background-color: #d6d6d6;
    background-image: url(../../images/hp-texture.jpg);
    bottom: 0;
    right: 0;
    opacity: 1;
    z-index: 3;
    filter: brightness(.95)
}

.ip-ad-welcome-container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.ip-ad-welcome-left {
    width: 30%;
    max-width: 394px;
}

.ip-ad-welcome-photo {
    width: 100%;
    max-width: 394px;    
}

.ip-ad-welcome-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ip-ad-welcome-right {
    flex: 1;
    padding-left: 65px;
    padding-right: 55px;
}

.ip-ad-welcome-text p {
    font-size: 14px;
    line-height: 180%;
    margin-bottom: 20px;
}

.ip-ad-contact-info {
    margin-bottom: 30px;
}

.ip-ad-contact-info .contact-info {
    margin-right: 30px;
}

.ip-ad-contact-info .contact-info i {
    color: var(--primary);
}

/* about */
.ip-ad-about {
    position: relative;
}
.ip-ad-about::after {
    content: '';
    position: absolute;
    width: 58%;
    height: 85%;
    background-color: var(--primary);
    background-image: url(../../images/latest-news-texture.jpg);
    background-size: cover;
    background-attachment: fixed;
    top: 50px;
    left: 0;
}


.ip-ad-about::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 85%;
    background-color: #fff;
    background-image: url(../../images/hp-texture.jpg);
    background-size: cover;
    background-attachment: fixed;
    top: 0;
    left: 12vw;
    opacity: .5;
}


.ip-ad-about-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.ip-ad-about-left {
    width: 40%;
    color: #fff;
    padding-left: 6.250vw;
    padding-right: 6vw;
    padding-top: 190px;
}

.ip-ad-about-left  .section-title h2 {
    color: #fff;
}

.ip-ad-about-left .section-title h2 span.line {
    margin-bottom: 20px;
}

.ip-ad-about-left .hp-slide-nav {
    justify-content: start;    
    margin-left: -20px;
}

.ip-ad-about-left .hp-slide-nav img {
    filter: brightness(0) invert(1);
}

.ip-ad-about-left .hp-slide-nav  .hp-slide-arr {
    padding: 0;
}

.ip-ad-about-left .section-title h2 span.line::after {
    background-color: #fff;
    margin-left: 0;
}

.ip-ad-about-text {
    margin-bottom: 50px;
}

.ip-ad-about-text  p {
    line-height: 180%;
}

.ip-ad-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

.ip-ad-about .ip-ad-about-photo {
    padding: 4px;
    height: 331px;    
}

.ip-ad-about-right {
    width: 60%;
    margin-top: 110px;
}


/* areas */
.ip-ad-areas-container {
    width: 95%;
    max-width: 1390px;
    margin: 50px auto;
}

.ip-ad-areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.fa-item {
    width: calc(33.33% - 7.5px);
    position: relative;
    margin-bottom: 15px;
    transition: all var(--default-transition);
    border: 2px transparent solid;
}

.fa-item:hover {
    /*transform: scale(1.2);*/
    z-index: 10;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgb(0 0 0 / 0.5);
}

.fa-img {
    width: 100%;
    height: 285px;
    background-color: #000;
}

.fa-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .8;
}

.fa-label {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 30%;
    transition: top .5s;
}

.fa-label-txt {
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    line-height: 120%;
}

.fa-label-btn {
    width: 185px;
    height: 55px;
    text-transform: uppercase;
    background-color: var(--primary);
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    display: none
}

.fa-item:hover .fa-label {
    top: 0;
}

.fa-item:hover .fa-label-btn {
    display: inline-flex;
}

.fa-label-txt span {
    display: block;
}

.fa-btns {
    background-color: #fff;   
    border: 2px var(--primary) solid;
    border-top: 0;
    width: calc(100% + 4px);
    position: absolute;
    left: -2px;
    padding: 12px;
    display: none;
    flex-wrap: wrap;
    justify-content: space-between;
}

.fa-item:hover .fa-btns {
    display: flex;
}

.fa-btn {
    height: 35px;
    display: inline-flex;
    background-color: var(--primary);
    width: 100%;
    color: #fff;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-bottom: 5px;
}

.fa-btn-half {
    width: calc(50% - 2px)
}

.fa-btn, .fa-label-btn {
    transition: all var(--default-transition);
}

.fa-btn:hover, .fa-label-btn:hover {
    opacity: .9;
    color: #fff;
}


/* listings */
.ip-ad-listings {
    padding: 50px 0;
}

.listings-list {
    margin-bottom: 50px;
}

.ip-ad-listings .slick-slide {
    outline: none;
    padding: 0 2.5px 5px;
}

.listing-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5px;
}

.listing-item::before {
    content: '';
    border: 5px solid;
    border-image: url(../../images/ad/listing-border.png) 5;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--default-transition);
}

.listing-item:hover::before {
    opacity: 1;
}

.listing-img {
    height: 295x;
    position: relative;
}

.listing-img::before {
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    opacity: .75;
}

.listing-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-image: url(../../images/ad/listing-accent.png);
    background-repeat: no-repeat;
    background-size: 90%;
    background-position: center;
    transition: opacity var(--default-transition);
}

.listing-item:hover .listing-img::after {
    opacity: .5;
}

.listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-details {
    color: #fff;
    font-weight: 300;
    padding-left: 25px;
    position: absolute;
    bottom: -70px;
    transition: bottom var(--default-transition);
    width: 100%;
}

.listing-details::before {
    content: '';
    width: 3px;
    height: 110px;
    background-color: var(--primary);
    left: 1px;
    top: -10px;
    position: absolute;
}

.listing-item:hover .listing-details {
    bottom: 0;
}

.listing-details .listing-price {
    font-size: 35px;
    margin-bottom: 10px;
}

.listing-details .listing-address-1, .listing-details .listing-address-2 {
    font-size: 17px;
}

.listing-details .listing-address-2 {
    margin-bottom: 25px;
    margin-top: 5px;
}

.listing-more-details {
    padding: 12px 0 24px;
    display: inline-block;
    border-top: 1px rgb(255 255 255 / .30) solid;
}

.listing-more-details span {
    margin-right: 10px;
    position: relative;
}

.listing-more-details span::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 12px;
    background-size: contain;
    background-image: url(../../images/ad/listing-beds.png);
    margin-right: 10px;
}

.listing-more-details span.listing-beds::before {
    background-image: url(../../images/ad/listing-beds.png);
}

.listing-more-details span.listing-baths::before {
    background-image: url(../../images/ad/listing-baths.png);
    width: 17px;
    height: 17px;
}

.listing-more-details span.listing-sqft::before {
    background-image: url(../../images/ad/listing-sqft.png);
    width: 15px;
    height: 15px;
}

.listing-btn {    
    width: 40%;
    height: 50px;
    line-height: 50px;
    background-color: var(--primary);
    text-transform: uppercase;
    text-align: center;
    z-index: 3;
    margin-bottom: 15px;
}

.ip-ad-listings .slide-pagination ul {
    display: flex !important;
}

.ip-ad-listings .slide-pagination ul span {
    cursor: pointer;
    display: inline-block;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
}

.ip-ad-listings .slide-pagination ul li.slick-active span {
    background-color: var(--primary);
    color: #fff;
}


/* affiliates */
.ip-ad-affiliates {
    margin-bottom: 90px;
}

.ip-ad-affiliates-container {
    display: flex;
    flex-wrap: wrap;
}

.ip-ad-affiliates-left {
    width: 40%;
    display: flex;
    align-items: center;
    padding: 0 5.625vw;
    position: relative;
}

.ip-ad-affiliates-left::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: url(../../images/hp-texture.jpg);
    background-size: cover;
    background-attachment: fixed;
    top: 0;
    left: 0;
    opacity: .5;
    z-index: 1;
}

.ip-ad-affiliates-left .section-title {
    z-index: 2;
}

.ip-ad-affiliates-right {
    background-color: #000;
    width: 60%;
    position: relative;
    height: 582px;
    padding: 40px;
}

.ip-ad-affiliates-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../../images/ad/aff-bg.jpg);
    background-size: cover;
    opacity: .32;
}


.ip-ad-affiliates-right::after {
    width: 90%;
    height: 1px;
    background-color: #5b5b5b;
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.ip-ad-affiliate-logos .slick-list{
    position: relative;
}


.ip-ad-affiliate-logo {
    height: 250px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}



.ip-ad-affiliates-container .hp-slide-nav {
    position: absolute; 
    bottom: 30px;
    width: 100%;
    left: 0;

}

.ip-ad-affiliates-container .hp-slide-nav img{
    filter: brightness(0) invert(1);
}

/* videos */
.ip-ad-videos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.ip-ad-videos-left {
    width: 30%;
}

.ip-ad-videos-right {
    width: 70%;
}

.ip-ad-videos-list .slick-slide a.ip-ad-video {
    outline: none;
}

.ip-ad-video {
    position: relative;
    height: 429px;
    display: flex !important;
    align-items: flex-end;
    position: relative;
}

.ip-ad-video::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 60%;
    background-color: #000;
    opacity: .50;
}

.ip-ad-video img {
    width: 100%;
    height: 60%;
    object-fit: cover;    
}

.ip-ad-video .ai-font-play-button-a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #d8362a;
    color: #fff;
    width: 70px;
    height: 50px;
    line-height: 50px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.slick-current .ip-ad-video .ai-font-play-button-a {
    display: block;
}

.slick-current .ip-ad-video::before {
    opacity: 0;
}

.slick-current .ip-ad-video img{
    height: 100%;
}

.ip-ad-videos .hp-slide-nav {
    width: 100%;
    margin-top: 35px;
}

/* popup */
.details-popup-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.details-popup-col {
    width: 48%;    
    margin-bottom: 50px;
    border-bottom: 1px #666 solid;
    padding-bottom: 20px;
}

.details-popup-col label {
    font-weight: 700;
    font-size: 18px;
}

.details-popup-col.lg {
    width: 100%;
}

.details-popup-col.submit {
    border-bottom: 0;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.details-popup-col.submit .wpcf7-spinner {
    position: absolute;
    top: 15px;
    
}

.details-popup-input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    margin-top: 30px;
}

textarea.details-popup-input {
    height: 50px;
}

.details-popup-container .wpcf7-response-output {
    color: #000;
    text-align: center;
}

.aiosp-container.aiosp-inline-holder.aiosp-ref-\#contact-agent-popup  .aios-popup-body{
    max-width: 710px;
    padding: 40px;
    border: 2px var(--primary) solid;
}

.aiosp-container.aiosp-inline-holder.aiosp-ref-\#contact-agent-popup .aios-popup-body .aiosp-close {
    background: var(--primary);
    opacity: 1;
    color: #fff;
    width: 50px;
    height: 50px;
    font-size: 0;
}

.aiosp-container.aiosp-inline-holder.aiosp-ref-\#contact-agent-popup .aios-popup-body .aiosp-close::before,
.aiosp-container.aiosp-inline-holder.aiosp-ref-\#contact-agent-popup .aios-popup-body .aiosp-close::after{
    content: '';
    display: inline-block;
    width: 37px;
    height: 9px;
    background-image: url(../../images/b-arrow-a.png);
    background-repeat: no-repeat;
    filter: brightness(5);
    transition: all var(--default-transition);
    position: absolute;
    top: 40%;
    transition: all var(-default-transition);         
}

.aiosp-container.aiosp-inline-holder.aiosp-ref-\#contact-agent-popup .aios-popup-body .aiosp-close::before {
    transform: rotate(90deg);
    left: 5px;    
}

.aiosp-container.aiosp-inline-holder.aiosp-ref-\#contact-agent-popup .aios-popup-body .aiosp-close::after {
    transform: rotate(-90deg);
    right: 0;        
}

.use-floating-validation-tip .wpcf7-not-valid-tip {
    position: absolute;
    right: 0;
    left: auto;
    width: auto;
}
.testi-txt-error {
    text-align: center;
    color: #ffffff;
    font-size: 17px;
}

/* Added CSS same on results */
#agents-results {
    position: relative;
    margin-bottom: 50px;
    max-width: 1600px;
    margin: 0px auto;
}
#agents-results .agents-item {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

#agents-results .agents-img {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 30.76%;
}

#agents-results .agents-img canvas {
    display: block;
    width: 100%;
    transition: all 0.4s ease;
}

#agents-results .agents-img img {
    object-fit: cover;
    object-position: top center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    transition: all 0.4s ease;
}

#agents-results .agents-img:hover img {
    transform: scale(1.1);
}

#agents-results .agents-main {
    position: relative;
    flex-grow: 1;
    margin-left: 60px;
    display: flex;
    align-items: center;
    flex-flow: row wrap;
}

#agents-results .agents-name {
    width: 100%;
    font-size: 45px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: flex-start;
    flex-flow: column;
    margin-top: -4px;
    color: #000;
}

#agents-results .agents-name span {
    display: block;
    font-size: 26px;
}

#agents-results .agents-name a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s ease;
}

#agents-results .agents-name a:hover {
    color: var(--primary);
}

#agents-results .agents-name:after {
    content: "";
    display: none;
    width: auto;
    height: 10px;
    flex-grow: 1;
    background: #eee;
    margin-left: 45px;
}

#agents-results .agents-contact {
    display: flex;
    align-items: center;
    justify-content: left;
    flex-flow: row wrap;
    margin: 50px 0 0px;
    padding: 10px 10px;
    position: relative;
    width: 100%;
    background: #eee;
}

#agents-results .agents-contact li {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.05em;
    color: #666666;
    padding: 10px 8px;
}

#agents-results .agents-contact li span {
    color: #000;
    font-size: 11px;
    margin-right: 5px;
}

#agents-results .agents-contact li a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s ease;
}

#agents-results .agents-contact li a:hover {
    color: var(--primary);
}


#agents-results .agents-list.custom {
    display: flex;
    flex-flow: row wrap;
    margin: 0 -10px;
}

#agents-results .agents-list.custom .agents-col {
    width: 25%;
    padding: 0 10px;
    margin: 0 0 30px;
}

#agents-results .agents-list.custom .agents-item {
    flex-direction: column;
    align-items: center;
}

#agents-results .agents-list.custom .agents-img {
    width: 100%;
}

#agents-results .agents-list.custom .agents-main {
    width: 100%;
    margin: 0;
    padding: 30px 0 0;
}

#agents-results .agents-list.custom .agents-name {
    font-size: 30px;
    align-items: center;
    text-align: center;
}

#agents-results .agents-list.custom .agents-name span {
    font-size: 18px;
    margin-top: 5px;
}

#agents-results .agents-list.custom .agents-contact {
    margin: 10px 0 0;
    background: transparent;
    flex-flow: column;
    justify-content: center;
}

#agents-results .agents-list.custom .agents-contact li {
    padding: 5px 0;
}

#agents-results .agents-list.custom .agents-pagination {
    width: 100%;
    
}

#agents-results .agents-img img[src*="images/header-logo-a.png"] {
    object-fit: scale-down;
    object-position: center center;
    border: 1px solid #ccc;
    padding: 10px;
}

@media only screen and (max-width: 991px) {
    #agents-results .agents-list.custom .agents-col {
        width: 50%;
    }
    #agents-results .agents-list.custom .agents-main {
        margin: 0 !important;
    }
}

@media only screen and (max-width: 480px) {
    #agents-results .agents-list.custom .agents-col {
        width: 100%;
    }
}
/* End CSS same on results */




@media(max-width: 1366px) {
    .ip-ad-affiliates .section-title h2,
    .ip-ad-about-left .section-title h2{
        font-size: 70px;
    }
    .ip-ad-affiliates .section-title img{
        width: 150px;
    }
}

@media(max-width:1199px) {
    .ip-ad-banner::before,
    .ip-ad-welcome::after{
        display: none;
    }
}

@media(max-width: 991px) {
    .ip-ad-welcome-left,
    .ip-ad-welcome-right,
    .ip-ad-affiliates-left,
    .ip-ad-affiliates-right,
    .ip-ad-about-left,
    .ip-ad-about-right,
    .ip-ad-videos-left,
    .ip-ad-videos-right{
        width: 100%;
    }
    .ip-ad-affiliates-left {
        justify-content: center;
    }
    .ip-ad-about::after {
        width: 100%;
    }
     .ip-ad-about-left .section-title {
         text-align: center;
     }
    .ip-ad-about-text {
        text-align: center;
    }
    .ip-ad-about-left .hp-slide-nav {
        justify-content: center;
    }
    .ip-ad-about-left .section-title h2 span.line::after {
        display: none;
    }

    .fa-item {
        width: 49%;
    }

    .ip-ad-listings .slide-pagination ul {
        display: none !important;
    }

    .ip-ad-welcome-right {
        flex: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .ip-ad-welcome-right .section-title {
        text-align: center;
    }


    .ip-ad-welcome-left {
        max-width: none;
    }
    
    .ip-ad-welcome-photo {
        margin: 30px auto;
        max-widht: 394px;
    }

    .ip-ad-banner-nav::before {
        display: none;
    }

    .ip-ad-banner-nav-links {
        display: none;
    }

    .ip-ad-banner-img {
        height: 400px
    }
}

@media(max-width: 600px) {
    .fa-item {
        width: 100%;
    }

    .ip-ad-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .ip-ad-contact-info .contact-info {
        margin-bottom: 20px;
    }
    .ip-ad-welcome-text {
        text-align: center;
    }

    .details-popup-col {
        width: 100%;
        margin-bottom: 20px;
    }
}