/* Nearby Properties Map Widget */
.nearby-props-widget {
    margin: 20px 0;
}

/* Controls panel */
.nearby-props-controls {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Radius slider */
.nearby-props-radius-control {
    flex: 0 0 auto;
    min-width: 180px;
}

.nearby-props-radius-control label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
}

.nearby-props-radius-value {
    font-weight: 700;
    color: #1B449D;
}

.nearby-props-radius-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.nearby-props-radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1B449D;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nearby-props-radius-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1B449D;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Type filter pill buttons */
.nearby-props-type-filters {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nearby-props-type-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.nearby-props-type-btn:hover {
    border-color: #1B449D !important;
    color: #1B449D !important;
}

.nearby-props-type-btn.active {
    background: #1B449D !important;
    color: #fff !important;
    border-color: #1B449D !important;
}

/* Price range slider filter */
.nearby-props-price-filter {
    flex: 0 0 220px;
}

.nearby-props-price-filter .range-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
}

.nearby-props-price-filter .range-title {
    font-weight: 600;
    color: #333;
}

.nearby-props-price-label {
    font-weight: 700;
    color: #1B449D;
    font-size: 13px;
}

/* jQuery UI slider overrides */
.nearby-props-price-slider.ui-slider {
    height: 4px;
    background: #ddd;
    border: none;
    border-radius: 2px;
    margin: 0 8px;
}

.nearby-props-price-slider .ui-slider-range {
    background: #1B449D;
    border-radius: 2px;
}

.nearby-props-price-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1B449D;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    top: -8px;
    cursor: pointer;
    outline: none;
}

.nearby-props-price-slider .ui-slider-handle:hover,
.nearby-props-price-slider .ui-slider-handle:focus {
    background: #153a85;
}

/* Results count */
.nearby-props-results-count {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

/* Map container */
.nearby-props-map-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
}

/* Action buttons */
.nearby-props-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.nearby-props-save-search {
    border: 2px solid #1B449D !important;
    color: #1B449D !important;
    background: transparent !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.nearby-props-save-search:hover {
    background: #1B449D !important;
    color: #fff !important;
}

.nearby-props-save-search.saved {
    background: #71B63B !important;
    border-color: #71B63B !important;
    color: #fff !important;
}

.nearby-props-continue-search {
    display: inline-block;
    background: #1B449D;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.nearby-props-continue-search:hover {
    background: #153a85;
}

/* Responsive */
@media (max-width: 767px) {
    .nearby-props-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .nearby-props-radius-control {
        min-width: auto;
    }

    .nearby-props-type-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .nearby-props-price-filter {
        flex: 0 0 auto;
        width: 100%;
    }

    .nearby-props-map-container {
        min-height: 250px;
    }

    .nearby-props-actions {
        flex-direction: column;
    }

    .nearby-props-save-search,
    .nearby-props-continue-search {
        text-align: center;
        width: 100%;
    }
    
}
