/* Hover tooltip card — shared by the solar-system sunmap (sunmap.js) and the
   region / constellation / solar-system graph views (mapgraph.js). A glassy
   dark surface with a cyan border and a soft blur, matching EVE's HUD. */
.map-tooltip {
    position: absolute;
    z-index: 5;
    display: none;
    max-width: 260px;
    padding: 0.6rem 0.75rem;
    background: rgba(10, 12, 18, 0.96);
    border: 1px solid rgba(0, 206, 239, 0.35);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}
.map-tooltip.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    opacity: 1;
}
.map-tooltip-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 206, 239, 0.25));
}
.map-tooltip-body {
    min-width: 0;
}
.map-tooltip-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
}
.map-tooltip-type {
    margin-top: 0.1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #00CEEF;
}
.map-tooltip-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.map-tooltip-stat-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.map-tooltip-stat-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ddd;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
/* The faction reads in EVE orange to keep it distinct from the other stats. */
.map-tooltip-stat-value--accent {
    color: #F0A84E;
}
/* A value that may span several lines (the connections list) left-aligns. */
.map-tooltip-stat-value--wrap {
    text-align: left;
}

/* Respect the user's motion preference: no fade on the card. */
@media (prefers-reduced-motion: reduce) {
    .map-tooltip {
        transition: none;
    }
}
