.filters-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.filters-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.location-inputs {
    display: flex;
    flex: 1;
    gap: 1rem;
    min-width: 300px;
}

.location-field {
    position: relative;
    flex: 1;
}

.location-field input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.location-field input:focus {
    outline: none;
    border-color: #D3D3D3;
    box-shadow: 0 0 0 1px #D3D3D3;
}

.location-field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #D3D3D3;
}

.filters-button {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filters-button:hover {
    border-color: #D3D3D3;
    color: #D3D3D3;
}

/* Modal styles */
.filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Price range styles */
.price-section {
    padding: 1.5rem;
}

.price-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-subtitle {
    color: #717171;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.price-range {
    position: relative;
    padding: 1.5rem 0.5rem;
}

/* Double range slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 4px;
    margin: 1rem 0;
}

.slider-track {
    position: absolute;
    width: calc(100% + 1rem);
    height: 4px;
    background: #ddd;
    margin: 0 -0.5rem;
    border-radius: 2px;
}

.slider-track-highlighted {
    position: absolute;
    height: 4px;
    background: #D3D3D3;
    border-radius: 2px;
}

.price-slider {
    -webkit-appearance: none;
    position: absolute;
    width: calc(100% + 1rem);
    margin: 0 -0.5rem;
    background: transparent;
    pointer-events: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #D3D3D3;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: auto;
}

.price-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #D3D3D3;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: auto;
}

.price-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    border: none;
    border-radius: 2px;
}

.price-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border: none;
    border-radius: 2px;
}

.price-slider:focus {
    outline: none;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.price-input-group {
    background: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 0.7rem 1rem;
    min-width: 100px;
    text-align: center;
}

.price-input-group input {
    border: none;
    width: 60px;
    text-align: center;
    font-size: 1rem;
    color: #222;
    padding: 0;
}

.price-input-group input:focus {
    outline: none;
}

.price-input-group span {
    color: #717171;
    font-size: 0.9rem;
}

/* Options checkboxes */
.options-list {
    display: grid;
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: white;
    border: 1px solid #ddd;
}

.btn-primary {
    background: #C62828;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #c628287e;
}

/* Responsive */
@media (max-width: 768px) {
    .location-inputs {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

.price-distribution {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    margin: 0 -0.5rem 1rem -0.5rem;
    padding: 0 0.5rem;
}

.distribution-bar {
    flex: 1;
    background-color: #181616;
    margin: 0 1px;
    border-radius: 2px 2px 0 0;
    transition: opacity 0.3s ease;
    min-height: 4px;
}

.distribution-bar.inactive {
    opacity: 0.3;
} 