.estates-map-btn{
    height: 100%;
    width: 100%;
    /*border: red 1px solid;*/
    line-height: 60px;
}
.estates-map-btn > a{
    color: black;
    text-decoration: none;
    font-family: sofia-pro, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1em;

}
.estates-map-btn > a:hover{
    color: black;
}

.estates-url{
    /*display: block;*/
    text-decoration: none;
}

.estates-page-title{
    font-family: ltc-goudy-oldstyle-pro, serif;
    font-weight: 400;
    font-style: normal;
}

.estates-picture-wrapper{
    position: relative;
    /*overflow: hidden;*/
}
/*
.estates-picture-wrapper img{
    object-fit: cover;
    height: 100%;
    width: 100%;
}
*/



.estates-grid-title{
    font-family: sofia-pro, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: black;
    text-decoration: none;
}

.estates-grid-subtitle{
    font-family: sofia-pro, sans-serif;
    font-weight: 300;
    font-style: normal;
    color: black;
    text-decoration: none;
}

.estates-grid-price{
    font-family: sofia-pro, sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #4B575C;
    text-decoration: none;
}

.estates-hmodh-btn{
    font-family: sofia-pro, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    background-color: black;
    font-size: 16px;
    display: inline-block;
    padding: 20px 40px 20px 40px;
    text-decoration: none;
}
.estates-hmodh-btn:hover{
    color: var(--logo-color);
}



/*******************************************************************/
/*                                                                 */
/* SEARCH ENGINE                                                   */
/*                                                                 */
/*******************************************************************/

.price-warning{
    color: red;
}


input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}





#salesfilterform label.label-price{
    width: 80px;
    font-family: sofia-pro, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
}



.dropdown-price{
    margin-bottom: 1em;
}

.dropdown-menu-price{
    width: 300px;
    padding: 10px;
    border: 0px;
    box-shadow: #999 3px 3px 10px;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: -20px;
    vertical-align: 0em;
    content: "";
    border-top: .4em solid;
    border-right: .25em solid transparent;
    border-bottom: 0;
    border-left: .25em solid transparent;
    color: #999;
}






#seasonsfilterform select{
    display: block;
    height: 73px;
    font-family: ltc-goudy-oldstyle-pro, serif;
    font-weight: 400;
    font-style: normal;
    line-height: 60px;
    font-size: 1em;
    border: 0px;
    border-bottom: black 1px solid;
    padding-left: 0px;
    padding-top: 11px;
    width: 100%;
    background-color: white;
}

.search-input-field{
    font-family: ltc-goudy-oldstyle-pro, serif;
    font-weight: 400;
    font-style: normal;
    line-height: 60px;
    font-size: 1em;
    border: 0px;
    border-bottom: black 1px solid;
    padding-left: 0px;
    padding-top: 11px;
    width: 100%;
}

.search-input-field::placeholder{
    color: black;
}

div.zselect{
    border: 0px;
    border-bottom: black 1px solid;
    padding-left: 0px;
}

.searchsubmit > a{
    font-family: sofia-pro, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    background-color: black;
    font-size: 16px;
    display: inline-block;
    padding: 15px 20px 15px 20px;
    text-decoration: none;
    margin: 10px 0;
}
.searchsubmit > a:hover{
    color: var(--logo-color);
}
/*.zselect ul li.searchsubmit:hover {
    background-color: #FFF;
}*/
div.zselect ul{
    border: 0px;
    box-shadow: #999 3px 3px 10px;
}
.zselect ul li{
    line-height: 32px;
}
.zselect ul li.searchsubmit, .zselect ul li.searchsubmit:hover{
    background: none;
}

#salesfilterform label, #seasonsfilterform label{
    font-family: ltc-goudy-oldstyle-pro, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}

.zselect span.zmshead{
    font-family: ltc-goudy-oldstyle-pro, serif;
    font-weight: 400;
    font-style: normal;
    line-height: 60px;
}


.q-wrapper{
    text-align: right;
}

.q-search{
    border: none;
    border-bottom: #ccc 1px solid;
    font-size: 14px;
}
.q-button{
    border: none;
    background-color: white;
}
.q-search::placeholder{
    color: #BBB;
}





.filterhead{
    font-family: sofia-pro, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 10px;
}

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

.paginator-numbers{
    font-family: sofia-pro, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    line-height: 42px;
    height: 42px;
    display: inline-block;
    padding: 0 40px;
    margin: 0;
}
.pagibuttons{
    display: inline-block;
    color: black;
    font-size: 36px;
    line-height: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
}
.pagibuttons:hover{
    color: black;
}

/*******************************************************************/
/*                                                                 */
/* SALES MAP                                                   */
/*                                                                 */
/*******************************************************************/


#estates-map-mb{
    position: relative;
    height: 80vh;
    background-color: whitesmoke;
}

#estates-map{
    position: relative;
    height: 100vh;
    background-color: whitesmoke;
}

.estates-map-more{
    font-family: sofia-pro, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    color: white;
    display: inline-block;
    padding: 5px 10px;
    margin-top: 10px;
    background-color: black;
    text-decoration: none;
}

.estates-map-more:hover{
    color: var(--logo-color);
}

.estates-map-title{
    font-family: sofia-pro, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
}

.estates-map-ref{
    font-family: sofia-pro, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
}


.estate-status-label-wrapper{
    position: absolute;
    top: 15px;
    left: 15px;
    bottom:0px;
    right: 0px;
}

.estate-status-label{
    position: relative;
    background-color: var(--logo-color);
    color: white;
    display: inline-block;
    padding: 10px 20px;
    font-family: sofia-pro, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}



