/* Custom Property Listing Page Styles */

:root {
    --primary-color: #4a5c53;
    --accent-color: #3a4a42;
    --text-dark: #222;
    --text-muted: #4a4a4a;
    --bg-light: #f9f9f9;
    --border-color: #eee;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.clp-page-container {
    padding-left: 58px;
    padding-right: 58px;
}

.clp-filter-section .container-fluid {
    padding: 0;
}

/* Filter Section */

.clp-filter-flex {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.clp-filter-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.clp-filter-item select {
    border: 1px solid #C6C6C6;
    border-radius: 4px;
    padding: 12px 15px;
    min-width: 210px;
    font-size: 16px;
    appearance: none;
    background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22/%3E%3C/svg%3E') no-repeat right 12px center;
    background-size: 10px;
    background-color: #fff;
    color: #333333;
}

.clp-filter-item select:focus-visible {
    outline: none !important;
}

.more-filters {
    position: relative;
}

.more-filters>a {
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid #C6C6C6;
    border-radius: 4px;
    background: #fff;
    white-space: nowrap;
    color: #333333;
}

.clp-more-filters-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    width: 350px;
    display: none;
    /* Hidden by default */
    z-index: 1001;
}

.clp-more-filters-panel.active {
    display: block;
}

.clp-panel-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.clp-filter-group {
    flex: 1;
}

.clp-filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.clp-filter-group input,
.clp-filter-group select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Layout */
.clp-split-layout {
    display: flex;
    margin-top: 20px;
}

.clp-listings-column {
    width: 65%;
    padding-right: 20px;
}

.clp-map-column {
    width: 65%;
    padding-left: 20px;
    height: 100vh;
}

.clp-map-container {
    height: 100%;
    width: 100%;
}

/* Listings Header */
.clp-listings-header {
    margin-bottom: 20px;
}

.clp-listings-header h1 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 0px;
    color: #2c2c2c;
}

.clp-listings-header p#clp-results-count {
    font-size: 17px !important;
    font-weight: 400;
    color: #333333;
    margin-bottom: 0 !important;
}

body,
html {
    overflow-x: visible !important;
}

#clp-filter-form {
    position: relative;
    background: #fff;
}


.clp-map-column {
    position: sticky;
    top: 100px;
    z-index: 99;
}

section.clp-filter-section {
    padding: 10px 0;
}

.clp-results-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* Listing Grid */
.clp-listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Listing Card */
.clp-listing-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;

}

/* Card Content Link */
.clp-card-content-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: background 0.3s ease;
}

.clp-card-content-link:hover .clp-card-content {
    background: #fdfdfd;
}

/* Ensure sliders and buttons stay clickable above overlay */
.clp-card-slider .swiper-button-next,
.clp-card-slider .swiper-button-prev {
    z-index: 10;
    color: #fff;
    background: rgba(0, 0, 0, 0.3) !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.clp-card-slider .swiper-button-next:after,
.clp-card-slider .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

.clp-card-slider .swiper-pagination {
    z-index: 10;
}

.clp-card-actions {
    position: relative;
    z-index: 10;
}

.clp-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.clp-card-slider {
    height: 240px;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;

}

.clp-card-slider .swiper-wrapper,
.clp-card-slider .swiper-slide {
    height: 100%;
}

.clp-card-slider .swiper-slide {
    width: 100% !important;
}

.clp-card-actions-wrapper {
    padding: 15px;
    padding-top: 0;
    margin-top: -10px;
    /* Pull buttons up slightly in the layout */
}

.clp-card-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f7f7f7;
    display: block;
}

.clp-status-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #737373;
    color: #fff;
    padding: 4px 10px;
    border-radius: 33px;
    font-size: 11px;
    z-index: 10;
}

