/* ═══════════════════════════════════════════════════════════════════════════
   UI TOOLTIPS v1.0 (2026-07-13) — instant labels for icon-only controls
   Pure CSS, driven by each button's existing title attribute. No JS.
   Gold-trimmed dark card, appears instantly left of the right-side docks.
   ═══════════════════════════════════════════════════════════════════════════ */

.map-ctrl-btn, .nav-btn {
    position: relative;
}

/* label card */
.map-ctrl-btn:hover::after,
.nav-btn:hover::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 12, 24, 0.96);
    border: 1px solid rgba(201, 162, 39, 0.55);
    color: #f5efdc;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    z-index: 4000;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    animation: pyraTipIn 120ms ease-out;
}

/* small connector arrow */
.map-ctrl-btn:hover::before,
.nav-btn:hover::before {
    content: '';
    position: absolute;
    right: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(201, 162, 39, 0.55);
    z-index: 4000;
    pointer-events: none;
}

@keyframes pyraTipIn {
    from { opacity: 0; transform: translateY(-50%) translateX(3px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* suppress the slow native tooltip double-up where supported */
.map-ctrl-btn:hover, .nav-btn:hover {
    -webkit-user-select: none;
    user-select: none;
}
