/* ── Map ─────────────────────────────────────────── */

.ssh-map-wrap {
    position: relative;
    width: 100%;
    background: #fafbfc;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#ssh-map-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fafbfc;
}

.ssh-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #6c757d;
    background: rgba(250, 251, 252, 0.92);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ssh-status.is-hidden {
    opacity: 0;
}

.ssh-status.is-error {
    color: #b45309;
}

/* ── Refresh button ──────────────────────────────── */

.ssh-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 0.85rem 0 0.2rem;
}

.ssh-refresh {
    font-size: 0.78rem;
    color: #4a6fa5;
    background: #eef2f7;
    border: 1px solid #d0d8e4;
    border-radius: 4px;
    padding: 0.32rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.ssh-refresh:hover:not(:disabled) {
    background: #dde6f1;
    border-color: #b9c5d6;
}

.ssh-refresh:disabled {
    color: #9aa3b1;
    background: #f2f3f6;
    border-color: #e2e5ea;
    cursor: not-allowed;
}

.ssh-refresh-hint {
    font-size: 0.72rem;
    color: #6c757d;
}

/* ── Stats strip ─────────────────────────────────── */

.ssh-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin: 0.4rem 0 0.2rem;
}

.ssh-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.6rem 0.85rem;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 4px;
}

.ssh-stat-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d2d2d;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.ssh-stat-label {
    font-size: 0.72rem;
    color: #6c757d;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* ── AbuseIPDB badge ──────────────────────────────── */

.abuseipdb-badge {
    display: inline-block;
    line-height: 0;
    margin-top: 0.25rem;
}

.abuseipdb-badge img {
    width: 100%;
    max-width: 360px;
    height: auto;
}
