/* ═══════════════════════════════════════════════
   MindX Mapa – Frontend Styles (SVG Map)
   ═══════════════════════════════════════════════ */

:root {
    --mindx-accent: #7732FF;
    --mindx-accent-light: #9B6BFF;
    --mindx-bg: #000000;
    --mindx-bg-card: #111111;
    --mindx-text: #ffffff;
    --mindx-text-muted: #aaaaaa;
}

/* ─── Wrapper ───────────────────────────────── */

.mindx-mapa-wrapper {
    background: var(--mindx-bg);
    border-radius: 12px;
    overflow: hidden;
    padding: 24px;
    max-width: 100%;
}

/* ─── Title ─────────────────────────────────── */

.mindx-mapa-title {
    color: var(--mindx-text);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 16px 0;
    letter-spacing: 0.02em;
}

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

.mindx-mapa-container {
    width: 100%;
    border-radius: 8px;
    position: relative;
    background: var(--mindx-bg);
    overflow: visible;
}

/* ─── SVG Wrapper ───────────────────────────── */

.mindx-svg-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.mindx-svg-wrapper svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Country path styles */
.mindx-svg-wrapper .land {
    transition: fill 0.3s ease;
    cursor: default;
}

.mindx-svg-wrapper .land.mindx-highlighted {
    cursor: pointer;
}

.mindx-svg-wrapper .land.mindx-highlighted:hover {
    fill: var(--mindx-accent-light) !important;
}

/* ─── Overlay (pins + popup) ────────────────── */

.mindx-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* ─── Popup Container ───────────────────────── */

.mindx-popup-container {
    position: absolute;
    transform: translate(-50%, -100%);
    background: var(--mindx-bg-card);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    z-index: 30;
    min-width: 180px;
    max-width: 280px;
}

/* Popup arrow */
.mindx-popup-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--mindx-bg-card);
    z-index: 31;
}

/* ─── Popup Content ───────────────────────── */

.mindx-popup-header {
    font-weight: 700;
    font-size: 14px;
    color: var(--mindx-accent);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #333;
    line-height: 30px;
}

.mindx-popup {
    text-align: center;
    line-height: 30px;
}

.mindx-popup + .mindx-popup {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #333;
}

.mindx-popup-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 4px;
    display: block;
    border: 2px solid var(--mindx-accent);
}

.mindx-popup-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--mindx-text);
    margin-bottom: 2px;
    line-height: 30px;
}

.mindx-popup-role {
    color: var(--mindx-text-muted);
    font-size: 12px;
    margin-bottom: 4px;
    line-height: 30px;
}

.mindx-popup-link {
    display: inline-block;
    background: var(--mindx-accent);
    color: #fff !important;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.mindx-popup-link:hover {
    background: var(--mindx-accent-light);
}

/* ─── Quote Section ─────────────────────────── */

.mindx-mapa-quote {
    margin-top: 24px;
    padding: 0;
}

.mindx-mapa-quote blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.mindx-mapa-quote p {
    color: var(--mindx-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.mindx-mapa-quote cite {
    color: var(--mindx-text-muted);
    font-style: normal;
    font-size: 13px;
}

/* ─── Responsive ────────────────────────────── */

@media ( max-width: 768px ) {
    .mindx-mapa-wrapper {
        padding: 16px;
    }

    .mindx-mapa-quote p {
        font-size: 16px;
    }

    .mindx-mapa-title {
        font-size: 16px;
    }

}
