/* 
*****************************************
**                                     **
**  This stylsheet contains all styles **
**  for the jigsaw home page rebuild   **
**                                     **
*****************************************
*/ 

:root {

    /* site-header vars */
    
    /* Colors */
    --header-bg: #442563;
    --new-properties-btn-bg: #ac398c;
    --property-map-btn-bg: #442563;


    /* Padding, gaps and margin */
    --jig-contain-padding: 5rem;
    --page-pad-mob: 20px;
    --page-pad-768: 30px;

    --hero-form-input-pd-mob: 10px;
    --hero-form-input-pd-768: 15px 10px;
    --hero-form-cont-pd-mob: 20px;
    --hero-form-cont-pd-768: 30px;
    --min-width: 300px;
    --content-width: 1280px;

    --header-content-width: 1280px;
    --menu-bg: #133250;
    
    --fonts: "Inter", sans-serif;
    --hero-form-bg-color: rgb(231, 229, 225);
    --hero-form-border-radius: 5px;
    --about-tspc-border-radius: var(--hero-form-border-radius);
    --hero-content-width: 1280px;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
}

@font-face {
    font-family: 'Inter Tight';
    src: url('/fonts/Inter_Tight/InterTight-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}

@font-face {
    font-family: 'Kalam';
    src: url('/fonts/Kalam/Kalam-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Kalam';
    src: url('/fonts/Kalam/Kalam-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Kalam';
    src: url('/fonts/Kalam/Kalam-Light.ttf') format('truetype');
    font-weight: 300;
}

/* 
***************************************
**                                   **
**     Styles for about_tspc.php     **
**                                   **
***************************************
*/ 

#jig-about-tspc,
#jig-news {
    background-color: white !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: var(--page-pad-mob);
    min-width: var(--min-width);
}

#jig-news .inner-container,
#jig-about-tspc .inner-container
{
    display: flex;
    flex-direction: column;
    max-width: var(--content-width);
    gap: 20px;
}

@media screen and (min-width: 1024px) {
    #jig-news .inner-container {
        max-width: 85%;
    }
}


#jig-about-tspc .section-1 {
    background-color: rgb(231, 229, 225);
    flex-direction: column;
}

#jig-about-tspc .section-1,
#jig-about-tspc .section-3
 {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#jig-about-tspc .section-1,
#jig-about-tspc .section-2,
#jig-about-tspc .section-3 {
    border-radius: 10px;
}

#jig-about-tspc .section-3 {
    align-items: center;
}

#jig-about-tspc .section-1 h2,
#jig-about-tspc .section-3 .valuation-content h2 {
    font-size: 40px;
    line-height: 44px;
    font-weight: 700 !important;
    font-family: "Inter", sans-serif;
}

#jig-about-tspc .section-1 p,
#jig-about-tspc .section-3 p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

#jig-about-tspc .section-1 h2 {
    color: #003057;
}

#jig-about-tspc .section-1 p {
    font-family: "Inter", sans-serif;
    color: #011D34;
    font-size: 16px;
}

#jig-about-tspc .section-1 .solicitors-link,
#jig-about-tspc .section-1 .about-tspc-link,
#jig-about-tspc .section-3 .arrange-valuation-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    max-height: 40px;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    border-radius: 5px;
    outline: none;
    border: none;
}

#jig-about-tspc .section-1 .solicitors-link,
#jig-about-tspc .section-1 .about-tspc-link,
#jig-about-tspc .section-3 .arrange-valuation-button {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 15px;
    font-weight: 900 !important;
    color: white;
    text-decoration: none;
}

#jig-about-tspc .section-1 .secondary-text,
#jig-about-tspc .section-3 .secondary-text {
    font-family: "Kalam", cursive;
    font-weight: 700;
}

#jig-about-tspc .section-1 .about-tspc-link:hover {
    filter: brightness(117.5%);
    
}

#jig-about-tspc .section-1 .solicitors-link:hover {
    filter: brightness(130%);
}

#jig-about-tspc .section-1 .about-tspc-link {
    background-color: #ac398c;
}

#jig-about-tspc .section-1 .solicitors-link {
    background-color: #442563;
}

#jig-about-tspc .solicitors-link, 
#jig-about-tspc .about-tspc-link {
    font-weight: 700;
    border-radius: var(--about-tspc-border-radius);
}

/* Animations frames for the cross fade images on about-tspc.php */
@keyframes fade {
    0% {opacity: 0;}
    6% {opacity: 1;}
    50% {opacity: 1;}
    56% {opacity: 0;}
    100% {opacity: 0;}
}

@keyframes fade {
    0% {opacity: 1;}
    15% {opacity: 1;}
    25% {opacity: 0;}
    90% {opacity: 0;}
    100% {opacity: 1;}
}