.clp-card-content {
    padding: 15px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.clp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.clp-card-price {
    font-size: 17px;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 16px !important;
}

.price-suffix {
    font-size: 17px;
    font-weight: 500;
    color: #2c2c2c;
}

.fees-text {
    font-size: 15px;
    color: #2c2c2c;
    font-weight: 400;
}

.clp-property-type {
    font-size: 15px;
    color: #2c2c2c;
    margin-bottom: 16px;
    font-weight: 400;
}

.clp-card-address {
    font-size: 15px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: normal;
    color: #2c2c2c;
    font-weight: 500;
}

.clp-card-address i {
    color: var(--primary-color);
    margin-top: 3px;
}

.clp-card-meta {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.meta-item {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    line-height: normal;
    text-align: center;
    justify-content: center;
    width: 31.5%;
}
.meta-item i {
    color: var(--primary-color);
    width: 100%;
    text-align: center;
    font-size: 20px;
}


.meta-label {
    font-weight: 400;
    color: #2c2c2c;
    font-size: 14px;
}

.clp-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.clp-btn {
    flex: 1;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

.btn-outline-primary {
    border: 1px solid #598DC9;
    color: #598DC9;
    font-size: 16px;
    font-weight: 400;
    transition: 0.5s all;
}

.btn-outline-primary:hover {
    background: #598DC9;
    border-color: #598DC9;
    color: #fff;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary.btn-apply {
    background: #598DC9;
    border-color: #598DC9;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    transition: 0.5s all;
}

.btn-primary.btn-apply:hover {
    background: transparent;
    color: #598DC9;
}



.similar-slider-container .similar-swiper-next,
.similar-slider-container .similar-swiper-prev {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.similar-slider-container .swiper-button-next:after,
.similar-slider-container .swiper-button-prev:after {
    font-size: 20px;
    opacity: 1;
}

.similar-slider-container .similar-swiper-prev {
    left: -10px;
    position: absolute;
}

.similar-slider-container .similar-swiper-next {
    right: -10px;
}

.contact_form h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #000000;
}

.similar-slider-container {
    padding: 0px;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
}

button.gm-ui-hover-effect {
    position: absolute !important;
    width: 30px !important;
    height: 30px !important;
    top: 0 !important;
    right: 0 !important;
    align-items: center !important;
}

button.gm-ui-hover-effect span {
    margin: 0 !important;
}

.gm-style-iw-ch {
    padding-top: 0 !important;
}

.clp-map-popup img {
    height: 220px !important;
    object-fit: cover !important;
}

.clp-map-popup h4 {
    font-size: 16px !important;
    font-weight: 500;
    color: #555555 !important;
    padding: 0 10px;
}

.clp-map-popup div {
    font-size: 14px;
    padding: 0 10px !important;
}

.clp-map-popup a {
    margin-left: 10px;
    margin-right: 10px;
    background: #598dc9 !important;
    margin-bottom: 10px;
}


/* Responsive */



@media screen and (min-width:1199px) and (max-width:1440px) {
    .clp-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .clp-listings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .clp-split-layout {
        flex-direction: column;
    }

    .clp-listings-column,
    .clp-map-column {
        width: 100%;
    }

    .clp-map-column {
        height: 400px;
    }

    .clp-map-container {
        position: relative;
        top: 0;
    }
}



@media (max-width: 1440px) {

	.clp-filter-item label {
	    font-size: 14px !important;
	}

	.clp-range-num-input {
	    width: 70px;
	    padding: 3px 4px;
	    font-size: 14px;
	}

	.clp-range-inputs {
	    font-size: 13px !important;
	}

	.clp-filter-row-bottom {
	    width: 100%;
	    margin-top: 30px;
	}

	.clp-filter-row-top {
	    gap: 15px;
	}

	.clp-filter-item select,
	.clp-multiselect-trigger,
	.clp-filter-item.reset-filter button.clp-reset-link {
	    padding: 10px 15px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        color: #333 !important;
	}
    .clp-range-num-input {
        width: max-content !important;
        padding: 5px 10px !important;
        font-size: 13px !important;
    }

}



@media (max-width: 991px) {
    .clp-page-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .clp-listings-column {
        padding-right: 0;
    }


    .clp-map-column {
        height: 100vh;
    }

    #clp-filter-form,
    .clp-map-column {
        position: inherit;
    }

    div#clp-listings-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .clp-listing-card {
        width: 48%;
    }

    .clp-map-column {
        padding-left: 0 !important;
    }
}

@media (max-width: 580px) {
    .clp-listing-card {
        width: 100%;
    }
}

.clp-filter-section .container-fluid form.clp-filter-flex .clp-filter-item.clp-range-slider-item {
    width: 22%;
}

.clp-map-popup a {
    padding: 9px 9px !important;
    font-size: 14px !important;
}

.clp-filter-flex span.ui-slider-handle.ui-corner-all.ui-state-default {
    top: -5px !important;
}

.ui-slider-horizontal {
    height: 4px !important;
}

.ui-slider-range {
    background: #598dc9 !important;
}

.ui-slider .ui-slider-handle {
    background: #598dc9 !important;
    border: 2px solid #598dc9 !important;
}

.clp-listings-column {
    width: 65%;
}

.clp-map-column {
    width: 35%;
}

/* Custom Multiselect and Filter Rows Layout */

.clp-filter-row-top {
    display: flex;
    flex-wrap: wrap;
    gap: 19px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.clp-filter-row-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
    width: 90%;
    margin-top: 45px;
}

.clp-filter-row-bottom .clp-range-slider-item {
    flex: 1;
    min-width: 280px;
}

.clp-slider-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.clp-slider-header-wrap label {
    margin-bottom: 0 !important;
}

.clp-range-inputs {
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clp-range-num-input {
    width: max-content;
    border: 1px solid #C6C6C6;
    border-radius: 4px;
    padding: 5px 15px;
    font-size: 16px;
    text-align: center;
    color: #222;
}

.clp-range-num-input:focus {
    border-color: #598dc9;
    outline: none;
}

.clp-range-num-input::-webkit-outer-spin-button,
.clp-range-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clp-range-num-input[type=number] {
    -moz-appearance: textfield;
}

/* Custom Multiselect Checkbox Dropdowns */

.custom-multiselect {
    position: relative;
    min-width: 170px;
}

.clp-multiselect-wrap {
    position: relative;
}

.clp-multiselect-trigger {
    border: 1px solid #C6C6C6;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 16px;
    background-color: #fff;
    color: #333333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    height: auto;
    box-sizing: border-box;
    min-width: 210px !important;
}

.clp-filter-item.reset-filter button.clp-reset-link {
    padding: 12px 15px !important;
    font-size: 16px;
}

.clp-multiselect-trigger .trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}

.clp-multiselect-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    box-sizing: border-box;
}

.clp-multiselect-dropdown.active {
    display: block;
}

.clp-dropdown-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 14px !important;
    color: #333;
    text-transform: none !important;
}

