/* Property Search Container */
.property-search-container {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    padding: 0rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Sidebar Styles */
.search-sidebar {
    width: 320px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    margin-right: 20px; /* Space between sidebar and results */
}

.filter-section {
    padding-bottom: 5px;
    margin-bottom: 20px;
    border-right: 1px solid #eee; /* Added vertical divider */
    padding-right: 20px; /* Space for the divider */
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    border-right: none; /* Remove vertical divider for the last child */
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 1rem;
    white-space: nowrap;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 45px;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
}


.price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.search-button {
    width: 100%;
    padding: 0.75rem;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background: #0056b3;
}

.filter-actions .search-button {
    width: auto;
}

.filter-actions .advanced-search-button {
    background: #fff;
    border: 1px solid #eee;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s;
}

.advanced-search-form .filter-section {
    border-right: none;
    border-bottom: none;
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.advanced-search-form .filter-section label {
    line-height: 1.35em;
    font-size: 1rem;
}

.elementor-kit-10 .advanced-search-form .filter-section select {
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px !important;
    font-size: 1rem;
}

/* Main Content Area */
.search-main {
    display: flex;
    flex-direction: row;
    gap: 0rem;
    width: 100%;
}

/* Map Styles */
.property-map {
    flex: 1;
    height: calc(100vh - 112px);
    border-radius: 0px;
    background-color: #f5f5f5;
    position: relative;
    min-height: 400px;
}

/* Add a loading state */
.property-map::before {
    content: 'Loading map...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1rem;
    z-index: 1;
}

.map-info-content {
    padding: 15px;
}

.map-info-window {
    padding: 0;
    max-width: 300px;
}

.map-info-window h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.map-info-window p {
    margin: 0 0 0.5rem;
    color: #666;
}

.map-info-window .button {
    display: inline-block;
    padding: 14px 1rem;
    background: #FF6B00;
    color: #fff;
    text-decoration: none;
    border-radius: 0px 0px 4px 4px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.map-info-window .button:hover {
    color: #000;
}

/* Remove the close button from info window */
.gm-ui-hover-effect {
    display: none !important;
}

/* Remove padding from Google Maps info window */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    padding: 0 !important;
    overflow: hidden !important;
}

.gm-style .gm-style-iw-t::after {
    display: none !important;
}

.gm-style .gm-style-iw-chr {
    padding: 0 !important;
    margin: 0 !important;
    display: none !important;
}

/* Property Results */
.property-results {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-y: visible;
    /*max-height: calc(100vh - 200px);*/
}

.results-footer {
    grid-column: 1 / -1; /* Make it span all columns */
    width: calc(100% + 40px); /* Account for 20px padding on each side */
    margin-left: -20px; /* Pull it to the left */
    margin-right: -20px; /* Pull it to the right */
    margin-bottom: -20px; /* Pull it to the bottom to negate parent padding */
}

/* Property Card */
.property-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card .hidden {
    display: none;
}

.property-card:hover {
}

.property-card.highlighted {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #eee;
    border-radius: 10px 10px 0px 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-info {
    background: #17a2b8;
    color: #fff;
}

.property-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.property-title a {
    color: #333;
    text-decoration: none;
}

.property-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #007bff;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-item i {
    color: #007bff;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
}

.feature i {
    color: #007bff;
}

.property-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.button-primary {
    color: #fff !important;
    font-weight: 600;
    background: var( --e-global-color-primary );
}

.button-primary:hover {
}

.button-secondary {
    background: #fff;
    color: #000 !important;
    border: 1px solid #000;
}

.button-secondary:hover {
    background: #eee;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0; /* Remove gap for flush items */
    margin-top: 2rem;
    width: 100%;
    grid-column: 1 / -1;
    border: 1px solid #ddd; /* Add border for overall container */
    border-radius: 8px; /* Rounded corners for overall container */
    overflow: hidden; /* Ensures internal borders/backgrounds are clipped nicely */
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem; /* Adjust padding for better fit */
    border-radius: 0; /* Remove individual item border-radius */
    background: #fff; /* Default background for non-current */
    color: #333; /* Default text color */
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s; /* Add color and border-color to transition */
    white-space: nowrap;
    box-sizing: border-box; /* Include padding/border in width/height */
}

/* Add vertical separators between pagination items, but not on the last one or around the current one */
.pagination a:not(:last-child):not(.current),
.pagination span:not(:last-child):not(.current) {
    border-right: 1px solid #ddd;
}

.pagination a:hover {
    background: #f8f9fa; /* Keep subtle hover background */
    color: #FF6B00; /* Change text color to brand orange on hover */
}

.pagination .current {
    background: #ffe0b2; /* Light orange background from image */
    color: #333; /* Dark text color from image */
    border: 1px solid #FF6B00; /* Brand orange border from image */
    position: relative;
    z-index: 1;
    margin-left: -1px; /* Overlap borders for a continuous look */
    margin-right: -1px;
}

/* Ensure the element immediately after the current one doesn't have a left border */
.pagination .current + * {
    border-left: none;
}

/* Apply rounded corners to the first and last pagination items */
.pagination a:first-child,
.pagination span:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.pagination a:last-child,
.pagination span:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right: none; /* Ensure no right border on the very last element */
}

/* Essential Filters */
.essential-filters {
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 0px;
    border-bottom: 1px solid #eee;
    margin-bottom: 00px;
    box-shadow: none;
}

.essential-filters .filter-actions {
    flex: 1.25; 
    padding-left: 0;   
}

.essential-filters .filter-actions button {
    width: auto;
    padding: 12px 35px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .property-results {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 1024px) {
    .search-main {
        flex-direction: column;
    }

    .property-map,
    .property-results {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .property-search-container {
        padding: 1rem;
    }

    .property-results {
        grid-template-columns: 1fr;
    }
}

/* Price Range Slider */
.price-range-slider {
    margin: 0px 0px 10px;
    padding-top: 0px;
}

.price-range-slider .noUi-connect {
    background:var( --e-global-color-primary );
}

.price-range-slider .noUi-handle {
    border-radius: 100%;
    height: 25px;
    width: 25px;
    background: #000;
    border: 4px solid #fff;
    top: -8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);;
    cursor: pointer;
}

.price-range-slider .noUi-handle:before,
.price-range-slider .noUi-handle:after {
    display: none;
}

.price-range-slider .noUi-handle:hover {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    background: #333;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0px;
    font-size: .8em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1em;
    font-weight: 400;
} 

/* No UI Mods */
.noUi-horizontal {
    box-shadow: none;
    height: 10px;
    border-color: #fff;
}


.page-template-page-property-search .site-footer {
    display: none;
}