/* Search Salons Styles - Adapted from FoodTada */

/* Search Hero Section */
.search-hero {
    background: linear-gradient(135deg, var(--color-main) 0%, #c91a7a 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="beauty-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23beauty-pattern)"/></svg>');
    opacity: 0.3;
}

.search-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.search-hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Search Form */
.search-form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-top: 2rem;
}

.salon-search-form .search-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.location-field {
    flex: 1;
    min-width: 250px;
}

.salon-field {
    flex: 1.5;
    min-width: 300px;
}

.search-field i {
    position: absolute;
    left: 16px;
    color: #666;
    z-index: 2;
}

.search-field input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.location-field input {
    padding-right: 60px; /* Space for location button */
}

.search-field input:focus {
    outline: none;
    border-color: #667eea;
}

.search-field input::placeholder {
    color: #999;
    font-size: 0.95rem;
}

.location-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    border: none;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    color: #667eea;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.location-btn i {
    font-size: 16px;
    position: static;
    left: auto;
}

.location-btn:hover {
    background: #e9ecef;
}

.search-submit-btn {
    background: var(--color-main);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: #c91a7a;
}

/* Search Filters */
.search-filters {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-main);
    border-color: var(--color-main);
    color: white;
    transform: translateY(-2px);
}

.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-toggle {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.filter-toggle:hover,
.filter-toggle.active {
    background: var(--color-main);
    border-color: var(--color-main);
    color: white;
}

/* Search Results */
.search-results {
    padding: 3rem 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.results-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

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

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn:hover,
.view-btn.active {
    background: var(--color-main);
    border-color: var(--color-main);
    color: white;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid var(--color-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Salon Grid */
.salon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.salon-grid.list-view {
    grid-template-columns: 1fr;
}

.salon-grid.list-view .salon-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.salon-grid.list-view .salon-image {
    width: 120px;
    height: 120px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-secondary {
    background: white;
    color: var(--color-main);
    border: 2px solid var(--color-main);
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-main);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-main);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c91a7a;
    transform: translateY(-2px);
}

/* Quick Suggestions */
.quick-suggestions {
    background: #f8f9fa;
    padding: 3rem 0;
}

.quick-suggestions h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.suggestion-tag {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.suggestion-tag:hover {
    background: var(--color-main);
    border-color: var(--color-main);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-hero h1 {
        font-size: 2rem;
    }
    
    .search-hero p {
        font-size: 1rem;
    }
    
    .search-form-container {
        padding: 1.5rem;
    }
    
    .salon-search-form .search-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .location-field,
    .salon-field {
        min-width: unset;
        flex: none;
    }
    
    .search-submit-btn {
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .salon-grid {
        grid-template-columns: 1fr;
    }
    
    .all-filters {
        justify-content: center;
    }
    
    .category-filters {
        justify-content: center;
    }
}
