.property-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.filter-container {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.filter-header {
    background: rgba(255,255,255,0.98);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}

.filter-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
}

.filter-count {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 0.8rem;
    font-weight: 500;
}

.filter-body {
    background: rgba(255,255,255,0.99);
    padding: 1.5rem;
}

.filter-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.filter-group:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.filter-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.filter-label i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-check {
    background: white;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 0;
}

.form-check:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.1);
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.6rem;
    border: 2px solid #0d6efd;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

.range-inputs {
    display: flex;
    gap: 0.8rem;
}

.input-group {
    flex: 1;
}

.input-group-text {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
    font-weight: 500;
    min-width: 50px;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.filter-group .dropdown {
    margin-top: 0.5rem;
}

.filter-group .dropdown-toggle {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.filter-group .dropdown-toggle:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.filter-group .dropdown-menu {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 0.5rem;
    min-width: 280px;
    max-height: 300px;
    overflow-y: auto;
}

.filter-group .dropdown-item {
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    margin: 0.1rem 0;
    transition: all 0.2s ease;
    background: transparent;
}

.filter-group .dropdown-item:hover {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    transform: translateX(2px);
}

.filter-group .dropdown-item .form-check {
    background: white;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 0;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
}

.filter-group .dropdown-item .form-check:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.1);
}

.filter-group .dropdown-item .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

.filter-group .dropdown-item .form-check input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

.filter-group .dropdown-item .form-check input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.filter-group .dropdown-item .form-check:has(input:checked) {
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.15);
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.filter-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border: none;
    box-shadow: 0 3px 12px rgba(13, 110, 253, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.35);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(45deg, #198754, #157347);
    border-color: #198754;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #157347, #146c43);
    border-color: #157347;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group {
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .range-inputs {
        flex-direction: column;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}

.bi {
    font-size: 1.1em;
}

.filter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(11, 94, 215, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.filter-toggle-btn {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.filter-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.filter-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.filter-toggle-btn[aria-expanded="false"] .filter-toggle-icon {
    transform: rotate(180deg);
}

.filter-toggle-btn[aria-expanded="true"] .filter-toggle-icon {
    transform: rotate(0deg);
} 