/* Advanced Search Filters */
.advanced-search-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
    overflow: hidden;
}

.advanced-search-header {
    background: linear-gradient(135deg, #c2185b, #e91e63);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.advanced-search-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-toggle-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-toggle-btn:hover {
    background: rgba(255,255,255,0.3);
}

.advanced-search-content {
    padding: 2rem;
    display: none;
}

.advanced-search-content.active {
    display: block;
}

.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.filter-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #c2185b;
}

.filter-group h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #c2185b;
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.1);
}

.price-range-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-range-container input {
    flex: 1;
}

.price-separator {
    color: #666;
    font-weight: bold;
}

.condition-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.condition-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.condition-option:hover {
    border-color: #c2185b;
    background: #fdf2f8;
}

.condition-option input[type="checkbox"] {
    margin: 0;
}

.condition-option.selected {
    border-color: #c2185b;
    background: #fdf2f8;
}

.location-input {
    position: relative;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.location-suggestion {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

.location-suggestion:hover {
    background: #f8f9fa;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn.primary {
    background: linear-gradient(135deg, #c2185b, #e91e63);
    color: white;
}

.search-btn.primary:hover {
    background: linear-gradient(135deg, #ad1457, #c2185b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.3);
}

.search-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.search-btn.secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.active-filters {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: #c2185b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .advanced-search-content {
        padding: 1rem;
    }
    
    .search-filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-range-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .condition-options {
        grid-template-columns: 1fr;
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.search-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.search-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #c2185b;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-results h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.no-results p {
    margin: 0;
    font-size: 0.95rem;
}