/*******************************************************************/
/*                                                                 */
/* MEDIA QUERIES                                                */
/*                                                                 */
/*******************************************************************/



@media only screen {
    .estates-map-btn{
        text-align: center;
    }
    .estates-page-title{
        font-size: 24px;
        text-align: center;
    }
    /*.estates-picture-wrapper{
        width: 100%;
        height: 350px;
    }*/
    /*.estates-right-col, .season-estates-right-col{
        transform: translateY(0px);
    }*/
    .estates-grid-subtitle{
        font-size: 16px;
    }
    .estates-grid-title{
        font-size: 18px;
    }
    .estates-grid-price{
        font-size: 16px;
    }
    .estate-curtain{
        display: block;
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        transition: all 0.4s ease;
        /*background-color: black;*/
        background-color: var(--logo-color);
        opacity: 0;
        /*border: rgba(255, 255, 255, 0) 0px solid;*/
    }
    .estate-curtain-more-info{
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 30px;
        opacity: 1;
        transition: opacity 0.4s ease;
        text-align: center;
        color: white !important;
        font-family: sofia-pro, sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 40px;
        line-height: 30px;
    }
}

@media only screen and (min-width: 576px) {
	/*.estates-picture-wrapper{
        width: 100%;
        height: 380px;
    }*/

}

@media only screen and (min-width: 768px) {
	/*.estates-picture-wrapper{
        width: 100%;
        height: 420px;
    }*/
    .gx-lg-5 {
        --bs-gutter-x: 40px;
    }
}

@media only screen and (min-width: 992px) {
    .estates-map-btn{
        text-align: right;
    }
	.estates-page-title{
        font-size: 40px;
        text-align: left;
    }
    /*.estates-picture-wrapper{
        width: 100%;
        height: 500px;
    }*/
    /*.season-estates-right-col{
        transform: translateY(-90px);
    }
    .estates-right-col{
        transform: translateY(-94px);
    }*/
    .estates-grid-title{
        font-size: 20px;
    }
    .estates-grid-price{
        font-size: 16px;
    }
    .gx-lg-5 {
        --bs-gutter-x: 60px;
    }
    /*.estates-picture-wrapper img{
        transition: all 0.4s ease;
        filter: blur(0px);
        -webkit-filter: blur(0px);
    }
    .estates-picture-wrapper:hover img{
        filter: blur(10px);
        -webkit-filter: blur(10px);
    }*/
    .estates-picture-wrapper .estate-curtain{
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0px;
        height: 0px;
        transition: all 0.4s ease;
        /*background-color: black;*/
        background-color: var(--logo-color);
        opacity: 0;
        /*border: rgba(255, 255, 255, 0) 0px solid;*/
    }
    .estates-picture-wrapper:hover .estate-curtain{
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        opacity: 0.2;
        /*border: rgba(255, 255, 255, 1) 8px solid;*/
    }
    .estates-picture-wrapper .estate-curtain-more-info{
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 30px;
        opacity: 0;
        transition: opacity 0.4s ease;
        text-align: center;
        color: white !important;
        font-family: sofia-pro, sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 40px;
        line-height: 30px;
    }
    .estates-picture-wrapper:hover .estate-curtain-more-info{
        opacity: 1 !important;
    }
}

@media only screen and (min-width: 1200px) {
	.gx-lg-5 {
        --bs-gutter-x: 100px;
    }
}

@media only screen and (min-width: 1400px) {
	/*.estates-picture-wrapper{
        width: 100%;
        height: 600px;
    }*/
}




/* *********************************************************
**
**
** ESTATE CAROUSEL
**
**
********************************************************* */
/*
.estate-pic-carousel{
	overflow:hidden;
}

.estate-pic-carousel-img{
	width: 100%;
	object-fit:cover;
}

@media only screen {
    .estate-pic-carousel, .carousel-inner, .carousel-item{
		height:270px;
	}
	
	.estate-pic-carousel-img{
		min-height: 270px;
	}
}

@media only screen and (min-width: 768px) {
	.estate-pic-carousel, .carousel-inner, .carousel-item{
		height:420px;
	}
	
	.estate-pic-carousel-img{
		min-height: 420px;
	}
}
*/

/* Popover close button styles - Final polished version */
.property-popover {
    position: relative;
    padding: 15px 25px 15px 15px; /* Extra space for close button */
    min-width: 250px;
}

.popover-close-btn {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background: #f5f5f5 !important; /* Light grey background */
    border: 1px solid #ddd !important; /* Light grey border */
    font-size: 16px !important;
    font-weight: normal !important;
    color: #666 !important; /* Dark grey text */
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important; /* Perfect vertical centering */
    justify-content: center !important; /* Perfect horizontal centering */
    border-radius: 50% !important;
    z-index: 9999 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important; /* Subtle shadow */
    text-align: center !important;
}

.popover-close-btn:hover {
    background: #e9e9e9 !important; /* Slightly darker grey on hover */
    color: #333 !important; /* Darker text on hover */
    border-color: #ccc !important;
    transform: none !important; /* Remove scaling effect */
}

.popover-close-btn:focus {
    outline: 1px solid #007bff !important; /* Blue focus outline */
    outline-offset: 1px !important;
}

/* Ensure the popover itself has proper z-index */
.popover {
    z-index: 1000 !important;
}

/* Additional debugging styles */
.property-popover * {
    position: relative;
}

.popover-btn{
    background-color: var(--logo-color) !important;
    border-color: var(--logo-color) !important;
    color: white !important;
    padding: 5px 15px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    margin-top: 10px !important;
}

.popover-image {
    margin-bottom: 10px !important;
}