/*
 * Shared styles for the public map views: single-map /mapa (views/mapa/index.php)
 * and the tabbed /mapa (views/mapa/tabs.php). Booth module render, booth detail
 * panel (sidebar / bottom-sheet), and the floating top-bar pills.
 */
body.mapa-page #user_header,
body.mapa-page #footer,
body.mapa-page #cookie-consent-banner { display: none !important; }
body.mapa-page #main_container { margin: 0; padding: 0; }
body.mapa-page #wrap { margin: 0 !important; }

#ani-bm-stage { position: fixed; inset: 0; z-index: 1; background: #f0f4fa; }
.ani-bm-canvas { position: absolute; inset: 0; cursor: grab; }
.ani-bm-svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }

/* Module styles (mirror integrations widget) */
.ani-mm { fill: #cfd8dc; stroke: none; }
.ani-mm-bg { fill: #e8eef5; }
.ani-mm-other { fill: #93c5fd; }
.ani-mm-hi { fill: #2563eb; }
.ani-mm-outline { fill: none; stroke: #1e3a8a; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ani-mm-outline-hi { stroke: #fbbf24; stroke-width: 6; vector-effect: none; }
.ani-mm-code { fill: #475569; font-family: "Rubik", system-ui, sans-serif; font-size: 11px; pointer-events: none; }
.ani-mm-name-bg { fill: #ffffff; stroke: #cbd5e1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ani-mm-name-bg-hi { fill: #1e3a8a; stroke: #fbbf24; stroke-width: 2; }
.ani-mm-label { fill: #0f172a; font-family: "Rubik", system-ui, sans-serif; font-weight: 500; pointer-events: none; }
.ani-mm-label-hi { fill: #ffffff; font-weight: 600; }
.ani-mm-booth-group { cursor: pointer; }
.ani-mm-booth-label { pointer-events: none; }
.ani-mm-name-overlay { display: none; }
body.show-names .ani-mm-name-overlay { display: inline; }

.ani-bm-empty { color: #475569; padding: 40px; text-align: center; font-family: "Rubik", system-ui, sans-serif; }

/* Detail panel (sidebar / bottom sheet) */
.ani-bd-panel {
    position: fixed;
    background: #ffffff;
    z-index: 10;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform .25s ease;
    box-sizing: border-box;
    font-family: "Rubik", system-ui, sans-serif;
}
.ani-bd-panel[hidden] { display: none; }

@media (min-width: 768px), (orientation: landscape) {
    .ani-bd-panel {
        top: 0; right: 0; bottom: 0;
        width: min(380px, 50vw);
        box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
        transform: translateX(100%);
    }
    .ani-bd-panel.open { transform: translateX(0); }
}

@media (max-width: 767px) and (orientation: portrait) {
    .ani-bd-panel {
        left: 0; right: 0; bottom: 0;
        max-height: 70vh;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .15);
        transform: translateY(100%);
    }
    .ani-bd-panel.open { transform: translateY(0); }
}

.ani-bd-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, .04);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    z-index: 2;
}
.ani-bd-close:hover { background: rgba(0, 0, 0, .08); }
.ani-bd-content { padding: 18px 20px 20px 20px; }
.ani-bd-header { display: flex; align-items: center; gap: 12px; margin-right: 36px; }
.ani-bd-logo { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: 0 0 56px; background: #f1f5f9; }
.ani-bd-logo-placeholder { width: 56px; height: 56px; border-radius: 8px; background: linear-gradient(135deg, #445982, #5a6f9e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex: 0 0 56px; }
.ani-bd-title { font-size: 18px; font-weight: 600; color: #0f172a; line-height: 1.25; word-break: break-word; }
.ani-bd-location { font-size: 13px; color: #64748b; margin-top: 2px; }
.ani-bd-desc { margin-top: 14px; color: #1f2937; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ani-bd-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ani-bd-tag { background: #eef2ff; color: #3730a3; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.ani-bd-social { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ani-bd-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; color: #475569;
    text-decoration: none; transition: background .15s, color .15s, transform .15s;
    position: relative;
}
.ani-bd-social a:hover { background: #445982; color: #fff; transform: translateY(-2px); }
.ani-bd-social svg { width: 18px; height: 18px; }

.ani-bm-topbar-left,
.ani-bm-topbar-right {
    position: fixed;
    top: 12px;
    z-index: 9;
    display: flex;
    gap: 8px;
    pointer-events: none;
}
.ani-bm-topbar-left { left: 12px; }
.ani-bm-topbar-right { right: 12px; }
.ani-bm-topbar-left > *, .ani-bm-topbar-right > * { pointer-events: auto; }
.ani-bm-pill-icon {
    width: 48px; height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    border: none;
    cursor: pointer;
}
.ani-bm-pill-icon svg { width: 26px; height: 26px; }
.ani-bm-toggle-strike { display: none; }
body.show-names .ani-bm-toggle-strike { display: inline; }
button.ani-bm-pill-icon:hover { background: #fff; color: #1e3a8a; }
.ani-bm-pill {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    border: none;
    border-radius: 999px;
    touch-action: manipulation; /* tap działa, ale dwutap nie zoomuje strony na mobile */
    padding: 6px 14px;
    font-family: "Rubik", system-ui, sans-serif;
    font-size: 13px;
    color: #0f172a;
    backdrop-filter: blur(6px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
a.ani-bm-pill:hover { background: #fff; color: #1e3a8a; }
a.ani-bm-pill svg { width: 14px; height: 14px; }
.ani-bm-pill-name { font-weight: 600; }
