/*
    Theme Name: Gray Property Invest
    Theme URI: https://vesanique.com
    Author: Vesanique
    Author URI: https://vesanique.com
    Version: 1.0.0
    Text Domain: vwp-starter
*/

.map-and-list{
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 34px;
   
    @media screen and (max-width: 768px) {
       grid-template-columns: 1fr;
    }
    & .block--portfolio-map--left{
        max-height: 690px;
        overflow-y: scroll;
    }

    & #map{
        height: 690px;
        width: 100%;
        
    }
    & .listings{
        display: flex;
        flex-direction: column;
        gap: 30px;
        & .item{
            border-bottom: 1px solid  #333237;
            padding-bottom: 30px;
        }
        & .item-content{
            & .title{
                font-family: var(--wp--preset--font-family--neue-haas-grotesk);
                font-weight: 450;
                font-size: 24px;
            }
            & .cats{
                font-family: var(--wp--preset--font-family--neue-haas-grotesk);
                font-weight: 450;
                font-size: 15px;
                opacity: 0.5;
                display: flex;
                gap: 10px;
            }
        }
    }
}
.tab-buttons {
    /* display: flex;
    gap: 12px; */
    padding-bottom: 16px;
    border-bottom: 1px solid #333237;
    margin-bottom: 43px;
    display: grid;
    grid-template-columns: 1fr 1.85fr;
    gap: 53px;
    @media screen and (max-width: 768px) {
        grid-template-columns: 1fr;
    }
    & .list-buttons{
        display: flex;
        gap: 12px;
    }
    & .list-headings {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 20px;
        @media screen and (max-width: 768px) {
            display: none !important;
        }
        & p{
            color: #333237;
            font-family: var(--wp--preset--font-family--neue-haas-grotesk);
            font-size: 14px;
            font-style: normal;
            font-weight: 450;
            line-height: normal;
            text-transform: uppercase;
            
        }
    }
}
.marker{
    height: 10px;
    width: 10px;
    background-color: black;
    border-radius: 10px;
}
.mapboxgl-popup-content{
    padding: 0 !important;
    & .map-title {
        padding: 8px 8px 0 8px;
        font-size: 11px;
    }
    & .map-category {
        padding-left: 8px;
        padding-bottom: 8px;
        display: flex;
        gap: 5px;
        opacity: 0.5;
        font-size: 10px;
    }
}
.mapboxgl-popup-close-button{
    background-color: #fff !important;
    padding: 5px 7px;
    border-radius: 10px;
    font-size: 11px;
    &:hover{
        background-color: #fff !important;
        padding: 5px 7px;
        border-radius: 10px;
        font-size: 11px;
    }
}
.tab-buttons{
    & button{
        color: #333237;
        text-align: right;
        font-family: var(--wp--preset--font-family--neue-haas-grotesk);
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        text-transform: uppercase;
        background-color: transparent;
        opacity: 0.5;
        cursor: pointer;
        letter-spacing: 0.85px;
    }
   & button.is_active{
        opacity: 1;
   }    
}
.list-item-container:last-of-type{
        border-bottom: none;
    }
.list-item-container{
    display: grid;
    grid-template-columns: 1fr 1.85fr;
    padding-bottom: 101px;
    gap: 53px;
    border-bottom: 1px solid #333237;
    padding-top: 28px;
    @media screen and (max-width: 768px){
        grid-template-columns: 1fr;
    }
    & h2{    
        color: #333237;
        font-family: var(--wp--preset--font-family--neue-haas-grotesk);
        font-size: clamp(1.25rem, 0.65rem + 1.5vw, 2rem);
        font-style: normal;
        font-weight: 450;
        line-height: normal;
        margin-bottom: 26px;
    }
    & .excerpt{
        margin-bottom: 48px;
    }
    & .lists{
        border-top: 1px solid #333237;
        display: flex;
        justify-content: space-between;
        padding-top: 11px;
        padding-bottom: 25px;
        & p{
            color: #333237;
            text-align: right;
            font-family: var(--wp--preset--font-family--neue-haas-grotesk);
            font-size: 15px;
            font-style: normal;
            font-weight: 450;
            line-height: normal;
        }
        & p:first-child{
            text-align: left;
            color: #333237;
            font-family: var(--wp--preset--font-family--neue-haas-grotesk);
            font-size: 15px;
            font-style: normal;
            font-weight: 600;
            line-height: normal;
        }
    }
    & .list-item-image-holder{
        & > div{
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            gap: 20px;
            & p{
                margin-bottom: 39px;
                & span{
                    display: none;
                    font-weight: 600;
                    @media screen and (max-width: 768px) {
                        display: block;
                    }
                }
            }
            & figure{
                width: 100%;
                max-height: 535px;
                & img{
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }
        
    }
}
.map-head{
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    border-top: 1px solid #333237;
    padding-top: 25px;
    margin-bottom: 86px;
    gap: 20px;
    @media screen and (max-width: 768px) {
         grid-template-columns: 1fr;
        
    }

    & .page-title{
        display: flex;
        gap: 4px;
        align-items: center;
        & p{
            margin-bottom: 0;
            color: #333237;
            font-family: var(--wp--preset--font-family--neue-haas-grotesk);
            font-size: 14px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
            text-transform: uppercase;
        }
    }
    & .portfolio-category-list{
        margin-bottom: 0;
        list-style: none;
        display: flex;
        gap: 15px;
        @media screen and (max-width: 768px) {
         
            display: flex;
            gap: 10px;
            overflow-x: auto;        /* Enable horizontal scrolling */
            overflow-y: hidden;
            white-space: nowrap;
            width: 100%;
            padding: 10px;
            margin: 0;
            list-style: none;
            box-sizing: border-box;
            -webkit-overflow-scrolling: touch;

        }
        & li{
            border-bottom: 1px solid #333237;
            @media screen and (max-width: 768px){
               flex: 0 0 auto;  
            }
        }
        & li.is_active{
            & a{
                font-weight: 550;
            }
        }
        & a{
            display: flex;
            gap: 10px;
            align-items: center;
            text-decoration: none;

            color: #333237;
            font-family: var(--wp--preset--font-family--neue-haas-grotesk);
            font-size: 16px;
            font-style: normal;
            font-weight: 450;
            line-height: normal;
            text-transform: capitalize;
        }
    }
}

.scrollable-cats{
    overflow-x: auto;
}