/* map.css - IKAOA Global Presence Map Styles */

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.world-map-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.2));
}

.continent {
    fill: #1a2942;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 0.5;
    transition: all 0.5s ease;
}

.continent:hover {
    fill: #243b5e;
}

/* Hotspots */
.hotspot {
    cursor: pointer;
    position: relative;
}

.hotspot-circle {
    fill: var(--holding-gold);
    transition: var(--transition);
}

.hotspot-pulse {
    fill: var(--holding-gold-light);
    opacity: 0.4;
    animation: pulseMap 3s infinite;
    transform-origin: center;
}

@keyframes pulseMap {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

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

.hotspot:hover .hotspot-circle {
    fill: var(--white);
    filter: drop-shadow(0 0 10px var(--holding-gold));
}

/* Tooltips */
.map-tooltip {
    position: absolute;
    background: var(--navy-light);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--holding-gold-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    width: 200px;
}

.map-tooltip h4 {
    color: var(--holding-gold-light);
    margin-bottom: 5px;
    font-weight: 700;
}

.hotspot:hover+.map-tooltip,
.map-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

/* Map specific to About page sections */
.geo-section {
    position: relative;
    z-index: 1;
}

/* Locations specific positioning helper classes for tooltips */
.tooltip-angers {
    top: 15%;
    left: 5%;
}

.tooltip-qatar {
    top: 48%;
    left: 58%;
}

.tooltip-tunisia {
    top: 43%;
    left: 49%;
}

@media (max-width: 768px) {
    .map-container {
        padding: 15px;
        margin-top: 30px;
    }

    .map-tooltip {
        width: 150px;
        padding: 10px 15px;
        font-size: 0.75rem;
    }
}