#jig-about-tspc .section-2 {
    min-height: 284px;
    position: relative;
    overflow: hidden;
}

#jig-about-tspc .section-2 .img-1,
#jig-about-tspc .section-2 .img-2,
#jig-about-tspc .section-2 .img-3,
#jig-about-tspc .section-2 .img-4,
#jig-about-tspc .section-2 .img-5 {
    position:absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation-name: fade;
    animation-iteration-count: infinite;
    animation-duration: 25s;
}

#jig-about-tspc .section-2 .img-1 {
    background-image: url("https://tspc.co.uk/wp-content/uploads/2024/10/HP_1774_web.jpg");
    animation-delay: 0s;
}

#jig-about-tspc .section-2 .img-2 {
    background-image: url("https://tspc.co.uk/wp-content/uploads/2024/10/HP_1714_web.jpg");
    animation-delay: 5s;
}

#jig-about-tspc .section-2 .img-3 {
    background-image: url("https://tspc.co.uk/wp-content/uploads/2024/10/HP_1613_web.jpg");
    animation-delay: 10s;
}

#jig-about-tspc .section-2 .img-4 {
    background-image: url("https://tspc.co.uk/wp-content/uploads/2024/10/HP_1600_web.jpg");
    animation-delay: 15s;
}

#jig-about-tspc .section-2 .img-5 {
    background-image: url("https://tspc.co.uk/wp-content/uploads/2024/10/HP_1441-HDR_web.jpg");
    animation-delay: 20s;
}

#jig-about-tspc .section-3 {
    background-color: #442563;
    display: flex;
    gap: 20px;
}

#jig-about-tspc .section-3 .valuation-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

#jig-about-tspc .section-3 .valuation-content h2 {
    color: #E7E5E1;
}

#jig-about-tspc .section-3 p {
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

#jig-about-tspc .section-3 .arrange-valuation-button {
    background-color: #ac398c;
    gap: 5px;
}

#jig-about-tspc .section-3 .arrange-valuation-button:hover {
    filter: brightness(117.5%);
}

#jig-about-tspc .section-3 .arrow-right {
    fill: white;
    height: 15px;
}

#jig-about-tspc .section-3 .valuation-icon {
    display: none;
}

#jig-about-tspc .section-3 .valuation-icon-svg {
    max-height: 100%;
}

@media screen and (min-width: 768px) {

    #jig-about-tspc {
        padding: var(--page-pad-768);
    }

    #jig-about-tspc .section-1,
    #jig-about-tspc .section-3 {
        padding: 40px;
    }

    #jig-about-tspc .section-1 .button-row {
        gap: 20px;
    }

    #jig-about-tspc .section-3 {
        justify-content: start;
    }

    #jig-about-tspc .section-3 .valuation-icon {
        display: flex;
        align-items: center;
        fill: #C73DA6;
        width: 240px;
        height: 200px;
    }

    #jig-about-tspc .section-3 .valuation-content {
        align-items: start;
    }
}

@media screen and (min-width: 1024px) {
    #jig-about-tspc .inner-container {
        display: grid;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }

    #jig-about-tspc .section-1 h2,
    #jig-about-tspc .section-3 .valuation-content h2 {
        font-family: "Inter", sans-serif;
        font-size: 50px;
        line-height: 54px;
    }

    #jig-about-tspc .section-1 {
        grid-row: 1 / 4;
        grid-column: 2 / 3;
    }

    #jig-about-tspc .section-2 {
        grid-row: 1 / 4;
        grid-column: 1 / 2;
    }

    #jig-about-tspc .section-3 {
        grid-row: 4 / 6;
        grid-column: 1 / 3;
    }
}

/* 
**********************************************
**                                          **
**     Styles for latest_properties.php     **
**                                          **
**********************************************
*/ 

#jig-latest-properties {
    background-color: white !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 68px var(--page-pad-mob);
    min-width: var(--min-width);
}

@media screen and (max-width: 768px) {
    #jig-latest-properties {
        padding-bottom: 2rem;
    }
}

#jig-latest-properties .inner-container {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    gap: 30px;
}

#jig-latest-properties .inner-container h2 {
    color: #442563;
    font-size: 32px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 1rem;
}

#jig-latest-properties .featured-properties {
    overflow: hidden;
    max-width: 100%;
}

#jig-latest-properties .swiper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
}

/* Position relative is required to have nav controls position correctly */
#jig-latest-properties .fp-swiper {
    position: relative;
    max-width: calc(100% - 4px);
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#jig-latest-properties .fp-swiper-pagination {
    margin-top: 1rem;
    text-align: center;
}

#jig-latest-properties .swiper-pagination-bullet {
    background-color: var(--property-map-btn-bg);
}

