.ecm-map-header {
    background: #383e59;
    padding: 28px 24px 20px;
    text-align: center;
}

.ecm-map-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    margin: 0;
}

.ecm-frame {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #f7f8fa;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    border-bottom: 3px solid #383e59;
}

.ecm-frame:active {
    cursor: grabbing;
}

.ecm-frame svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ecm-frame svg path {
    fill: #dfe2e8;
    stroke: #fff;
    stroke-width: 0.5;
    transition: fill 0.2s, opacity 0.2s;
}

.ecm-frame svg path.active {
    cursor: pointer;
}

.ecm-frame svg path.active:hover {
    opacity: 0.8;
    filter: brightness(1.1);
}

.ecm-zoom-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(56, 62, 89, 0.85);
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.ecm-zoom-hint.visible {
    opacity: 1;
}

.ecm-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
}

.ecm-controls button {
    width: 34px;
    height: 34px;
    border: none;
    background: #383e59;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.ecm-controls button:first-child {
    border-radius: 4px 4px 0 0;
}

.ecm-controls button:last-child {
    border-radius: 0 0 4px 4px;
}

.ecm-controls button:hover {
    background: #116688;
}

/* Offcanvas */
.ecm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(56, 62, 89, 0.4);
    z-index: 999999;
    backdrop-filter: blur(2px);
}

.ecm-overlay.open {
    display: block;
}

.ecm-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 460px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 1000000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(56, 62, 89, 0.2);
}

.ecm-offcanvas.open {
    transform: translateX(0);
}

.ecm-offcanvas-header {
    position: sticky;
    top: 0;
    background: #383e59;
    color: #fff;
    padding: 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.ecm-offcanvas-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ecm-offcanvas-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.ecm-offcanvas-close:hover {
    color: #fff;
}

.ecm-offcanvas-body {
    padding: 24px;
}

.ecm-section {
    margin-bottom: 32px;
}

.ecm-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #383e59;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #383e59;
    font-weight: 700;
}

/* Accordion */
.ecm-accordion {
    margin-bottom: 6px;
    border: 1px solid #e8e9ed;
    overflow: hidden;
}

.ecm-accordion:first-of-type {
    border-top: 1px solid #e8e9ed;
}

.ecm-accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f7f8fa;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #383e59;
    text-align: left;
    transition: background 0.15s;
}

.ecm-accordion-toggle:hover {
    background: #eef0f4;
}

.ecm-accordion-icon {
    font-size: 16px;
    color: #116688;
    flex-shrink: 0;
    font-weight: 700;
}

.ecm-accordion-content {
    display: none;
    padding: 8px 18px 14px;
    background: #fff;
}

.ecm-accordion-content.open {
    display: block;
}

.ecm-delegate-name {
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f1f3;
}

.ecm-delegate-name:last-child {
    border-bottom: none;
}

.ecm-delegate-link {
    color: #116688;
    text-decoration: none;
}

.ecm-delegate-link:hover {
    text-decoration: underline;
    color: #0d5570;
}

.ecm-muted {
    color: #bbb;
    font-style: italic;
}

/* Organizations */
.ecm-org {
    padding: 20px 24px;
    margin-bottom: 12px;
    color: #333;
}

.ecm-org-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 8px;
}

.ecm-org-status {
    font-size: 13px;
    margin-top: 0;
}

.ecm-org-sections {
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.7;
}

.ecm-org-website {
    margin-top: 8px;
    font-size: 13px;
}

.ecm-org-website a {
    color: #116688;
    text-decoration: none;
    font-weight: 600;
}

.ecm-org-website a:hover {
    text-decoration: underline;
}

.ecm-org[data-status="full_member"] {
    background: linear-gradient(160deg, #01a6ba 0%, rgba(218,218,218,0) 100%);
}

.ecm-org[data-status="associate"] {
    background: linear-gradient(160deg, #c9a825 0%, rgba(218,218,218,0) 100%);
}

.ecm-org[data-status="observer"] {
    background: linear-gradient(160deg, #6aab6a 0%, rgba(218,218,218,0) 100%);
}

/* Country list */
.ecm-country-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 3px solid #383e59;
}

.ecm-country-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #383e59;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #f7f8fa;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid #e8e9ed;
    border-right: 1px solid #e8e9ed;
}

.ecm-country-link:nth-child(4n) {
    border-right: none;
}

.ecm-country-link img {
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.ecm-country-link:hover {
    background: #383e59;
    color: #fff;
    text-decoration: none;
}

.ecm-tooltip {
    position: fixed;
    background: #383e59;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    z-index: 998;
    display: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .ecm-frame {
        margin: 0;
        height: 60vh;
        min-height: 300px;
    }

    .ecm-controls button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .ecm-offcanvas {
        width: 100%;
        max-width: 100vw;
    }

    .ecm-offcanvas-header {
        padding: 20px 18px;
    }

    .ecm-offcanvas-header h2 {
        font-size: 18px;
    }

    .ecm-offcanvas-body {
        padding: 18px;
    }

    .ecm-country-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .ecm-country-list {
        grid-template-columns: 1fr;
    }
}
