/* ═══════════════════════════════════════
   LOKALSI — map.css
   Tylko MapLibre overrides per-theme.
   Komponenty: components.css | Tokeny: tokens.css
   ═══════════════════════════════════════ */

/* Ciemne motywy: kontrolki MapLibre (blueprint + emerald + noir + neon_cyberpunk) */
[data-theme="blueprint"] .maplibregl-ctrl-attrib,
[data-theme="emerald"] .maplibregl-ctrl-attrib,
[data-theme="noir"] .maplibregl-ctrl-attrib,
[data-theme="neon_cyberpunk"] .maplibregl-ctrl-attrib {
    background: var(--bg-glass) !important;
    color: var(--fg-2) !important;
}
[data-theme="blueprint"] .maplibregl-ctrl-attrib a,
[data-theme="emerald"] .maplibregl-ctrl-attrib a,
[data-theme="noir"] .maplibregl-ctrl-attrib a,
[data-theme="neon_cyberpunk"] .maplibregl-ctrl-attrib a {
    color: var(--fg-3) !important;
}
[data-theme="blueprint"] .maplibregl-ctrl-icon,
[data-theme="emerald"] .maplibregl-ctrl-icon,
[data-theme="noir"] .maplibregl-ctrl-icon,
[data-theme="neon_cyberpunk"] .maplibregl-ctrl-icon {
    filter: invert(1) brightness(.85);
}
[data-theme="blueprint"] .maplibregl-ctrl-group button:hover,
[data-theme="emerald"] .maplibregl-ctrl-group button:hover,
[data-theme="noir"] .maplibregl-ctrl-group button:hover,
[data-theme="neon_cyberpunk"] .maplibregl-ctrl-group button:hover {
    background-color: var(--bg-3) !important;
}

/* ═══════════════════════════════════════
   SERIA F F-B.8 — Filter UI per point_type
   5 typów (permanent/tourist/event/announcement/incident) z mini-podglądem shape
   ═══════════════════════════════════════ */
.ptype-f {
    border: none;
    padding: 0;
    margin: 0;
}
.ptype-h {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    padding: 0;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.ptype-g {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ptype-c {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 10px;
    border: 1px solid var(--brd);
    border-radius: var(--rs);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--ease);
    font-size: 12px;
    color: var(--fg-2);
    user-select: none;
}
@media (max-width: 768px) {
    .ptype-c { padding: 10px 14px 10px 12px; gap: 10px; font-size: 13px; }
    .ptype-g { gap: 10px; }
}
.ptype-c:hover {
    background: var(--bg-3);
    border-color: var(--brd-h);
}
.ptype-c:has(input:checked) {
    background: var(--accent-mut);
    border-color: var(--accent);
    color: var(--fg);
}
.ptype-c:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.ptype-c input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ptype-sh {
    width: 14px;
    height: 14px;
    background: var(--fg-2);
    display: inline-block;
    flex-shrink: 0;
    transition: background var(--ease);
}
.ptype-l { white-space: nowrap; }
.ptype-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    margin-left: 2px;
    border-radius: 8px;
    background: var(--bg-3);
    color: var(--fg-2);
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ptype-c:has(input:checked) .ptype-n {
    background: var(--accent);
    color: var(--accent-fg);
}
.ptype-c[data-empty] {
    opacity: .55;
}
.ptype-c[data-empty] .ptype-n {
    background: transparent;
    color: var(--fg-3);
    border: 1px dashed var(--brd);
}
.ptype-c:has(input:checked) .ptype-sh {
    background: var(--accent);
}
.ptype-sh[data-shape="permanent"]    { border-radius: 50%; }
.ptype-sh[data-shape="tourist"]      { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ptype-sh[data-shape="event"]        { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.ptype-sh[data-shape="announcement"] { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.ptype-sh[data-shape="incident"]     { clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%); }

/* Subtelny pulse na incident shape preview (sygnalizuje urgency type) */
.ptype-c:has(input[value="incident"]:checked) .ptype-sh[data-shape="incident"] {
    animation: ptype-pulse 1.8s ease-in-out infinite;
}
@keyframes ptype-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .7; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
    .ptype-c:has(input[value="incident"]:checked) .ptype-sh[data-shape="incident"] {
        animation: none;
    }
}

/* ── SERIA F F-B.7: type badge w popup (disambiguation shape×color) ── */
.pop-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin-top: 6px;
    border-radius: 12px;
    background: var(--pop-bg, var(--bg));
    border: 1px solid var(--pop-brd, var(--brd));
    color: var(--pop-fg2, var(--fg-2));
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -.005em;
}
.pop-type-sh {
    width: 10px;
    height: 10px;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
    opacity: .8;
}
.pop-type-sh[data-shape="permanent"]    { border-radius: 50%; }
.pop-type-sh[data-shape="tourist"]      { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.pop-type-sh[data-shape="event"]        { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.pop-type-sh[data-shape="announcement"] { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
.pop-type-sh[data-shape="incident"]     { clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%); color: #DC2626; }

/* META-AUDYT WCAG 2.4.1 (bypass blocks): skip-link bezwarunkowy. Był pod wcag_level>=2 (martwy)
   ze stylem w nieistniejącym wcag.css. Widoczny dopiero po fokusie (przeniesiony do viewport). */
.skip-link {
    position: absolute;
    left: 8px;
    top: -48px;
    z-index: 1200;
    padding: 10px 18px;
    background: var(--accent);
    color: var(--accent-fg);
    border-radius: var(--rs);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--s2);
    transition: top var(--ease);
}
.skip-link:focus {
    top: 8px;
    outline: 2px solid var(--accent-fg);
    outline-offset: 2px;
}
