.communityMapToolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.communityMapCanvas {
    height: var(--community-map-height, 640px);
    isolation: isolate;
    position: relative;
    width: 100%;
    z-index: 0;
}

.communityMapManualLocationNotice {
    margin: 0 0 12px;
}

.communityMapLocationEditor {
    border-top: 1px solid var(--wcfContentBorderInner);
    margin-top: 16px;
    padding-top: 16px;
}

.communityMapPostalFields {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(72px, 0.4fr) minmax(120px, 0.8fr) minmax(180px, 1.8fr) auto;
}

.communityMapPostalFields label,
#communityMapMatchSelectionLabel {
    display: grid;
    gap: 4px;
}

.communityMapPostalFields label > span,
#communityMapMatchSelectionLabel > span {
    color: var(--wcfContentDimmedText);
    font-size: 12px;
}

#communityMapMatchSelectionLabel {
    margin-top: 12px;
    max-width: 560px;
}

.communityMapAttribution {
    color: var(--wcfContentDimmedText);
    font-size: 12px;
    margin-top: 8px;
}

.communityMapPopup {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr;
    min-width: 180px;
}

.communityMapPopup img {
    border-radius: 50%;
    grid-row: 1 / span 3;
}

.communityMapPopup dl,
.communityMapPopup small {
    grid-column: 2;
    margin: 0;
}

.communityMapPopup dt {
    color: var(--wcfContentDimmedText);
    font-size: 11px;
}

.communityMapPopup dd {
    margin: 0 0 6px;
}

.communityMapClusterIcon {
    background: transparent;
    border: 0;
}

.communityMapCluster {
    align-items: center;
    border-radius: 50%;
    color: var(--wcfButtonPrimaryText);
    display: flex;
    font-size: 14px;
    font-weight: 700;
    isolation: isolate;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    text-align: center;
    text-shadow: 0 1px 2px rgb(0 0 0 / 70%);
    width: 100%;
}

.communityMapCluster::before {
    background: var(--wcfButtonPrimaryBackground);
    border: 2px solid var(--wcfButtonPrimaryText);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgb(0 0 0 / 30%);
    content: "";
    inset: 0;
    opacity: var(--community-map-cluster-background-opacity, 1);
    position: absolute;
    z-index: -1;
}

.communityMapAvatarMarker {
    background: var(--wcfContentBackground);
    border: 3px solid var(--wcfButtonPrimaryBackground);
    border-radius: 50%;
    box-shadow: 0 1px 5px rgb(0 0 0 / 40%);
    overflow: hidden;
}

.communityMapAvatarMarkerImage {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.communityMapOwnLocationIcon {
    background: transparent;
    border: 0;
}

.communityMapOwnLocationMarker {
    background: var(--wcfButtonPrimaryBackground);
    border: 3px solid var(--wcfButtonPrimaryText);
    border-radius: 50%;
    box-shadow: 0 1px 6px rgb(0 0 0 / 45%);
    display: block;
    height: 100%;
    position: relative;
    width: 100%;
}

.communityMapOwnLocationMarker::after {
    background: var(--wcfButtonPrimaryText);
    border-radius: 50%;
    content: "";
    height: 8px;
    inset: 50% auto auto 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 8px;
}

.communityMapMappingRows {
    display: grid;
    gap: 8px;
    max-height: 48vh;
    overflow: auto;
}

.communityMapMappingRow {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
}

.communityMapMappingValue {
    overflow-wrap: anywhere;
}

.communityMapAcpFooter {
    border-top: 1px solid var(--wcfContentBorderInner);
    color: var(--wcfContentDimmedText);
    margin-top: 24px;
    padding-top: 16px;
    text-align: center;
}

.communityMapAcpFooter a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .communityMapMappingRow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .communityMapPostalFields {
        grid-template-columns: 1fr;
    }

    .communityMapCanvas {
        height: min(var(--community-map-height, 640px), 70vh);
        min-height: 300px;
    }
}
