/* Directory Page Specific Styles */

.directory-search {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.search-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

.search-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.location-btn:hover {
    background: #667eea;
    color: white;
}

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

.quick-filter {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.quick-filter:hover {
    background: #edf2f7;
}

.quick-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Directory Layout */
.directory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filters-sidebar h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filter-checkbox input {
    margin-right: 0.5rem;
}

.filter-checkbox span {
    font-size: 0.9rem;
    color: #4a5568;
}

.apply-filters-btn,
.clear-filters-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.apply-filters-btn {
    background: #667eea;
    color: white;
}

.apply-filters-btn:hover {
    background: #5a67d8;
}

.clear-filters-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.clear-filters-btn:hover {
    background: #edf2f7;
}

/* Directory Content */
.directory-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

#results-count {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

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

.sort-options select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

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

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

/* Vendor Grid */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.vendor-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.vendor-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.vendor-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.vendor-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #f6ad55;
}

.vendor-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vendor-type {
    padding: 0.25rem 0.75rem;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 12px;
    font-size: 0.8rem;
}

.vendor-type.fish {
    background: #bee3f8;
    color: #2c5282;
}

.vendor-type.plants {
    background: #c6f6d5;
    color: #22543d;
}

.vendor-type.supplies {
    background: #fed7d7;
    color: #742a2a;
}

.vendor-info {
    margin-bottom: 1rem;
}

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

.vendor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.specialty-tag {
    padding: 0.15rem 0.5rem;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 8px;
    font-size: 0.75rem;
}

.vendor-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.vendor-btn {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.vendor-btn.primary {
    background: #667eea;
    color: white;
    border: none;
}

.vendor-btn.primary:hover {
    background: #5a67d8;
}

.vendor-btn.secondary {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.vendor-btn.secondary:hover {
    background: #f7fafc;
}

/* Map Container */
.map-container {
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

#vendor-map {
    height: 100%;
    width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #f7fafc;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #718096;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .directory-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    .search-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-filters {
        justify-content: center;
    }
    
    .vendor-grid {
        grid-template-columns: 1fr;
    }
    
    .results-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .view-btn {
        flex: 1;
        justify-content: center;
    }
}