#jig-latest-properties .fp-swiper .swiper-wrapper .swiper-slide {
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto !important;
    padding: 20px;
    margin-bottom: 6px;
    transition: none !important;
}

#jig-latest-properties .fp-slide {
    position: relative;
    max-width: 100% !important;
    min-height: 100% !important;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px 0px;
    /* overflow: hidden; */
    border-radius: 5px;
}

.fp-ad-slideshow {
    position: relative;
} 

.fp-ad-slide {
    display: none;
}

@media screen and (max-width: 1024px) {
    #fp-ad-2 {
        margin-top: 2rem;
    }
}

#jig-latest-properties .ad-label,
.ad-label {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    color: #555;
    z-index: 1;
}

#jig-latest-properties .fp-ad-768 {
    display: none;
}

#jig-latest-properties #fp-ad-1 {
    display: none;
}

#jig-latest-properties .fp-slide-img {
    object-fit: cover;
    object-position: center;
    width: 100% !important;
    max-height: 100% !important;
}

#jig-latest-properties .fp-slide-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    max-width: 100%;
    min-width: 100% !important;
    max-height: 330px;
    aspect-ratio: 3 / 2;
}

#jig-latest-properties .fp-slide-img-wrapper .askingprice-mob {
    background-color: rgb(68, 37, 99);
    font-weight: 500;
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 0px 5px 0px 0px;
    position: absolute;
    bottom: 0;
    left: 0;
}

#jig-latest-properties .fp-slide-img-wrapper .fp-status,
#jig-latest-properties .fp-slide-img-wrapper .fp-featured {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: auto;
    object-fit: unset;
    object-position: unset;
    z-index:2;
}

#jig-latest-properties .fp-slide-img-wrapper .fp-featured {
    width: 29%;
    z-index:3;
}

#jig-latest-properties .fp-slide .fp-content {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    padding: 16px 16px 34px 16px;
}

#jig-latest-properties .fp-slide h2,
#jig-latest-properties .fp-slide .fp-content-price {
    font-size: 18px;
    line-height: 20px;
    color: rgb(19, 50, 80);
    font-weight: 700;
}

#jig-latest-properties .fp-slide h2 {
    flex: 1 1 50%;
}

#jig-latest-properties .fp-slide .fp-content-price {
    flex: 1 1 50%;
    display: none;
    text-align: end;
}

#jig-latest-properties .fp-slide .view-property-link {
    background-color: var(--new-properties-btn-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--hero-form-border-radius);
    position: absolute;
    bottom: 0;
    transform: translateY(50%) !important;
    left: 5%;
    right: 5%;
    overflow: hidden;
    transition: filter 300ms ease-in-out;
}

#jig-latest-properties .fp-slide .view-property-link:hover {
    filter: brightness(117.5%);
}

#jig-latest-properties .fp-slide .view-property-link a {
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    width: 100%;
    padding: 12px 24px;
    text-align: center;
}

@media screen and (min-width: 1024px) {

    #jig-latest-properties {
        padding: 90px var(--page-pad-768);
    }

    #jig-latest-properties .featured-properties {
        max-width: 1280px;
    }

    #jig-latest-properties .inner-container {
        flex-direction: row;
        min-height: 400px;
        gap: 50px;
    }

    #jig-latest-properties .swiper-container {
        gap: 20px;
    }

    #jig-latest-properties .fp-swiper-pagination {
        margin-top: 1.5rem;
    }

    #jig-latest-properties #fp-ad-1 {
        display: block;
    }

    #jig-latest-properties .fp-ad-mob {
        display: none;
    }

    #jig-latest-properties .inner-container .fp-ad-768 {
        display: inline-block;
        max-width: 100% !important;
        height: auto !important;
        min-width: 90px;
    }

    #jig-latest-properties .fp-slide-img-wrapper .askingprice-mob {
        display: none;
    }

    #jig-latest-properties .fp-slide h2,
    #jig-latest-properties .fp-slide .fp-content-price {
        font-size: 18px;
    }

    #jig-latest-properties .fp-slide .fp-content-price {
        display: block;
        
    }
    
}

@media screen and (min-width: 1024px) {

    #jig-latest-properties .inner-container {
        max-width: 100%;   
        gap: 60px;  
    }
}

/* 
*****************************************
**                                     **
**     Styles for hero_section.php     **
**                                     **
*****************************************
*/ 

#jig-hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    margin-top: calc(var(--jig-contain-padding) * -1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 10px 0px 10px !important;
    font-family: "Inter", sanse-serif !important;
}



#jig-hero button,
#jig-hero a {
    border: none;
    outline: none;
    border-radius: var(--hero-form-border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    overflow: hidden;
}

/* Hide bg video on mobile */

