.team-directory-map {
    position: relative;
    height: clamp(25rem, 55vw, 34rem);
    overflow: hidden;
    border: 1px solid #dfe1e5;
    border-radius: 0.4rem;
    background: #eef0f2;
}

.team-directory-map__loading {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #62666d;
}

.team-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.team-map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #4f5359;
    font-size: 0.85rem;
}

.team-map-legend__marker {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 22%);
}

.team-map-legend__marker--men {
    background: var(--mabl-blue);
}

.team-map-legend__marker--women {
    background: var(--mabl-red);
}

.team-map-marker-wrapper {
    border: 0 !important;
    background: transparent !important;
}

.team-map-marker {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 7px rgb(0 0 0 / 42%);
    transform: rotate(-45deg);
}

.team-map-marker::after {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.team-map-marker--men {
    background: var(--mabl-blue);
}

.team-map-marker--women {
    background: var(--mabl-red);
}

.team-map-marker--mixed {
    background: linear-gradient(
        90deg,
        var(--mabl-blue) 0 50%,
        var(--mabl-red) 50% 100%
    );
}

.team-map-popup {
    min-width: 12rem;
}

.team-map-popup__venue {
    display: block;
    margin-bottom: 0.55rem;
    color: #202328;
    font-size: 0.9rem;
}

.team-map-popup__teams {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-map-popup__teams li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.team-map-popup__teams a {
    color: var(--mabl-red);
    font-weight: 600;
}

.team-map-popup__category {
    flex: 0 0 auto;
    padding: 0.15rem 0.35rem;
    border-radius: 0.2rem;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.team-map-popup__category--men {
    background: var(--mabl-blue);
}

.team-map-popup__category--women {
    background: var(--mabl-red);
}

.team-directory-card {
    border-color: #dfe1e5;
}

.team-directory-details {
    display: grid;
    gap: 0.85rem;
}

.team-directory-details > div {
    display: grid;
    grid-template-columns: minmax(6.5rem, 35%) 1fr;
    gap: 0.75rem;
}

.team-directory-details dt {
    color: #202328;
    font-weight: 600;
}

.team-directory-details dd {
    margin: 0;
}

@media (max-width: 575.98px) {
    .team-directory-map {
        height: 25rem;
    }

    .team-directory-details > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}
