/*
 * Map Section Styles
 * Theme: Cetintas Portfolyo
 */

.map-compact-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 2rem 0;
}

#compactMap {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 3px solid white;
    order: 1;
}

.map-locations-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    order: 2;
}

.location-compact {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
    user-select: none;
}

.location-compact:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-left-color: #4a90e2;
}

.location-compact.active {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left-color: #667eea;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.location-compact.active .location-flag-large {
    animation: bounce 0.6s ease;
}

.location-flag-large {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.location-flag-large svg {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: block;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.location-info strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.location-info .company-name {
    font-size: 0.95rem;
    color: #4a90e2;
    font-weight: 500;
}

.location-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.35rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.location-compact div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.location-compact strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.location-compact span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.map-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Leaflet Popup Custom Styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    font-family: var(--font-family-body);
}

.leaflet-popup-content {
    margin: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
    .map-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-locations-compact {
        order: 1;
        grid-template-columns: 1fr;
    }

    #compactMap {
        order: 2;
        height: 400px;
    }
}

@media (max-width: 768px) {
    #compactMap {
        height: 350px;
    }

    .location-compact {
        padding: 1.25rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .location-flag-large {
        font-size: 2.5rem;
    }

    .location-flag-large svg {
        width: 70px;
        height: 47px;
    }

    .location-description {
        font-size: 0.85rem;
    }
}