@media screen and (max-width: 768px) {
    .video-container {
        background-color: #ac398c;
        background-image: url("../../../../../wp-content/uploads/2024/09/TSPC_HomeMob_Test.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .tspc-video {
        display: none;
    }
}

.video-container {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

body #jivo-iframe-container+jdiv>jdiv>jdiv {
    margin-bottom: 15px !important;
}

.video-container video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

.video-container::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    background-color: #00000000;
    background-image: linear-gradient(#ac398c 0%, rgba(100, 47, 108, 0.3) 66%);
    mix-blend-mode: multiply;
    opacity: .94;
}

.hero-content-wrapper {
    z-index: 1;
    width: 100%;
    font-family: var(--fonts);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
    min-width: 300px;
}

#jig-hero .form-container {
    flex: 0 1 auto;
    /* min-width: 360px; */
    width: 100%;
    background-color: var(--hero-form-bg-color);
    border-radius: 10px;
    padding: var(--hero-form-cont-pd-mob);
}

.hero-banner-text {
    font-size: 30px;
    font-family: "Inter Tight", sans-serif !important;
    font-weight: 200;
    font-style: normal;
    letter-spacing: -2px;
    /* text-align: center; */
}

.hero-banner-text .more-text {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: normal;
    flex-wrap: nowrap;
    
}

.form-header-text {
    font-weight: 700;
    color: #442563;  
    margin-bottom: 20px; 
    letter-spacing: -.5px;
}

@media screen and (max-width: 768px) {
    .form-header-text {
        font-size: 20px;
    }
}

.input-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}


.input-row input {
    flex: 1 1 auto;
    border-radius: var(--hero-form-border-radius);
    border: 1px solid rgb(205, 205, 205);
    padding: var(--hero-form-input-pd-mob);
    min-width: 0px !important;
    font-size: 1rem;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 250ms ease-in-out;
}

.input-row input::placeholder {
    color: #bbbab5
}

.input-row input:focus {
    border-color: #020101;
}

.input-row button {
    background-color: #003057;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 52px;
    max-height: 46px;
    padding: var(--hero-form-input-pd-mob);
    transition: all 300ms ease-in-out;
}

.input-row button:hover {
    filter: brightness(135%);
}

.button-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
}

.new-properties-btn ,
.property-map-btn {
    flex: 1 1 auto;
    color: white;
    padding: 12px 15px;
    max-height: 46px;
    font-family: "Inter", sans-serif;
    transition: all 300ms ease-in-out;
    border-radius: var(--hero-form-border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-properties-btn a,
.property-map-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 900 !important;
    line-height: 27px;
    font-size: 20px;
}

.new-properties-btn a,
.property-map-btn a,
.new-properties-btn a:hover,
.property-map-btn a:hover,
.new-properties-btn a:focus,
.property-map-btn a:focus  {
    color: white;
    text-decoration: none;
}

.new-properties-btn {
    background-color: var(--new-properties-btn-bg);
}

.new-properties-btn:hover {
    filter: brightness(117.5%);
}

.property-map-btn:hover {
    filter: brightness(130%);
}

.button-row .svg-icon {
    height: 20px;
    width: 20px;
    fill: white;
}

.property-map-btn {
    background-color: var(--property-map-btn-bg);
}

#jig-hero .bottom-text {
    margin-top: 2rem;
    text-align: center;
    font-size: 15px;
}

@media screen and (min-width: 768px) {

    #jig-hero {
        padding: 0px 40px;
    }

    .video-container {
        position: absolute;
        top: 0;
        left: 0;
        min-width: 100%;
        min-height: 100%;
        /* max-height: 100vh; */
        overflow: hidden;
        background-color: #ac398c;
    }

    .video-container video {
        position: absolute;
        right: 0;
        bottom: 0;
        min-width: 100%;
        min-height: 100%;
    }

    .video-container::before {
        content: '';
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        min-width: 100%;
        min-height: 100%;
        background-color: #00000000;
        background-image: linear-gradient(#ac398c 0%, rgba(100, 47, 108, 0.3) 66%);
        mix-blend-mode: multiply;
        opacity: .94;
    }

    .hero-content-wrapper {
        width: var(--hero-content-width);
    }

    .hero-banner-text {
        font-size: 60px;
        letter-spacing: -3px;
    }
    
    .hero-banner-text .more-text {
        font-size: 60px !important;
        font-weight: 700;
    }

    #jig-hero .form-container {
        padding: var(--hero-form-cont-pd-768);
        /* width: 92%; */
    }

    .form-header-text {
        font-size: 1.9375rem;
    }

    .input-row input,
    .input-row button {
        padding: var(--hero-form-input-pd-768);
    }

    .input-row button {
        min-width: 56px;
        max-height: 56px;
    }
    
    .hero-form .smart-search {
        display: inline-block;
        font-family: "Inter", sans-serif;
        font-size: 16px;
        background-color: #003057;
        padding: 6px 18px;
        border-radius: 5px 5px 0 0;
        color: white;
    }

    .button-row {
        flex-direction: row;
    }

    #jig-hero .bottom-text {
        font-size: 16px;
    }
}

