.login-map-wrapper {
    width: 100%;
}

.login-map {
    width: 100%;
    height: 560px;
    min-height: 360px;
    border-radius: .5rem;
    overflow: hidden;
    background: #e8eaed;
    z-index: 0;
}

.login-map .leaflet-popup-content {
    font-size: .85rem;
    margin: .6rem .8rem;
}

.login-map .leaflet-container {
    font: inherit;
}

.login-map__legend {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--bs-secondary-color, #6c757d);
}

.login-map__dot {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    margin-left: .5rem;
}

.login-map__dot--low {
    background: #1c7ed6;
}

.login-map__dot--mid {
    background: #f08c00;
}

.login-map__dot--high {
    background: #e03131;
}

/* Tooltip listing the users of a marker */
.login-map__tooltip {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.login-map__tooltip .leaflet-tooltip-tip {
    display: none;
}

.login-map__tip {
    min-width: 190px;
    max-width: 280px;
    padding: .55rem .7rem;
    border-radius: .45rem;
    background: rgba(28, 30, 33, .96);
    color: #f1f3f5;
    box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .35);
    font-size: .8rem;
    line-height: 1.35;
    white-space: normal;
}

.login-map__tip-head {
    font-weight: 600;
    margin-bottom: .1rem;
}

.login-map__tip-sub {
    opacity: .7;
    font-size: .74rem;
    margin-bottom: .35rem;
}

.login-map__users {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    max-height: 13rem;
    overflow-y: auto;
}

.login-map__user {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.login-map__user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Accounts linked to a player show the nickname and are highlighted */
.login-map__user-name--player {
    font-weight: 600;
    color: #74c0fc;
}

.login-map__user-count {
    opacity: .65;
    font-variant-numeric: tabular-nums;
}

.login-map__more,
.login-map__empty {
    opacity: .6;
    font-size: .74rem;
    margin-top: .15rem;
}

.login-map__sep {
    margin: .45rem 0;
    opacity: .25;
}

/* Popup reuses the user list, but on a light background */
.login-map .leaflet-popup-content .login-map__user-count {
    opacity: .55;
}

/* Tone down the bright OSM raster tiles in dark mode. Only the tiles are
   filtered so markers, popups and controls keep their real colours. */
.app-skin-dark .login-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9) saturate(.8);
}

.app-skin-dark .login-map {
    background: #2b2f33;
}

@media (max-width: 768px) {
    .login-map {
        height: 400px;
    }
}

