/* ─── crossing-point markers ──────────────────────────────────────────────── */

/* Wrapper for the SVG icon */
.crossing-marker {
    cursor: pointer;
    width:  36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
    transition: transform .15s ease;
}
.crossing-marker:hover { transform: scale(1.25); }

/* MapLibre popup override for crossing tooltips */
.crossing-popup .maplibregl-popup-content {
    background: rgba(20, 20, 30, .92);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.5;
    min-width: 140px;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.crossing-popup .maplibregl-popup-tip { border-top-color: rgba(20, 20, 30, .92); }

.crossing-popup-type {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 11px;
    margin-bottom: 2px;
}
.crossing-popup-type.entry    { color: #2ecc71; }
.crossing-popup-type.exit     { color: #e74c3c; }
.crossing-popup-type.refusal  { color: #ff6b6b; }
.crossing-popup-place  { font-size: 13px; font-weight: 600; }
.crossing-popup-date   { color: #aaa; font-size: 11px; margin-top: 2px; }
.crossing-popup-unresolved { color: #f39c12; font-size: 11px; font-style: italic; }

/* Status badge in the toolbar */
#crossing-badge {
    display: inline-block;
    background: #2980b9;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    min-width: 18px;
    text-align: center;
    vertical-align: middle;
}
#crossing-badge.has-events { background: #27ae60; }