@media screen and (min-width: 1024px) {
    .form-container {
        /* max-width: 64%; */
    }

    #jig-hero .bottom-text {
        font-size: 18\px;
    }
}

/* 
*****************************************
**                                     **
**     Styles for site-header.php      **
**                                     **
*****************************************
*/ 

#jig-header {
    font-family: var(--fonts);
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}


.header-background  {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: #442563 !important;
    background-image: none;
}

#jig-header .inner-container {
    flex: 0 1 var(--header-content-width);
    display: flex;
    justify-content: center;
    align-items: center; 
    max-height: 5rem;
    padding: .9rem 1.15rem !important;
}

#jig-header .section-2 {
    flex: 1 1 auto;
}

#jig-header .section-1,
#jig-header .section-3 {
    flex: 1 1 15%;
}

#jig-header .section-1 {
    text-align: left;
}

#jig-header .section-1 a {
    height: 47px !important;
    width: 40px !important;
}

#jig-header .section-2 {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100%; */
    height: 100vh;
    background-color: #133250;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .5rem 1.15rem;  
}

#jig-header .section-2 ul {
    width: 100%;
}

#jig-header .section-2 li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#jig-header .section-2 button.open-submenu {
    background-color: rgb(172, 57, 140);
    padding: 0 !important;
    width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 16px;
    line-height: 16px;
    outline: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#jig-header .section-2 button.open-submenu svg {
    color: white;
    max-height: 18px;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

@media screen and (min-width: 768px) {
    #jig-header .section-2 button.open-submenu {
        display: none;
    }
}

 /* Animate the dropdown menu but only on mobile */
@media screen and (max-width: 768px) {
    #jig-header .section-2 {
        transform: translateY(-100%);
        width: 100%;
        transition: transform 300ms ease-in-out; 
    }
}

/* Hide the dropdown menu when the screen is resized vertically */
@media only screen and (max-width: 768px) {
    #jig-header .section-2  {
        overflow: hidden;
    }
}

#jig-header .section-2 nav {
    height: 100%;
    display: flex;
    padding: 4.5rem 0;
}

#jig-header .section-2 nav a {
    text-decoration: none;
    text-decoration-color: transparent;
    transition: text-decoration-color 400ms ease-in-out;
}

#jig-header .section-2 a:hover {
    text-decoration: underline;
    text-decoration-color: rgb(172, 57, 140);
}

/* Required to override B2 styles */
#jig-header .section-2 nav a,
#jig-header .section-2 nav a:hover,
#jig-header .section-2 nav a:active,
#jig-header .section-2 nav a:focus {
    color: white;
    outline: none;
}

#jig-header .section-2 ul {
    list-style-type: none;
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

#jig-header .section-3 {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1.25rem;
}

#jig-header .section-3 .hamburger,
#jig-header .section-3 .mytspc {
    z-index: 10;
    display: flex;
    align-items: center;
}

#jig-header .section-3 button {
    background: none;
    outline: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    
}

#jig-header .section-3 button svg {
    fill: white;
}

#jig-header .section-3 #close-icon {
    display: none;
}

#jig-header .mytspc button {
    background-color: #ac398c;
    border-radius: 3px;
    padding: 8px 7px;
    transition: filter 300ms ease-in-out;
}

#jig-header .mytspc button:hover {
    filter: brightness(115%);
}

#jig-header .mytspc button:active {
    filter: brightness(85%);
}

#jig-header .user-svg {
    width: 20px;
    height: 20px;
}

#jig-header .mytspc button .text {
   /*
     display: none;
   */
}

@media only screen and (max-width: 767px) {
	#jig-header .mytspc button .text {
		margin-left:5px;
        font-size:13px;
	}
}

