/* Islamic World Map – Elementor Widget Styles */

.ewm-widget-wrap {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ewm-map-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
    text-align: center;
}

.ewm-map-wrap {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.ewm-map-wrap svg {
    display: block;
    width: 100%;
}

/* Tooltip */
.ewm-tooltip {
    position: absolute;
    pointer-events: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #111;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.12s;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0,0,0,0.13);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.ewm-tt-flag {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    display: none;
}

.ewm-tt-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.ewm-tt-cat {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ewm-tt-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Legend */
.ewm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    font-size: 13px;
    color: #444;
}

.ewm-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.ewm-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

@media (max-width: 600px) {
    .ewm-legend {
        font-size: 11px;
        gap: 8px 14px;
    }
    .ewm-tooltip {
        font-size: 12px;
        min-width: 160px;
        padding: 8px 10px;
    }
}
