/* Company Map Styles */
.company-map-section {
    padding: 5rem 0;
}

.category-container {
    margin-bottom: 3rem;
}

.category-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 600;
    text-align: center;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
}

.company-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    transition: var(--transition);
    cursor: pointer;
    height: 80px;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    background-color: var(--primary-color);
    color: white;
}

.company-logo {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    background-color: #f0f0f0;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.company-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-logo {
    max-width: 150px;
    margin: 0 auto 1rem;
    display: block;
}

.modal-title {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .company-card {
        height: 90px;
    }
    
    .company-logo {
        height: 40px;
    }
    
    .company-name {
        font-size: 0.7rem;
    }
}