@media only screen and (min-width: 768px) {
    #jig-header {
        position: relative;
    }

    .header-background {
        /* --bg-color and --bg-url are passed in from the HTML */
        background-color: var(--bg-color-dt) !important;
        background-image: var(--bg-url) !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    #jig-header .section-2 {
        position: relative;
        /* width: auto; */
        height: auto;
        background-color: transparent;
        display: flex;
        flex-direction: row;
        align-items: center !important;
        justify-content: center;
        transform: none;
        transition: none !important;
    }

    #jig-header .section-2 nav {
        padding: 0;
    }

    #jig-header .section-2 .more-choice-svg {
        display: none;
    }

    #jig-header .section-2 ul {
        width: 100%;
        flex-direction: row;
        align-items: center !important;
        justify-content: center;
        gap: .375rem;
        font-size: 1rem;
        /* TODO: font-weight not being respected */
        font-weight: 600 !important;
        line-height: 20px;
    }

    #jig-header .section-2 li {
        height: 100%;
        cursor: pointer;
        text-decoration: none;
    }

    #jig-header .section-2 a {
        padding: 13px;
        text-decoration: none;
        position: relative;
    }

    #jig-header .section-2 a:after {
        content: "";
        width: 100%;
        height: 1px;
        position: absolute;
        left: 0;
        bottom: 0;
        background-color: #ffe;
        display: block;
        opacity: 0;
        transition: all 300ms ease-in-out;
    }

    #jig-header .section-2 a:hover {
        text-decoration: none;
    }

    #jig-header .section-2 a:hover::after {
        opacity: 1;
    }

    #jig-header .section-1 img {
        height: 54px;
        width: 92px;
    }

    #jig-header .section-3 .hamburger {
        display: none;
    }

    #jig-header .section-3 button {
        padding: 12px 24px;
    }

    #jig-header .mytspc button .text {
        display: flex;
        font-size: 15px;
        line-height: 15px;
        font-weight: 700;
        margin-left: .5rem;
    }

    #jig-header .user-svg {
        width: 15px;
        height: 15px;
    }
}

@media only screen and (min-width: 1024px)  {
    #jig-header .section-1 img {
        height: 64px;
        width: 108px;
    }

    #jig-header .section-2 ul {
        font-size: 1.25rem;
        gap: 1rem;
    }

    #jig-header .section-2 a {
        padding: 13px 16px;
    }
}

/* The following styles are only activated when the dropdown menu is shown */
#jig-header.show-menu .section-2 {
    transform: translateY(0);
}

#jig-header.show-menu .section-3 #hamburger-icon {
    display: none;
}

#jig-header.show-menu .section-3 #close-icon {
    display: block;
}

/* 
*****************************************
**                                     **
**              Sub menu               **
**    Only appears on certain pages    **
**                                     **
*****************************************
*/ 

#sub-menu {
    width: 100%;
    background-color: white;
    display: flex;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08), 0px 8px 12px 0px rgba(0, 0, 0, 0.04);
    color: rgb(19, 50, 80);
    justify-content: center;
    align-items: center;
    flex-direction: row;
    display: none;
}

#sub-menu ul {
    list-style-type: none;
    flex: 0 1 auto;
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    font-weight: 600;
    gap: 4vw;
}

#sub-menu a {
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 250ms ease-in-out;
    text-decoration-thickness: 2px;
}

#sub-menu a:hover {
    color: rgb(19, 50, 80);
    text-decoration-color: rgb(172, 57, 140);
}

@media screen and (min-width: 768px) {

    #sub-menu {
        display: flex;
    }
}

@media screen and (min-width: 1024px) {

    #sub-menu a {
        font-size: 1.125rem;
    }
}


/* 
*****************************************
**                                     **
**           Ad Hoc Fixes              **
**                                     **
*****************************************
*/ 

/* The following is a quick fix to prevent content disappearing below the header on mobile view */
#header-spacer {
    height: var(--jig-contain-padding);
}

.news_h1 {
    color: #442563 !important;
    font-size: 31px !important;
    line-height: 31px !important;
    font-weight: 700 !important;
    text-align: start !important;
    
}

.site-footer {
    margin-top: var(--footer-mt);
    border-top-color: white !important;
}

@media only screen and (max-width: 992px) {
    .site-footer {
        margin-top: 0;
    }
}

@media only screen and (min-width: 768px) {
    #header-spacer {
        display: none;
    }
}

body.modal-open #valuationRequestModal {
    z-index: 1050 !important;
}

body.modal-open .modal-backdrop {
    z-index: 1040 !important;
}

/* The following styles are fixes for the mytspc side drawer links not displaying correctly in the rebuild */
.account-drawer a {
    text-decoration-color: transparent;
    transition: text-decoration-color 200ms ease-in-out; 
}

.account-drawer a:hover,
.account-drawer a:active,
.account-drawer a:focus {
    color: white;
    text-decoration-color: white;
}

/* Stop animations when resizing the screen */
.cancel-animations * {
    animation: none !important;
    transition: none !important;
}

/* 
Limit the number Property Cards displayed per grid row to 4
on all /property/slug/ routes 
*/

@media screen and (min-width: 768px) {
    .property-grid {
        margin: 0 auto;
        max-width: 1280px;
    }

    .desktop-map-view .property-grid {
        grid-template-columns: repeat(2,1fr) !important;
    }
}

@media screen and (min-width: 1440px) {
   
    .property-grid {
        margin: 0 auto;
        max-width: 1280px;
        grid-template-columns: repeat(4,1fr) !important;
    }

    .desktop-map-view .property-grid {
        grid-template-columns: repeat(3,1fr) !important;
    }
}

