/* ============================================================
   OneData Global Presence Map – Plugin Stylesheet (map only)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Reset scope ─────────────────────────────────────────── */
.odgm-wrapper,
.odgm-wrapper * {
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ── Wrapper — zero padding, flush to container ─────────── */
.odgm-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    line-height: 1;
    font-size: 0; /* remove inline-block gaps */
}

/* ── Map stage — full bleed ──────────────────────────────── */
.odgm-map-stage {
    width: 100%;
    background: #060a14;
    display: block;
}

/* ── Loading state ───────────────────────────────────────── */
.odgm-map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
    background: #060a14;
}

.odgm-spinner {
    width: 32px;
    height: 32px;
    color: #3b82f6;
    animation: odgm-spin 1s linear infinite;
}

@keyframes odgm-spin {
    to { transform: rotate(360deg); }
}

/* ── Map container — aspect-ratio 710:250 ───────────────── */
.odgm-map-container {
    position: relative;
    width: 100%;
    font-size: 0;
}

.odgm-map-container::before {
    content: '';
    display: block;
    padding-top: calc(250 / 710 * 100%); /* ~35.2% — cut at Australia */
}

.odgm-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.odgm-no-events {
    pointer-events: none;
}

/* ── Arc dash animation ──────────────────────────────────── */
.odgm-arc-animated {
    stroke-dasharray: 4 4;
    stroke-dashoffset: 120;
    animation: odgm-arc-flow 2.2s ease-in-out forwards;
}

@keyframes odgm-arc-flow {
    0%   { stroke-dashoffset: 120; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { stroke-dashoffset: -120; opacity: 0; }
}

/* ── Pulse ring at destination ───────────────────────────── */
.odgm-pulse-ring {
    animation: odgm-pulse-ring 1.5s ease-out forwards;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes odgm-pulse-ring {
    0%   { transform: scale(0.4); opacity: 0; }
    20%  { opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ── Sonar ping on active pin ────────────────────────────── */
.odgm-signal-ping {
    animation: odgm-signal-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes odgm-signal-ping {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0; }
}

/* ── Hover tooltip ───────────────────────────────────────── */
.odgm-tooltip {
    position: absolute;
    z-index: 30;
    width: 200px;
    background: rgba(13, 21, 48, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(29, 78, 216, 0.5);
    border-radius: 12px;
    padding: 10px 12px;
    pointer-events: none;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    animation: odgm-fade-in 0.14s ease;
}

@keyframes odgm-fade-in {
    from { opacity: 0; transform: translateY(5px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Name row */
.odgm-tooltip-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.odgm-tooltip-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: odgm-blink 1.2s ease-in-out infinite;
}

@keyframes odgm-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.odgm-tooltip-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* City */
.odgm-tooltip-city {
    font-size: 10px;
    color: rgba(191, 219, 254, 0.7);
    line-height: 1.4;
    margin: 0 0 8px 14px;
}

/* Footer */
.odgm-tooltip-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #60a5fa;
    border-top: 1px solid rgba(29, 78, 216, 0.4);
    padding-top: 7px;
}

.odgm-tooltip-footer svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}