.clp-dropdown-option:hover {
    background-color: #f5f5f5;
    border-radius: 4px;
}

.clp-dropdown-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Listings Header & City Filter Highlight */

.clp-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding-top: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    background: #fff;
    flex-wrap: wrap;
}

.clp-header-left {
    flex-grow: 1;
}

.clp-header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.clp-toggle-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f7f9fc;
    border: 2px solid #598dc9;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #598dc9;
    cursor: pointer;
    height: 42px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    white-space: nowrap;
}
/*
.clp-toggle-filters-btn:hover {
    background-color: #598dc9;
    color: #fff;
}*/

.clp-toggle-filters-btn.collapsed {
    border-color: #598dc9;
    background-color: #f7f9fc;
    font-weight: 600;
    color: #598dc9;
}

/*.clp-toggle-filters-btn.collapsed:hover {
    border-color: #598dc9;
    background-color: #598dc9;
    color: #fff;
}*/

.header-city-filter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-city-filter label {
    margin-bottom: 0 !important;
    font-weight: 700;
    font-size: 13px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-city-filter .clp-multiselect-trigger {
    border-color: #598dc9;
    background-color: #f7f9fc;
    font-weight: 600 !important;
    color: #598dc9 !important;
    border-width: 2px;
    padding: 8px 20px;
    border-radius: 6px;
    height: 42px;
    font-size: 15px !important;
}

.header-city-filter .clp-multiselect-trigger i {
    color: #598dc9;
    margin-left: 10px;
}

.header-city-filter .clp-multiselect-dropdown {
    width: 200px;
    right: 0;
    left: auto;
}

/* Override responsive behaviors to maintain 2 columns/1 column grid */



@media (max-width: 1199px) {

    .clp-header-left {
        text-align: center;
        margin-bottom: 5px;
    }
    .clp-listings-header {
        justify-content: center;
    }

}




@media (max-width: 991px) {
    div#clp-listings-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    .clp-listing-card {
        width: 100% !important;
    }
    .clp-listings-header h1 {
        text-align: left;
    }
}

@media (max-width: 600px) {
    div#clp-listings-grid {
        grid-template-columns: 1fr !important;
    }
}


@media (max-width: 580px) {
    .clp-filter-item {
        width: max-content !important;
        min-width: auto !important;
        gap: 10px !important;
    }
    .clp-filter-item.clp-range-slider-item {
        width: 100% !important;
        min-width: 100% !important;
    }

    .clp-listings-header {
	    flex-wrap: wrap;
	}

	.clp-filter-item select,
	.clp-multiselect-trigger {
	    min-width: 100% !important;
	}

	.clp-filter-item.reset-filter {
	    margin-top: 5px !important;
	}

    .clp-header-right {
        width: 100%;
        gap: 10px;
        justify-content: center;
    }

    .clp-toggle-filters-btn {
        flex: auto;
        width: 40%;
        max-width: 40%;
    }

    .header-city-filter {
        width: 100%;
    }
    .clp-filter-item.header-city-filter.custom-multiselect {
        width: 57% !important;
        justify-content: center;
    }
    .clp-filter-item.header-city-filter.custom-multiselect .clp-multiselect-wrap {
        width: 100%;
    }
}

@media(max-width: 340px){
    .clp-filter-item.header-city-filter.custom-multiselect {
        width: 50% !important;
    }
    .clp-toggle-filters-btn {
        width: 45%;
        max-width: 45%;
    }
}