/* MOBILE */
@media (max-width: 1000px) {
    
/* Property search */
.property-search{
    /* padding-top: 12vh; */
    padding-bottom: 0;
    /* background: radial-gradient(circle at 15% 10%, #f6f0e6 0%, #f4f6fb 40%, #eef0f5 100%); */
    position: relative;
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
}

@font-face {
    font-family: 'RethinkSans-Regular';
    src: url('./assets/fonts/RethinkSans-Regular.ttf') format('truetype');
}

:root {

    /* columns */--col:calc((100%/12) - calc(var(--col-padding)/2));--col-padding: 15px;--gap: 2rem;--border-radius: 3px;--container-padding: 10vw;--container-padding-mobile: 8%;--button-pad: 8px 20px;--bg-y-offset:0px;--nav-h: 100px;--pad-x: 0 7vw;--pad-xy: 12vh 7vw;--ff-main: 'RethinkSans-Regular', sans-serif;--ff-p: 'RethinkSans-Regular', sans-serif;--fs-p: 1rem;--clr-main-dark: #000000;}

h1, h2, h3, h4, h5, h6{
    font-family: var(--ff-main);
    color: var(--clr-main);
    margin: 0;
    /* line-height: 1.8ch; */
}

h1{
    font-size: 2.7rem;
    margin-bottom: 3vh;
    line-height: 1.9ch;
}
    h1.about{
    font-size: xx-large;
}
h2{
    font-size: xx-large;
    margin-bottom: 3vh!important;
    line-height: 1.8ch;
}
h3{}

a{
    font-family: var(--ff-p);
    color: #000;
}

p{
    font-family: var(--ff-p);
    color: var(--clr-main);
    font-size: var(--fs-p);
    line-height: 1.6;
    margin:0 0 10px 0;
}

button{
    font-family: var(--ff-p);
    color: var(--clr-main);
    font-size: var(--fs-p);
    line-height: 1.6;
    letter-spacing: normal;
}
    .submenu-back{
    margin-bottom: 5vh;
    width: fit-content;
    background-color: #fff;
    border: solid 1px;
    padding: 5px 15px;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6{
    color: #fff;
}
body{
    margin:0;
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* Flex layout utilities */
.flex{
    display: flex;
}

.flex-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center-y{
    align-items: center;
}

.flex-right{
    justify-content: flex-end;
}

.flex-between{
    justify-content: space-between;
}

.centered{
    justify-content: center;
    align-items: center;
}

.flex-col{
    flex-direction: column;
}
footer{
    padding: var(--pad-xy);
    background-color: #000;
    color: #fff;
    text-align:center;
    /* width: 100%; */
    gap: 20px;
}

footer h6{
    font-size: medium;
    margin-bottom: 20px;
}
footer .logo-wrap{
    flex-direction: column;
}
footer .logo-wrap img{
    max-height: 11vh;
}
footer a{
    color: white;
}

footer .col-4:nth-child(1){
    order: 3;
}

footer .col-4:nth-child(2){
    order: 1;
}

footer .col-4:nth-child(3){
    order: 2;
}

.menu-social{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.menu-social a{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgb(47 47 47 / 30%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.menu-social .social-icon{
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.step-container [class*="col-"]{
    /* padding-bottom: 5vh; */
}

.step-container{
    /* padding-bottom: 5vh; */
    min-height: 10vh;
    align-items: center;
    flex-direction: column!important;
    background-color: #ffffff99;
}

    .step-container .col-5:nth-child(1) {
        order: 3;
    }

.pb-y-0{
    padding-bottom:0;
}

.pt-y-0{
    padding-top:0;
}

.step-container img{
   width: 100%;
   /* padding: 6vh 0; */
}

.step::after{
    content:' ';
    left: 50%;
    width: 1px;
    height: 900%;
    background-color: #dbdbdb;
    position: absolute;
    top: 0;
    z-index:-1;
}

.step.is-last-step::after{
    content:' ';
    left: 50%;
    width: 1px;
    height: 0%;
    background-color: #dbdbdb;
    position: absolute;
    top: 0;
    z-index:-1;
}


.step{
    font-family: var(--ff-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position:relative;
    /* overflow:hidden; */
}
.step span{
    background-color: #cacaca;
    /* width: 30%; */ /* Or any responsive width like 50% */
    padding: 4%;
    aspect-ratio: 1 / 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    font-weight: 600;
}
.row{
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
    flex-direction: column;
}

.row > [class*="col-"]{
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    width: 100%!important;
    max-width: 100%;
    padding-top: 2vh;
}

.row > [class*="col-"]:empty{
    display:none;
}

.col-1{flex: 0 0 8.3333%;max-width: 8.3333%;}
.col-2{flex: 0 0 16.6667%;max-width: 16.6667%;}
.col-3{flex: 0 0 25%;max-width: 25%;}
.col-4{flex: 0 0 33.3333%;max-width: 33.3333%;}
.col-5{flex: 0 0 41.6667%;max-width: 41.6667%;}
.col-6{flex: 0 0 50%;max-width: 50%;}
.col-7{flex: 0 0 58.3333%;max-width: 58.3333%;}
.col-8{flex: 0 0 66.6667%;max-width: 66.6667%;}
.col-9{flex: 0 0 75%;max-width: 75%;}
.col-10{flex: 0 0 83.3333%;max-width: 83.3333%;}
.col-11{flex: 0 0 91.6667%;max-width: 91.6667%;}
.col-12{flex: 0 0 100%;max-width: 100%;}


    
    header{
        width: 100%;
        position: fixed;
        top: 0;
        z-index: 10;
    }
    .menu{
        display: flex;
        gap: 30px;
    }
    .icon-svg{
        width: 36px;
        height: 36px;
        }
    nav{
        display: flex;
        background-color: #ffffff00;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        /* padding-top: 1vh; */
    }
    nav.scrolled{
    background-color: #ffffffff;
    color: #000!important;
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    border-bottom: solid 1px #cacaca;
    }

    nav.scrolled,
    nav.scrolled img,
    nav.scrolled button,
    nav.scrolled a, nav a
    {
    transition: all 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    }
    nav.scrolled a{
    color: #000!important;
    }

    .menu-left a{}

nav a:hover{
    color: #d3d3d3!important;
    }

    nav.scrolled img{
    filter: brightness(0);
    }

    nav a{
        font-family: var(--ff-p);
        color: #fff;
        text-decoration: none;
        font-size: small;
    }

    nav a:has(.logo){
      height: 100%;
      display: contents;
    }

    nav .logo{
        width: auto;
        height: 80%;
    }

    /* Main menu (header) */
    
    
    .main-nav{
        height: auto;
        position: relative;
        padding: 0;
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle-bar{
    background-color: #000;
}
    .menu-toggle{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        position: absolute;
        right: 5vw;
        top: 0;
        z-index: 10001;
        flex-direction: column;
        height: 100%;
    }

    .menu-toggle-bar{
        background-color: #ffffff;
    }

    nav.scrolled .menu-toggle-bar{
        background-color: #000000;
    }

    .menu-panel{
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 10vh 0% 32px;
        background-color: #ffffff;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 10000;
        /* width: 50vw; */
    }

    .main-nav.is-open .menu-panel{
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        /* z-index: 2; */
    }

    body.menu-open{
        overflow: hidden;
    }

    .menu-panel .logo-wrap{
        order: -1;
        margin-bottom: 10px;
        /* width: inherit; */
        /* display: none; */
        width: 100%;
        height: 80px;
        justify-content: center;
        /* transform: translateX(100%); */
        /* opacity: 1; */
    }

    .menu-left,
    .menu-right{
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
    }

    .search-grid .flex{
        flex-direction:column;
    }

    .search-grid .flex .search-block{
        border: none;
    }

    .menu-item{
        width: 100%;
        justify-content: center;
    }

    .submenu-toggle{
        display: none;
        /* align-items: center; */
        justify-content: center;
        position: relative;
        /* position: absolute; */
        /* right: 0; */
    }

    .submenu-toggle .caret{
        color: #000000;
        font-size: 0.85rem;
    }

    .menu-left a,
    .menu-right a,
    .menu-right button{
        color: #000000;
        font-size: 1.1rem;
    }

    .btn-contact{
        background-color: #f0f0f0;
        border: 1px solid #d7d7d7;
        color: #000000;
    }

    .sub-menu{
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 85vw;
        max-width: 360px;
        padding: 90px 8% 24px;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: start;
        gap: 0;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease;
        z-index: 130;
    }
    .submenu-back{display:block;}
    .sub-menu.is-open{
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
        max-width: unset;
    }

    .sub-menu .menu-left{
        width: 100%;
    }

    .sub-menu a{
        color: #000000;
        font-size: 1rem;
    }

    .hide{
        display: none!important;
    }

.sub-menu a{
    font-size: medium!important;
    text-decoration: underline;
}

    .sub-menu > a{
    /* font-size: medium!important; */
    padding-bottom: 15px;
    text-align: center;
    /* text-decoration: underline; */
}

.sub-menu a:hover{
    color:#000!important;
}

    .menu-left,
    .menu-right{
        display: flex;
        align-items: center;
        gap: 0;
        min-width: 0;
    }

    .menu-item{
        position: relative;
        display: flex;
        align-items: center;
        /* border-bottom: solid; */
    }

    .submenu{
        position: absolute;
        top: calc(100% + 12px);
        /* color: black; */
        width: 100vh;
        left: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
        background-color: #ffffff;
        border-radius: 6px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 20;
    }

    .submenu a{
        color: #101010;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .menu-item:hover .submenu,
    .menu-item:focus-within .submenu{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-left a,
    .menu-right a,
    .menu-right button{
        font-family: var(--ff-p);
        font-size: 15px;
        letter-spacing: 0.02em;
        color: #0f0f0f;
    }

    .logo-wrap{
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: #fff;
        height: inherit;
    }
    .logo-wrap img{
        height: inherit;
        width: auto;
        /* filter: brightness(0); */
    }

    [aria-hidden="false"] .logo-wrap img{
        filter: brightness(0);
    }

    .logo-symbol{
        width: 34px;
        height: 34px;
        border: 2px solid rgba(255, 255, 255, 0.75);
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 18px;
    }

    .logo-text{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
    }

    .logo-title{
        font-family: var(--ff-main);
        font-size: 0.9rem;
        letter-spacing: 0.25em;
    }

    .logo-tagline{
        font-family: var(--ff-p);
        font-size: 0.55rem;
        letter-spacing: 0.2em;
        opacity: 0.8;
    }

    .menu-right{
        justify-content: flex-end;
        gap: 15px;
    }

    .btn-contact{
        background-color: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.35);
        padding: 8px 22px;
        border-radius: 2px;
        font-weight: 600;
    }

    nav.scrolled .btn-contact{
        background-color: rgb(207 207 207 / 20%);
        border: 1px solid rgb(181 181 181 / 35%);
        padding: 8px 22px;
        border-radius: 2px;
        font-weight: 600;
    }

    .main-nav{
        grid-template-columns: 1fr;
        height: 9vh;
        padding: 14px 0 11px;
        row-gap: 16px;
        border-bottom: solid 1px #cacaca00;
        flex-direction: column;
    }

    .menu-left,
    .menu-right{
        justify-content: center;
        flex-wrap: wrap;
    }

    .menu-left>*{
        border-top: solid 1px #ccc;
        width: 70%;
        text-align: center;
        padding: 15px 0;
        text-decoration: underline;
        flex-direction: column;
        position: relative;
    }    


section{
    padding: 10vw 4vh;
    position: relative;
    min-height: 10vh;
    /* padding: 10vw; */
}

.container{
    padding:var(--pad-x);
}

.dark {
    background-color: var(--clr-main-dark);
    color: #fff;
}

section.dark p {
    color: var(--clr-beige);
    font-size: var(--fs-p);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

section.grey {
    background-color: #cacaca;
}

section.grey h2{
    
}

.btn-primary {
    color: var(--clr-beige);
    border: none;
    padding: var(--button-pad);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background-color: #5f6e5f;
    padding: 0.75rem 1.8rem;
}

.dark .btn-secondary {
    color: var(--clr-beige);
    border: solid 1px;
    padding: var(--button-pad);
    /* border-radius: var(--border-radius); */
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--clr-main-dark);
    padding: 0.75rem 1.8rem;
}

.btn-secondary {
    color: #ffffff;
    /* border: solid 1px #fff; */
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--clr-main-dark);
    padding: 0.75rem 1.8rem;
}



.btn-secondary a{
    color: #fff;
    text-decoration:none;
}

#property-gallery{
    scroll-snap-type: x mandatory;
    scroll-padding: 6vw;
    padding: 0 6vw;
    gap: 16px;
    height: 50vh;
}

#property-gallery .card{
    width: 75vw;
    scroll-snap-align: center;
}

#property-gallery .img-container{
    height: 32vh;
}

.property-gallery-section{
    padding-top: 6vh;
}

.property-gallery-track{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 6vw;
    padding: 0 6vw;
}

.property-gallery-track::-webkit-scrollbar{
    display: none;
}

.property-gallery-card{
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    flex: 0 0 auto;
    width: 70vw;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.property-gallery-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-gallery-lightbox{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.property-gallery__zoom{
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.property-gallery-nav{
    border: none;
    background: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.property-gallery-modal{}
.property-gallery-modal .filter-modal__backdrop{}
.property-gallery-modal .filter-modal__dialog{
    width: 100vw;
    height: 100vh;
    max-height: unset;
    align-items: anchor-center;
}
.property-gallery-modal .filter-modal__header{}
.property-gallery-modal .filter-modal__body{}
.property-gallery-modal .filter-modal__close{}
.property-gallery-modal .property-gallery-lightbox{display: contents;position: relative;}
.property-gallery-modal .property-gallery__zoom{
    max-height: unset;
    height: 100vh;
}
.property-gallery-modal .property-gallery-nav{}
.property-gallery-modal .property-gallery-prev{
    position: absolute;
    top: 50%;
    z-index: 5;
}
.property-gallery-modal .property-gallery-next{
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 5;
}



.property-search::before,
.property-search::after{
    /* content: ""; */
    position: absolute;
    border-radius: 999px;
    opacity: 0.35;
    filter: blur(0px);
}

.property-search::before{
    width: 420px;
    height: 420px;
    background: #f7d6b2;
    top: -140px;
    background: #ffffff; /* Added background color */
}

.property-search::after{
    color: #000000; /* Changed text color */
    /* height: 280px; */
    /* background: #cbd4f3; */
    /* bottom: -120px; */
    /* left: -80px; */
}

.search-shell{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.search-hero{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    padding: 18px 16px 24px;
}

.filters-drawer-handle{
    position: sticky;
    top: 0;
    left: 0;
    width: stretch;
    height: 7vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 10px;
    background: #232836;
    border-radius: 16px 16px 0 0;
    z-index: 1;
    touch-action: none;
}

.filters-drawer-title{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.filters-drawer-title h3{
    margin: 0;
    font-size: 1.05rem;
    color: inherit;
}

.filters-drawer-total{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-family: var(--ff-main);
}

.filters-drawer-spinner{
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

.filters-drawer-spinner.is-active{
    display: inline-block;
}

.filters-drawer-caret{
    width: 30px;
    height: 30px;
    border: none;
    background: #ffffff2e;
    position: relative;
    cursor: pointer;
    border-radius: 9px;
}

.filters-drawer-caret::before{
    content: '';
    position: absolute;
    top: 12px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-135deg);
}

body.filters-drawer-open .filters-drawer-caret::before{
    transform: rotate(45deg);
    top: 8px;
}

.search-copy h2{
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.search-metrics{
    display: flex;
    gap: 26px;
    margin-top: 18px;
}

.search-metrics strong{
    display: block;
    font-size: 1.4rem;
}

.search-metrics span{
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4f5666;
}

.search-image{
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(8, 12, 22, 0.2);
}

.search-image img{
    width: 100%;
    display: block;
}

.search-image-tag{
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.search-form{
    background: #ffffff;
    border-radius: 22px;
    /* padding: 28px 32px 24px; */
    /* box-shadow: 0 18px 50px rgba(16, 24, 40, 0.12); */
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    /* overflow: scroll; */
    padding: 5px 16px 74px;
}

.search-form-head,
.search-form-head > div{
    display: contents;
}

.search-form-head h3{
    order: 0;
}

.search-actions{
    order: 99;
    margin-top: 10px;
    padding-top: 0;
    /* justify-content: right!important; */
    justify-content: left!important;
}

.filters-drawer-backdrop{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9000;
}

.search-sidebar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: unset;
    z-index: 9050;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.18);
    height: 85vh;
    overflow-y: auto;
    /* padding: 39px 16px 74px; */
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overscroll-behavior: contain;
}

body.filters-drawer-open .search-sidebar{
    transform: translateY(0);
}

body.filters-drawer-open .filters-drawer-backdrop{
    opacity: 1;
    pointer-events: auto;
}

.results-panel{
    padding-bottom: 90px;
}

.search-form-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    justify-content: left;
}

.search-form-head h3{
    font-size: 1.3rem;
    margin-bottom: 0px;
    display: none;
}

.search-actions{
    /* display: flex; */
    /* gap: 12px; */
}

.filter-pill{
    background: #f2f4f8;
    border: none;
    padding: 2px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.filter-primary{
    background: #1f2937;
    color: #fff;
    border: none;
    padding: 2px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: none;
}

.search-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 10px;
    border: solid 1px #dddddd;
}

.mobile-logo{
    /* width: 90px; */
    height: 100%;
    /* margin-left: 5vw; */
    display: block!important;
}

.search-block{
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* padding-bottom: 10px; */
}

.search-grid > .search-block:last-of-type{
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: none;
}

.search-block label{
    font-weight: 600;
    font-size: 0.95rem;
}

.chip-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip{
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip.is-active{
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
    transform: translateY(-1px);
}

.filter-modal-trigger{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    cursor: pointer;
    font-family: var(--ff-p);
    font-size: 0.95rem;
}

.filter-count{
    /* background: #1f2937; */
    /* color: #fff; */
    /* border-radius: 999px; */
    /* padding: 2px 8px; */
    /* font-size: 0.75rem; */
    /* line-height: 1.4; */
}

.filter-count.is-hidden{
    display: none;
}
.property-stats{}

    .property-hero h1{}
.property-hero h3{}
.property-hero {
    flex-direction: column-reverse;
}

.filter-modal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    font-family: var(--ff-main);
}

.filter-modal.is-open{
    display: unset;
    align-items: center;
    justify-content: center;
}

.filter-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.filter-modal__dialog{
    position: relative;
    background: #fff;
    border-radius: 0;
    width: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
}

.filter-modal__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-modal__title{
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-modal__header h3{
    margin: 0;
    font-size: 1.1rem;
}

.filter-modal__count{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

.filter-modal__spinner{
    width: 12px;
    height: 12px;
    border: 2px solid #d1d5db;
    border-top-color: #8b97a6;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

.filter-modal__spinner.is-active{
    display: inline-block;
}

.filter-modal__close{
    border: none;
    background: #232836;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    color: #fff;
}

.filter-modal__body{
    padding: 18px 8px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* position: relative; */
    padding-bottom: 25vh;
}

.filter-modal__layout{
    display: unset;
    gap: 10px;
    align-items: flex-start;
}

.filter-modal__sidebar{
    width: 180px;
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: #fff;
    position: unset;
}

.filter-modal__sidebar-title{
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.filter-modal__sidebar-actions{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-modal__quick-list{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-modal__quick{
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.filter-modal__quick.is-active{
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.filter-modal__quick.is-active .filter-modal__quick-count{
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.filter-modal__quick-count{
    background: #eef2f7;
    color: #374151;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.filter-modal__content{
    flex: 1;
    display: contents;
    flex-direction: column;
    gap: 18px;
    width: inherit;
}

.filter-modal__actions{
    display: flex;
    gap: 10px;
}

.filter-modal__action,
.filter-modal__action-link{
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.filter-modal__action-link{
    border: none;
    color: #1f2937;
    text-decoration: underline;
    padding: 0;
}

.filter-modal__group{
    border: unset;
    border-radius: 0;
    padding: 12px 6px;
    width: stretch;
    border-bottom: solid 1px #cacaca;
}

.filter-modal__group-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    font-weight: 600;
}

.filter-modal__options{
    display: flex;
    grid-template-columns: repeat(1, 100%);
    gap: 7px;
    padding-bottom: 6px;
    flex-flow: wrap;
}

.filter-modal__option{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    /* margin-bottom: 15px; */
    border: solid 1px #cacaca;
    padding: 3% 5%;
    border-radius: 30px;
    width: max-content;
}

    .filter-modal__option:has(input:checked){
    background-color: #232836;
    color: #fff;
}

.filter-modal__option input{
    display:none;
}

.filter-modal__footer{
    display: flex;
    justify-content: left;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    flex-direction: row-reverse;
    gap: 10px;
}

.filter-modal__cancel,
.filter-modal__apply{
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.filter-modal__apply{
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

.modal-open{
    overflow: hidden;
}

    .filter-modal__layout{
        flex-direction: column;
        /* position: relative; */
    }

    .filter-modal__sidebar{
        width: 100%;
        flex: none;
        background-color: #fff;
        /* position: fixed; */
        top: 10vh;
    }

    .filter-modal__sidebar-actions,
    .filter-modal__quick-list{
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-modal__quick{
        flex: 1 1 calc(50% - 8px);
    }

.budget-range input{
    width: 100%;
}

.budget-meta{
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #5b6373;
}

.stepper{
    display: flex;
    align-items: center;
    gap: 12px;
}

.stepper button{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
}

.stepper input{
    width: 50px;
    text-align: center;
    border: 1px solid #d1d5db;
    padding: 6px 0;
}

.search-block select{
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    border-radius: 8px;
}

.search-block input{
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: var(--ff-p);
    font-size: 0.95rem;
}

.search-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count{
    font-weight: 600;
}

.active-filters{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag{
    border: 1px solid transparent;
    background: #f2f4f8;
    padding: 6px 10px 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-tag__remove{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    line-height: 1;
    background: #fff;
}

.filter-tag:hover{
    border-color: #d1d5db;
}

.property-results{
    background: #ffffff;
    padding-top: 0;
}

.results-header{
    margin-bottom: 24px;
}

.results-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.result-card{
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(16, 24, 40, 0.08);
    transform: translateY(0);
    transition: transform 0.2s ease;
}

.result-card:hover{
    transform: translateY(-4px);
}

.result-card img{
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
}

.result-info{
    padding: 14px 16px 18px;
}

.result-info h4{
    margin-bottom: 3px;
    font-size: 1.05rem;
    height: 4.5ch;
}

.result-type{
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.result-info p{
    margin: 0;
    color: #4f5666;
}

.results-bar{
    gap: 0;
}

.result-info small {
    display: block;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #585858;
    line-height: 1.4;
    font-family: var(--ff-main);
}

@media (max-width: 1100px) {
    .search-hero{
        grid-template-columns: 1fr;
    }
    .search-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .results-grid{
        grid-template-columns: repeat(1, 100%);
    }
}

@media (max-width: 700px) {
    .search-form-head{
        flex-direction: column!important;
    }
    .search-grid{
        grid-template-columns: 1fr;
    }
    .results-grid{
        grid-template-columns: 1fr;
    }
}

/* Contact page */
.contact-hero h1{
    margin-bottom: 0;
}

.contact-grid{
    align-items: flex-start;
}

.contact-left{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-photo img{
    width: 100%;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}

.contact-card{
    background-color: #d9d9d9;
    padding: 3vw;
}

.contact-card h3{
    margin-bottom: 10px;
}

.contact-card-block{
    margin-top: 16px;
}

.contact-card strong{
    display: block;
    margin-bottom: 6px;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 2vh;
}

.form-column form {
    background-color: #f7f7f7;
    padding: 30px 20px;
    border-radius: 10px;
}

.contact-form h2{font-size: xx-large;margin-bottom: 0px!important;}

label{
    font-family: var(--ff-main);
}

.form-group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group input,
.form-group textarea,
.form-group select{
    border: 1px solid #b8bec9;
    padding: 12px 14px;
    font-family: var(--ff-p);
    font-size: 0.95rem;
    border-radius: 2px;
}

.form-group textarea{
    resize: vertical;
}

.form-row{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-section-title{
    font-family: var(--ff-main);
    font-size: 1.1rem;
    margin-top: 4px;
}

.required{
    color: #b43434;
    font-size: 0.85rem;
}

.form-actions{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-status{
    min-height: 20px;
    font-size: 0.9rem;
}

.is-invalid{
    border-color: #c23b3b;
    background-color: #fff5f5;
}

@media (max-width: 900px) {
    .contact-grid{
        gap: 0px;
    }
    .form-row{
        grid-template-columns: 1fr;
    }
}

/* FAQ section */
.faq-section h2{
    margin-bottom: 4vh;
}

.faq-grid{
    column-count: 2;
    column-gap: 40px;
}

.faq-item{
    /* border-bottom: 1px solid #d4d4d4; */
    padding: 14px 0;
    break-inside: avoid;
    /* margin-bottom: 20px; */
}

.faq-trigger{
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: var(--ff-main);
    font-size: 1rem;
    font-weight: 600;
}

.faq-caret{
    font-size: 1.6rem;
    transition: transform 0.2s ease;
}

.faq-item.is-open .faq-caret{
    transform: rotate(180deg);
}

.faq-panel{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
}

.faq-item.is-open .faq-panel{
    opacity: 1;
}

.faq-panel p{
    padding: 12px 0 6px;
    margin: 0;
}

@media (max-width: 900px) {
    .faq-grid{
        column-count: 1;
    }
}



.hero{
    height: 100vh;
    position: relative;
    padding: 0;
}

.bg-img-container{
    /* width: 100%; */
    /* height: 100%; */
    overflow: hidden;
    z-index: -1;
    height: 90vh;
    min-width: unset;
    top: 0;
    left: 0;
    position: relative;
}

.hero .bg-img-container {
        width: 100%;
        /* height: 100%; */
        overflow: hidden;
        position: absolute;
        z-index: -1;
        height: 100%;
        min-width: 100%;
        top: 0;
        left: 0;
    }

.bottom-image{
    height: 520px;
    position: initial;
}
.bottom-image img{
    height: 520px;
    position: initial;
}

.bg-img-container img{
    /* overflow: hidden; */
    /* position: absolute; */
    z-index: -2;
    height: 110vh;
    top: 0!important;
    left: 0;
}

.bg-img-container--darken{filter: brightness(0.8);}

.img-container{
    /* width: 100%; */
    /* height: 100%; */
    overflow: hidden;
    position: relative;
}

    /*  */
.property-hero .bg-img-container img{
    overflow: hidden;
    position: absolute;
    z-index: -2;
    height: 100%;
}

.property-hero .bg-img-container--darken{filter: brightness(0.8);}

.property-hero .img-container{
    /* width: 100%; */
    /* height: 100%; */
    overflow: hidden;
    position: relative;
}

    
    /*  */

.btn-primary{
    /* background-color: black; */
}

.btn-primary a{
    text-decoration: none;
    color: white;
}

.hero h1{
    margin-bottom: 2vh;
    font-size: 2.5rem;
    width: 80%;
    text-align: center;
    color: #fff;
}


.custom-padding{padding: 5vh;}

.card-static-row{
    /* display: flex; */
    /* width: 100%; */
    gap: 1vh;
    margin: 0;
    flex-direction: column;
}
.card-static{
    flex: 1;
    flex-grow: 1;
}
.card-static .img-container{
    position: relative;
    width: 100%;
    height: 50vh;
}
.card-static .img-container img{/* display: none; */position: absolute;max-height: unset;object-fit: cover;left: 0;height: 100%;width: 100%;}
.card-static h5{
    margin: 3vh 0;
    font-size: large;
}
.card-static h5 span{
    font-size: xx-large;
}


.card-row-slider{
    display: flex;
    width: 100%;
    gap: 1vw;
    margin: unset;
    overflow-x: auto;
    height: 80vh;
}
.card-row-slider::-webkit-scrollbar{
    display: none;
}
.card-row-slider .card{
    flex: 0 0 auto;
    width: 70vw;
    max-height: unset;
}

.slider-controls{
    margin-top: 12px;
}

.slider-control{
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.card .img-container{
    overflow: hidden;
    position: relative;
    height: 40vh;
    margin-bottom: 20px;
}
.card .img-container img{
    position: absolute;
    width: 100%;
}
.card h5{
    font-size: medium;
}
.card .price{}
.card .location{}
.card .details{
    display: flex;
    gap: 20px;
}

.property-metrics{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: center;
}

.property-metric{
    flex-direction: column-reverse;
    display: flex;
}

.property-metric h2{
    font-size: 1.6rem;
    margin-bottom: 0;
    color: #ffffff;
}

.property-metric p{
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.property-features{
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.property-feature-title{
    margin-bottom: 6px;
}

.property-feature-text{
    margin: 0;
    color: #4f5666;
}

.property-hero .property-description-footer{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 600;
    flex-direction: column;
}

.property-description-footer{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 20px;
    font-weight: 600;
    flex-direction: column;
}

.property-description-dot{
    color: #9ca3af;
    display: none;
}

/* Areas gallery grid */
.area-gallery-section h2{
    margin-bottom: 3vh;
}

.area-gallery-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 16px;
}

.area-card{
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
}

.area-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.area-card::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.area-card:hover img{
    transform: scale(1.06);
}

.area-label{
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.area-mijas{
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.area-marbella{
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.area-fuengirola{
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.area-casares{
    grid-column: 4 / 5;
    grid-row: 2 / 4;
}

.area-estepona{
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.area-benalmadena{
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.area-benahavis{
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

@media (max-width: 900px) {
    .area-gallery-grid{
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
    .area-mijas,
    .area-marbella,
    .area-fuengirola,
    .area-casares,
    .area-estepona,
    .area-benalmadena,
    .area-benahavis{
        grid-column: auto;
        grid-row: auto;
    }
    .area-mijas{
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
}

@media (max-width: 600px) {
    .area-gallery-grid{
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .area-mijas{
        grid-column: auto;
        grid-row: auto;
    }
}

/* 2x2 icon grid */
.icon-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.icon-tile{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    flex-direction: column;
    /* border-radius: 6px; */
    /* background-color: #ffffff; */
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); */
}

.icon-circle{
    width: 88px;
    height: 88px;
    /* border-radius: 999px; */
    /* background-color: #e9ecf2; */
    display: grid;
    place-items: center;
    flex: 0 0 48px;
}

.icon-svg{
    width: 60px;
    height: 60px;
}

.icon-label{
    margin: 0;
    font-weight: 600;
}

    .icon-grid{
        grid-template-columns: 1fr;
    }

/* Areas page */
.top-menu-padding{
    padding-top: 18vh;
}
.area-links{
    gap: 20px;
    margin-top: 5vh;
    flex-direction: column;
}

.area-links span{display:none;}
.area-links a{
    color:#000;
}
.areas-hero{
    /* padding: var(--pad-xy); */
    /* background-color: #ffffff; */
}

.areas-hero p{
    max-width: 52ch;
}

.area-spotlight{
    padding: var(--pad-xy);
    
}

.area-spotlight .row{
   gap: 3vh!important;
   flex-direction: column-reverse;
}

.area-spotlight.is-grey{
    background-color: #d9d9d9;
    flex-direction: column;
}



.area-spotlight-inner{
    display: flex;
    align-items: center;
    gap: 6vw;
}

.is-reverse{
    flex-direction: row-reverse;
}

.area-copy{
    flex: 1;
    /* max-width: 520px; */
}

.area-copy p{
    margin: 16px 0 24px;
}

.area-media{
    flex: 1.2;
}

.area-media img{
    width: 100%;
    /* border-radius: 12px; */
    object-fit: cover;
    display: block;
}

.area-btn{
    background-color: #000000;
    border-color: #000000;
}

.area-btn a{
    color: #ffffff;
    text-decoration: none;
}

.area-spotlight-inner,
.area-spotlight-inner.is-reverse{
    flex-direction: column;
    align-items: flex-start;
}
.area-copy{
    max-width: none;
}

}