@media screen and (min-width: 1600px) {
    .property-grid {
        grid-template-columns: repeat(4,1fr) !important;
    }

    .desktop-map-view .property-grid {
        grid-template-columns: repeat(3,1fr) !important;
    }
}

/* Paul's css styles for rotating ads  */
.slideshow {
    max-width: 800px;
    margin: auto;
    position: relative;
}

.slide {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Adjust sizing of tspc in the header */
    #jig-header .tspc-logo {
        max-height: 35px !important;
        max-width: 60px;
    }
}

@media screen and (min-width: 768px) {
    #jig-header .tspc-logo {
        max-height: 60px !important;
    }
}

/* Required for Cookie Policy button in footer to display correctly */
.menu-documentation-menu-container {
    min-width: 100%;
}

/* The assistant search form, disable as we dont need it */
.main-form-wrapper {
    display: none;
}

/* Reduce footer padding now that we have removed the bottom toolbar */
footer {
    padding-bottom: 5px !important;
}

.shortlist-banner {
    bottom: 0 !important;
}

/* The following styles are all required to fix the text overflowing 
on the search for properties form */
#jig-search-form .form-wrapper {
    padding-right: 84px;
    border: 1px solid #133250;
    border-radius: 5px;
}

#jig-search-form .form-wrapper:focus-within {
    outline: 1px solid rgb(172, 57, 140);
    border-color: rgb(172, 57, 140);
}

#jig-search-form .form-wrapper input {
    
    padding-right: 0;
    border: none !important;
    border-color: transparent !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#jig-search-form .form-wrapper input:focus,
#jig-search-form .form-wrapper input:focus-within,
#jig-search-form .form-wrapper input:active {
    outline: none;
    border: none !important;
}

@media screen and (min-width: 768px) {
    #jig-search-form .form-wrapper {
        padding-right: 94px;
    }
}

/* Make the Solicitors link on About page look like a button */
.about-us-solicitors-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    max-height: 40px;
    cursor: pointer;
    transition: all 300ms ease-in-out;
    border-radius: 5px;
    outline: none !important;
    border: none;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    line-height: 15px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    background-color: rgb(172, 57, 140);
    max-width: 180px;
    margin-top: 5px;
}

.about-us-solicitors-link:hover {
    filter: brightness(117.5%);
}

/* Hide the your details text on the Arrange a Valuation pop up modal */
.row p.details {
    display: none;
}

/* Add a bottom margin to the Select up to 3 solicitors text on the Arrange a Valuation pop up modal  */
.add_mb {
    margin-bottom: 25px;
}

/* Add in sub menus for dropdown menu on mobile */
#buying-subnav,
#selling-subnav {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100% !important;
    background-color: white;
    color: rgb(19, 50, 80);
    z-index: 9999;
    padding: 1rem 1.15rem; 
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: all 300ms ease-in-out;
}

body.show-buying-submenu #buying-subnav,
body.show-selling-submenu #selling-subnav {
    transform: translateX(0);
}

#buying-subnav nav,
#selling-subnav nav {
    padding-top: 72px;
    flex: 1;
}

#buying-subnav .top-row,
#selling-subnav .top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

#buying-subnav .top-row .flex-grow,
#selling-subnav .top-row .flex-grow {
    flex: 1;
}

#buying-subnav .top-row h2,
#selling-subnav .top-row h2 {
    font-size: 28px;
}

#buying-subnav ul,
#selling-subnav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

#buying-subnav li,
#selling-subnav li {
    font-family: "Inter", sans-serif;
    font-size: 28px;
    line-height: 48px;
    font-weight: 700;
}

#buying-subnav li a,
#selling-subnav li a {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 300ms ease-in-out;
}

#buying-subnav li a:hover,
#selling-subnav li a:hover {
    text-decoration-color: rgb(172, 57, 140);;
}

#close-buying-subnav-button,
#close-selling-subnav-button {
    background-color: rgb(172, 57, 140);
    padding: 0 !important;
    width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 16px;
    line-height: 16px;
    outline: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#close-buying-subnav-button svg,
#close-selling-subnav-button svg {
    fill: white;
    color: white;
    
}


@media screen and (min-width: 768px) {
    #buying-subnav,
    #selling-subnav {
        display: none;
    }
}

.down-arrow {
    position: absolute;
    bottom: 65px;
    font-weight: bold;
    font-size: 24px;
}

@media screen and (max-width: 768px) {
    .down-arrow {
        bottom: 65px;
    } 
}

@media screen and (-webkit-min-device-pixel-ratio:0) and (max-width: 768px) {
    .down-arrow {
        bottom: 110px;
    }
}

@-moz-document url-prefix() {
    @media screen and (max-width: 768px) {
        .down-arrow {
            bottom: 65px;
        } 
    }
}

