/**
 * Businesses page styles
 */

.businesses-page {
    background-color: #f8f9fa;
}

.page-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.page-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.results-count {
    font-size: 1.1rem;
    font-weight: 500;
}

.filters-sidebar {
    position: sticky;
    top: 20px;
}

.filters-sidebar .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}

.business-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.business-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.business-name {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.business-name:hover {
    color: #007bff;
}

.business-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.business-meta {
    margin: 0.75rem 0;
}

.business-rating {
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

.business-location {
    color: #6c757d;
    font-size: 0.85rem;
}

.business-stats {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
}

.business-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.business-actions .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.empty-state {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 3rem 2rem;
}

.empty-icon {
    color: #dee2e6;
}

.empty-title {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .filters-sidebar {
        margin-bottom: 2rem;
    }
    
    .page-header .row {
        text-align: center;
    }
    
    .page-header .col-md-4 {
        margin-top: 1rem;
    }
    
    .business-stats {
        justify-content: center;
    }
    
    .business-actions .btn {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .business-card {
        margin-bottom: 1rem;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-card {
    animation: fadeIn 0.3s ease-out;
}

/* Filter form styles */
.filter-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.filter-form .form-control,
.filter-form .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Pagination styles */
.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
    border-radius: 0.375rem;
    margin: 0 0.125rem;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}