/* Additional styles for vendors page */

/* Filters Section */
.filters-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

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

.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
}

.filter-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-btn,
.clear-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn {
    background: #d4af37;
    color: white;
}

.filter-btn:hover {
    background: #b8941f;
}

.clear-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.clear-btn:hover {
    background: #eee;
}

/* Results Section */
.results-section {
    padding: 2rem 0;
}

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

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

.results-info p {
    color: #666;
}

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

.view-btn {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

.view-btn:hover {
    background: #f5f5f5;
}

.view-btn.active:hover {
    background: #b8941f;
}

/* Category Navigation */
.category-nav {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.category-tab.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

.category-tab:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.category-tab.active:hover {
    background: #b8941f;
    color: white;
}

/* Enhanced Vendor Cards */
.vendor-card {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.vendor-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vendor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vendor-card:hover .vendor-image img {
    transform: scale(1.05);
}

.vendor-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.vendor-badge.featured {
    background: #d4af37;
}

.vendor-badge.popular {
    background: #28a745;
}

.vendor-badge.luxury {
    background: #dc3545;
}

.vendor-actions-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.vendor-card:hover .vendor-actions-overlay {
    opacity: 1;
}

.action-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.vendor-info {
    padding: 1.5rem;
}

.vendor-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.vendor-category,
.vendor-location,
.vendor-price {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-category i,
.vendor-location i,
.vendor-price i {
    color: #d4af37;
    width: 16px;
}

.vendor-features {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

.vendor-rating {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #d4af37;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.vendor-actions {
    display: flex;
    gap: 0.5rem;
}

/* List View Styles */
.vendors-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vendors-grid.list-view .vendor-card {
    display: flex;
    flex-direction: row;
    height: 200px;
}

.vendors-grid.list-view .vendor-image {
    width: 300px;
    height: 100%;
}

.vendors-grid.list-view .vendor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vendors-grid.list-view .vendor-actions {
    margin-top: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

.page-btn.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .vendors-grid.list-view .vendor-card {
        flex-direction: column;
        height: auto;
    }
    
    .vendors-grid.list-view .vendor-image {
        width: 100%;
        height: 200px;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
