/* The map's Spots layer (spots-layer.js): lighter than the cast pins (the
   apps' balloons in cast-cards.css): a small type-coloured disc with the
   same glyph, the name on hover or from zoom 10. My spots: an orange ring;
   favorites: a gold dot. */

.dc-sp-icon { background: none; border: 0; }
.dc-sp {
    position: relative; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; cursor: pointer;
    background: var(--c); border: 1.5px solid rgba(255, 255, 255, .9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.dc-sp-k-mine { border: 2px solid #FF8504; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 1px 3px rgba(0, 0, 0, .5); }
.dc-sp-glyph {
    position: absolute; inset: 3px; background: #fff;
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}
.dc-sp-k-mine .dc-sp-glyph { inset: 2.5px; }
.dc-sp-fav {
    position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%;
    background: #FFC107; border: 1.5px solid #0F2041;
}
.dc-sp-label {
    display: none; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    font: 600 11px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #fff;
    text-shadow: 0 0 2px #000, 0 0 3px #000, 0 1px 3px rgba(0, 0, 0, .8);
}
.dc-sp-labels .dc-sp-label { display: block; }
.dc-sp-labels .dc-sp-nolabel .dc-sp-label { display: none; }
.dc-sp-tip.dc-sp-tip-dup { display: none; }
.leaflet-dcSpots-pane.dc-sp-off { display: none; }
/* A create flow's crosshair or zone box owns the map's clicks. */
body.dc-cc-placing .leaflet-dcSpots-pane { pointer-events: none; }
body.dc-cc-placing .leaflet-dcSpots-pane * { pointer-events: none !important; }

.dc-sp-tip {
    padding: 3px 8px; border: 0; border-radius: 6px; background: rgba(15, 32, 65, .95); color: #fff;
    font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.dc-sp-tip.leaflet-tooltip-top::before { border-top-color: rgba(15, 32, 65, .95); }

/* Clusters: the viewer's navy, a light-blue ring; orange when it holds one of mine. */
.dc-sp-cluster { background: none; border: 0; }
.dc-sp-cluster span {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%;
    background: rgba(15, 32, 65, .92); border: 2px solid rgba(79, 195, 247, .85); color: #fff;
    font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, .18), 0 1px 4px rgba(0, 0, 0, .5); cursor: pointer;
}
.dc-sp-cluster-mine span { border-color: #FF8504; box-shadow: 0 0 0 3px rgba(255, 133, 4, .2), 0 1px 4px rgba(0, 0, 0, .5); }

/* Popup: the map's dark popup, like the point popup's "Forecast here". */
.dc-sp-pop { min-width: 196px; }
.dc-sp-pop-head { display: flex; align-items: center; gap: 10px; }
.dc-sp.dc-sp-static { flex: none; width: 26px; height: 26px; cursor: default; }
.dc-sp-static .dc-sp-glyph { inset: 4px; }
.dc-sp-pop-text { min-width: 0; }
.dc-sp-pop-name { font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.dc-sp-pop-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.dc-sp-tag {
    padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 15px; letter-spacing: .2px;
    background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75);
}
.dc-sp-tag-mine { background: rgba(255, 133, 4, .18); color: #FF9A2E; }
.dc-sp-tag-fav { background: rgba(255, 193, 7, .16); color: #FFC107; }
.dc-sp-pop-coords { margin-top: 6px; font: 11px/1.4 ui-monospace, Menlo, Consolas, monospace; color: #aaa; }

.dc-sp-hint {
    position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 800; pointer-events: none;
    padding: 5px 12px; border-radius: 999px; background: rgba(15, 32, 65, .9); color: rgba(255, 255, 255, .85);
    font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.dc-sp-hint[hidden] { display: none; }
