#markers
{
    position: absolute;
    left: 0;
    top: 0;
}

.marker
{
    position: absolute;
    width: var(--cellW);
    height: var(--cellH);
    cursor: default;
    background: rgba(255,255,255,0);
    z-index: 900;
    transition: background 0.2s;
}

.marker:hover
{
    z-index: 1000;
    /*background: rgba(255,255,255,0.4);*/
}

.marker .rank
{
    height: 100%;
    aspect-ratio: 1 / 1;
    background-size: auto calc(var(--cellH) + 2px);
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 3px rgba(0,0,0,0.72);
    transition: transform 0.1s;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.marker .reviewWarning
{
    position: absolute;
    z-index: 2;
    top: -12px;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translateX(-50%);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.8));
    pointer-events: none;
}

.markerCluster
{
    --cluster-gap: 2px;
    position: absolute;
    width: var(--cellW);
    height: var(--cellH);
    cursor: default;
    z-index: 900;
    isolation: isolate;
}

.markerCluster:hover
{
    z-index: 1000;
}

.markerClusterTrack
{
    position: absolute;
    z-index: 1;
    left: 50%;
    top: -2px;
    display: flex;
    align-items: center;
    gap: var(--cluster-gap);
    width: max-content;
    padding: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    pointer-events: none;
}

.markerClusterTrack::before
{
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 999px;
    background: rgba(13,24,36,0.82);
    box-shadow: 0 2px 7px rgba(0,0,0,0.5);
    opacity: 0;
    clip-path: inset(0 50% round 999px);
    backdrop-filter: blur(3px);
    transition:
        clip-path 420ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 160ms ease;
}

.markerCluster:hover .markerClusterTrack
{
    pointer-events: auto;
}

.markerCluster:hover .markerClusterTrack::before
{
    opacity: 1;
    clip-path: inset(0 0 round 999px);
}

.markerClusterSummary
{
    position: absolute;
    left: 50%;
    top: 0;
    height: var(--cellH);
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    border-radius: 100%;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 100ms ease 100ms,
        transform 200ms cubic-bezier(0.22, 1, 0.36, 1) 70ms,
        visibility 0s linear 0s;
}

.markerClusterPie
{
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 100%;
    box-shadow: 0 0 3px rgba(0,0,0,0.72);
}

.markerClusterSegment
{
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto calc(var(--cellH) + 2px);
}

.markerClusterSegment.bronze
{
    background-image: url(../img/explo-icon-bronze.jpg);
}

.markerClusterSegment.silver
{
    background-image: url(../img/explo-icon-silver.jpg);
}

.markerClusterSegment.gold
{
    background-image: url(../img/explo-icon-gold.jpg), radial-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 80%);
}

.markerClusterCount
{
    position: absolute;
    right: -6px;
    top: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    color: white;
    background: #176f91;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.55);
    font: 700 9px/1 system-ui, sans-serif;
}

.markerClusterTrack .marker
{
    position: relative;
    z-index: 1;
    flex: 0 0 var(--cellH);
    width: var(--cellH);
    height: var(--cellH);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(var(--cluster-collapsed-offset, 0)) scale(0.78);
    transform-origin: center;
    transition:
        opacity 220ms ease,
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 420ms;
}

.markerCluster:hover .markerClusterTrack .marker
{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    transition-delay:
        var(--cluster-open-delay, 0ms),
        var(--cluster-open-delay, 0ms),
        0ms;
}

.markerCluster:hover .markerClusterSummary
{
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) scale(0.78);
    transition:
        opacity 140ms ease,
        transform 220ms ease,
        visibility 0s linear 140ms;
}

@media (prefers-reduced-motion: reduce)
{
    .markerClusterTrack::before,
    .markerClusterSummary,
    .markerClusterTrack .marker
    {
        transition-duration: 160ms;
        transition-delay: 0ms;
    }
}

.marker:hover .rank
{
}

.marker .rank.bronze
{
    background-image: url(../img/explo-icon-bronze.jpg);
}

.marker .rank.silver
{
    background-image: url(../img/explo-icon-silver.jpg);
}

.marker .rank.gold
{
    background-image: url(../img/explo-icon-gold.jpg), radial-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 80%);
}

.marker .info
{
    visibility: hidden;
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);
    width: fit-content;
    transform: translateX(-50%) scale(calc(1 / var(--scale) * 1.2));
    transform-origin: center calc(0% - 2px);
    white-space: nowrap;
    background: rgba(255,255,255,0.6);
    padding:  6px 10px;
    color: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    backdrop-filter: blur(3px);
    border-radius: 2px;
    font-family: Calibri;
    box-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.marker .info::before
{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 10px;
    height: 5px;
    background: rgba(255,255,255,0.6);
    transform: translateX(-50%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.marker:hover .info
{
    visibility: visible;
    opacity: 1;
}

.marker .info .zone
{
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.marker .info .coords
{
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    margin-right: 5px;
    margin-top: -3px;
}

.marker .info .flags
{
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    margin-top: 3px;
}

.marker .info .flags .flag
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker .info .flags .flag .icon
{
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 3px;
    margin-top: 2px;
}

.marker .info .flags .pm .icon
{
    background-image: url(../img/pm-icon.png), radial-gradient(rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
}

.marker .info .flags .po .icon
{
    background-image: url(../img/po-icon.png), radial-gradient(rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
}

.marker .info .flags .pk .icon
{
    background-image: url(../img/pk-icon.png), radial-gradient(rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
}

.marker .info .flags .partial .icon
{
    background-image: url(../img/partial-icon.png), radial-gradient(rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
}

.marker .info .flags .check .icon
{
    background-image: url(../img/check-icon.png), radial-gradient(rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
}

.marker .info .comment
{
    font-size: 12px;
    font-style: italic;
    color: rgba(0,0,0,0.7);
}

.marker .farmingMapMeta
{
    margin-top: 3px;
    color: rgba(0,0,0,0.66);
    font-size: 12px;
}

.marker .farmingVariantHint
{
    margin-top: 5px;
    color: rgba(0,0,0,0.7);
    font-size: 12px;
    font-style: italic;
}
