/* SupporterVisualization embed — loaded only by Embed.cshtml / EmbedUnavailable.cshtml.
   Scoped under .sv-embed-body so it never affects the normal Index.cshtml page. */

.sv-embed-body {
    margin: 0;
    padding: 1rem;
    background: #fff;
}

/* ── Click-to-activate map overlay ───────────────────────────────────────────── */

.sv-embed-body .sv-map-wrap {
    position: relative;
}

.sv-embed-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 500; /* above Leaflet's own panes */
    display: flex;
    /* Pin the activate button near the top of the map instead of its vertical
       centre, so it's reachable in a tall embed without scrolling down first. */
    align-items: flex-start;
    justify-content: center;
    padding-top: 1.5rem;
    background: #f0fdf4;
    border-radius: 8px;
    cursor: pointer;
}

.sv-embed-map-activate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: #198754;
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

.sv-embed-map-activate-btn:hover {
    background: #146c43;
}

/* ── Powered-by badge ─────────────────────────────────────────────────────────── */

.sv-embed-badge {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.25rem;
}

.sv-embed-badge a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #78716c;
    text-decoration: none;
}

.sv-embed-badge a:hover {
    color: #44403c;
}

.sv-embed-badge .tc-logo-img {
    height: 16px;
    width: auto;
}

.sv-embed-badge .tc-logo-light {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .sv-embed-badge .tc-logo-dark {
        display: none;
    }
    .sv-embed-badge .tc-logo-light {
        display: block;
    }
}

/* ── Unavailable state ────────────────────────────────────────────────────────── */

.sv-embed-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    text-align: center;
    color: #78716c;
}

.sv-embed-unavailable i {
    font-size: 2.5rem;
    color: #a8a29e;
}
