/* Container & Tabs */

.maps-tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.maps-tabs-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.maps-tabs-nav {
    display: inline-flex;
    height: 61px;
    padding: 0px 23px;
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 41px;
    border-radius: 64px;
    border: 1px solid rgba(58, 116, 152, 0.00);
    background: #FFF;
    box-shadow: 0px 3px 10px 0px rgba(58, 116, 152, 0.38);
    width: auto;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.maps-tab-button {
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    background: transparent;
    white-space: nowrap;
    font-family: Queering;
    font-size: 33px;
}

.maps-tab-button.active {
    color: #fff;
}

.maps-pill-indicator {
    position: absolute;
    top: 7px;
    left: 0;
    height: 76%;
    background: #3777BC;
    border-radius: 74px;
    z-index: 0;
    transform-origin: center;
    transition: transform 0.15s ease;
}

/* Map & default paths */
.map-container {
    width: 64vw;
    max-width: 1280px;
    position: relative;
    margin: 48px auto;
}

.map-container svg {
    width: 87%;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
}

.map-container path {
    fill: #e0e0e0;
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.3s ease, stroke-width 0.3s ease;
}

/* Special highlighting for France in implementation */
.map-container path#fr {
    filter: drop-shadow(0 2px 4px rgba(55, 119, 188, 0.3));
}

/* Force France highlighting with !important for debugging */
.map-container path#fr[style*="fill: #3777BC"] {
    fill: #3777BC !important;
    stroke: #2c5f94 !important;
    stroke-width: 2px !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .maps-tabs-container {
        padding: 1rem;
    }

    .maps-tabs-nav {
        height: auto;
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        border-radius: 20px;
    }

    .maps-tab-button {
        width: 100%;
        font-size: 24px;
        padding: 8px;
        text-align: center;
        border-radius: 10px;
    }

    .maps-tab-button.active {
        color: #fff;
        background-color: #3777BC;
    }

    .maps-pill-indicator {
        display: none;
    }

    .map-container {
        width: 95vw;
    }

    .map-container svg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .maps-tabs-container {
        padding: 0.5rem;
    }

    .maps-tab-button {
        font-size: 20px;
    }

    .team-member-card {
        width: 130px;
    }
}

/* Tooltip styles */
.map-tooltip {
    position: fixed;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
    max-width: 300px;
}

.map-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.map-tooltip strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.team-member-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.team-member-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.team-member-info a {
    display: inline-block;
    color: #3777BC;
    text-decoration: none;
    font-size: 14px;
    margin-top: 5px;
}

.team-member-info a:hover {
    text-decoration: underline;
}

.member-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.country-code {
    color: #3777BC;
    font-weight: 600;
    font-size: 12px;
    background: rgba(55, 119, 188, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Team Member Card as Tooltip */
.team-member-card {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 130px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.team-member-card .member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
}

.team-member-card .member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-card .member-info {
    margin-top: 10px;
}

.team-member-card .member-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.team-member-card .member-role {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.team-member-card .member-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin: 0;
}

.team-member-card .country-code {
    color: #3777BC;
    font-weight: 600;
    font-size: 12px;
    background: rgba(55, 119, 188, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Contact Information */
.member-contact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3777BC;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: #2c5f94;
}

.contact-icon {
    fill: currentColor;
    flex-shrink: 0;
}

.contact-item + .contact-item {
    margin-top: 4px;
}