@media screen and (min-width: 768px) {
    .down-arrow {
        bottom: 110px;
    }
}

.down-arrow a,
.down-arrow a:focus, 
.down-arrow a:active,
.down-arrow a:visited,
.down-arrow a:hover {
    color: white;
}

html {
    scroll-behavior: smooth;
}

/* Make sure dropdown menu renders the correct font for More Choice svg text */
svg.more-choice-svg,
#more-2,
#more-2 tspan {
    font-size: 46px;
    font-family: "Inter Tight" !important;
    font-weight: 900 !important;
}

/* Center icons on Single Property more local knowledge section */
.custom-single-property .interact {
    justify-content: center;
}

@media screen and (max-width: 992px) {
    .wpcf7-form-control-wrap {
        gap: 2.5rem !important;
    }
}

/* Rotating text animation in hero section */
.hero-banner-text {
    box-sizing: content-box;
    display: flex;
    margin: 0 auto 2rem auto;
    /* margin-bottom: 2rem; */
    width: fit-content !important;
}

.hero-banner-text .word-list {
    position: relative !important;
    display: block;
}

.hero-banner-text .word-list span {
    position: absolute !important;
    display: block;
    left: 0;
    top: 0;
    width: fit-content !important;
    bottom: 0;
    opacity: 0;
    transition: opacity 400ms ease-in-out;
    text-wrap: nowrap;
}

.hero-banner-text .word-list .active {
    opacity: 1;
    position: static;
    width: fit-content !important;
}

.hero-content-inner-wrapper {
    /* min-width: 300px;  */
    max-width: 100%;
}

@media screen and (min-width: 768px) {

    .hero-banner-text {
        margin-bottom: 3rem;
    }

    .hero-content-inner-wrapper {
        min-width: 800px; 
    }
}

.valuation-wrapper {
    margin-top: 1.5rem;
    border-radius: 5px;
    border: 1px solid rgb(19, 50, 80);
    margin-bottom: 2rem;
}

.valuation-wrapper label {
    margin-bottom: -120px;
}

#valuation-reasons {
    border: none !important;
}

.news_h1 {
    margin-bottom: 16px !important;
    margin-top: 40px !important;
}

img[alt="Remarketed"] {
    display:none !important;
}

.insights-event-section select {
    
    border: 1px solid #133250;
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    background: #ffffff;
}

.insights-event-section .field-5 {
    grid-area: 4 / 1 / 4 / 3 !important;
}

.insights-event-section .checkbox-wrapper {
    grid-area: 5 / 1 / 5 / 3;
}


.free-valuation-form {
    width: 1280px;
    margin: 3rem auto;
    padding: 0;
    
}

.free-valuation-form .modal-body {
    padding-left: 32px !important;
    padding-right: 32px !important;    
}

.free-valuation-form .instructions-container {
    margin-left: 0 !important;
}

.free-valuation-form .instructions-container .col-12 {
    padding-left: 3px !important;
}

.free-valuation-form #valuation-reasons {
    display: flex !important;
    flex-direction: column;
    gap: 5px; 
}

form.invalid  .wpcf7-response-output {
    color: red;
    font-weight: 500;
    border: 1px solid red;
    padding: 5px 10px;
    background-color: rgba(255,0,0,.04);
}

form.invalid .valuation-wrapper p .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid {
    
    display: flex !important;
    flex-direction: column !important;
    
}

form.invalid .valuation-wrapper p .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item {
    width: 100% !important;
    min-width: 100% !important;
}

form.invalid .valuation-wrapper p .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item label {
    display: flex !important;
    flex-direction: row-reverse;
    gap: 8px;
    position: static !important;
}

form.invalid .valuation-wrapper p .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid {
    padding-top: 24px;
}

@media screen and (max-width: 1200px) {
    .free-valuation-form {
        width: 100%;
        margin: 1rem auto;
    }
}

@media screen and (max-width: 767px) {
    .free-valuation-form {
        width: 100%;
        margin: 1rem auto;
    }

    .free-valuation-form #valuation-reasons {
          display: flex !important;
          flex-direction: column;
          gap: 10px; 
    }

    .free-valuation-form #valuation-reasons .wpcf7-list-item label {
        display: flex !important;
        align-items: start !important;
        justify-content: center;
        
    }

    form.invalid .valuation-wrapper p .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item label {
        align-items: start;
    }

    .free-valuation-form #valuation-reasons .wpcf7-list-item label input,
    form.invalid .valuation-wrapper p .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid .wpcf7-list-item label input {
        margin-top: 6px;
    }
}

.screen-reader-response {
    display: none;
}

.free-valuation-form .wpcf7-not-valid-tip {
    padding-top: 5px;
    color: red;
    font-weight: 500;
}